From 727faf04848461f248f3a84edfc73c657464cdb1 Mon Sep 17 00:00:00 2001 From: Alex | Interchain Labs Date: Fri, 29 Aug 2025 15:58:04 -0400 Subject: [PATCH] refactor: bring cometbft back to v0.38.x family (#25285) --- CHANGELOG.md | 7 +- Makefile | 80 +- api/cometbft/abci/v2/service.pulsar.go | 235 - api/cometbft/abci/v2/service_grpc.pb.go | 727 - api/cometbft/p2p/v1/conn.pulsar.go | 2860 --- api/cometbft/p2p/v1/pex.pulsar.go | 1724 -- api/cometbft/types/v2/canonical.pulsar.go | 3552 ---- api/cometbft/types/v2/events.pulsar.go | 683 - api/cosmos/base/abci/v1beta1/abci.pulsar.go | 356 +- .../base/tendermint/v1beta1/query.pulsar.go | 632 +- .../base/tendermint/v1beta1/types.pulsar.go | 254 +- api/cosmos/circuit/module/v1/module.pulsar.go | 579 - api/cosmos/circuit/v1/query.pulsar.go | 3174 --- api/cosmos/circuit/v1/query_grpc.pb.go | 207 - api/cosmos/circuit/v1/tx.pulsar.go | 3391 ---- api/cosmos/circuit/v1/tx_grpc.pb.go | 211 - api/cosmos/circuit/v1/types.pulsar.go | 2018 -- api/cosmos/consensus/v1/query.pulsar.go | 90 +- api/cosmos/consensus/v1/tx.pulsar.go | 373 +- .../evidence/module/v1/module.pulsar.go | 38 +- api/cosmos/group/module/v1/module.pulsar.go | 668 - api/cosmos/group/v1/events.pulsar.go | 5611 ------ api/cosmos/group/v1/genesis.pulsar.go | 1441 -- api/cosmos/group/v1/query.pulsar.go | 15920 ---------------- api/cosmos/group/v1/query_grpc.pb.go | 655 - api/cosmos/group/v1/tx.pulsar.go | 15846 --------------- api/cosmos/group/v1/tx_grpc.pb.go | 647 - api/cosmos/group/v1/types.pulsar.go | 8813 --------- api/cosmos/nft/module/v1/module.pulsar.go | 501 - api/cosmos/nft/v1beta1/event.pulsar.go | 2035 -- api/cosmos/nft/v1beta1/genesis.pulsar.go | 1426 -- api/cosmos/nft/v1beta1/nft.pulsar.go | 1823 -- api/cosmos/nft/v1beta1/query.pulsar.go | 7558 -------- api/cosmos/nft/v1beta1/query_grpc.pb.go | 369 - api/cosmos/nft/v1beta1/tx.pulsar.go | 1207 -- api/cosmos/nft/v1beta1/tx_grpc.pb.go | 127 - api/cosmos/staking/v1beta1/staking.pulsar.go | 778 +- .../store/streaming/abci/grpc.pulsar.go | 169 +- api/cosmos/store/v1beta1/listening.pulsar.go | 146 +- api/cosmos/tx/v1beta1/service.pulsar.go | 499 +- api/go.mod | 2 +- api/go.sum | 4 +- .../v2 => tendermint/abci}/types.pulsar.go | 12960 ++++++------- api/tendermint/abci/types_grpc.pb.go | 691 + .../v1 => tendermint/crypto}/keys.pulsar.go | 262 +- .../v1 => tendermint/crypto}/proof.pulsar.go | 516 +- .../libs/bits}/types.pulsar.go | 154 +- .../p2p/v1 => tendermint/p2p}/types.pulsar.go | 548 +- .../v2 => tendermint/types}/block.pulsar.go | 228 +- .../types}/evidence.pulsar.go | 567 +- .../v2 => tendermint/types}/params.pulsar.go | 2151 +-- .../v2 => tendermint/types}/types.pulsar.go | 2523 ++- .../types}/validator.pulsar.go | 635 +- .../v1 => tendermint/version}/types.pulsar.go | 235 +- baseapp/abci.go | 151 +- baseapp/abci_test.go | 442 +- baseapp/abci_utils.go | 47 +- baseapp/abci_utils_test.go | 37 +- baseapp/baseapp.go | 20 +- baseapp/baseapp_test.go | 74 +- baseapp/block_gas_test.go | 8 +- baseapp/genesis.go | 2 +- baseapp/grpcrouter.go | 8 +- baseapp/grpcrouter_helpers.go | 4 +- baseapp/info.go | 4 +- baseapp/msg_service_router_test.go | 6 +- baseapp/oe/optimistic_execution.go | 14 +- baseapp/oe/optimistic_execution_test.go | 6 +- baseapp/options.go | 15 - baseapp/params.go | 2 +- baseapp/params_legacy.go | 2 +- baseapp/snapshot_test.go | 60 +- baseapp/state/manager.go | 2 +- baseapp/streaming_test.go | 18 +- baseapp/test_helpers.go | 4 +- baseapp/testutil/mock/mocks.go | 6 +- baseapp/utils_test.go | 5 +- client/broadcast.go | 4 +- client/broadcast_test.go | 4 +- client/cometbft.go | 4 +- client/grpc/cmtservice/block.go | 4 +- client/grpc/cmtservice/query.pb.go | 231 +- client/grpc/cmtservice/service.go | 4 +- client/grpc/cmtservice/status.go | 2 +- client/grpc/cmtservice/types.go | 8 +- client/grpc/cmtservice/types.pb.go | 127 +- client/grpc/cmtservice/util.go | 2 +- client/grpc/cmtservice/validator.go | 2 +- client/grpc_query.go | 4 +- client/grpc_query_test.go | 8 +- client/query.go | 18 +- client/query_test.go | 4 +- client/rpc/block.go | 4 +- client/rpc/rpc_test.go | 12 +- client/rpc/tx.go | 8 +- client/test_helpers.go | 10 +- client/utils.go | 4 +- client/v2/go.mod | 27 +- client/v2/go.sum | 52 +- codec/amino.go | 2 +- collections/go.mod | 2 +- collections/go.sum | 4 +- contrib/x/circuit/ante/circuit_test.go | 6 +- contrib/x/circuit/keeper/keeper_test.go | 2 +- contrib/x/group/client/cli/tx_test.go | 12 +- contrib/x/group/keeper/genesis.go | 2 +- contrib/x/group/keeper/keeper_test.go | 2 +- contrib/x/group/keeper/msg_server_test.go | 2 +- contrib/x/group/module/abci_test.go | 4 +- contrib/x/group/simulation/operations_test.go | 30 +- contrib/x/nft/keeper/keeper_test.go | 4 +- contrib/x/nft/simulation/operations_test.go | 4 +- core/go.mod | 4 +- core/go.sum | 8 +- crypto/armor.go | 2 +- crypto/armor_test.go | 2 +- crypto/codec/amino.go | 7 +- crypto/codec/cmt.go | 30 +- crypto/codec/proto.go | 6 +- crypto/hd/fundraiser_test.go | 2 +- crypto/keyring/keyring_test.go | 2 +- crypto/keys/bls12_381/key.go | 10 +- crypto/keys/bls12_381/key_cgo.go | 7 +- crypto/keys/bls12_381/keys.pb.go | 6 + crypto/keys/convert.go | 48 - crypto/keys/convert_test.go | 80 - crypto/keys/ed25519/doc.go | 2 +- crypto/keys/ed25519/ed25519.go | 4 +- crypto/keys/ed25519/ed25519_test.go | 4 +- .../internal/ecdsa/privkey_internal_test.go | 2 +- crypto/keys/internal/ecdsa/pubkey.go | 2 +- crypto/keys/multisig/codec.go | 10 +- crypto/keys/multisig/multisig.go | 2 +- crypto/keys/secp256k1/secp256k1.go | 2 +- crypto/keys/secp256k1/secp256k1_cgo.go | 2 +- crypto/keys/secp256k1/secp256k1_nocgo.go | 2 +- crypto/keys/secp256k1/secp256k1_test.go | 4 +- .../keys/secp256r1/privkey_internal_test.go | 2 +- crypto/keys/secp256r1/pubkey.go | 2 +- crypto/ledger/encode_test.go | 2 + crypto/ledger/ledger_mock.go | 2 +- crypto/types/types.go | 2 +- depinject/go.mod | 2 +- depinject/go.sum | 4 +- docs/architecture/adr-038-state-listening.md | 40 +- ...r-040-storage-and-smt-state-commitments.md | 6 +- docs/architecture/adr-060-abci-1.0.md | 2 +- docs/architecture/adr-064-abci-2.0.md | 22 +- docs/docs/build/abci/03-vote-extensions.md | 6 +- .../build/building-apps/04-vote-extensions.md | 4 +- .../building-modules/01-module-manager.md | 2 +- .../02-messages-and-queries.md | 10 +- docs/docs/learn/advanced/00-baseapp.md | 16 +- docs/docs/learn/advanced/15-upgrade.md | 2 +- docs/docs/learn/beginner/01-tx-lifecycle.md | 16 +- .../docs/learn/beginner/02-query-lifecycle.md | 12 +- docs/spec/store/README.md | 2 +- errors/go.mod | 2 +- errors/go.sum | 4 +- go.mod | 30 +- go.sum | 50 +- math/unsafe/rand.go | 2 +- proto/buf.lock | 4 +- proto/buf.yaml | 2 +- proto/cometbft/abci/v2/service.proto | 42 - proto/cometbft/abci/v2/types.proto | 587 - proto/cometbft/libs/bits/v1/types.proto | 10 - proto/cometbft/p2p/v1/conn.proto | 38 - proto/cometbft/p2p/v1/pex.proto | 24 - proto/cometbft/types/v2/block.proto | 16 - proto/cometbft/types/v2/canonical.proto | 54 - proto/cometbft/types/v2/events.proto | 11 - proto/cometbft/types/v2/params.proto | 147 - proto/cometbft/types/v2/validator.proto | 47 - proto/cosmos/base/abci/v1beta1/abci.proto | 12 +- .../base/tendermint/v1beta1/query.proto | 24 +- .../base/tendermint/v1beta1/types.proto | 16 +- proto/cosmos/consensus/v1/query.proto | 4 +- proto/cosmos/consensus/v1/tx.proto | 15 +- proto/cosmos/staking/v1beta1/staking.proto | 14 +- proto/cosmos/store/streaming/abci/grpc.proto | 10 +- proto/cosmos/store/v1beta1/listening.proto | 8 +- proto/cosmos/tx/v1beta1/service.proto | 8 +- proto/tendermint/abci/types.proto | 486 + .../v1 => tendermint/crypto}/keys.proto | 8 +- .../v1 => tendermint/crypto}/proof.proto | 9 +- proto/tendermint/libs/bits/types.proto | 9 + .../p2p/v1 => tendermint/p2p}/types.proto | 9 +- proto/tendermint/types/block.proto | 15 + .../v2 => tendermint/types}/evidence.proto | 25 +- proto/tendermint/types/params.proto | 91 + .../types/v2 => tendermint/types}/types.proto | 90 +- proto/tendermint/types/validator.proto | 37 + .../v1 => tendermint/version}/types.proto | 4 +- runtime/app.go | 6 +- runtime/types.go | 4 +- scripts/protocgen.sh | 11 +- server/api/server.go | 2 +- server/cmd/execute.go | 2 +- server/cmt_abci.go | 30 +- server/cmt_cmds.go | 20 +- server/export_test.go | 6 +- server/log/cmt_logger.go | 2 +- server/mock/app.go | 10 +- server/mock/app_test.go | 12 +- server/rollback.go | 2 +- server/start.go | 109 +- server/types/abci.go | 30 +- server/types/app.go | 6 +- server/util.go | 8 +- server/util_test.go | 2 +- simapp/abci.go | 18 +- simapp/app.go | 6 +- simapp/app_test.go | 8 +- simapp/export.go | 2 +- simapp/genesis_account_test.go | 2 +- simapp/go.mod | 30 +- simapp/go.sum | 63 +- simapp/sim_test.go | 6 +- simapp/simd/cmd/commands.go | 2 +- simapp/simd/cmd/testnet.go | 6 +- simapp/test_helpers.go | 12 +- store/go.mod | 12 +- store/go.sum | 22 +- store/iavl/store.go | 2 +- store/internal/maps/maps.go | 6 +- store/internal/proofs/convert.go | 2 +- store/internal/proofs/helpers.go | 2 +- store/prefix/store.go | 2 +- store/rootmulti/proof.go | 2 +- store/rootmulti/store.go | 2 +- store/snapshots/types/convert.go | 2 +- store/streaming/abci/examples/file/file.go | 6 +- .../streaming/abci/examples/stdout/stdout.go | 43 - store/streaming/abci/grpc.go | 6 +- store/streaming/abci/grpc.pb.go | 84 +- store/streaming/streaming_test.go | 16 +- store/types/commit_info.go | 2 +- store/types/listening.pb.go | 74 +- store/types/proof.go | 4 +- store/types/store.go | 2 +- store/types/streaming.go | 6 +- systemtests/go.mod | 30 +- systemtests/go.sum | 61 +- systemtests/node_utils.go | 2 +- systemtests/rpc_client.go | 12 +- systemtests/system.go | 16 +- systemtests/testnet_init.go | 2 +- tests/e2e/auth/suite.go | 62 +- tests/e2e/authz/tx.go | 8 +- tests/e2e/bank/suite.go | 13 +- tests/e2e/server/export_test.go | 8 +- tests/e2e/staking/suite.go | 12 +- tests/go.mod | 32 +- tests/go.sum | 71 +- .../integration/auth/client/cli/suite_test.go | 6 +- .../bank/keeper/deterministic_test.go | 2 +- .../distribution/keeper/msg_server_test.go | 4 +- .../evidence/keeper/infraction_test.go | 14 +- tests/integration/gov/genesis_test.go | 10 +- tests/integration/gov/keeper/keeper_test.go | 2 +- .../slashing/keeper/keeper_test.go | 2 +- .../integration/staking/keeper/common_test.go | 2 +- .../staking/keeper/determinstic_test.go | 2 +- .../staking/keeper/genesis_test.go | 2 +- .../staking/keeper/grpc_query_test.go | 2 +- .../integration/staking/keeper/slash_test.go | 2 +- .../staking/keeper/validator_test.go | 2 +- .../staking/keeper/vote_extensions_test.go | 7 +- .../store/rootmulti/rollback_test.go | 12 +- tests/systemtests/go.mod | 25 +- tests/systemtests/go.sum | 48 +- testutil/cli/cmt_mocks.go | 16 +- testutil/context.go | 2 +- testutil/integration/example_test.go | 2 +- testutil/integration/router.go | 14 +- testutil/mock/privval.go | 16 +- testutil/mock/privval_test.go | 4 +- testutil/mock/types_mock_appmodule.go | 2 +- testutil/mock/types_module_module.go | 2 +- testutil/network/network.go | 18 +- testutil/network/util.go | 55 +- testutil/sims/app_helpers.go | 14 +- testutil/sims/tx_helpers.go | 6 +- tools/benchmark/go.mod | 29 +- tools/benchmark/go.sum | 61 +- tools/confix/go.mod | 28 +- tools/confix/go.sum | 57 +- tools/cosmovisor/args.go | 5 +- tools/cosmovisor/args_test.go | 2 +- .../cosmovisor/cmd/cosmovisor/add_upgrade.go | 3 +- tools/cosmovisor/cmd/cosmovisor/init.go | 3 +- .../cmd/cosmovisor/prepare_upgrade.go | 5 +- tools/cosmovisor/go.mod | 55 +- tools/cosmovisor/go.sum | 108 +- tools/cosmovisor/process.go | 4 +- tools/cosmovisor/process_test.go | 3 +- tools/cosmovisor/scanner.go | 4 +- tools/cosmovisor/scanner_test.go | 2 +- tools/cosmovisor/upgrade.go | 5 +- tools/cosmovisor/upgrade_test.go | 3 +- types/abci.go | 18 +- types/abci.pb.go | 150 +- types/address/hash.go | 2 +- types/address/hash_test.go | 2 +- types/context.go | 6 +- types/context_test.go | 6 +- types/errors/abci.go | 10 +- types/events.go | 2 +- types/events_test.go | 2 +- types/mempool/mempool_test.go | 2 +- types/mempool/priority_nonce_test.go | 2 +- types/mempool/sender_nonce_property_test.go | 2 +- types/mempool/sender_nonce_test.go | 2 +- types/module/core_module.go | 2 +- types/module/module.go | 16 +- types/module/module_test.go | 4 +- types/query/pagination_test.go | 2 +- types/result.go | 6 +- types/result_test.go | 10 +- types/tx/service.pb.go | 183 +- x/auth/ante/feegrant_test.go | 2 +- x/auth/ante/setup_test.go | 2 +- x/auth/ante/sigverify_benchmark_test.go | 2 +- x/auth/ante/testutil_test.go | 4 +- x/auth/keeper/keeper_test.go | 4 +- x/auth/migrations/v2/store.go | 10 +- x/auth/migrations/v2/store_test.go | 2 +- x/auth/migrations/v3/store_test.go | 2 +- x/auth/simulation/proposals_test.go | 2 +- x/auth/tx/adapter.go | 6 - x/auth/tx/query.go | 2 +- x/auth/types/account.go | 2 +- x/auth/vesting/client/cli/tx_test.go | 2 +- x/auth/vesting/module.go | 2 +- x/auth/vesting/msg_server_test.go | 4 +- x/auth/vesting/types/vesting_account_test.go | 2 +- x/authz/client/cli/tx_test.go | 6 +- x/authz/keeper/genesis_test.go | 2 +- x/authz/keeper/keeper.go | 2 +- x/authz/keeper/keeper_test.go | 4 +- x/authz/module/abci_test.go | 2 +- x/authz/simulation/operations_test.go | 8 +- x/bank/app_test.go | 12 +- x/bank/bench_test.go | 10 +- x/bank/client/cli/tx_test.go | 2 +- x/bank/keeper/collections_test.go | 4 +- x/bank/keeper/keeper_test.go | 6 +- x/bank/simulation/operations_test.go | 10 +- x/bank/simulation/proposals_test.go | 2 +- x/consensus/exported/exported.go | 2 +- x/consensus/keeper/keeper.go | 4 +- x/consensus/keeper/keeper_test.go | 349 +- x/consensus/types/msgs.go | 28 +- x/consensus/types/query.pb.go | 39 +- x/consensus/types/tx.pb.go | 211 +- x/distribution/client/cli/tx_test.go | 6 +- x/distribution/keeper/abci_test.go | 4 +- x/distribution/keeper/allocation.go | 2 +- x/distribution/keeper/allocation_test.go | 4 +- x/distribution/keeper/delegation_test.go | 2 +- x/distribution/keeper/keeper_test.go | 2 +- x/distribution/simulation/operations_test.go | 10 +- x/distribution/simulation/proposals_test.go | 2 +- x/evidence/genesis_test.go | 2 +- x/evidence/keeper/keeper_test.go | 2 +- x/evidence/types/evidence.go | 2 +- x/evidence/types/evidence.pb.go | 48 +- x/evidence/types/genesis.pb.go | 12 +- x/evidence/types/query.pb.go | 61 +- x/evidence/types/tx.pb.go | 12 +- x/feegrant/basic_fee_test.go | 2 +- x/feegrant/client/cli/tx_test.go | 6 +- x/feegrant/filtered_fee_test.go | 2 +- x/feegrant/grant_test.go | 2 +- x/feegrant/periodic_fee_test.go | 2 +- x/feegrant/simulation/operations_test.go | 8 +- x/genutil/README.md | 2 +- x/genutil/client/cli/collect.go | 10 +- x/genutil/client/cli/gentx.go | 13 +- x/genutil/client/cli/gentx_test.go | 6 +- x/genutil/client/cli/init.go | 16 +- x/genutil/client/cli/init_test.go | 4 +- x/genutil/client/testutil/helpers.go | 2 +- x/genutil/collect.go | 2 +- x/genutil/genesis.go | 2 +- x/genutil/gentx.go | 2 +- x/genutil/module.go | 2 +- x/genutil/testutil/expected_keepers_mocks.go | 2 +- x/genutil/types/chain_id.go | 2 +- x/genutil/types/expected_keepers.go | 2 +- x/genutil/types/genesis.go | 8 +- x/genutil/types/genesis_test.go | 2 +- x/genutil/types/testdata/app_genesis.json | 2 +- x/genutil/utils.go | 108 +- x/genutil/utils_test.go | 106 +- x/gov/abci_test.go | 16 +- x/gov/client/cli/tx_test.go | 6 +- x/gov/client/utils/query_test.go | 6 +- x/gov/keeper/common_test.go | 4 +- x/gov/simulation/operations_test.go | 14 +- x/gov/simulation/proposals_test.go | 2 +- x/mint/simulation/proposals_test.go | 2 +- x/params/simulation/operations_test.go | 2 +- x/params/simulation/proposals_test.go | 2 +- x/params/types/consensus_params_legacy.go | 2 +- x/params/types/subspace_test.go | 2 +- x/simulation/mock_cometbft.go | 35 +- x/simulation/params.go | 4 +- x/simulation/params_test.go | 2 +- x/simulation/simulate.go | 6 +- x/slashing/abci_test.go | 4 +- x/slashing/app_test.go | 6 +- x/slashing/keeper/hooks.go | 2 +- x/slashing/keeper/keeper_test.go | 4 +- x/slashing/simulation/operations_test.go | 6 +- x/slashing/simulation/proposals_test.go | 2 +- x/staking/app_test.go | 8 +- x/staking/client/cli/tx_test.go | 6 +- x/staking/genesis.go | 2 +- x/staking/keeper/abci.go | 2 +- x/staking/keeper/genesis.go | 2 +- x/staking/keeper/historical_info_test.go | 2 +- x/staking/keeper/keeper.go | 2 +- x/staking/keeper/keeper_test.go | 4 +- x/staking/keeper/val_state_change.go | 2 +- x/staking/keeper/validator.go | 2 +- x/staking/keeper/validator_test.go | 2 +- x/staking/keeper_bench_test.go | 4 +- x/staking/migrations/v5/migrations_test.go | 2 +- x/staking/module.go | 2 +- x/staking/simulation/operations_test.go | 14 +- x/staking/simulation/proposals_test.go | 2 +- x/staking/testutil/cmt.go | 4 +- x/staking/testutil/expected_keepers_mocks.go | 6 +- x/staking/types/expected_keepers.go | 2 +- x/staking/types/exported.go | 2 +- x/staking/types/historical_info.go | 2 +- x/staking/types/historical_info_test.go | 2 +- x/staking/types/staking.pb.go | 1927 +- x/staking/types/validator.go | 45 +- x/staking/types/validator_test.go | 20 +- x/tx/go.mod | 6 +- x/tx/go.sum | 12 +- x/tx/internal/testpb/1.pulsar.go | 2 +- x/upgrade/types/storeloader_test.go | 6 +- 446 files changed, 15286 insertions(+), 103152 deletions(-) delete mode 100644 api/cometbft/abci/v2/service.pulsar.go delete mode 100644 api/cometbft/abci/v2/service_grpc.pb.go delete mode 100644 api/cometbft/p2p/v1/conn.pulsar.go delete mode 100644 api/cometbft/p2p/v1/pex.pulsar.go delete mode 100644 api/cometbft/types/v2/canonical.pulsar.go delete mode 100644 api/cometbft/types/v2/events.pulsar.go delete mode 100644 api/cosmos/circuit/module/v1/module.pulsar.go delete mode 100644 api/cosmos/circuit/v1/query.pulsar.go delete mode 100644 api/cosmos/circuit/v1/query_grpc.pb.go delete mode 100644 api/cosmos/circuit/v1/tx.pulsar.go delete mode 100644 api/cosmos/circuit/v1/tx_grpc.pb.go delete mode 100644 api/cosmos/circuit/v1/types.pulsar.go delete mode 100644 api/cosmos/group/module/v1/module.pulsar.go delete mode 100644 api/cosmos/group/v1/events.pulsar.go delete mode 100644 api/cosmos/group/v1/genesis.pulsar.go delete mode 100644 api/cosmos/group/v1/query.pulsar.go delete mode 100644 api/cosmos/group/v1/query_grpc.pb.go delete mode 100644 api/cosmos/group/v1/tx.pulsar.go delete mode 100644 api/cosmos/group/v1/tx_grpc.pb.go delete mode 100644 api/cosmos/group/v1/types.pulsar.go delete mode 100644 api/cosmos/nft/module/v1/module.pulsar.go delete mode 100644 api/cosmos/nft/v1beta1/event.pulsar.go delete mode 100644 api/cosmos/nft/v1beta1/genesis.pulsar.go delete mode 100644 api/cosmos/nft/v1beta1/nft.pulsar.go delete mode 100644 api/cosmos/nft/v1beta1/query.pulsar.go delete mode 100644 api/cosmos/nft/v1beta1/query_grpc.pb.go delete mode 100644 api/cosmos/nft/v1beta1/tx.pulsar.go delete mode 100644 api/cosmos/nft/v1beta1/tx_grpc.pb.go rename api/{cometbft/abci/v2 => tendermint/abci}/types.pulsar.go (70%) create mode 100644 api/tendermint/abci/types_grpc.pb.go rename api/{cometbft/crypto/v1 => tendermint/crypto}/keys.pulsar.go (68%) rename api/{cometbft/crypto/v1 => tendermint/crypto}/proof.pulsar.go (85%) rename api/{cometbft/libs/bits/v1 => tendermint/libs/bits}/types.pulsar.go (78%) rename api/{cometbft/p2p/v1 => tendermint/p2p}/types.pulsar.go (82%) rename api/{cometbft/types/v2 => tendermint/types}/block.pulsar.go (75%) rename api/{cometbft/types/v2 => tendermint/types}/evidence.pulsar.go (80%) rename api/{cometbft/types/v2 => tendermint/types}/params.pulsar.go (61%) rename api/{cometbft/types/v2 => tendermint/types}/types.pulsar.go (80%) rename api/{cometbft/types/v2 => tendermint/types}/validator.pulsar.go (72%) rename api/{cometbft/version/v1 => tendermint/version}/types.pulsar.go (80%) delete mode 100644 crypto/keys/convert.go delete mode 100644 crypto/keys/convert_test.go delete mode 100644 proto/cometbft/abci/v2/service.proto delete mode 100644 proto/cometbft/abci/v2/types.proto delete mode 100644 proto/cometbft/libs/bits/v1/types.proto delete mode 100644 proto/cometbft/p2p/v1/conn.proto delete mode 100644 proto/cometbft/p2p/v1/pex.proto delete mode 100644 proto/cometbft/types/v2/block.proto delete mode 100644 proto/cometbft/types/v2/canonical.proto delete mode 100644 proto/cometbft/types/v2/events.proto delete mode 100644 proto/cometbft/types/v2/params.proto delete mode 100644 proto/cometbft/types/v2/validator.proto create mode 100644 proto/tendermint/abci/types.proto rename proto/{cometbft/crypto/v1 => tendermint/crypto}/keys.proto (51%) rename proto/{cometbft/crypto/v1 => tendermint/crypto}/proof.proto (71%) create mode 100644 proto/tendermint/libs/bits/types.proto rename proto/{cometbft/p2p/v1 => tendermint/p2p}/types.proto (71%) create mode 100644 proto/tendermint/types/block.proto rename proto/{cometbft/types/v2 => tendermint/types}/evidence.proto (52%) create mode 100644 proto/tendermint/types/params.proto rename proto/{cometbft/types/v2 => tendermint/types}/types.proto (62%) create mode 100644 proto/tendermint/types/validator.proto rename proto/{cometbft/version/v1 => tendermint/version}/types.proto (84%) delete mode 100644 store/streaming/abci/examples/stdout/stdout.go diff --git a/CHANGELOG.md b/CHANGELOG.md index 4eb38b9663..bc36fe3c23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,8 +46,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ * `x/nft` * `x/circuit` * `x/crisis` -* [#24837](https://github.com/cosmos/cosmos-sdk/pull/24837) Update to using CometBFT v2. - * This update changes the import paths from `cometbft/cometbft` to `cometbft/cometbft/v2`. Users can use the [migration tool](./tools/migration/TODO) to automatically update their nodes. +* (crypto) [#24414](https://github.com/cosmos/cosmos-sdk/pull/24414) Remove sr25519 support, since it was removed in CometBFT v1.x (see: CometBFT [#3646](https://github.com/cometbft/cometbft/pull/3646)). ### Features @@ -128,10 +127,6 @@ Ref: https://keepachangelog.com/en/1.0.0/ * (x/bank) [#24053](https://github.com/cosmos/cosmos-sdk/pull/24053) Resolve a foot-gun by swapping send restrictions check in `InputOutputCoins` before coin deduction. * (codec/types) [#24336](https://github.com/cosmos/cosmos-sdk/pull/24336) Most types definitions were moved to `github.com/cosmos/gogoproto/types/any` with aliases to these left in `codec/types` so that there should be no breakage to existing code. This allows protobuf generated code to optionally reference the SDK's custom `Any` type without a direct dependency on the SDK. This can be done by changing the `protoc` `M` parameter for `any.proto` to `Mgoogle/protobuf/any.proto=github.com/cosmos/gogoproto/types/any`. -### API Breaking Changes - -* (crypto) [#24414](https://github.com/cosmos/cosmos-sdk/pull/24414) Remove sr25519 support, since it was removed in CometBFT v1.x (see: CometBFT [#3646](https://github.com/cometbft/cometbft/pull/3646)). - ### Bug Fixes * (server)[#24583](https://github.com/cosmos/cosmos-sdk/pull/24583) Fix height calculation in pruning manager and better restart handling. diff --git a/Makefile b/Makefile index a498479f95..6e652c8c5d 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ ifeq ($(findstring -,$(VERSION)),) # No "-" means it's just a hash VERSION := 0.0.0-$(VERSION_RAW) endif export VERSION -export CMTVERSION := $(shell go list -m github.com/cometbft/cometbft/v2 | sed 's:.* ::') +export CMTVERSION := $(shell go list -m github.com/cometbft/cometbft | sed 's:.* ::') export COMMIT := $(shell git log -1 --format='%H') LEDGER_ENABLED ?= true BINDIR ?= $(GOPATH)/bin @@ -67,7 +67,7 @@ ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=sim \ -X github.com/cosmos/cosmos-sdk/version.Version=$(VERSION) \ -X github.com/cosmos/cosmos-sdk/version.Commit=$(COMMIT) \ -X "github.com/cosmos/cosmos-sdk/version.BuildTags=$(build_tags_comma_sep)" \ - -X github.com/cometbft/cometbft/v2/version.TMCoreSemVer=$(CMTVERSION) + -X github.com/cometbft/cometbft/version.TMCoreSemVer=$(CMTVERSION) # DB backend selection ifeq (cleveldb,$(findstring cleveldb,$(COSMOS_BUILD_OPTIONS))) @@ -431,52 +431,44 @@ proto-lint: proto-check-breaking: @$(protoImage) buf breaking --against $(HTTPS_GIT)#branch=main -CMT_VERSION_DIR = v1.0.1 -CMT_PROTO = v1 -CMT_URL = https://raw.githubusercontent.com/cometbft/cometbft/$(CMT_VERSION_DIR)/proto/cometbft -CMT_CRYPTO_TYPES = proto/cometbft/crypto/$(CMT_PROTO) -CMT_ABCI_TYPES = proto/cometbft/abci/$(CMT_PROTO) -CMT_TYPES = proto/cometbft/types/$(CMT_PROTO) -CMT_VERSION = proto/cometbft/version/$(CMT_PROTO) -CMT_LIBS = proto/cometbft/libs/bits/$(CMT_PROTO) -CMT_P2P = proto/cometbft/p2p/$(CMT_PROTO) +CMT_URL = https://raw.githubusercontent.com/cometbft/cometbft/v0.38.0/proto/tendermint -proto-update-comet: - @echo "Updating Protobuf dependency: downloading cometbft.$(CMT_PROTO) files from CometBFT $(CMT_VERSION_DIR)" - - @mkdir -p $(CMT_ABCI_TYPES) - @curl -fsSL $(CMT_URL)/abci/$(CMT_PROTO)/service.proto > $(CMT_ABCI_TYPES)/service.proto - @curl -fsSL $(CMT_URL)/abci/$(CMT_PROTO)/types.proto > $(CMT_ABCI_TYPES)/types.proto - - @mkdir -p $(CMT_VERSION) - @curl -fsSL $(CMT_URL)/version/$(CMT_PROTO)/types.proto > $(CMT_VERSION)/types.proto - - @mkdir -p $(CMT_TYPES) - @curl -fsSL $(CMT_URL)/types/$(CMT_PROTO)/block.proto > $(CMT_TYPES)/block.proto - @curl -fsSL $(CMT_URL)/types/$(CMT_PROTO)/canonical.proto > $(CMT_TYPES)/canonical.proto - @curl -fsSL $(CMT_URL)/types/$(CMT_PROTO)/events.proto > $(CMT_TYPES)/events.proto - @curl -fsSL $(CMT_URL)/types/$(CMT_PROTO)/evidence.proto > $(CMT_TYPES)/evidence.proto - @curl -fsSL $(CMT_URL)/types/$(CMT_PROTO)/params.proto > $(CMT_TYPES)/params.proto - @curl -fsSL $(CMT_URL)/types/$(CMT_PROTO)/types.proto > $(CMT_TYPES)/types.proto - @curl -fsSL $(CMT_URL)/types/$(CMT_PROTO)/validator.proto > $(CMT_TYPES)/validator.proto - - @mkdir -p $(CMT_CRYPTO_TYPES) - @curl -fsSL $(CMT_URL)/crypto/$(CMT_PROTO)/keys.proto > $(CMT_CRYPTO_TYPES)/keys.proto - @curl -fsSL $(CMT_URL)/crypto/$(CMT_PROTO)/proof.proto > $(CMT_CRYPTO_TYPES)/proof.proto - - @mkdir -p $(CMT_LIBS) - @curl -fsSL $(CMT_URL)/libs/bits/$(CMT_PROTO)/types.proto > $(CMT_LIBS)/types.proto - - @mkdir -p $(CMT_P2P) - @curl -fsSL $(CMT_URL)/p2p/$(CMT_PROTO)/conn.proto > $(CMT_P2P)/conn.proto - @curl -fsSL $(CMT_URL)/p2p/$(CMT_PROTO)/pex.proto > $(CMT_P2P)/pex.proto - @curl -fsSL $(CMT_URL)/p2p/$(CMT_PROTO)/types.proto > $(CMT_P2P)/types.proto +CMT_CRYPTO_TYPES = proto/tendermint/crypto +CMT_ABCI_TYPES = proto/tendermint/abci +CMT_TYPES = proto/tendermint/types +CMT_VERSION = proto/tendermint/version +CMT_LIBS = proto/tendermint/libs/bits +CMT_P2P = proto/tendermint/p2p proto-update-deps: - @echo "Updating Protobuf dependencies: running 'buf dep update'" - $(DOCKER) run --rm -v $(CURDIR)/proto:/workspace --workdir /workspace $(protoImageName) buf dep update + @echo "Updating Protobuf dependencies" -.PHONY: proto-all proto-gen proto-swagger-gen proto-format proto-lint proto-check-breaking proto-update-deps proto-update-comet + @mkdir -p $(CMT_ABCI_TYPES) + @curl -sSL $(CMT_URL)/abci/types.proto > $(CMT_ABCI_TYPES)/types.proto + + @mkdir -p $(CMT_VERSION) + @curl -sSL $(CMT_URL)/version/types.proto > $(CMT_VERSION)/types.proto + + @mkdir -p $(CMT_TYPES) + @curl -sSL $(CMT_URL)/types/types.proto > $(CMT_TYPES)/types.proto + @curl -sSL $(CMT_URL)/types/evidence.proto > $(CMT_TYPES)/evidence.proto + @curl -sSL $(CMT_URL)/types/params.proto > $(CMT_TYPES)/params.proto + @curl -sSL $(CMT_URL)/types/validator.proto > $(CMT_TYPES)/validator.proto + @curl -sSL $(CMT_URL)/types/block.proto > $(CMT_TYPES)/block.proto + + @mkdir -p $(CMT_CRYPTO_TYPES) + @curl -sSL $(CMT_URL)/crypto/proof.proto > $(CMT_CRYPTO_TYPES)/proof.proto + @curl -sSL $(CMT_URL)/crypto/keys.proto > $(CMT_CRYPTO_TYPES)/keys.proto + + @mkdir -p $(CMT_LIBS) + @curl -sSL $(CMT_URL)/libs/bits/types.proto > $(CMT_LIBS)/types.proto + + @mkdir -p $(CMT_P2P) + @curl -sSL $(CMT_URL)/p2p/types.proto > $(CMT_P2P)/types.proto + + $(DOCKER) run --rm -v $(CURDIR)/proto:/workspace --workdir /workspace $(protoImageName) buf mod update + +.PHONY: proto-all proto-gen proto-swagger-gen proto-format proto-lint proto-check-breaking proto-update-deps ############################################################################### ### Localnet ### diff --git a/api/cometbft/abci/v2/service.pulsar.go b/api/cometbft/abci/v2/service.pulsar.go deleted file mode 100644 index e870e37e83..0000000000 --- a/api/cometbft/abci/v2/service.pulsar.go +++ /dev/null @@ -1,235 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package abciv2 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" -) - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cometbft/abci/v2/service.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -var File_cometbft_abci_v2_service_proto protoreflect.FileDescriptor - -var file_cometbft_abci_v2_service_proto_rawDesc = []byte{ - 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x61, 0x62, 0x63, 0x69, 0x2f, - 0x76, 0x32, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x10, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, - 0x76, 0x32, 0x1a, 0x1c, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x61, 0x62, 0x63, - 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x32, 0xc4, 0x0b, 0x0a, 0x0b, 0x41, 0x42, 0x43, 0x49, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x12, 0x45, 0x0a, 0x04, 0x45, 0x63, 0x68, 0x6f, 0x12, 0x1d, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, - 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x63, 0x68, 0x6f, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, - 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x05, 0x46, 0x6c, 0x75, 0x73, 0x68, - 0x12, 0x1e, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, - 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x6c, 0x75, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x1f, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, - 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x6c, 0x75, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x45, 0x0a, 0x04, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1d, 0x2e, 0x63, 0x6f, 0x6d, 0x65, - 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x49, 0x6e, 0x66, - 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, - 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x49, 0x6e, 0x66, 0x6f, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x07, 0x43, 0x68, 0x65, 0x63, - 0x6b, 0x54, 0x78, 0x12, 0x20, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, - 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x78, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, - 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x78, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x12, 0x1e, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, - 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x1f, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, - 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x06, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x1f, 0x2e, 0x63, - 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, - 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, - 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, - 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x54, 0x0a, 0x09, 0x49, 0x6e, 0x69, 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x22, 0x2e, 0x63, - 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, - 0x49, 0x6e, 0x69, 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x23, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, - 0x2e, 0x76, 0x32, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x60, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6e, 0x61, - 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x12, 0x26, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, - 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6e, - 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, - 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, - 0x32, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x60, 0x0a, 0x0d, 0x4f, 0x66, 0x66, 0x65, 0x72, - 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x26, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, - 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x4f, 0x66, 0x66, 0x65, - 0x72, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x27, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, - 0x2e, 0x76, 0x32, 0x2e, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x11, 0x4c, 0x6f, 0x61, - 0x64, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x12, 0x2a, - 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, - 0x32, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, - 0x75, 0x6e, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x63, 0x6f, 0x6d, - 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x6f, - 0x61, 0x64, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6f, 0x0a, 0x12, 0x41, 0x70, 0x70, 0x6c, 0x79, - 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x12, 0x2b, 0x2e, - 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, - 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, - 0x75, 0x6e, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x63, 0x6f, 0x6d, - 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x70, - 0x70, 0x6c, 0x79, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, 0x75, 0x6e, 0x6b, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x0f, 0x50, 0x72, 0x65, 0x70, - 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x28, 0x2e, 0x63, 0x6f, - 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x50, - 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, - 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, - 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x66, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x70, 0x6f, - 0x73, 0x61, 0x6c, 0x12, 0x28, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, - 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x50, 0x72, - 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, - 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, - 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x57, 0x0a, 0x0a, 0x45, 0x78, 0x74, 0x65, - 0x6e, 0x64, 0x56, 0x6f, 0x74, 0x65, 0x12, 0x23, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, - 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, - 0x56, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x63, 0x6f, - 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x45, - 0x78, 0x74, 0x65, 0x6e, 0x64, 0x56, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x72, 0x0a, 0x13, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x45, - 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2c, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, - 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x65, 0x72, 0x69, - 0x66, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, - 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, - 0x56, 0x6f, 0x74, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x60, 0x0a, 0x0d, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, - 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x26, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, - 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, - 0x7a, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, - 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, - 0x32, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xb0, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, - 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, - 0x42, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, - 0x5a, 0x28, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, - 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x61, 0x62, 0x63, 0x69, - 0x2f, 0x76, 0x32, 0x3b, 0x61, 0x62, 0x63, 0x69, 0x76, 0x32, 0xa2, 0x02, 0x03, 0x43, 0x41, 0x58, - 0xaa, 0x02, 0x10, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x41, 0x62, 0x63, 0x69, - 0x2e, 0x56, 0x32, 0xca, 0x02, 0x10, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x5c, 0x41, - 0x62, 0x63, 0x69, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x1c, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, - 0x74, 0x5c, 0x41, 0x62, 0x63, 0x69, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x12, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, - 0x3a, 0x3a, 0x41, 0x62, 0x63, 0x69, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, -} - -var file_cometbft_abci_v2_service_proto_goTypes = []interface{}{ - (*EchoRequest)(nil), // 0: cometbft.abci.v2.EchoRequest - (*FlushRequest)(nil), // 1: cometbft.abci.v2.FlushRequest - (*InfoRequest)(nil), // 2: cometbft.abci.v2.InfoRequest - (*CheckTxRequest)(nil), // 3: cometbft.abci.v2.CheckTxRequest - (*QueryRequest)(nil), // 4: cometbft.abci.v2.QueryRequest - (*CommitRequest)(nil), // 5: cometbft.abci.v2.CommitRequest - (*InitChainRequest)(nil), // 6: cometbft.abci.v2.InitChainRequest - (*ListSnapshotsRequest)(nil), // 7: cometbft.abci.v2.ListSnapshotsRequest - (*OfferSnapshotRequest)(nil), // 8: cometbft.abci.v2.OfferSnapshotRequest - (*LoadSnapshotChunkRequest)(nil), // 9: cometbft.abci.v2.LoadSnapshotChunkRequest - (*ApplySnapshotChunkRequest)(nil), // 10: cometbft.abci.v2.ApplySnapshotChunkRequest - (*PrepareProposalRequest)(nil), // 11: cometbft.abci.v2.PrepareProposalRequest - (*ProcessProposalRequest)(nil), // 12: cometbft.abci.v2.ProcessProposalRequest - (*ExtendVoteRequest)(nil), // 13: cometbft.abci.v2.ExtendVoteRequest - (*VerifyVoteExtensionRequest)(nil), // 14: cometbft.abci.v2.VerifyVoteExtensionRequest - (*FinalizeBlockRequest)(nil), // 15: cometbft.abci.v2.FinalizeBlockRequest - (*EchoResponse)(nil), // 16: cometbft.abci.v2.EchoResponse - (*FlushResponse)(nil), // 17: cometbft.abci.v2.FlushResponse - (*InfoResponse)(nil), // 18: cometbft.abci.v2.InfoResponse - (*CheckTxResponse)(nil), // 19: cometbft.abci.v2.CheckTxResponse - (*QueryResponse)(nil), // 20: cometbft.abci.v2.QueryResponse - (*CommitResponse)(nil), // 21: cometbft.abci.v2.CommitResponse - (*InitChainResponse)(nil), // 22: cometbft.abci.v2.InitChainResponse - (*ListSnapshotsResponse)(nil), // 23: cometbft.abci.v2.ListSnapshotsResponse - (*OfferSnapshotResponse)(nil), // 24: cometbft.abci.v2.OfferSnapshotResponse - (*LoadSnapshotChunkResponse)(nil), // 25: cometbft.abci.v2.LoadSnapshotChunkResponse - (*ApplySnapshotChunkResponse)(nil), // 26: cometbft.abci.v2.ApplySnapshotChunkResponse - (*PrepareProposalResponse)(nil), // 27: cometbft.abci.v2.PrepareProposalResponse - (*ProcessProposalResponse)(nil), // 28: cometbft.abci.v2.ProcessProposalResponse - (*ExtendVoteResponse)(nil), // 29: cometbft.abci.v2.ExtendVoteResponse - (*VerifyVoteExtensionResponse)(nil), // 30: cometbft.abci.v2.VerifyVoteExtensionResponse - (*FinalizeBlockResponse)(nil), // 31: cometbft.abci.v2.FinalizeBlockResponse -} -var file_cometbft_abci_v2_service_proto_depIdxs = []int32{ - 0, // 0: cometbft.abci.v2.ABCIService.Echo:input_type -> cometbft.abci.v2.EchoRequest - 1, // 1: cometbft.abci.v2.ABCIService.Flush:input_type -> cometbft.abci.v2.FlushRequest - 2, // 2: cometbft.abci.v2.ABCIService.Info:input_type -> cometbft.abci.v2.InfoRequest - 3, // 3: cometbft.abci.v2.ABCIService.CheckTx:input_type -> cometbft.abci.v2.CheckTxRequest - 4, // 4: cometbft.abci.v2.ABCIService.Query:input_type -> cometbft.abci.v2.QueryRequest - 5, // 5: cometbft.abci.v2.ABCIService.Commit:input_type -> cometbft.abci.v2.CommitRequest - 6, // 6: cometbft.abci.v2.ABCIService.InitChain:input_type -> cometbft.abci.v2.InitChainRequest - 7, // 7: cometbft.abci.v2.ABCIService.ListSnapshots:input_type -> cometbft.abci.v2.ListSnapshotsRequest - 8, // 8: cometbft.abci.v2.ABCIService.OfferSnapshot:input_type -> cometbft.abci.v2.OfferSnapshotRequest - 9, // 9: cometbft.abci.v2.ABCIService.LoadSnapshotChunk:input_type -> cometbft.abci.v2.LoadSnapshotChunkRequest - 10, // 10: cometbft.abci.v2.ABCIService.ApplySnapshotChunk:input_type -> cometbft.abci.v2.ApplySnapshotChunkRequest - 11, // 11: cometbft.abci.v2.ABCIService.PrepareProposal:input_type -> cometbft.abci.v2.PrepareProposalRequest - 12, // 12: cometbft.abci.v2.ABCIService.ProcessProposal:input_type -> cometbft.abci.v2.ProcessProposalRequest - 13, // 13: cometbft.abci.v2.ABCIService.ExtendVote:input_type -> cometbft.abci.v2.ExtendVoteRequest - 14, // 14: cometbft.abci.v2.ABCIService.VerifyVoteExtension:input_type -> cometbft.abci.v2.VerifyVoteExtensionRequest - 15, // 15: cometbft.abci.v2.ABCIService.FinalizeBlock:input_type -> cometbft.abci.v2.FinalizeBlockRequest - 16, // 16: cometbft.abci.v2.ABCIService.Echo:output_type -> cometbft.abci.v2.EchoResponse - 17, // 17: cometbft.abci.v2.ABCIService.Flush:output_type -> cometbft.abci.v2.FlushResponse - 18, // 18: cometbft.abci.v2.ABCIService.Info:output_type -> cometbft.abci.v2.InfoResponse - 19, // 19: cometbft.abci.v2.ABCIService.CheckTx:output_type -> cometbft.abci.v2.CheckTxResponse - 20, // 20: cometbft.abci.v2.ABCIService.Query:output_type -> cometbft.abci.v2.QueryResponse - 21, // 21: cometbft.abci.v2.ABCIService.Commit:output_type -> cometbft.abci.v2.CommitResponse - 22, // 22: cometbft.abci.v2.ABCIService.InitChain:output_type -> cometbft.abci.v2.InitChainResponse - 23, // 23: cometbft.abci.v2.ABCIService.ListSnapshots:output_type -> cometbft.abci.v2.ListSnapshotsResponse - 24, // 24: cometbft.abci.v2.ABCIService.OfferSnapshot:output_type -> cometbft.abci.v2.OfferSnapshotResponse - 25, // 25: cometbft.abci.v2.ABCIService.LoadSnapshotChunk:output_type -> cometbft.abci.v2.LoadSnapshotChunkResponse - 26, // 26: cometbft.abci.v2.ABCIService.ApplySnapshotChunk:output_type -> cometbft.abci.v2.ApplySnapshotChunkResponse - 27, // 27: cometbft.abci.v2.ABCIService.PrepareProposal:output_type -> cometbft.abci.v2.PrepareProposalResponse - 28, // 28: cometbft.abci.v2.ABCIService.ProcessProposal:output_type -> cometbft.abci.v2.ProcessProposalResponse - 29, // 29: cometbft.abci.v2.ABCIService.ExtendVote:output_type -> cometbft.abci.v2.ExtendVoteResponse - 30, // 30: cometbft.abci.v2.ABCIService.VerifyVoteExtension:output_type -> cometbft.abci.v2.VerifyVoteExtensionResponse - 31, // 31: cometbft.abci.v2.ABCIService.FinalizeBlock:output_type -> cometbft.abci.v2.FinalizeBlockResponse - 16, // [16:32] is the sub-list for method output_type - 0, // [0:16] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_cometbft_abci_v2_service_proto_init() } -func file_cometbft_abci_v2_service_proto_init() { - if File_cometbft_abci_v2_service_proto != nil { - return - } - file_cometbft_abci_v2_types_proto_init() - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cometbft_abci_v2_service_proto_rawDesc, - NumEnums: 0, - NumMessages: 0, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_cometbft_abci_v2_service_proto_goTypes, - DependencyIndexes: file_cometbft_abci_v2_service_proto_depIdxs, - }.Build() - File_cometbft_abci_v2_service_proto = out.File - file_cometbft_abci_v2_service_proto_rawDesc = nil - file_cometbft_abci_v2_service_proto_goTypes = nil - file_cometbft_abci_v2_service_proto_depIdxs = nil -} diff --git a/api/cometbft/abci/v2/service_grpc.pb.go b/api/cometbft/abci/v2/service_grpc.pb.go deleted file mode 100644 index 119bb108f2..0000000000 --- a/api/cometbft/abci/v2/service_grpc.pb.go +++ /dev/null @@ -1,727 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.5.1 -// - protoc (unknown) -// source: cometbft/abci/v2/service.proto - -package abciv2 - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.64.0 or later. -const _ = grpc.SupportPackageIsVersion9 - -const ( - ABCIService_Echo_FullMethodName = "/cometbft.abci.v2.ABCIService/Echo" - ABCIService_Flush_FullMethodName = "/cometbft.abci.v2.ABCIService/Flush" - ABCIService_Info_FullMethodName = "/cometbft.abci.v2.ABCIService/Info" - ABCIService_CheckTx_FullMethodName = "/cometbft.abci.v2.ABCIService/CheckTx" - ABCIService_Query_FullMethodName = "/cometbft.abci.v2.ABCIService/Query" - ABCIService_Commit_FullMethodName = "/cometbft.abci.v2.ABCIService/Commit" - ABCIService_InitChain_FullMethodName = "/cometbft.abci.v2.ABCIService/InitChain" - ABCIService_ListSnapshots_FullMethodName = "/cometbft.abci.v2.ABCIService/ListSnapshots" - ABCIService_OfferSnapshot_FullMethodName = "/cometbft.abci.v2.ABCIService/OfferSnapshot" - ABCIService_LoadSnapshotChunk_FullMethodName = "/cometbft.abci.v2.ABCIService/LoadSnapshotChunk" - ABCIService_ApplySnapshotChunk_FullMethodName = "/cometbft.abci.v2.ABCIService/ApplySnapshotChunk" - ABCIService_PrepareProposal_FullMethodName = "/cometbft.abci.v2.ABCIService/PrepareProposal" - ABCIService_ProcessProposal_FullMethodName = "/cometbft.abci.v2.ABCIService/ProcessProposal" - ABCIService_ExtendVote_FullMethodName = "/cometbft.abci.v2.ABCIService/ExtendVote" - ABCIService_VerifyVoteExtension_FullMethodName = "/cometbft.abci.v2.ABCIService/VerifyVoteExtension" - ABCIService_FinalizeBlock_FullMethodName = "/cometbft.abci.v2.ABCIService/FinalizeBlock" -) - -// ABCIServiceClient is the client API for ABCIService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -// -// ABCIService is a service for an ABCI application. -type ABCIServiceClient interface { - // Echo returns back the same message it is sent. - Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error) - // Flush flushes the write buffer. - Flush(ctx context.Context, in *FlushRequest, opts ...grpc.CallOption) (*FlushResponse, error) - // Info returns information about the application state. - Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, error) - // CheckTx validates a transaction. - CheckTx(ctx context.Context, in *CheckTxRequest, opts ...grpc.CallOption) (*CheckTxResponse, error) - // Query queries the application state. - Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryResponse, error) - // Commit commits a block of transactions. - Commit(ctx context.Context, in *CommitRequest, opts ...grpc.CallOption) (*CommitResponse, error) - // InitChain initializes the blockchain. - InitChain(ctx context.Context, in *InitChainRequest, opts ...grpc.CallOption) (*InitChainResponse, error) - // ListSnapshots lists all the available snapshots. - ListSnapshots(ctx context.Context, in *ListSnapshotsRequest, opts ...grpc.CallOption) (*ListSnapshotsResponse, error) - // OfferSnapshot sends a snapshot offer. - OfferSnapshot(ctx context.Context, in *OfferSnapshotRequest, opts ...grpc.CallOption) (*OfferSnapshotResponse, error) - // LoadSnapshotChunk returns a chunk of snapshot. - LoadSnapshotChunk(ctx context.Context, in *LoadSnapshotChunkRequest, opts ...grpc.CallOption) (*LoadSnapshotChunkResponse, error) - // ApplySnapshotChunk applies a chunk of snapshot. - ApplySnapshotChunk(ctx context.Context, in *ApplySnapshotChunkRequest, opts ...grpc.CallOption) (*ApplySnapshotChunkResponse, error) - // PrepareProposal returns a proposal for the next block. - PrepareProposal(ctx context.Context, in *PrepareProposalRequest, opts ...grpc.CallOption) (*PrepareProposalResponse, error) - // ProcessProposal validates a proposal. - ProcessProposal(ctx context.Context, in *ProcessProposalRequest, opts ...grpc.CallOption) (*ProcessProposalResponse, error) - // ExtendVote extends a vote with application-injected data (vote extensions). - ExtendVote(ctx context.Context, in *ExtendVoteRequest, opts ...grpc.CallOption) (*ExtendVoteResponse, error) - // VerifyVoteExtension verifies a vote extension. - VerifyVoteExtension(ctx context.Context, in *VerifyVoteExtensionRequest, opts ...grpc.CallOption) (*VerifyVoteExtensionResponse, error) - // FinalizeBlock finalizes a block. - FinalizeBlock(ctx context.Context, in *FinalizeBlockRequest, opts ...grpc.CallOption) (*FinalizeBlockResponse, error) -} - -type aBCIServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewABCIServiceClient(cc grpc.ClientConnInterface) ABCIServiceClient { - return &aBCIServiceClient{cc} -} - -func (c *aBCIServiceClient) Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(EchoResponse) - err := c.cc.Invoke(ctx, ABCIService_Echo_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *aBCIServiceClient) Flush(ctx context.Context, in *FlushRequest, opts ...grpc.CallOption) (*FlushResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(FlushResponse) - err := c.cc.Invoke(ctx, ABCIService_Flush_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *aBCIServiceClient) Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(InfoResponse) - err := c.cc.Invoke(ctx, ABCIService_Info_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *aBCIServiceClient) CheckTx(ctx context.Context, in *CheckTxRequest, opts ...grpc.CallOption) (*CheckTxResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CheckTxResponse) - err := c.cc.Invoke(ctx, ABCIService_CheckTx_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *aBCIServiceClient) Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(QueryResponse) - err := c.cc.Invoke(ctx, ABCIService_Query_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *aBCIServiceClient) Commit(ctx context.Context, in *CommitRequest, opts ...grpc.CallOption) (*CommitResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommitResponse) - err := c.cc.Invoke(ctx, ABCIService_Commit_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *aBCIServiceClient) InitChain(ctx context.Context, in *InitChainRequest, opts ...grpc.CallOption) (*InitChainResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(InitChainResponse) - err := c.cc.Invoke(ctx, ABCIService_InitChain_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *aBCIServiceClient) ListSnapshots(ctx context.Context, in *ListSnapshotsRequest, opts ...grpc.CallOption) (*ListSnapshotsResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(ListSnapshotsResponse) - err := c.cc.Invoke(ctx, ABCIService_ListSnapshots_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *aBCIServiceClient) OfferSnapshot(ctx context.Context, in *OfferSnapshotRequest, opts ...grpc.CallOption) (*OfferSnapshotResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(OfferSnapshotResponse) - err := c.cc.Invoke(ctx, ABCIService_OfferSnapshot_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *aBCIServiceClient) LoadSnapshotChunk(ctx context.Context, in *LoadSnapshotChunkRequest, opts ...grpc.CallOption) (*LoadSnapshotChunkResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(LoadSnapshotChunkResponse) - err := c.cc.Invoke(ctx, ABCIService_LoadSnapshotChunk_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *aBCIServiceClient) ApplySnapshotChunk(ctx context.Context, in *ApplySnapshotChunkRequest, opts ...grpc.CallOption) (*ApplySnapshotChunkResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(ApplySnapshotChunkResponse) - err := c.cc.Invoke(ctx, ABCIService_ApplySnapshotChunk_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *aBCIServiceClient) PrepareProposal(ctx context.Context, in *PrepareProposalRequest, opts ...grpc.CallOption) (*PrepareProposalResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(PrepareProposalResponse) - err := c.cc.Invoke(ctx, ABCIService_PrepareProposal_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *aBCIServiceClient) ProcessProposal(ctx context.Context, in *ProcessProposalRequest, opts ...grpc.CallOption) (*ProcessProposalResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(ProcessProposalResponse) - err := c.cc.Invoke(ctx, ABCIService_ProcessProposal_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *aBCIServiceClient) ExtendVote(ctx context.Context, in *ExtendVoteRequest, opts ...grpc.CallOption) (*ExtendVoteResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(ExtendVoteResponse) - err := c.cc.Invoke(ctx, ABCIService_ExtendVote_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *aBCIServiceClient) VerifyVoteExtension(ctx context.Context, in *VerifyVoteExtensionRequest, opts ...grpc.CallOption) (*VerifyVoteExtensionResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(VerifyVoteExtensionResponse) - err := c.cc.Invoke(ctx, ABCIService_VerifyVoteExtension_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *aBCIServiceClient) FinalizeBlock(ctx context.Context, in *FinalizeBlockRequest, opts ...grpc.CallOption) (*FinalizeBlockResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(FinalizeBlockResponse) - err := c.cc.Invoke(ctx, ABCIService_FinalizeBlock_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -// ABCIServiceServer is the server API for ABCIService service. -// All implementations must embed UnimplementedABCIServiceServer -// for forward compatibility. -// -// ABCIService is a service for an ABCI application. -type ABCIServiceServer interface { - // Echo returns back the same message it is sent. - Echo(context.Context, *EchoRequest) (*EchoResponse, error) - // Flush flushes the write buffer. - Flush(context.Context, *FlushRequest) (*FlushResponse, error) - // Info returns information about the application state. - Info(context.Context, *InfoRequest) (*InfoResponse, error) - // CheckTx validates a transaction. - CheckTx(context.Context, *CheckTxRequest) (*CheckTxResponse, error) - // Query queries the application state. - Query(context.Context, *QueryRequest) (*QueryResponse, error) - // Commit commits a block of transactions. - Commit(context.Context, *CommitRequest) (*CommitResponse, error) - // InitChain initializes the blockchain. - InitChain(context.Context, *InitChainRequest) (*InitChainResponse, error) - // ListSnapshots lists all the available snapshots. - ListSnapshots(context.Context, *ListSnapshotsRequest) (*ListSnapshotsResponse, error) - // OfferSnapshot sends a snapshot offer. - OfferSnapshot(context.Context, *OfferSnapshotRequest) (*OfferSnapshotResponse, error) - // LoadSnapshotChunk returns a chunk of snapshot. - LoadSnapshotChunk(context.Context, *LoadSnapshotChunkRequest) (*LoadSnapshotChunkResponse, error) - // ApplySnapshotChunk applies a chunk of snapshot. - ApplySnapshotChunk(context.Context, *ApplySnapshotChunkRequest) (*ApplySnapshotChunkResponse, error) - // PrepareProposal returns a proposal for the next block. - PrepareProposal(context.Context, *PrepareProposalRequest) (*PrepareProposalResponse, error) - // ProcessProposal validates a proposal. - ProcessProposal(context.Context, *ProcessProposalRequest) (*ProcessProposalResponse, error) - // ExtendVote extends a vote with application-injected data (vote extensions). - ExtendVote(context.Context, *ExtendVoteRequest) (*ExtendVoteResponse, error) - // VerifyVoteExtension verifies a vote extension. - VerifyVoteExtension(context.Context, *VerifyVoteExtensionRequest) (*VerifyVoteExtensionResponse, error) - // FinalizeBlock finalizes a block. - FinalizeBlock(context.Context, *FinalizeBlockRequest) (*FinalizeBlockResponse, error) - mustEmbedUnimplementedABCIServiceServer() -} - -// UnimplementedABCIServiceServer must be embedded to have -// forward compatible implementations. -// -// NOTE: this should be embedded by value instead of pointer to avoid a nil -// pointer dereference when methods are called. -type UnimplementedABCIServiceServer struct{} - -func (UnimplementedABCIServiceServer) Echo(context.Context, *EchoRequest) (*EchoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Echo not implemented") -} -func (UnimplementedABCIServiceServer) Flush(context.Context, *FlushRequest) (*FlushResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Flush not implemented") -} -func (UnimplementedABCIServiceServer) Info(context.Context, *InfoRequest) (*InfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Info not implemented") -} -func (UnimplementedABCIServiceServer) CheckTx(context.Context, *CheckTxRequest) (*CheckTxResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CheckTx not implemented") -} -func (UnimplementedABCIServiceServer) Query(context.Context, *QueryRequest) (*QueryResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Query not implemented") -} -func (UnimplementedABCIServiceServer) Commit(context.Context, *CommitRequest) (*CommitResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Commit not implemented") -} -func (UnimplementedABCIServiceServer) InitChain(context.Context, *InitChainRequest) (*InitChainResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method InitChain not implemented") -} -func (UnimplementedABCIServiceServer) ListSnapshots(context.Context, *ListSnapshotsRequest) (*ListSnapshotsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListSnapshots not implemented") -} -func (UnimplementedABCIServiceServer) OfferSnapshot(context.Context, *OfferSnapshotRequest) (*OfferSnapshotResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method OfferSnapshot not implemented") -} -func (UnimplementedABCIServiceServer) LoadSnapshotChunk(context.Context, *LoadSnapshotChunkRequest) (*LoadSnapshotChunkResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method LoadSnapshotChunk not implemented") -} -func (UnimplementedABCIServiceServer) ApplySnapshotChunk(context.Context, *ApplySnapshotChunkRequest) (*ApplySnapshotChunkResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ApplySnapshotChunk not implemented") -} -func (UnimplementedABCIServiceServer) PrepareProposal(context.Context, *PrepareProposalRequest) (*PrepareProposalResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PrepareProposal not implemented") -} -func (UnimplementedABCIServiceServer) ProcessProposal(context.Context, *ProcessProposalRequest) (*ProcessProposalResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ProcessProposal not implemented") -} -func (UnimplementedABCIServiceServer) ExtendVote(context.Context, *ExtendVoteRequest) (*ExtendVoteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ExtendVote not implemented") -} -func (UnimplementedABCIServiceServer) VerifyVoteExtension(context.Context, *VerifyVoteExtensionRequest) (*VerifyVoteExtensionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method VerifyVoteExtension not implemented") -} -func (UnimplementedABCIServiceServer) FinalizeBlock(context.Context, *FinalizeBlockRequest) (*FinalizeBlockResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FinalizeBlock not implemented") -} -func (UnimplementedABCIServiceServer) mustEmbedUnimplementedABCIServiceServer() {} -func (UnimplementedABCIServiceServer) testEmbeddedByValue() {} - -// UnsafeABCIServiceServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to ABCIServiceServer will -// result in compilation errors. -type UnsafeABCIServiceServer interface { - mustEmbedUnimplementedABCIServiceServer() -} - -func RegisterABCIServiceServer(s grpc.ServiceRegistrar, srv ABCIServiceServer) { - // If the following call pancis, it indicates UnimplementedABCIServiceServer was - // embedded by pointer and is nil. This will cause panics if an - // unimplemented method is ever invoked, so we test this at initialization - // time to prevent it from happening at runtime later due to I/O. - if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { - t.testEmbeddedByValue() - } - s.RegisterService(&ABCIService_ServiceDesc, srv) -} - -func _ABCIService_Echo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(EchoRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ABCIServiceServer).Echo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ABCIService_Echo_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ABCIServiceServer).Echo(ctx, req.(*EchoRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ABCIService_Flush_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FlushRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ABCIServiceServer).Flush(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ABCIService_Flush_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ABCIServiceServer).Flush(ctx, req.(*FlushRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ABCIService_Info_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(InfoRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ABCIServiceServer).Info(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ABCIService_Info_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ABCIServiceServer).Info(ctx, req.(*InfoRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ABCIService_CheckTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CheckTxRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ABCIServiceServer).CheckTx(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ABCIService_CheckTx_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ABCIServiceServer).CheckTx(ctx, req.(*CheckTxRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ABCIService_Query_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ABCIServiceServer).Query(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ABCIService_Query_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ABCIServiceServer).Query(ctx, req.(*QueryRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ABCIService_Commit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CommitRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ABCIServiceServer).Commit(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ABCIService_Commit_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ABCIServiceServer).Commit(ctx, req.(*CommitRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ABCIService_InitChain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(InitChainRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ABCIServiceServer).InitChain(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ABCIService_InitChain_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ABCIServiceServer).InitChain(ctx, req.(*InitChainRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ABCIService_ListSnapshots_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListSnapshotsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ABCIServiceServer).ListSnapshots(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ABCIService_ListSnapshots_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ABCIServiceServer).ListSnapshots(ctx, req.(*ListSnapshotsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ABCIService_OfferSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OfferSnapshotRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ABCIServiceServer).OfferSnapshot(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ABCIService_OfferSnapshot_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ABCIServiceServer).OfferSnapshot(ctx, req.(*OfferSnapshotRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ABCIService_LoadSnapshotChunk_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LoadSnapshotChunkRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ABCIServiceServer).LoadSnapshotChunk(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ABCIService_LoadSnapshotChunk_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ABCIServiceServer).LoadSnapshotChunk(ctx, req.(*LoadSnapshotChunkRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ABCIService_ApplySnapshotChunk_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ApplySnapshotChunkRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ABCIServiceServer).ApplySnapshotChunk(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ABCIService_ApplySnapshotChunk_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ABCIServiceServer).ApplySnapshotChunk(ctx, req.(*ApplySnapshotChunkRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ABCIService_PrepareProposal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PrepareProposalRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ABCIServiceServer).PrepareProposal(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ABCIService_PrepareProposal_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ABCIServiceServer).PrepareProposal(ctx, req.(*PrepareProposalRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ABCIService_ProcessProposal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProcessProposalRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ABCIServiceServer).ProcessProposal(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ABCIService_ProcessProposal_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ABCIServiceServer).ProcessProposal(ctx, req.(*ProcessProposalRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ABCIService_ExtendVote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ExtendVoteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ABCIServiceServer).ExtendVote(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ABCIService_ExtendVote_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ABCIServiceServer).ExtendVote(ctx, req.(*ExtendVoteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ABCIService_VerifyVoteExtension_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(VerifyVoteExtensionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ABCIServiceServer).VerifyVoteExtension(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ABCIService_VerifyVoteExtension_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ABCIServiceServer).VerifyVoteExtension(ctx, req.(*VerifyVoteExtensionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ABCIService_FinalizeBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FinalizeBlockRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ABCIServiceServer).FinalizeBlock(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ABCIService_FinalizeBlock_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ABCIServiceServer).FinalizeBlock(ctx, req.(*FinalizeBlockRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// ABCIService_ServiceDesc is the grpc.ServiceDesc for ABCIService service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var ABCIService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "cometbft.abci.v2.ABCIService", - HandlerType: (*ABCIServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Echo", - Handler: _ABCIService_Echo_Handler, - }, - { - MethodName: "Flush", - Handler: _ABCIService_Flush_Handler, - }, - { - MethodName: "Info", - Handler: _ABCIService_Info_Handler, - }, - { - MethodName: "CheckTx", - Handler: _ABCIService_CheckTx_Handler, - }, - { - MethodName: "Query", - Handler: _ABCIService_Query_Handler, - }, - { - MethodName: "Commit", - Handler: _ABCIService_Commit_Handler, - }, - { - MethodName: "InitChain", - Handler: _ABCIService_InitChain_Handler, - }, - { - MethodName: "ListSnapshots", - Handler: _ABCIService_ListSnapshots_Handler, - }, - { - MethodName: "OfferSnapshot", - Handler: _ABCIService_OfferSnapshot_Handler, - }, - { - MethodName: "LoadSnapshotChunk", - Handler: _ABCIService_LoadSnapshotChunk_Handler, - }, - { - MethodName: "ApplySnapshotChunk", - Handler: _ABCIService_ApplySnapshotChunk_Handler, - }, - { - MethodName: "PrepareProposal", - Handler: _ABCIService_PrepareProposal_Handler, - }, - { - MethodName: "ProcessProposal", - Handler: _ABCIService_ProcessProposal_Handler, - }, - { - MethodName: "ExtendVote", - Handler: _ABCIService_ExtendVote_Handler, - }, - { - MethodName: "VerifyVoteExtension", - Handler: _ABCIService_VerifyVoteExtension_Handler, - }, - { - MethodName: "FinalizeBlock", - Handler: _ABCIService_FinalizeBlock_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "cometbft/abci/v2/service.proto", -} diff --git a/api/cometbft/p2p/v1/conn.pulsar.go b/api/cometbft/p2p/v1/conn.pulsar.go deleted file mode 100644 index 43f34f6b7a..0000000000 --- a/api/cometbft/p2p/v1/conn.pulsar.go +++ /dev/null @@ -1,2860 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package p2pv1 - -import ( - v1 "cosmossdk.io/api/cometbft/crypto/v1" - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_PacketPing protoreflect.MessageDescriptor -) - -func init() { - file_cometbft_p2p_v1_conn_proto_init() - md_PacketPing = File_cometbft_p2p_v1_conn_proto.Messages().ByName("PacketPing") -} - -var _ protoreflect.Message = (*fastReflection_PacketPing)(nil) - -type fastReflection_PacketPing PacketPing - -func (x *PacketPing) ProtoReflect() protoreflect.Message { - return (*fastReflection_PacketPing)(x) -} - -func (x *PacketPing) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_p2p_v1_conn_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_PacketPing_messageType fastReflection_PacketPing_messageType -var _ protoreflect.MessageType = fastReflection_PacketPing_messageType{} - -type fastReflection_PacketPing_messageType struct{} - -func (x fastReflection_PacketPing_messageType) Zero() protoreflect.Message { - return (*fastReflection_PacketPing)(nil) -} -func (x fastReflection_PacketPing_messageType) New() protoreflect.Message { - return new(fastReflection_PacketPing) -} -func (x fastReflection_PacketPing_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_PacketPing -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_PacketPing) Descriptor() protoreflect.MessageDescriptor { - return md_PacketPing -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_PacketPing) Type() protoreflect.MessageType { - return _fastReflection_PacketPing_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_PacketPing) New() protoreflect.Message { - return new(fastReflection_PacketPing) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_PacketPing) Interface() protoreflect.ProtoMessage { - return (*PacketPing)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_PacketPing) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_PacketPing) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.PacketPing")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.PacketPing does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PacketPing) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.PacketPing")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.PacketPing does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_PacketPing) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.PacketPing")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.PacketPing does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PacketPing) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.PacketPing")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.PacketPing does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PacketPing) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.PacketPing")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.PacketPing does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_PacketPing) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.PacketPing")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.PacketPing does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_PacketPing) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.p2p.v1.PacketPing", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_PacketPing) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PacketPing) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_PacketPing) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_PacketPing) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*PacketPing) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*PacketPing) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*PacketPing) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PacketPing: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PacketPing: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_PacketPong protoreflect.MessageDescriptor -) - -func init() { - file_cometbft_p2p_v1_conn_proto_init() - md_PacketPong = File_cometbft_p2p_v1_conn_proto.Messages().ByName("PacketPong") -} - -var _ protoreflect.Message = (*fastReflection_PacketPong)(nil) - -type fastReflection_PacketPong PacketPong - -func (x *PacketPong) ProtoReflect() protoreflect.Message { - return (*fastReflection_PacketPong)(x) -} - -func (x *PacketPong) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_p2p_v1_conn_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_PacketPong_messageType fastReflection_PacketPong_messageType -var _ protoreflect.MessageType = fastReflection_PacketPong_messageType{} - -type fastReflection_PacketPong_messageType struct{} - -func (x fastReflection_PacketPong_messageType) Zero() protoreflect.Message { - return (*fastReflection_PacketPong)(nil) -} -func (x fastReflection_PacketPong_messageType) New() protoreflect.Message { - return new(fastReflection_PacketPong) -} -func (x fastReflection_PacketPong_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_PacketPong -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_PacketPong) Descriptor() protoreflect.MessageDescriptor { - return md_PacketPong -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_PacketPong) Type() protoreflect.MessageType { - return _fastReflection_PacketPong_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_PacketPong) New() protoreflect.Message { - return new(fastReflection_PacketPong) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_PacketPong) Interface() protoreflect.ProtoMessage { - return (*PacketPong)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_PacketPong) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_PacketPong) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.PacketPong")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.PacketPong does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PacketPong) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.PacketPong")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.PacketPong does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_PacketPong) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.PacketPong")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.PacketPong does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PacketPong) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.PacketPong")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.PacketPong does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PacketPong) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.PacketPong")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.PacketPong does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_PacketPong) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.PacketPong")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.PacketPong does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_PacketPong) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.p2p.v1.PacketPong", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_PacketPong) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PacketPong) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_PacketPong) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_PacketPong) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*PacketPong) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*PacketPong) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*PacketPong) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PacketPong: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PacketPong: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_PacketMsg protoreflect.MessageDescriptor - fd_PacketMsg_channel_id protoreflect.FieldDescriptor - fd_PacketMsg_eof protoreflect.FieldDescriptor - fd_PacketMsg_data protoreflect.FieldDescriptor -) - -func init() { - file_cometbft_p2p_v1_conn_proto_init() - md_PacketMsg = File_cometbft_p2p_v1_conn_proto.Messages().ByName("PacketMsg") - fd_PacketMsg_channel_id = md_PacketMsg.Fields().ByName("channel_id") - fd_PacketMsg_eof = md_PacketMsg.Fields().ByName("eof") - fd_PacketMsg_data = md_PacketMsg.Fields().ByName("data") -} - -var _ protoreflect.Message = (*fastReflection_PacketMsg)(nil) - -type fastReflection_PacketMsg PacketMsg - -func (x *PacketMsg) ProtoReflect() protoreflect.Message { - return (*fastReflection_PacketMsg)(x) -} - -func (x *PacketMsg) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_p2p_v1_conn_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_PacketMsg_messageType fastReflection_PacketMsg_messageType -var _ protoreflect.MessageType = fastReflection_PacketMsg_messageType{} - -type fastReflection_PacketMsg_messageType struct{} - -func (x fastReflection_PacketMsg_messageType) Zero() protoreflect.Message { - return (*fastReflection_PacketMsg)(nil) -} -func (x fastReflection_PacketMsg_messageType) New() protoreflect.Message { - return new(fastReflection_PacketMsg) -} -func (x fastReflection_PacketMsg_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_PacketMsg -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_PacketMsg) Descriptor() protoreflect.MessageDescriptor { - return md_PacketMsg -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_PacketMsg) Type() protoreflect.MessageType { - return _fastReflection_PacketMsg_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_PacketMsg) New() protoreflect.Message { - return new(fastReflection_PacketMsg) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_PacketMsg) Interface() protoreflect.ProtoMessage { - return (*PacketMsg)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_PacketMsg) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ChannelId != int32(0) { - value := protoreflect.ValueOfInt32(x.ChannelId) - if !f(fd_PacketMsg_channel_id, value) { - return - } - } - if x.Eof != false { - value := protoreflect.ValueOfBool(x.Eof) - if !f(fd_PacketMsg_eof, value) { - return - } - } - if len(x.Data) != 0 { - value := protoreflect.ValueOfBytes(x.Data) - if !f(fd_PacketMsg_data, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_PacketMsg) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cometbft.p2p.v1.PacketMsg.channel_id": - return x.ChannelId != int32(0) - case "cometbft.p2p.v1.PacketMsg.eof": - return x.Eof != false - case "cometbft.p2p.v1.PacketMsg.data": - return len(x.Data) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.PacketMsg")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.PacketMsg does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PacketMsg) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cometbft.p2p.v1.PacketMsg.channel_id": - x.ChannelId = int32(0) - case "cometbft.p2p.v1.PacketMsg.eof": - x.Eof = false - case "cometbft.p2p.v1.PacketMsg.data": - x.Data = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.PacketMsg")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.PacketMsg does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_PacketMsg) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cometbft.p2p.v1.PacketMsg.channel_id": - value := x.ChannelId - return protoreflect.ValueOfInt32(value) - case "cometbft.p2p.v1.PacketMsg.eof": - value := x.Eof - return protoreflect.ValueOfBool(value) - case "cometbft.p2p.v1.PacketMsg.data": - value := x.Data - return protoreflect.ValueOfBytes(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.PacketMsg")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.PacketMsg does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PacketMsg) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cometbft.p2p.v1.PacketMsg.channel_id": - x.ChannelId = int32(value.Int()) - case "cometbft.p2p.v1.PacketMsg.eof": - x.Eof = value.Bool() - case "cometbft.p2p.v1.PacketMsg.data": - x.Data = value.Bytes() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.PacketMsg")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.PacketMsg does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PacketMsg) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cometbft.p2p.v1.PacketMsg.channel_id": - panic(fmt.Errorf("field channel_id of message cometbft.p2p.v1.PacketMsg is not mutable")) - case "cometbft.p2p.v1.PacketMsg.eof": - panic(fmt.Errorf("field eof of message cometbft.p2p.v1.PacketMsg is not mutable")) - case "cometbft.p2p.v1.PacketMsg.data": - panic(fmt.Errorf("field data of message cometbft.p2p.v1.PacketMsg is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.PacketMsg")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.PacketMsg does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_PacketMsg) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cometbft.p2p.v1.PacketMsg.channel_id": - return protoreflect.ValueOfInt32(int32(0)) - case "cometbft.p2p.v1.PacketMsg.eof": - return protoreflect.ValueOfBool(false) - case "cometbft.p2p.v1.PacketMsg.data": - return protoreflect.ValueOfBytes(nil) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.PacketMsg")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.PacketMsg does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_PacketMsg) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.p2p.v1.PacketMsg", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_PacketMsg) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PacketMsg) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_PacketMsg) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_PacketMsg) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*PacketMsg) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.ChannelId != 0 { - n += 1 + runtime.Sov(uint64(x.ChannelId)) - } - if x.Eof { - n += 2 - } - l = len(x.Data) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*PacketMsg) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Data) > 0 { - i -= len(x.Data) - copy(dAtA[i:], x.Data) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Data))) - i-- - dAtA[i] = 0x1a - } - if x.Eof { - i-- - if x.Eof { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if x.ChannelId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ChannelId)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*PacketMsg) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PacketMsg: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PacketMsg: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType) - } - x.ChannelId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.ChannelId |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Eof", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Eof = bool(v != 0) - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Data = append(x.Data[:0], dAtA[iNdEx:postIndex]...) - if x.Data == nil { - x.Data = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_Packet protoreflect.MessageDescriptor - fd_Packet_packet_ping protoreflect.FieldDescriptor - fd_Packet_packet_pong protoreflect.FieldDescriptor - fd_Packet_packet_msg protoreflect.FieldDescriptor -) - -func init() { - file_cometbft_p2p_v1_conn_proto_init() - md_Packet = File_cometbft_p2p_v1_conn_proto.Messages().ByName("Packet") - fd_Packet_packet_ping = md_Packet.Fields().ByName("packet_ping") - fd_Packet_packet_pong = md_Packet.Fields().ByName("packet_pong") - fd_Packet_packet_msg = md_Packet.Fields().ByName("packet_msg") -} - -var _ protoreflect.Message = (*fastReflection_Packet)(nil) - -type fastReflection_Packet Packet - -func (x *Packet) ProtoReflect() protoreflect.Message { - return (*fastReflection_Packet)(x) -} - -func (x *Packet) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_p2p_v1_conn_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_Packet_messageType fastReflection_Packet_messageType -var _ protoreflect.MessageType = fastReflection_Packet_messageType{} - -type fastReflection_Packet_messageType struct{} - -func (x fastReflection_Packet_messageType) Zero() protoreflect.Message { - return (*fastReflection_Packet)(nil) -} -func (x fastReflection_Packet_messageType) New() protoreflect.Message { - return new(fastReflection_Packet) -} -func (x fastReflection_Packet_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Packet -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Packet) Descriptor() protoreflect.MessageDescriptor { - return md_Packet -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_Packet) Type() protoreflect.MessageType { - return _fastReflection_Packet_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Packet) New() protoreflect.Message { - return new(fastReflection_Packet) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Packet) Interface() protoreflect.ProtoMessage { - return (*Packet)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_Packet) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Sum != nil { - switch o := x.Sum.(type) { - case *Packet_PacketPing: - v := o.PacketPing - value := protoreflect.ValueOfMessage(v.ProtoReflect()) - if !f(fd_Packet_packet_ping, value) { - return - } - case *Packet_PacketPong: - v := o.PacketPong - value := protoreflect.ValueOfMessage(v.ProtoReflect()) - if !f(fd_Packet_packet_pong, value) { - return - } - case *Packet_PacketMsg: - v := o.PacketMsg - value := protoreflect.ValueOfMessage(v.ProtoReflect()) - if !f(fd_Packet_packet_msg, value) { - return - } - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_Packet) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cometbft.p2p.v1.Packet.packet_ping": - if x.Sum == nil { - return false - } else if _, ok := x.Sum.(*Packet_PacketPing); ok { - return true - } else { - return false - } - case "cometbft.p2p.v1.Packet.packet_pong": - if x.Sum == nil { - return false - } else if _, ok := x.Sum.(*Packet_PacketPong); ok { - return true - } else { - return false - } - case "cometbft.p2p.v1.Packet.packet_msg": - if x.Sum == nil { - return false - } else if _, ok := x.Sum.(*Packet_PacketMsg); ok { - return true - } else { - return false - } - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.Packet")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.Packet does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Packet) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cometbft.p2p.v1.Packet.packet_ping": - x.Sum = nil - case "cometbft.p2p.v1.Packet.packet_pong": - x.Sum = nil - case "cometbft.p2p.v1.Packet.packet_msg": - x.Sum = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.Packet")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.Packet does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_Packet) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cometbft.p2p.v1.Packet.packet_ping": - if x.Sum == nil { - return protoreflect.ValueOfMessage((*PacketPing)(nil).ProtoReflect()) - } else if v, ok := x.Sum.(*Packet_PacketPing); ok { - return protoreflect.ValueOfMessage(v.PacketPing.ProtoReflect()) - } else { - return protoreflect.ValueOfMessage((*PacketPing)(nil).ProtoReflect()) - } - case "cometbft.p2p.v1.Packet.packet_pong": - if x.Sum == nil { - return protoreflect.ValueOfMessage((*PacketPong)(nil).ProtoReflect()) - } else if v, ok := x.Sum.(*Packet_PacketPong); ok { - return protoreflect.ValueOfMessage(v.PacketPong.ProtoReflect()) - } else { - return protoreflect.ValueOfMessage((*PacketPong)(nil).ProtoReflect()) - } - case "cometbft.p2p.v1.Packet.packet_msg": - if x.Sum == nil { - return protoreflect.ValueOfMessage((*PacketMsg)(nil).ProtoReflect()) - } else if v, ok := x.Sum.(*Packet_PacketMsg); ok { - return protoreflect.ValueOfMessage(v.PacketMsg.ProtoReflect()) - } else { - return protoreflect.ValueOfMessage((*PacketMsg)(nil).ProtoReflect()) - } - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.Packet")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.Packet does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Packet) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cometbft.p2p.v1.Packet.packet_ping": - cv := value.Message().Interface().(*PacketPing) - x.Sum = &Packet_PacketPing{PacketPing: cv} - case "cometbft.p2p.v1.Packet.packet_pong": - cv := value.Message().Interface().(*PacketPong) - x.Sum = &Packet_PacketPong{PacketPong: cv} - case "cometbft.p2p.v1.Packet.packet_msg": - cv := value.Message().Interface().(*PacketMsg) - x.Sum = &Packet_PacketMsg{PacketMsg: cv} - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.Packet")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.Packet does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Packet) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cometbft.p2p.v1.Packet.packet_ping": - if x.Sum == nil { - value := &PacketPing{} - oneofValue := &Packet_PacketPing{PacketPing: value} - x.Sum = oneofValue - return protoreflect.ValueOfMessage(value.ProtoReflect()) - } - switch m := x.Sum.(type) { - case *Packet_PacketPing: - return protoreflect.ValueOfMessage(m.PacketPing.ProtoReflect()) - default: - value := &PacketPing{} - oneofValue := &Packet_PacketPing{PacketPing: value} - x.Sum = oneofValue - return protoreflect.ValueOfMessage(value.ProtoReflect()) - } - case "cometbft.p2p.v1.Packet.packet_pong": - if x.Sum == nil { - value := &PacketPong{} - oneofValue := &Packet_PacketPong{PacketPong: value} - x.Sum = oneofValue - return protoreflect.ValueOfMessage(value.ProtoReflect()) - } - switch m := x.Sum.(type) { - case *Packet_PacketPong: - return protoreflect.ValueOfMessage(m.PacketPong.ProtoReflect()) - default: - value := &PacketPong{} - oneofValue := &Packet_PacketPong{PacketPong: value} - x.Sum = oneofValue - return protoreflect.ValueOfMessage(value.ProtoReflect()) - } - case "cometbft.p2p.v1.Packet.packet_msg": - if x.Sum == nil { - value := &PacketMsg{} - oneofValue := &Packet_PacketMsg{PacketMsg: value} - x.Sum = oneofValue - return protoreflect.ValueOfMessage(value.ProtoReflect()) - } - switch m := x.Sum.(type) { - case *Packet_PacketMsg: - return protoreflect.ValueOfMessage(m.PacketMsg.ProtoReflect()) - default: - value := &PacketMsg{} - oneofValue := &Packet_PacketMsg{PacketMsg: value} - x.Sum = oneofValue - return protoreflect.ValueOfMessage(value.ProtoReflect()) - } - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.Packet")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.Packet does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_Packet) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cometbft.p2p.v1.Packet.packet_ping": - value := &PacketPing{} - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.p2p.v1.Packet.packet_pong": - value := &PacketPong{} - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.p2p.v1.Packet.packet_msg": - value := &PacketMsg{} - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.Packet")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.Packet does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_Packet) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - case "cometbft.p2p.v1.Packet.sum": - if x.Sum == nil { - return nil - } - switch x.Sum.(type) { - case *Packet_PacketPing: - return x.Descriptor().Fields().ByName("packet_ping") - case *Packet_PacketPong: - return x.Descriptor().Fields().ByName("packet_pong") - case *Packet_PacketMsg: - return x.Descriptor().Fields().ByName("packet_msg") - } - default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.p2p.v1.Packet", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_Packet) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Packet) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_Packet) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_Packet) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Packet) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - switch x := x.Sum.(type) { - case *Packet_PacketPing: - if x == nil { - break - } - l = options.Size(x.PacketPing) - n += 1 + l + runtime.Sov(uint64(l)) - case *Packet_PacketPong: - if x == nil { - break - } - l = options.Size(x.PacketPong) - n += 1 + l + runtime.Sov(uint64(l)) - case *Packet_PacketMsg: - if x == nil { - break - } - l = options.Size(x.PacketMsg) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*Packet) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - switch x := x.Sum.(type) { - case *Packet_PacketPing: - encoded, err := options.Marshal(x.PacketPing) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - case *Packet_PacketPong: - encoded, err := options.Marshal(x.PacketPong) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - case *Packet_PacketMsg: - encoded, err := options.Marshal(x.PacketMsg) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x1a - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*Packet) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Packet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Packet: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PacketPing", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - v := &PacketPing{} - if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - x.Sum = &Packet_PacketPing{v} - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PacketPong", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - v := &PacketPong{} - if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - x.Sum = &Packet_PacketPong{v} - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PacketMsg", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - v := &PacketMsg{} - if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - x.Sum = &Packet_PacketMsg{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_AuthSigMessage protoreflect.MessageDescriptor - fd_AuthSigMessage_pub_key protoreflect.FieldDescriptor - fd_AuthSigMessage_sig protoreflect.FieldDescriptor -) - -func init() { - file_cometbft_p2p_v1_conn_proto_init() - md_AuthSigMessage = File_cometbft_p2p_v1_conn_proto.Messages().ByName("AuthSigMessage") - fd_AuthSigMessage_pub_key = md_AuthSigMessage.Fields().ByName("pub_key") - fd_AuthSigMessage_sig = md_AuthSigMessage.Fields().ByName("sig") -} - -var _ protoreflect.Message = (*fastReflection_AuthSigMessage)(nil) - -type fastReflection_AuthSigMessage AuthSigMessage - -func (x *AuthSigMessage) ProtoReflect() protoreflect.Message { - return (*fastReflection_AuthSigMessage)(x) -} - -func (x *AuthSigMessage) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_p2p_v1_conn_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_AuthSigMessage_messageType fastReflection_AuthSigMessage_messageType -var _ protoreflect.MessageType = fastReflection_AuthSigMessage_messageType{} - -type fastReflection_AuthSigMessage_messageType struct{} - -func (x fastReflection_AuthSigMessage_messageType) Zero() protoreflect.Message { - return (*fastReflection_AuthSigMessage)(nil) -} -func (x fastReflection_AuthSigMessage_messageType) New() protoreflect.Message { - return new(fastReflection_AuthSigMessage) -} -func (x fastReflection_AuthSigMessage_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_AuthSigMessage -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_AuthSigMessage) Descriptor() protoreflect.MessageDescriptor { - return md_AuthSigMessage -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_AuthSigMessage) Type() protoreflect.MessageType { - return _fastReflection_AuthSigMessage_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_AuthSigMessage) New() protoreflect.Message { - return new(fastReflection_AuthSigMessage) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_AuthSigMessage) Interface() protoreflect.ProtoMessage { - return (*AuthSigMessage)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_AuthSigMessage) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.PubKey != nil { - value := protoreflect.ValueOfMessage(x.PubKey.ProtoReflect()) - if !f(fd_AuthSigMessage_pub_key, value) { - return - } - } - if len(x.Sig) != 0 { - value := protoreflect.ValueOfBytes(x.Sig) - if !f(fd_AuthSigMessage_sig, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_AuthSigMessage) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cometbft.p2p.v1.AuthSigMessage.pub_key": - return x.PubKey != nil - case "cometbft.p2p.v1.AuthSigMessage.sig": - return len(x.Sig) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.AuthSigMessage")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.AuthSigMessage does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AuthSigMessage) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cometbft.p2p.v1.AuthSigMessage.pub_key": - x.PubKey = nil - case "cometbft.p2p.v1.AuthSigMessage.sig": - x.Sig = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.AuthSigMessage")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.AuthSigMessage does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_AuthSigMessage) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cometbft.p2p.v1.AuthSigMessage.pub_key": - value := x.PubKey - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.p2p.v1.AuthSigMessage.sig": - value := x.Sig - return protoreflect.ValueOfBytes(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.AuthSigMessage")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.AuthSigMessage does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AuthSigMessage) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cometbft.p2p.v1.AuthSigMessage.pub_key": - x.PubKey = value.Message().Interface().(*v1.PublicKey) - case "cometbft.p2p.v1.AuthSigMessage.sig": - x.Sig = value.Bytes() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.AuthSigMessage")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.AuthSigMessage does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AuthSigMessage) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cometbft.p2p.v1.AuthSigMessage.pub_key": - if x.PubKey == nil { - x.PubKey = new(v1.PublicKey) - } - return protoreflect.ValueOfMessage(x.PubKey.ProtoReflect()) - case "cometbft.p2p.v1.AuthSigMessage.sig": - panic(fmt.Errorf("field sig of message cometbft.p2p.v1.AuthSigMessage is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.AuthSigMessage")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.AuthSigMessage does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_AuthSigMessage) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cometbft.p2p.v1.AuthSigMessage.pub_key": - m := new(v1.PublicKey) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.p2p.v1.AuthSigMessage.sig": - return protoreflect.ValueOfBytes(nil) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.AuthSigMessage")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.AuthSigMessage does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_AuthSigMessage) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.p2p.v1.AuthSigMessage", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_AuthSigMessage) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AuthSigMessage) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_AuthSigMessage) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_AuthSigMessage) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*AuthSigMessage) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.PubKey != nil { - l = options.Size(x.PubKey) - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Sig) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*AuthSigMessage) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Sig) > 0 { - i -= len(x.Sig) - copy(dAtA[i:], x.Sig) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Sig))) - i-- - dAtA[i] = 0x12 - } - if x.PubKey != nil { - encoded, err := options.Marshal(x.PubKey) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*AuthSigMessage) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AuthSigMessage: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AuthSigMessage: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PubKey", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.PubKey == nil { - x.PubKey = &v1.PublicKey{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PubKey); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Sig", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Sig = append(x.Sig[:0], dAtA[iNdEx:postIndex]...) - if x.Sig == nil { - x.Sig = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cometbft/p2p/v1/conn.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// PacketPing is a request to confirm that the connection is alive. -type PacketPing struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *PacketPing) Reset() { - *x = PacketPing{} - if protoimpl.UnsafeEnabled { - mi := &file_cometbft_p2p_v1_conn_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PacketPing) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PacketPing) ProtoMessage() {} - -// Deprecated: Use PacketPing.ProtoReflect.Descriptor instead. -func (*PacketPing) Descriptor() ([]byte, []int) { - return file_cometbft_p2p_v1_conn_proto_rawDescGZIP(), []int{0} -} - -// PacketPong is a response to confirm that the connection is alive. -type PacketPong struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *PacketPong) Reset() { - *x = PacketPong{} - if protoimpl.UnsafeEnabled { - mi := &file_cometbft_p2p_v1_conn_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PacketPong) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PacketPong) ProtoMessage() {} - -// Deprecated: Use PacketPong.ProtoReflect.Descriptor instead. -func (*PacketPong) Descriptor() ([]byte, []int) { - return file_cometbft_p2p_v1_conn_proto_rawDescGZIP(), []int{1} -} - -// PacketMsg contains data for the specified channel ID. EOF means the message -// is fully received. -type PacketMsg struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ChannelId int32 `protobuf:"varint,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` - Eof bool `protobuf:"varint,2,opt,name=eof,proto3" json:"eof,omitempty"` - Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` -} - -func (x *PacketMsg) Reset() { - *x = PacketMsg{} - if protoimpl.UnsafeEnabled { - mi := &file_cometbft_p2p_v1_conn_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PacketMsg) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PacketMsg) ProtoMessage() {} - -// Deprecated: Use PacketMsg.ProtoReflect.Descriptor instead. -func (*PacketMsg) Descriptor() ([]byte, []int) { - return file_cometbft_p2p_v1_conn_proto_rawDescGZIP(), []int{2} -} - -func (x *PacketMsg) GetChannelId() int32 { - if x != nil { - return x.ChannelId - } - return 0 -} - -func (x *PacketMsg) GetEof() bool { - if x != nil { - return x.Eof - } - return false -} - -func (x *PacketMsg) GetData() []byte { - if x != nil { - return x.Data - } - return nil -} - -// Packet is an abstract p2p message. -type Packet struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Sum of all possible messages. - // - // Types that are assignable to Sum: - // - // *Packet_PacketPing - // *Packet_PacketPong - // *Packet_PacketMsg - Sum isPacket_Sum `protobuf_oneof:"sum"` -} - -func (x *Packet) Reset() { - *x = Packet{} - if protoimpl.UnsafeEnabled { - mi := &file_cometbft_p2p_v1_conn_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Packet) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Packet) ProtoMessage() {} - -// Deprecated: Use Packet.ProtoReflect.Descriptor instead. -func (*Packet) Descriptor() ([]byte, []int) { - return file_cometbft_p2p_v1_conn_proto_rawDescGZIP(), []int{3} -} - -func (x *Packet) GetSum() isPacket_Sum { - if x != nil { - return x.Sum - } - return nil -} - -func (x *Packet) GetPacketPing() *PacketPing { - if x, ok := x.GetSum().(*Packet_PacketPing); ok { - return x.PacketPing - } - return nil -} - -func (x *Packet) GetPacketPong() *PacketPong { - if x, ok := x.GetSum().(*Packet_PacketPong); ok { - return x.PacketPong - } - return nil -} - -func (x *Packet) GetPacketMsg() *PacketMsg { - if x, ok := x.GetSum().(*Packet_PacketMsg); ok { - return x.PacketMsg - } - return nil -} - -type isPacket_Sum interface { - isPacket_Sum() -} - -type Packet_PacketPing struct { - PacketPing *PacketPing `protobuf:"bytes,1,opt,name=packet_ping,json=packetPing,proto3,oneof"` -} - -type Packet_PacketPong struct { - PacketPong *PacketPong `protobuf:"bytes,2,opt,name=packet_pong,json=packetPong,proto3,oneof"` -} - -type Packet_PacketMsg struct { - PacketMsg *PacketMsg `protobuf:"bytes,3,opt,name=packet_msg,json=packetMsg,proto3,oneof"` -} - -func (*Packet_PacketPing) isPacket_Sum() {} - -func (*Packet_PacketPong) isPacket_Sum() {} - -func (*Packet_PacketMsg) isPacket_Sum() {} - -// AuthSigMessage is sent during the authentication and contains our/remote's -// signature along with the public key. -type AuthSigMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PubKey *v1.PublicKey `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"` - Sig []byte `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"` -} - -func (x *AuthSigMessage) Reset() { - *x = AuthSigMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_cometbft_p2p_v1_conn_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AuthSigMessage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AuthSigMessage) ProtoMessage() {} - -// Deprecated: Use AuthSigMessage.ProtoReflect.Descriptor instead. -func (*AuthSigMessage) Descriptor() ([]byte, []int) { - return file_cometbft_p2p_v1_conn_proto_rawDescGZIP(), []int{4} -} - -func (x *AuthSigMessage) GetPubKey() *v1.PublicKey { - if x != nil { - return x.PubKey - } - return nil -} - -func (x *AuthSigMessage) GetSig() []byte { - if x != nil { - return x.Sig - } - return nil -} - -var File_cometbft_p2p_v1_conn_proto protoreflect.FileDescriptor - -var file_cometbft_p2p_v1_conn_proto_rawDesc = []byte{ - 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x70, 0x32, 0x70, 0x2f, 0x76, - 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x63, 0x6f, - 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x70, 0x32, 0x70, 0x2e, 0x76, 0x31, 0x1a, 0x14, 0x67, - 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x63, 0x72, - 0x79, 0x70, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x22, 0x0c, 0x0a, 0x0a, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x50, 0x69, 0x6e, 0x67, - 0x22, 0x0c, 0x0a, 0x0a, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x50, 0x6f, 0x6e, 0x67, 0x22, 0x68, - 0x0a, 0x09, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x4d, 0x73, 0x67, 0x12, 0x2c, 0x0a, 0x0a, 0x63, - 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x42, - 0x0d, 0xe2, 0xde, 0x1f, 0x09, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x44, 0x52, 0x09, - 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x03, 0x65, 0x6f, 0x66, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x42, 0x07, 0xe2, 0xde, 0x1f, 0x03, 0x45, 0x4f, 0x46, 0x52, - 0x03, 0x65, 0x6f, 0x66, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xcc, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x63, - 0x6b, 0x65, 0x74, 0x12, 0x3e, 0x0a, 0x0b, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x70, 0x69, - 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, - 0x62, 0x66, 0x74, 0x2e, 0x70, 0x32, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x65, - 0x74, 0x50, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x0a, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x50, - 0x69, 0x6e, 0x67, 0x12, 0x3e, 0x0a, 0x0b, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x70, 0x6f, - 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, - 0x62, 0x66, 0x74, 0x2e, 0x70, 0x32, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x65, - 0x74, 0x50, 0x6f, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x0a, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x50, - 0x6f, 0x6e, 0x67, 0x12, 0x3b, 0x0a, 0x0a, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6d, 0x73, - 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, - 0x66, 0x74, 0x2e, 0x70, 0x32, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, - 0x4d, 0x73, 0x67, 0x48, 0x00, 0x52, 0x09, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x4d, 0x73, 0x67, - 0x42, 0x05, 0x0a, 0x03, 0x73, 0x75, 0x6d, 0x22, 0x60, 0x0a, 0x0e, 0x41, 0x75, 0x74, 0x68, 0x53, - 0x69, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3c, 0x0a, 0x07, 0x70, 0x75, 0x62, - 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x63, 0x6f, 0x6d, - 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x76, 0x31, 0x2e, - 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, - 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x69, 0x67, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x73, 0x69, 0x67, 0x42, 0xa6, 0x01, 0x0a, 0x13, 0x63, 0x6f, - 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x70, 0x32, 0x70, 0x2e, 0x76, - 0x31, 0x42, 0x09, 0x43, 0x6f, 0x6e, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x26, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x70, 0x32, 0x70, 0x2f, 0x76, 0x31, - 0x3b, 0x70, 0x32, 0x70, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x50, 0x58, 0xaa, 0x02, 0x0f, 0x43, - 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x50, 0x32, 0x70, 0x2e, 0x56, 0x31, 0xca, 0x02, - 0x0f, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x5c, 0x50, 0x32, 0x70, 0x5c, 0x56, 0x31, - 0xe2, 0x02, 0x1b, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x5c, 0x50, 0x32, 0x70, 0x5c, - 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, - 0x11, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x3a, 0x3a, 0x50, 0x32, 0x70, 0x3a, 0x3a, - 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cometbft_p2p_v1_conn_proto_rawDescOnce sync.Once - file_cometbft_p2p_v1_conn_proto_rawDescData = file_cometbft_p2p_v1_conn_proto_rawDesc -) - -func file_cometbft_p2p_v1_conn_proto_rawDescGZIP() []byte { - file_cometbft_p2p_v1_conn_proto_rawDescOnce.Do(func() { - file_cometbft_p2p_v1_conn_proto_rawDescData = protoimpl.X.CompressGZIP(file_cometbft_p2p_v1_conn_proto_rawDescData) - }) - return file_cometbft_p2p_v1_conn_proto_rawDescData -} - -var file_cometbft_p2p_v1_conn_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_cometbft_p2p_v1_conn_proto_goTypes = []interface{}{ - (*PacketPing)(nil), // 0: cometbft.p2p.v1.PacketPing - (*PacketPong)(nil), // 1: cometbft.p2p.v1.PacketPong - (*PacketMsg)(nil), // 2: cometbft.p2p.v1.PacketMsg - (*Packet)(nil), // 3: cometbft.p2p.v1.Packet - (*AuthSigMessage)(nil), // 4: cometbft.p2p.v1.AuthSigMessage - (*v1.PublicKey)(nil), // 5: cometbft.crypto.v1.PublicKey -} -var file_cometbft_p2p_v1_conn_proto_depIdxs = []int32{ - 0, // 0: cometbft.p2p.v1.Packet.packet_ping:type_name -> cometbft.p2p.v1.PacketPing - 1, // 1: cometbft.p2p.v1.Packet.packet_pong:type_name -> cometbft.p2p.v1.PacketPong - 2, // 2: cometbft.p2p.v1.Packet.packet_msg:type_name -> cometbft.p2p.v1.PacketMsg - 5, // 3: cometbft.p2p.v1.AuthSigMessage.pub_key:type_name -> cometbft.crypto.v1.PublicKey - 4, // [4:4] is the sub-list for method output_type - 4, // [4:4] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name -} - -func init() { file_cometbft_p2p_v1_conn_proto_init() } -func file_cometbft_p2p_v1_conn_proto_init() { - if File_cometbft_p2p_v1_conn_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cometbft_p2p_v1_conn_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PacketPing); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cometbft_p2p_v1_conn_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PacketPong); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cometbft_p2p_v1_conn_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PacketMsg); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cometbft_p2p_v1_conn_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Packet); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cometbft_p2p_v1_conn_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AuthSigMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_cometbft_p2p_v1_conn_proto_msgTypes[3].OneofWrappers = []interface{}{ - (*Packet_PacketPing)(nil), - (*Packet_PacketPong)(nil), - (*Packet_PacketMsg)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cometbft_p2p_v1_conn_proto_rawDesc, - NumEnums: 0, - NumMessages: 5, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cometbft_p2p_v1_conn_proto_goTypes, - DependencyIndexes: file_cometbft_p2p_v1_conn_proto_depIdxs, - MessageInfos: file_cometbft_p2p_v1_conn_proto_msgTypes, - }.Build() - File_cometbft_p2p_v1_conn_proto = out.File - file_cometbft_p2p_v1_conn_proto_rawDesc = nil - file_cometbft_p2p_v1_conn_proto_goTypes = nil - file_cometbft_p2p_v1_conn_proto_depIdxs = nil -} diff --git a/api/cometbft/p2p/v1/pex.pulsar.go b/api/cometbft/p2p/v1/pex.pulsar.go deleted file mode 100644 index 858ab82445..0000000000 --- a/api/cometbft/p2p/v1/pex.pulsar.go +++ /dev/null @@ -1,1724 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package p2pv1 - -import ( - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_PexRequest protoreflect.MessageDescriptor -) - -func init() { - file_cometbft_p2p_v1_pex_proto_init() - md_PexRequest = File_cometbft_p2p_v1_pex_proto.Messages().ByName("PexRequest") -} - -var _ protoreflect.Message = (*fastReflection_PexRequest)(nil) - -type fastReflection_PexRequest PexRequest - -func (x *PexRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_PexRequest)(x) -} - -func (x *PexRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_p2p_v1_pex_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_PexRequest_messageType fastReflection_PexRequest_messageType -var _ protoreflect.MessageType = fastReflection_PexRequest_messageType{} - -type fastReflection_PexRequest_messageType struct{} - -func (x fastReflection_PexRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_PexRequest)(nil) -} -func (x fastReflection_PexRequest_messageType) New() protoreflect.Message { - return new(fastReflection_PexRequest) -} -func (x fastReflection_PexRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_PexRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_PexRequest) Descriptor() protoreflect.MessageDescriptor { - return md_PexRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_PexRequest) Type() protoreflect.MessageType { - return _fastReflection_PexRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_PexRequest) New() protoreflect.Message { - return new(fastReflection_PexRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_PexRequest) Interface() protoreflect.ProtoMessage { - return (*PexRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_PexRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_PexRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.PexRequest")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.PexRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PexRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.PexRequest")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.PexRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_PexRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.PexRequest")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.PexRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PexRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.PexRequest")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.PexRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PexRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.PexRequest")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.PexRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_PexRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.PexRequest")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.PexRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_PexRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.p2p.v1.PexRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_PexRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PexRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_PexRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_PexRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*PexRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*PexRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*PexRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PexRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PexRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_PexAddrs_1_list)(nil) - -type _PexAddrs_1_list struct { - list *[]*NetAddress -} - -func (x *_PexAddrs_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_PexAddrs_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_PexAddrs_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*NetAddress) - (*x.list)[i] = concreteValue -} - -func (x *_PexAddrs_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*NetAddress) - *x.list = append(*x.list, concreteValue) -} - -func (x *_PexAddrs_1_list) AppendMutable() protoreflect.Value { - v := new(NetAddress) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_PexAddrs_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_PexAddrs_1_list) NewElement() protoreflect.Value { - v := new(NetAddress) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_PexAddrs_1_list) IsValid() bool { - return x.list != nil -} - -var ( - md_PexAddrs protoreflect.MessageDescriptor - fd_PexAddrs_addrs protoreflect.FieldDescriptor -) - -func init() { - file_cometbft_p2p_v1_pex_proto_init() - md_PexAddrs = File_cometbft_p2p_v1_pex_proto.Messages().ByName("PexAddrs") - fd_PexAddrs_addrs = md_PexAddrs.Fields().ByName("addrs") -} - -var _ protoreflect.Message = (*fastReflection_PexAddrs)(nil) - -type fastReflection_PexAddrs PexAddrs - -func (x *PexAddrs) ProtoReflect() protoreflect.Message { - return (*fastReflection_PexAddrs)(x) -} - -func (x *PexAddrs) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_p2p_v1_pex_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_PexAddrs_messageType fastReflection_PexAddrs_messageType -var _ protoreflect.MessageType = fastReflection_PexAddrs_messageType{} - -type fastReflection_PexAddrs_messageType struct{} - -func (x fastReflection_PexAddrs_messageType) Zero() protoreflect.Message { - return (*fastReflection_PexAddrs)(nil) -} -func (x fastReflection_PexAddrs_messageType) New() protoreflect.Message { - return new(fastReflection_PexAddrs) -} -func (x fastReflection_PexAddrs_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_PexAddrs -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_PexAddrs) Descriptor() protoreflect.MessageDescriptor { - return md_PexAddrs -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_PexAddrs) Type() protoreflect.MessageType { - return _fastReflection_PexAddrs_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_PexAddrs) New() protoreflect.Message { - return new(fastReflection_PexAddrs) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_PexAddrs) Interface() protoreflect.ProtoMessage { - return (*PexAddrs)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_PexAddrs) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Addrs) != 0 { - value := protoreflect.ValueOfList(&_PexAddrs_1_list{list: &x.Addrs}) - if !f(fd_PexAddrs_addrs, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_PexAddrs) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cometbft.p2p.v1.PexAddrs.addrs": - return len(x.Addrs) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.PexAddrs")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.PexAddrs does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PexAddrs) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cometbft.p2p.v1.PexAddrs.addrs": - x.Addrs = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.PexAddrs")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.PexAddrs does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_PexAddrs) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cometbft.p2p.v1.PexAddrs.addrs": - if len(x.Addrs) == 0 { - return protoreflect.ValueOfList(&_PexAddrs_1_list{}) - } - listValue := &_PexAddrs_1_list{list: &x.Addrs} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.PexAddrs")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.PexAddrs does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PexAddrs) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cometbft.p2p.v1.PexAddrs.addrs": - lv := value.List() - clv := lv.(*_PexAddrs_1_list) - x.Addrs = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.PexAddrs")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.PexAddrs does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PexAddrs) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cometbft.p2p.v1.PexAddrs.addrs": - if x.Addrs == nil { - x.Addrs = []*NetAddress{} - } - value := &_PexAddrs_1_list{list: &x.Addrs} - return protoreflect.ValueOfList(value) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.PexAddrs")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.PexAddrs does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_PexAddrs) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cometbft.p2p.v1.PexAddrs.addrs": - list := []*NetAddress{} - return protoreflect.ValueOfList(&_PexAddrs_1_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.PexAddrs")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.PexAddrs does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_PexAddrs) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.p2p.v1.PexAddrs", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_PexAddrs) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PexAddrs) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_PexAddrs) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_PexAddrs) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*PexAddrs) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.Addrs) > 0 { - for _, e := range x.Addrs { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*PexAddrs) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Addrs) > 0 { - for iNdEx := len(x.Addrs) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Addrs[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*PexAddrs) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PexAddrs: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PexAddrs: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Addrs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Addrs = append(x.Addrs, &NetAddress{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Addrs[len(x.Addrs)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_Message protoreflect.MessageDescriptor - fd_Message_pex_request protoreflect.FieldDescriptor - fd_Message_pex_addrs protoreflect.FieldDescriptor -) - -func init() { - file_cometbft_p2p_v1_pex_proto_init() - md_Message = File_cometbft_p2p_v1_pex_proto.Messages().ByName("Message") - fd_Message_pex_request = md_Message.Fields().ByName("pex_request") - fd_Message_pex_addrs = md_Message.Fields().ByName("pex_addrs") -} - -var _ protoreflect.Message = (*fastReflection_Message)(nil) - -type fastReflection_Message Message - -func (x *Message) ProtoReflect() protoreflect.Message { - return (*fastReflection_Message)(x) -} - -func (x *Message) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_p2p_v1_pex_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_Message_messageType fastReflection_Message_messageType -var _ protoreflect.MessageType = fastReflection_Message_messageType{} - -type fastReflection_Message_messageType struct{} - -func (x fastReflection_Message_messageType) Zero() protoreflect.Message { - return (*fastReflection_Message)(nil) -} -func (x fastReflection_Message_messageType) New() protoreflect.Message { - return new(fastReflection_Message) -} -func (x fastReflection_Message_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Message -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Message) Descriptor() protoreflect.MessageDescriptor { - return md_Message -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_Message) Type() protoreflect.MessageType { - return _fastReflection_Message_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Message) New() protoreflect.Message { - return new(fastReflection_Message) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Message) Interface() protoreflect.ProtoMessage { - return (*Message)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_Message) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Sum != nil { - switch o := x.Sum.(type) { - case *Message_PexRequest: - v := o.PexRequest - value := protoreflect.ValueOfMessage(v.ProtoReflect()) - if !f(fd_Message_pex_request, value) { - return - } - case *Message_PexAddrs: - v := o.PexAddrs - value := protoreflect.ValueOfMessage(v.ProtoReflect()) - if !f(fd_Message_pex_addrs, value) { - return - } - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_Message) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cometbft.p2p.v1.Message.pex_request": - if x.Sum == nil { - return false - } else if _, ok := x.Sum.(*Message_PexRequest); ok { - return true - } else { - return false - } - case "cometbft.p2p.v1.Message.pex_addrs": - if x.Sum == nil { - return false - } else if _, ok := x.Sum.(*Message_PexAddrs); ok { - return true - } else { - return false - } - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.Message")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.Message does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Message) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cometbft.p2p.v1.Message.pex_request": - x.Sum = nil - case "cometbft.p2p.v1.Message.pex_addrs": - x.Sum = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.Message")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.Message does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_Message) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cometbft.p2p.v1.Message.pex_request": - if x.Sum == nil { - return protoreflect.ValueOfMessage((*PexRequest)(nil).ProtoReflect()) - } else if v, ok := x.Sum.(*Message_PexRequest); ok { - return protoreflect.ValueOfMessage(v.PexRequest.ProtoReflect()) - } else { - return protoreflect.ValueOfMessage((*PexRequest)(nil).ProtoReflect()) - } - case "cometbft.p2p.v1.Message.pex_addrs": - if x.Sum == nil { - return protoreflect.ValueOfMessage((*PexAddrs)(nil).ProtoReflect()) - } else if v, ok := x.Sum.(*Message_PexAddrs); ok { - return protoreflect.ValueOfMessage(v.PexAddrs.ProtoReflect()) - } else { - return protoreflect.ValueOfMessage((*PexAddrs)(nil).ProtoReflect()) - } - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.Message")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.Message does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Message) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cometbft.p2p.v1.Message.pex_request": - cv := value.Message().Interface().(*PexRequest) - x.Sum = &Message_PexRequest{PexRequest: cv} - case "cometbft.p2p.v1.Message.pex_addrs": - cv := value.Message().Interface().(*PexAddrs) - x.Sum = &Message_PexAddrs{PexAddrs: cv} - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.Message")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.Message does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Message) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cometbft.p2p.v1.Message.pex_request": - if x.Sum == nil { - value := &PexRequest{} - oneofValue := &Message_PexRequest{PexRequest: value} - x.Sum = oneofValue - return protoreflect.ValueOfMessage(value.ProtoReflect()) - } - switch m := x.Sum.(type) { - case *Message_PexRequest: - return protoreflect.ValueOfMessage(m.PexRequest.ProtoReflect()) - default: - value := &PexRequest{} - oneofValue := &Message_PexRequest{PexRequest: value} - x.Sum = oneofValue - return protoreflect.ValueOfMessage(value.ProtoReflect()) - } - case "cometbft.p2p.v1.Message.pex_addrs": - if x.Sum == nil { - value := &PexAddrs{} - oneofValue := &Message_PexAddrs{PexAddrs: value} - x.Sum = oneofValue - return protoreflect.ValueOfMessage(value.ProtoReflect()) - } - switch m := x.Sum.(type) { - case *Message_PexAddrs: - return protoreflect.ValueOfMessage(m.PexAddrs.ProtoReflect()) - default: - value := &PexAddrs{} - oneofValue := &Message_PexAddrs{PexAddrs: value} - x.Sum = oneofValue - return protoreflect.ValueOfMessage(value.ProtoReflect()) - } - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.Message")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.Message does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_Message) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cometbft.p2p.v1.Message.pex_request": - value := &PexRequest{} - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.p2p.v1.Message.pex_addrs": - value := &PexAddrs{} - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.Message")) - } - panic(fmt.Errorf("message cometbft.p2p.v1.Message does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_Message) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - case "cometbft.p2p.v1.Message.sum": - if x.Sum == nil { - return nil - } - switch x.Sum.(type) { - case *Message_PexRequest: - return x.Descriptor().Fields().ByName("pex_request") - case *Message_PexAddrs: - return x.Descriptor().Fields().ByName("pex_addrs") - } - default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.p2p.v1.Message", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_Message) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Message) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_Message) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_Message) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Message) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - switch x := x.Sum.(type) { - case *Message_PexRequest: - if x == nil { - break - } - l = options.Size(x.PexRequest) - n += 1 + l + runtime.Sov(uint64(l)) - case *Message_PexAddrs: - if x == nil { - break - } - l = options.Size(x.PexAddrs) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*Message) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - switch x := x.Sum.(type) { - case *Message_PexRequest: - encoded, err := options.Marshal(x.PexRequest) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - case *Message_PexAddrs: - encoded, err := options.Marshal(x.PexAddrs) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*Message) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Message: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Message: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PexRequest", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - v := &PexRequest{} - if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - x.Sum = &Message_PexRequest{v} - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PexAddrs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - v := &PexAddrs{} - if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - x.Sum = &Message_PexAddrs{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cometbft/p2p/v1/pex.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// PexRequest is a request for peer addresses. -type PexRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *PexRequest) Reset() { - *x = PexRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cometbft_p2p_v1_pex_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PexRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PexRequest) ProtoMessage() {} - -// Deprecated: Use PexRequest.ProtoReflect.Descriptor instead. -func (*PexRequest) Descriptor() ([]byte, []int) { - return file_cometbft_p2p_v1_pex_proto_rawDescGZIP(), []int{0} -} - -// PexAddrs is a response with peer addresses. -type PexAddrs struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Addrs []*NetAddress `protobuf:"bytes,1,rep,name=addrs,proto3" json:"addrs,omitempty"` -} - -func (x *PexAddrs) Reset() { - *x = PexAddrs{} - if protoimpl.UnsafeEnabled { - mi := &file_cometbft_p2p_v1_pex_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PexAddrs) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PexAddrs) ProtoMessage() {} - -// Deprecated: Use PexAddrs.ProtoReflect.Descriptor instead. -func (*PexAddrs) Descriptor() ([]byte, []int) { - return file_cometbft_p2p_v1_pex_proto_rawDescGZIP(), []int{1} -} - -func (x *PexAddrs) GetAddrs() []*NetAddress { - if x != nil { - return x.Addrs - } - return nil -} - -// Message is an abstract PEX message. -type Message struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Sum of all possible messages. - // - // Types that are assignable to Sum: - // - // *Message_PexRequest - // *Message_PexAddrs - Sum isMessage_Sum `protobuf_oneof:"sum"` -} - -func (x *Message) Reset() { - *x = Message{} - if protoimpl.UnsafeEnabled { - mi := &file_cometbft_p2p_v1_pex_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Message) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Message) ProtoMessage() {} - -// Deprecated: Use Message.ProtoReflect.Descriptor instead. -func (*Message) Descriptor() ([]byte, []int) { - return file_cometbft_p2p_v1_pex_proto_rawDescGZIP(), []int{2} -} - -func (x *Message) GetSum() isMessage_Sum { - if x != nil { - return x.Sum - } - return nil -} - -func (x *Message) GetPexRequest() *PexRequest { - if x, ok := x.GetSum().(*Message_PexRequest); ok { - return x.PexRequest - } - return nil -} - -func (x *Message) GetPexAddrs() *PexAddrs { - if x, ok := x.GetSum().(*Message_PexAddrs); ok { - return x.PexAddrs - } - return nil -} - -type isMessage_Sum interface { - isMessage_Sum() -} - -type Message_PexRequest struct { - PexRequest *PexRequest `protobuf:"bytes,1,opt,name=pex_request,json=pexRequest,proto3,oneof"` -} - -type Message_PexAddrs struct { - PexAddrs *PexAddrs `protobuf:"bytes,2,opt,name=pex_addrs,json=pexAddrs,proto3,oneof"` -} - -func (*Message_PexRequest) isMessage_Sum() {} - -func (*Message_PexAddrs) isMessage_Sum() {} - -var File_cometbft_p2p_v1_pex_proto protoreflect.FileDescriptor - -var file_cometbft_p2p_v1_pex_proto_rawDesc = []byte{ - 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x70, 0x32, 0x70, 0x2f, 0x76, - 0x31, 0x2f, 0x70, 0x65, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x63, 0x6f, 0x6d, - 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x70, 0x32, 0x70, 0x2e, 0x76, 0x31, 0x1a, 0x1b, 0x63, 0x6f, - 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x70, 0x32, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, - 0x0c, 0x0a, 0x0a, 0x50, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x43, 0x0a, - 0x08, 0x50, 0x65, 0x78, 0x41, 0x64, 0x64, 0x72, 0x73, 0x12, 0x37, 0x0a, 0x05, 0x61, 0x64, 0x64, - 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, - 0x62, 0x66, 0x74, 0x2e, 0x70, 0x32, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x65, 0x74, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x05, 0x61, 0x64, 0x64, - 0x72, 0x73, 0x22, 0x8a, 0x01, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3e, - 0x0a, 0x0b, 0x70, 0x65, 0x78, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x70, - 0x32, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x48, 0x00, 0x52, 0x0a, 0x70, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, - 0x0a, 0x09, 0x70, 0x65, 0x78, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x70, 0x32, 0x70, - 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x78, 0x41, 0x64, 0x64, 0x72, 0x73, 0x48, 0x00, 0x52, 0x08, - 0x70, 0x65, 0x78, 0x41, 0x64, 0x64, 0x72, 0x73, 0x42, 0x05, 0x0a, 0x03, 0x73, 0x75, 0x6d, 0x42, - 0xa5, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, - 0x2e, 0x70, 0x32, 0x70, 0x2e, 0x76, 0x31, 0x42, 0x08, 0x50, 0x65, 0x78, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x50, 0x01, 0x5a, 0x26, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, - 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x70, - 0x32, 0x70, 0x2f, 0x76, 0x31, 0x3b, 0x70, 0x32, 0x70, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x50, - 0x58, 0xaa, 0x02, 0x0f, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x50, 0x32, 0x70, - 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0f, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x5c, 0x50, - 0x32, 0x70, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1b, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, - 0x5c, 0x50, 0x32, 0x70, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x3a, 0x3a, - 0x50, 0x32, 0x70, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cometbft_p2p_v1_pex_proto_rawDescOnce sync.Once - file_cometbft_p2p_v1_pex_proto_rawDescData = file_cometbft_p2p_v1_pex_proto_rawDesc -) - -func file_cometbft_p2p_v1_pex_proto_rawDescGZIP() []byte { - file_cometbft_p2p_v1_pex_proto_rawDescOnce.Do(func() { - file_cometbft_p2p_v1_pex_proto_rawDescData = protoimpl.X.CompressGZIP(file_cometbft_p2p_v1_pex_proto_rawDescData) - }) - return file_cometbft_p2p_v1_pex_proto_rawDescData -} - -var file_cometbft_p2p_v1_pex_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_cometbft_p2p_v1_pex_proto_goTypes = []interface{}{ - (*PexRequest)(nil), // 0: cometbft.p2p.v1.PexRequest - (*PexAddrs)(nil), // 1: cometbft.p2p.v1.PexAddrs - (*Message)(nil), // 2: cometbft.p2p.v1.Message - (*NetAddress)(nil), // 3: cometbft.p2p.v1.NetAddress -} -var file_cometbft_p2p_v1_pex_proto_depIdxs = []int32{ - 3, // 0: cometbft.p2p.v1.PexAddrs.addrs:type_name -> cometbft.p2p.v1.NetAddress - 0, // 1: cometbft.p2p.v1.Message.pex_request:type_name -> cometbft.p2p.v1.PexRequest - 1, // 2: cometbft.p2p.v1.Message.pex_addrs:type_name -> cometbft.p2p.v1.PexAddrs - 3, // [3:3] is the sub-list for method output_type - 3, // [3:3] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name -} - -func init() { file_cometbft_p2p_v1_pex_proto_init() } -func file_cometbft_p2p_v1_pex_proto_init() { - if File_cometbft_p2p_v1_pex_proto != nil { - return - } - file_cometbft_p2p_v1_types_proto_init() - if !protoimpl.UnsafeEnabled { - file_cometbft_p2p_v1_pex_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PexRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cometbft_p2p_v1_pex_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PexAddrs); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cometbft_p2p_v1_pex_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Message); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_cometbft_p2p_v1_pex_proto_msgTypes[2].OneofWrappers = []interface{}{ - (*Message_PexRequest)(nil), - (*Message_PexAddrs)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cometbft_p2p_v1_pex_proto_rawDesc, - NumEnums: 0, - NumMessages: 3, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cometbft_p2p_v1_pex_proto_goTypes, - DependencyIndexes: file_cometbft_p2p_v1_pex_proto_depIdxs, - MessageInfos: file_cometbft_p2p_v1_pex_proto_msgTypes, - }.Build() - File_cometbft_p2p_v1_pex_proto = out.File - file_cometbft_p2p_v1_pex_proto_rawDesc = nil - file_cometbft_p2p_v1_pex_proto_goTypes = nil - file_cometbft_p2p_v1_pex_proto_depIdxs = nil -} diff --git a/api/cometbft/types/v2/canonical.pulsar.go b/api/cometbft/types/v2/canonical.pulsar.go deleted file mode 100644 index 9776aefd3a..0000000000 --- a/api/cometbft/types/v2/canonical.pulsar.go +++ /dev/null @@ -1,3552 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package typesv2 - -import ( - binary "encoding/binary" - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_CanonicalBlockID protoreflect.MessageDescriptor - fd_CanonicalBlockID_hash protoreflect.FieldDescriptor - fd_CanonicalBlockID_part_set_header protoreflect.FieldDescriptor -) - -func init() { - file_cometbft_types_v2_canonical_proto_init() - md_CanonicalBlockID = File_cometbft_types_v2_canonical_proto.Messages().ByName("CanonicalBlockID") - fd_CanonicalBlockID_hash = md_CanonicalBlockID.Fields().ByName("hash") - fd_CanonicalBlockID_part_set_header = md_CanonicalBlockID.Fields().ByName("part_set_header") -} - -var _ protoreflect.Message = (*fastReflection_CanonicalBlockID)(nil) - -type fastReflection_CanonicalBlockID CanonicalBlockID - -func (x *CanonicalBlockID) ProtoReflect() protoreflect.Message { - return (*fastReflection_CanonicalBlockID)(x) -} - -func (x *CanonicalBlockID) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_canonical_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_CanonicalBlockID_messageType fastReflection_CanonicalBlockID_messageType -var _ protoreflect.MessageType = fastReflection_CanonicalBlockID_messageType{} - -type fastReflection_CanonicalBlockID_messageType struct{} - -func (x fastReflection_CanonicalBlockID_messageType) Zero() protoreflect.Message { - return (*fastReflection_CanonicalBlockID)(nil) -} -func (x fastReflection_CanonicalBlockID_messageType) New() protoreflect.Message { - return new(fastReflection_CanonicalBlockID) -} -func (x fastReflection_CanonicalBlockID_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_CanonicalBlockID -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_CanonicalBlockID) Descriptor() protoreflect.MessageDescriptor { - return md_CanonicalBlockID -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_CanonicalBlockID) Type() protoreflect.MessageType { - return _fastReflection_CanonicalBlockID_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_CanonicalBlockID) New() protoreflect.Message { - return new(fastReflection_CanonicalBlockID) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_CanonicalBlockID) Interface() protoreflect.ProtoMessage { - return (*CanonicalBlockID)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_CanonicalBlockID) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Hash) != 0 { - value := protoreflect.ValueOfBytes(x.Hash) - if !f(fd_CanonicalBlockID_hash, value) { - return - } - } - if x.PartSetHeader != nil { - value := protoreflect.ValueOfMessage(x.PartSetHeader.ProtoReflect()) - if !f(fd_CanonicalBlockID_part_set_header, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_CanonicalBlockID) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cometbft.types.v2.CanonicalBlockID.hash": - return len(x.Hash) != 0 - case "cometbft.types.v2.CanonicalBlockID.part_set_header": - return x.PartSetHeader != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CanonicalBlockID")) - } - panic(fmt.Errorf("message cometbft.types.v2.CanonicalBlockID does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CanonicalBlockID) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cometbft.types.v2.CanonicalBlockID.hash": - x.Hash = nil - case "cometbft.types.v2.CanonicalBlockID.part_set_header": - x.PartSetHeader = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CanonicalBlockID")) - } - panic(fmt.Errorf("message cometbft.types.v2.CanonicalBlockID does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_CanonicalBlockID) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cometbft.types.v2.CanonicalBlockID.hash": - value := x.Hash - return protoreflect.ValueOfBytes(value) - case "cometbft.types.v2.CanonicalBlockID.part_set_header": - value := x.PartSetHeader - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CanonicalBlockID")) - } - panic(fmt.Errorf("message cometbft.types.v2.CanonicalBlockID does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CanonicalBlockID) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cometbft.types.v2.CanonicalBlockID.hash": - x.Hash = value.Bytes() - case "cometbft.types.v2.CanonicalBlockID.part_set_header": - x.PartSetHeader = value.Message().Interface().(*CanonicalPartSetHeader) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CanonicalBlockID")) - } - panic(fmt.Errorf("message cometbft.types.v2.CanonicalBlockID does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CanonicalBlockID) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cometbft.types.v2.CanonicalBlockID.part_set_header": - if x.PartSetHeader == nil { - x.PartSetHeader = new(CanonicalPartSetHeader) - } - return protoreflect.ValueOfMessage(x.PartSetHeader.ProtoReflect()) - case "cometbft.types.v2.CanonicalBlockID.hash": - panic(fmt.Errorf("field hash of message cometbft.types.v2.CanonicalBlockID is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CanonicalBlockID")) - } - panic(fmt.Errorf("message cometbft.types.v2.CanonicalBlockID does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_CanonicalBlockID) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cometbft.types.v2.CanonicalBlockID.hash": - return protoreflect.ValueOfBytes(nil) - case "cometbft.types.v2.CanonicalBlockID.part_set_header": - m := new(CanonicalPartSetHeader) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CanonicalBlockID")) - } - panic(fmt.Errorf("message cometbft.types.v2.CanonicalBlockID does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_CanonicalBlockID) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.CanonicalBlockID", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_CanonicalBlockID) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CanonicalBlockID) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_CanonicalBlockID) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_CanonicalBlockID) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*CanonicalBlockID) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Hash) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.PartSetHeader != nil { - l = options.Size(x.PartSetHeader) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*CanonicalBlockID) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.PartSetHeader != nil { - encoded, err := options.Marshal(x.PartSetHeader) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Hash) > 0 { - i -= len(x.Hash) - copy(dAtA[i:], x.Hash) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Hash))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*CanonicalBlockID) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CanonicalBlockID: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CanonicalBlockID: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Hash = append(x.Hash[:0], dAtA[iNdEx:postIndex]...) - if x.Hash == nil { - x.Hash = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PartSetHeader", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.PartSetHeader == nil { - x.PartSetHeader = &CanonicalPartSetHeader{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PartSetHeader); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_CanonicalPartSetHeader protoreflect.MessageDescriptor - fd_CanonicalPartSetHeader_total protoreflect.FieldDescriptor - fd_CanonicalPartSetHeader_hash protoreflect.FieldDescriptor -) - -func init() { - file_cometbft_types_v2_canonical_proto_init() - md_CanonicalPartSetHeader = File_cometbft_types_v2_canonical_proto.Messages().ByName("CanonicalPartSetHeader") - fd_CanonicalPartSetHeader_total = md_CanonicalPartSetHeader.Fields().ByName("total") - fd_CanonicalPartSetHeader_hash = md_CanonicalPartSetHeader.Fields().ByName("hash") -} - -var _ protoreflect.Message = (*fastReflection_CanonicalPartSetHeader)(nil) - -type fastReflection_CanonicalPartSetHeader CanonicalPartSetHeader - -func (x *CanonicalPartSetHeader) ProtoReflect() protoreflect.Message { - return (*fastReflection_CanonicalPartSetHeader)(x) -} - -func (x *CanonicalPartSetHeader) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_canonical_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_CanonicalPartSetHeader_messageType fastReflection_CanonicalPartSetHeader_messageType -var _ protoreflect.MessageType = fastReflection_CanonicalPartSetHeader_messageType{} - -type fastReflection_CanonicalPartSetHeader_messageType struct{} - -func (x fastReflection_CanonicalPartSetHeader_messageType) Zero() protoreflect.Message { - return (*fastReflection_CanonicalPartSetHeader)(nil) -} -func (x fastReflection_CanonicalPartSetHeader_messageType) New() protoreflect.Message { - return new(fastReflection_CanonicalPartSetHeader) -} -func (x fastReflection_CanonicalPartSetHeader_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_CanonicalPartSetHeader -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_CanonicalPartSetHeader) Descriptor() protoreflect.MessageDescriptor { - return md_CanonicalPartSetHeader -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_CanonicalPartSetHeader) Type() protoreflect.MessageType { - return _fastReflection_CanonicalPartSetHeader_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_CanonicalPartSetHeader) New() protoreflect.Message { - return new(fastReflection_CanonicalPartSetHeader) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_CanonicalPartSetHeader) Interface() protoreflect.ProtoMessage { - return (*CanonicalPartSetHeader)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_CanonicalPartSetHeader) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Total != uint32(0) { - value := protoreflect.ValueOfUint32(x.Total) - if !f(fd_CanonicalPartSetHeader_total, value) { - return - } - } - if len(x.Hash) != 0 { - value := protoreflect.ValueOfBytes(x.Hash) - if !f(fd_CanonicalPartSetHeader_hash, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_CanonicalPartSetHeader) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cometbft.types.v2.CanonicalPartSetHeader.total": - return x.Total != uint32(0) - case "cometbft.types.v2.CanonicalPartSetHeader.hash": - return len(x.Hash) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CanonicalPartSetHeader")) - } - panic(fmt.Errorf("message cometbft.types.v2.CanonicalPartSetHeader does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CanonicalPartSetHeader) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cometbft.types.v2.CanonicalPartSetHeader.total": - x.Total = uint32(0) - case "cometbft.types.v2.CanonicalPartSetHeader.hash": - x.Hash = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CanonicalPartSetHeader")) - } - panic(fmt.Errorf("message cometbft.types.v2.CanonicalPartSetHeader does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_CanonicalPartSetHeader) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cometbft.types.v2.CanonicalPartSetHeader.total": - value := x.Total - return protoreflect.ValueOfUint32(value) - case "cometbft.types.v2.CanonicalPartSetHeader.hash": - value := x.Hash - return protoreflect.ValueOfBytes(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CanonicalPartSetHeader")) - } - panic(fmt.Errorf("message cometbft.types.v2.CanonicalPartSetHeader does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CanonicalPartSetHeader) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cometbft.types.v2.CanonicalPartSetHeader.total": - x.Total = uint32(value.Uint()) - case "cometbft.types.v2.CanonicalPartSetHeader.hash": - x.Hash = value.Bytes() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CanonicalPartSetHeader")) - } - panic(fmt.Errorf("message cometbft.types.v2.CanonicalPartSetHeader does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CanonicalPartSetHeader) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cometbft.types.v2.CanonicalPartSetHeader.total": - panic(fmt.Errorf("field total of message cometbft.types.v2.CanonicalPartSetHeader is not mutable")) - case "cometbft.types.v2.CanonicalPartSetHeader.hash": - panic(fmt.Errorf("field hash of message cometbft.types.v2.CanonicalPartSetHeader is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CanonicalPartSetHeader")) - } - panic(fmt.Errorf("message cometbft.types.v2.CanonicalPartSetHeader does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_CanonicalPartSetHeader) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cometbft.types.v2.CanonicalPartSetHeader.total": - return protoreflect.ValueOfUint32(uint32(0)) - case "cometbft.types.v2.CanonicalPartSetHeader.hash": - return protoreflect.ValueOfBytes(nil) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CanonicalPartSetHeader")) - } - panic(fmt.Errorf("message cometbft.types.v2.CanonicalPartSetHeader does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_CanonicalPartSetHeader) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.CanonicalPartSetHeader", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_CanonicalPartSetHeader) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CanonicalPartSetHeader) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_CanonicalPartSetHeader) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_CanonicalPartSetHeader) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*CanonicalPartSetHeader) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Total != 0 { - n += 1 + runtime.Sov(uint64(x.Total)) - } - l = len(x.Hash) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*CanonicalPartSetHeader) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Hash) > 0 { - i -= len(x.Hash) - copy(dAtA[i:], x.Hash) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Hash))) - i-- - dAtA[i] = 0x12 - } - if x.Total != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Total)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*CanonicalPartSetHeader) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CanonicalPartSetHeader: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CanonicalPartSetHeader: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Total", wireType) - } - x.Total = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Total |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Hash = append(x.Hash[:0], dAtA[iNdEx:postIndex]...) - if x.Hash == nil { - x.Hash = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_CanonicalProposal protoreflect.MessageDescriptor - fd_CanonicalProposal_type protoreflect.FieldDescriptor - fd_CanonicalProposal_height protoreflect.FieldDescriptor - fd_CanonicalProposal_round protoreflect.FieldDescriptor - fd_CanonicalProposal_pol_round protoreflect.FieldDescriptor - fd_CanonicalProposal_block_id protoreflect.FieldDescriptor - fd_CanonicalProposal_timestamp protoreflect.FieldDescriptor - fd_CanonicalProposal_chain_id protoreflect.FieldDescriptor -) - -func init() { - file_cometbft_types_v2_canonical_proto_init() - md_CanonicalProposal = File_cometbft_types_v2_canonical_proto.Messages().ByName("CanonicalProposal") - fd_CanonicalProposal_type = md_CanonicalProposal.Fields().ByName("type") - fd_CanonicalProposal_height = md_CanonicalProposal.Fields().ByName("height") - fd_CanonicalProposal_round = md_CanonicalProposal.Fields().ByName("round") - fd_CanonicalProposal_pol_round = md_CanonicalProposal.Fields().ByName("pol_round") - fd_CanonicalProposal_block_id = md_CanonicalProposal.Fields().ByName("block_id") - fd_CanonicalProposal_timestamp = md_CanonicalProposal.Fields().ByName("timestamp") - fd_CanonicalProposal_chain_id = md_CanonicalProposal.Fields().ByName("chain_id") -} - -var _ protoreflect.Message = (*fastReflection_CanonicalProposal)(nil) - -type fastReflection_CanonicalProposal CanonicalProposal - -func (x *CanonicalProposal) ProtoReflect() protoreflect.Message { - return (*fastReflection_CanonicalProposal)(x) -} - -func (x *CanonicalProposal) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_canonical_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_CanonicalProposal_messageType fastReflection_CanonicalProposal_messageType -var _ protoreflect.MessageType = fastReflection_CanonicalProposal_messageType{} - -type fastReflection_CanonicalProposal_messageType struct{} - -func (x fastReflection_CanonicalProposal_messageType) Zero() protoreflect.Message { - return (*fastReflection_CanonicalProposal)(nil) -} -func (x fastReflection_CanonicalProposal_messageType) New() protoreflect.Message { - return new(fastReflection_CanonicalProposal) -} -func (x fastReflection_CanonicalProposal_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_CanonicalProposal -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_CanonicalProposal) Descriptor() protoreflect.MessageDescriptor { - return md_CanonicalProposal -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_CanonicalProposal) Type() protoreflect.MessageType { - return _fastReflection_CanonicalProposal_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_CanonicalProposal) New() protoreflect.Message { - return new(fastReflection_CanonicalProposal) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_CanonicalProposal) Interface() protoreflect.ProtoMessage { - return (*CanonicalProposal)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_CanonicalProposal) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Type_ != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Type_)) - if !f(fd_CanonicalProposal_type, value) { - return - } - } - if x.Height != int64(0) { - value := protoreflect.ValueOfInt64(x.Height) - if !f(fd_CanonicalProposal_height, value) { - return - } - } - if x.Round != int64(0) { - value := protoreflect.ValueOfInt64(x.Round) - if !f(fd_CanonicalProposal_round, value) { - return - } - } - if x.PolRound != int64(0) { - value := protoreflect.ValueOfInt64(x.PolRound) - if !f(fd_CanonicalProposal_pol_round, value) { - return - } - } - if x.BlockId != nil { - value := protoreflect.ValueOfMessage(x.BlockId.ProtoReflect()) - if !f(fd_CanonicalProposal_block_id, value) { - return - } - } - if x.Timestamp != nil { - value := protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) - if !f(fd_CanonicalProposal_timestamp, value) { - return - } - } - if x.ChainId != "" { - value := protoreflect.ValueOfString(x.ChainId) - if !f(fd_CanonicalProposal_chain_id, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_CanonicalProposal) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cometbft.types.v2.CanonicalProposal.type": - return x.Type_ != 0 - case "cometbft.types.v2.CanonicalProposal.height": - return x.Height != int64(0) - case "cometbft.types.v2.CanonicalProposal.round": - return x.Round != int64(0) - case "cometbft.types.v2.CanonicalProposal.pol_round": - return x.PolRound != int64(0) - case "cometbft.types.v2.CanonicalProposal.block_id": - return x.BlockId != nil - case "cometbft.types.v2.CanonicalProposal.timestamp": - return x.Timestamp != nil - case "cometbft.types.v2.CanonicalProposal.chain_id": - return x.ChainId != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CanonicalProposal")) - } - panic(fmt.Errorf("message cometbft.types.v2.CanonicalProposal does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CanonicalProposal) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cometbft.types.v2.CanonicalProposal.type": - x.Type_ = 0 - case "cometbft.types.v2.CanonicalProposal.height": - x.Height = int64(0) - case "cometbft.types.v2.CanonicalProposal.round": - x.Round = int64(0) - case "cometbft.types.v2.CanonicalProposal.pol_round": - x.PolRound = int64(0) - case "cometbft.types.v2.CanonicalProposal.block_id": - x.BlockId = nil - case "cometbft.types.v2.CanonicalProposal.timestamp": - x.Timestamp = nil - case "cometbft.types.v2.CanonicalProposal.chain_id": - x.ChainId = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CanonicalProposal")) - } - panic(fmt.Errorf("message cometbft.types.v2.CanonicalProposal does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_CanonicalProposal) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cometbft.types.v2.CanonicalProposal.type": - value := x.Type_ - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "cometbft.types.v2.CanonicalProposal.height": - value := x.Height - return protoreflect.ValueOfInt64(value) - case "cometbft.types.v2.CanonicalProposal.round": - value := x.Round - return protoreflect.ValueOfInt64(value) - case "cometbft.types.v2.CanonicalProposal.pol_round": - value := x.PolRound - return protoreflect.ValueOfInt64(value) - case "cometbft.types.v2.CanonicalProposal.block_id": - value := x.BlockId - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.CanonicalProposal.timestamp": - value := x.Timestamp - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.CanonicalProposal.chain_id": - value := x.ChainId - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CanonicalProposal")) - } - panic(fmt.Errorf("message cometbft.types.v2.CanonicalProposal does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CanonicalProposal) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cometbft.types.v2.CanonicalProposal.type": - x.Type_ = (SignedMsgType)(value.Enum()) - case "cometbft.types.v2.CanonicalProposal.height": - x.Height = value.Int() - case "cometbft.types.v2.CanonicalProposal.round": - x.Round = value.Int() - case "cometbft.types.v2.CanonicalProposal.pol_round": - x.PolRound = value.Int() - case "cometbft.types.v2.CanonicalProposal.block_id": - x.BlockId = value.Message().Interface().(*CanonicalBlockID) - case "cometbft.types.v2.CanonicalProposal.timestamp": - x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) - case "cometbft.types.v2.CanonicalProposal.chain_id": - x.ChainId = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CanonicalProposal")) - } - panic(fmt.Errorf("message cometbft.types.v2.CanonicalProposal does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CanonicalProposal) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cometbft.types.v2.CanonicalProposal.block_id": - if x.BlockId == nil { - x.BlockId = new(CanonicalBlockID) - } - return protoreflect.ValueOfMessage(x.BlockId.ProtoReflect()) - case "cometbft.types.v2.CanonicalProposal.timestamp": - if x.Timestamp == nil { - x.Timestamp = new(timestamppb.Timestamp) - } - return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) - case "cometbft.types.v2.CanonicalProposal.type": - panic(fmt.Errorf("field type of message cometbft.types.v2.CanonicalProposal is not mutable")) - case "cometbft.types.v2.CanonicalProposal.height": - panic(fmt.Errorf("field height of message cometbft.types.v2.CanonicalProposal is not mutable")) - case "cometbft.types.v2.CanonicalProposal.round": - panic(fmt.Errorf("field round of message cometbft.types.v2.CanonicalProposal is not mutable")) - case "cometbft.types.v2.CanonicalProposal.pol_round": - panic(fmt.Errorf("field pol_round of message cometbft.types.v2.CanonicalProposal is not mutable")) - case "cometbft.types.v2.CanonicalProposal.chain_id": - panic(fmt.Errorf("field chain_id of message cometbft.types.v2.CanonicalProposal is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CanonicalProposal")) - } - panic(fmt.Errorf("message cometbft.types.v2.CanonicalProposal does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_CanonicalProposal) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cometbft.types.v2.CanonicalProposal.type": - return protoreflect.ValueOfEnum(0) - case "cometbft.types.v2.CanonicalProposal.height": - return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.types.v2.CanonicalProposal.round": - return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.types.v2.CanonicalProposal.pol_round": - return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.types.v2.CanonicalProposal.block_id": - m := new(CanonicalBlockID) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.CanonicalProposal.timestamp": - m := new(timestamppb.Timestamp) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.CanonicalProposal.chain_id": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CanonicalProposal")) - } - panic(fmt.Errorf("message cometbft.types.v2.CanonicalProposal does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_CanonicalProposal) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.CanonicalProposal", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_CanonicalProposal) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CanonicalProposal) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_CanonicalProposal) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_CanonicalProposal) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*CanonicalProposal) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Type_ != 0 { - n += 1 + runtime.Sov(uint64(x.Type_)) - } - if x.Height != 0 { - n += 9 - } - if x.Round != 0 { - n += 9 - } - if x.PolRound != 0 { - n += 1 + runtime.Sov(uint64(x.PolRound)) - } - if x.BlockId != nil { - l = options.Size(x.BlockId) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Timestamp != nil { - l = options.Size(x.Timestamp) - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.ChainId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*CanonicalProposal) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.ChainId) > 0 { - i -= len(x.ChainId) - copy(dAtA[i:], x.ChainId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ChainId))) - i-- - dAtA[i] = 0x3a - } - if x.Timestamp != nil { - encoded, err := options.Marshal(x.Timestamp) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x32 - } - if x.BlockId != nil { - encoded, err := options.Marshal(x.BlockId) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x2a - } - if x.PolRound != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.PolRound)) - i-- - dAtA[i] = 0x20 - } - if x.Round != 0 { - i -= 8 - binary.LittleEndian.PutUint64(dAtA[i:], uint64(x.Round)) - i-- - dAtA[i] = 0x19 - } - if x.Height != 0 { - i -= 8 - binary.LittleEndian.PutUint64(dAtA[i:], uint64(x.Height)) - i-- - dAtA[i] = 0x11 - } - if x.Type_ != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Type_)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*CanonicalProposal) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CanonicalProposal: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CanonicalProposal: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Type_", wireType) - } - x.Type_ = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Type_ |= SignedMsgType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 1 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) - } - x.Height = 0 - if (iNdEx + 8) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Height = int64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - case 3: - if wireType != 1 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Round", wireType) - } - x.Round = 0 - if (iNdEx + 8) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Round = int64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - case 4: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PolRound", wireType) - } - x.PolRound = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.PolRound |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockId", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.BlockId == nil { - x.BlockId = &CanonicalBlockID{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.BlockId); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Timestamp == nil { - x.Timestamp = ×tamppb.Timestamp{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Timestamp); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_CanonicalVote protoreflect.MessageDescriptor - fd_CanonicalVote_type protoreflect.FieldDescriptor - fd_CanonicalVote_height protoreflect.FieldDescriptor - fd_CanonicalVote_round protoreflect.FieldDescriptor - fd_CanonicalVote_block_id protoreflect.FieldDescriptor - fd_CanonicalVote_timestamp protoreflect.FieldDescriptor - fd_CanonicalVote_chain_id protoreflect.FieldDescriptor -) - -func init() { - file_cometbft_types_v2_canonical_proto_init() - md_CanonicalVote = File_cometbft_types_v2_canonical_proto.Messages().ByName("CanonicalVote") - fd_CanonicalVote_type = md_CanonicalVote.Fields().ByName("type") - fd_CanonicalVote_height = md_CanonicalVote.Fields().ByName("height") - fd_CanonicalVote_round = md_CanonicalVote.Fields().ByName("round") - fd_CanonicalVote_block_id = md_CanonicalVote.Fields().ByName("block_id") - fd_CanonicalVote_timestamp = md_CanonicalVote.Fields().ByName("timestamp") - fd_CanonicalVote_chain_id = md_CanonicalVote.Fields().ByName("chain_id") -} - -var _ protoreflect.Message = (*fastReflection_CanonicalVote)(nil) - -type fastReflection_CanonicalVote CanonicalVote - -func (x *CanonicalVote) ProtoReflect() protoreflect.Message { - return (*fastReflection_CanonicalVote)(x) -} - -func (x *CanonicalVote) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_canonical_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_CanonicalVote_messageType fastReflection_CanonicalVote_messageType -var _ protoreflect.MessageType = fastReflection_CanonicalVote_messageType{} - -type fastReflection_CanonicalVote_messageType struct{} - -func (x fastReflection_CanonicalVote_messageType) Zero() protoreflect.Message { - return (*fastReflection_CanonicalVote)(nil) -} -func (x fastReflection_CanonicalVote_messageType) New() protoreflect.Message { - return new(fastReflection_CanonicalVote) -} -func (x fastReflection_CanonicalVote_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_CanonicalVote -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_CanonicalVote) Descriptor() protoreflect.MessageDescriptor { - return md_CanonicalVote -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_CanonicalVote) Type() protoreflect.MessageType { - return _fastReflection_CanonicalVote_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_CanonicalVote) New() protoreflect.Message { - return new(fastReflection_CanonicalVote) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_CanonicalVote) Interface() protoreflect.ProtoMessage { - return (*CanonicalVote)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_CanonicalVote) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Type_ != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Type_)) - if !f(fd_CanonicalVote_type, value) { - return - } - } - if x.Height != int64(0) { - value := protoreflect.ValueOfInt64(x.Height) - if !f(fd_CanonicalVote_height, value) { - return - } - } - if x.Round != int64(0) { - value := protoreflect.ValueOfInt64(x.Round) - if !f(fd_CanonicalVote_round, value) { - return - } - } - if x.BlockId != nil { - value := protoreflect.ValueOfMessage(x.BlockId.ProtoReflect()) - if !f(fd_CanonicalVote_block_id, value) { - return - } - } - if x.Timestamp != nil { - value := protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) - if !f(fd_CanonicalVote_timestamp, value) { - return - } - } - if x.ChainId != "" { - value := protoreflect.ValueOfString(x.ChainId) - if !f(fd_CanonicalVote_chain_id, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_CanonicalVote) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cometbft.types.v2.CanonicalVote.type": - return x.Type_ != 0 - case "cometbft.types.v2.CanonicalVote.height": - return x.Height != int64(0) - case "cometbft.types.v2.CanonicalVote.round": - return x.Round != int64(0) - case "cometbft.types.v2.CanonicalVote.block_id": - return x.BlockId != nil - case "cometbft.types.v2.CanonicalVote.timestamp": - return x.Timestamp != nil - case "cometbft.types.v2.CanonicalVote.chain_id": - return x.ChainId != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CanonicalVote")) - } - panic(fmt.Errorf("message cometbft.types.v2.CanonicalVote does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CanonicalVote) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cometbft.types.v2.CanonicalVote.type": - x.Type_ = 0 - case "cometbft.types.v2.CanonicalVote.height": - x.Height = int64(0) - case "cometbft.types.v2.CanonicalVote.round": - x.Round = int64(0) - case "cometbft.types.v2.CanonicalVote.block_id": - x.BlockId = nil - case "cometbft.types.v2.CanonicalVote.timestamp": - x.Timestamp = nil - case "cometbft.types.v2.CanonicalVote.chain_id": - x.ChainId = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CanonicalVote")) - } - panic(fmt.Errorf("message cometbft.types.v2.CanonicalVote does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_CanonicalVote) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cometbft.types.v2.CanonicalVote.type": - value := x.Type_ - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "cometbft.types.v2.CanonicalVote.height": - value := x.Height - return protoreflect.ValueOfInt64(value) - case "cometbft.types.v2.CanonicalVote.round": - value := x.Round - return protoreflect.ValueOfInt64(value) - case "cometbft.types.v2.CanonicalVote.block_id": - value := x.BlockId - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.CanonicalVote.timestamp": - value := x.Timestamp - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.CanonicalVote.chain_id": - value := x.ChainId - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CanonicalVote")) - } - panic(fmt.Errorf("message cometbft.types.v2.CanonicalVote does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CanonicalVote) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cometbft.types.v2.CanonicalVote.type": - x.Type_ = (SignedMsgType)(value.Enum()) - case "cometbft.types.v2.CanonicalVote.height": - x.Height = value.Int() - case "cometbft.types.v2.CanonicalVote.round": - x.Round = value.Int() - case "cometbft.types.v2.CanonicalVote.block_id": - x.BlockId = value.Message().Interface().(*CanonicalBlockID) - case "cometbft.types.v2.CanonicalVote.timestamp": - x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) - case "cometbft.types.v2.CanonicalVote.chain_id": - x.ChainId = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CanonicalVote")) - } - panic(fmt.Errorf("message cometbft.types.v2.CanonicalVote does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CanonicalVote) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cometbft.types.v2.CanonicalVote.block_id": - if x.BlockId == nil { - x.BlockId = new(CanonicalBlockID) - } - return protoreflect.ValueOfMessage(x.BlockId.ProtoReflect()) - case "cometbft.types.v2.CanonicalVote.timestamp": - if x.Timestamp == nil { - x.Timestamp = new(timestamppb.Timestamp) - } - return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) - case "cometbft.types.v2.CanonicalVote.type": - panic(fmt.Errorf("field type of message cometbft.types.v2.CanonicalVote is not mutable")) - case "cometbft.types.v2.CanonicalVote.height": - panic(fmt.Errorf("field height of message cometbft.types.v2.CanonicalVote is not mutable")) - case "cometbft.types.v2.CanonicalVote.round": - panic(fmt.Errorf("field round of message cometbft.types.v2.CanonicalVote is not mutable")) - case "cometbft.types.v2.CanonicalVote.chain_id": - panic(fmt.Errorf("field chain_id of message cometbft.types.v2.CanonicalVote is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CanonicalVote")) - } - panic(fmt.Errorf("message cometbft.types.v2.CanonicalVote does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_CanonicalVote) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cometbft.types.v2.CanonicalVote.type": - return protoreflect.ValueOfEnum(0) - case "cometbft.types.v2.CanonicalVote.height": - return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.types.v2.CanonicalVote.round": - return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.types.v2.CanonicalVote.block_id": - m := new(CanonicalBlockID) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.CanonicalVote.timestamp": - m := new(timestamppb.Timestamp) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.CanonicalVote.chain_id": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CanonicalVote")) - } - panic(fmt.Errorf("message cometbft.types.v2.CanonicalVote does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_CanonicalVote) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.CanonicalVote", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_CanonicalVote) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CanonicalVote) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_CanonicalVote) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_CanonicalVote) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*CanonicalVote) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Type_ != 0 { - n += 1 + runtime.Sov(uint64(x.Type_)) - } - if x.Height != 0 { - n += 9 - } - if x.Round != 0 { - n += 9 - } - if x.BlockId != nil { - l = options.Size(x.BlockId) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Timestamp != nil { - l = options.Size(x.Timestamp) - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.ChainId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*CanonicalVote) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.ChainId) > 0 { - i -= len(x.ChainId) - copy(dAtA[i:], x.ChainId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ChainId))) - i-- - dAtA[i] = 0x32 - } - if x.Timestamp != nil { - encoded, err := options.Marshal(x.Timestamp) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x2a - } - if x.BlockId != nil { - encoded, err := options.Marshal(x.BlockId) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x22 - } - if x.Round != 0 { - i -= 8 - binary.LittleEndian.PutUint64(dAtA[i:], uint64(x.Round)) - i-- - dAtA[i] = 0x19 - } - if x.Height != 0 { - i -= 8 - binary.LittleEndian.PutUint64(dAtA[i:], uint64(x.Height)) - i-- - dAtA[i] = 0x11 - } - if x.Type_ != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Type_)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*CanonicalVote) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CanonicalVote: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CanonicalVote: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Type_", wireType) - } - x.Type_ = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Type_ |= SignedMsgType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 1 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) - } - x.Height = 0 - if (iNdEx + 8) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Height = int64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - case 3: - if wireType != 1 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Round", wireType) - } - x.Round = 0 - if (iNdEx + 8) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Round = int64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockId", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.BlockId == nil { - x.BlockId = &CanonicalBlockID{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.BlockId); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Timestamp == nil { - x.Timestamp = ×tamppb.Timestamp{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Timestamp); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_CanonicalVoteExtension protoreflect.MessageDescriptor - fd_CanonicalVoteExtension_extension protoreflect.FieldDescriptor - fd_CanonicalVoteExtension_height protoreflect.FieldDescriptor - fd_CanonicalVoteExtension_round protoreflect.FieldDescriptor - fd_CanonicalVoteExtension_chain_id protoreflect.FieldDescriptor -) - -func init() { - file_cometbft_types_v2_canonical_proto_init() - md_CanonicalVoteExtension = File_cometbft_types_v2_canonical_proto.Messages().ByName("CanonicalVoteExtension") - fd_CanonicalVoteExtension_extension = md_CanonicalVoteExtension.Fields().ByName("extension") - fd_CanonicalVoteExtension_height = md_CanonicalVoteExtension.Fields().ByName("height") - fd_CanonicalVoteExtension_round = md_CanonicalVoteExtension.Fields().ByName("round") - fd_CanonicalVoteExtension_chain_id = md_CanonicalVoteExtension.Fields().ByName("chain_id") -} - -var _ protoreflect.Message = (*fastReflection_CanonicalVoteExtension)(nil) - -type fastReflection_CanonicalVoteExtension CanonicalVoteExtension - -func (x *CanonicalVoteExtension) ProtoReflect() protoreflect.Message { - return (*fastReflection_CanonicalVoteExtension)(x) -} - -func (x *CanonicalVoteExtension) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_canonical_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_CanonicalVoteExtension_messageType fastReflection_CanonicalVoteExtension_messageType -var _ protoreflect.MessageType = fastReflection_CanonicalVoteExtension_messageType{} - -type fastReflection_CanonicalVoteExtension_messageType struct{} - -func (x fastReflection_CanonicalVoteExtension_messageType) Zero() protoreflect.Message { - return (*fastReflection_CanonicalVoteExtension)(nil) -} -func (x fastReflection_CanonicalVoteExtension_messageType) New() protoreflect.Message { - return new(fastReflection_CanonicalVoteExtension) -} -func (x fastReflection_CanonicalVoteExtension_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_CanonicalVoteExtension -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_CanonicalVoteExtension) Descriptor() protoreflect.MessageDescriptor { - return md_CanonicalVoteExtension -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_CanonicalVoteExtension) Type() protoreflect.MessageType { - return _fastReflection_CanonicalVoteExtension_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_CanonicalVoteExtension) New() protoreflect.Message { - return new(fastReflection_CanonicalVoteExtension) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_CanonicalVoteExtension) Interface() protoreflect.ProtoMessage { - return (*CanonicalVoteExtension)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_CanonicalVoteExtension) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Extension) != 0 { - value := protoreflect.ValueOfBytes(x.Extension) - if !f(fd_CanonicalVoteExtension_extension, value) { - return - } - } - if x.Height != int64(0) { - value := protoreflect.ValueOfInt64(x.Height) - if !f(fd_CanonicalVoteExtension_height, value) { - return - } - } - if x.Round != int64(0) { - value := protoreflect.ValueOfInt64(x.Round) - if !f(fd_CanonicalVoteExtension_round, value) { - return - } - } - if x.ChainId != "" { - value := protoreflect.ValueOfString(x.ChainId) - if !f(fd_CanonicalVoteExtension_chain_id, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_CanonicalVoteExtension) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cometbft.types.v2.CanonicalVoteExtension.extension": - return len(x.Extension) != 0 - case "cometbft.types.v2.CanonicalVoteExtension.height": - return x.Height != int64(0) - case "cometbft.types.v2.CanonicalVoteExtension.round": - return x.Round != int64(0) - case "cometbft.types.v2.CanonicalVoteExtension.chain_id": - return x.ChainId != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CanonicalVoteExtension")) - } - panic(fmt.Errorf("message cometbft.types.v2.CanonicalVoteExtension does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CanonicalVoteExtension) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cometbft.types.v2.CanonicalVoteExtension.extension": - x.Extension = nil - case "cometbft.types.v2.CanonicalVoteExtension.height": - x.Height = int64(0) - case "cometbft.types.v2.CanonicalVoteExtension.round": - x.Round = int64(0) - case "cometbft.types.v2.CanonicalVoteExtension.chain_id": - x.ChainId = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CanonicalVoteExtension")) - } - panic(fmt.Errorf("message cometbft.types.v2.CanonicalVoteExtension does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_CanonicalVoteExtension) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cometbft.types.v2.CanonicalVoteExtension.extension": - value := x.Extension - return protoreflect.ValueOfBytes(value) - case "cometbft.types.v2.CanonicalVoteExtension.height": - value := x.Height - return protoreflect.ValueOfInt64(value) - case "cometbft.types.v2.CanonicalVoteExtension.round": - value := x.Round - return protoreflect.ValueOfInt64(value) - case "cometbft.types.v2.CanonicalVoteExtension.chain_id": - value := x.ChainId - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CanonicalVoteExtension")) - } - panic(fmt.Errorf("message cometbft.types.v2.CanonicalVoteExtension does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CanonicalVoteExtension) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cometbft.types.v2.CanonicalVoteExtension.extension": - x.Extension = value.Bytes() - case "cometbft.types.v2.CanonicalVoteExtension.height": - x.Height = value.Int() - case "cometbft.types.v2.CanonicalVoteExtension.round": - x.Round = value.Int() - case "cometbft.types.v2.CanonicalVoteExtension.chain_id": - x.ChainId = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CanonicalVoteExtension")) - } - panic(fmt.Errorf("message cometbft.types.v2.CanonicalVoteExtension does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CanonicalVoteExtension) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cometbft.types.v2.CanonicalVoteExtension.extension": - panic(fmt.Errorf("field extension of message cometbft.types.v2.CanonicalVoteExtension is not mutable")) - case "cometbft.types.v2.CanonicalVoteExtension.height": - panic(fmt.Errorf("field height of message cometbft.types.v2.CanonicalVoteExtension is not mutable")) - case "cometbft.types.v2.CanonicalVoteExtension.round": - panic(fmt.Errorf("field round of message cometbft.types.v2.CanonicalVoteExtension is not mutable")) - case "cometbft.types.v2.CanonicalVoteExtension.chain_id": - panic(fmt.Errorf("field chain_id of message cometbft.types.v2.CanonicalVoteExtension is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CanonicalVoteExtension")) - } - panic(fmt.Errorf("message cometbft.types.v2.CanonicalVoteExtension does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_CanonicalVoteExtension) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cometbft.types.v2.CanonicalVoteExtension.extension": - return protoreflect.ValueOfBytes(nil) - case "cometbft.types.v2.CanonicalVoteExtension.height": - return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.types.v2.CanonicalVoteExtension.round": - return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.types.v2.CanonicalVoteExtension.chain_id": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CanonicalVoteExtension")) - } - panic(fmt.Errorf("message cometbft.types.v2.CanonicalVoteExtension does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_CanonicalVoteExtension) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.CanonicalVoteExtension", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_CanonicalVoteExtension) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CanonicalVoteExtension) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_CanonicalVoteExtension) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_CanonicalVoteExtension) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*CanonicalVoteExtension) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Extension) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Height != 0 { - n += 9 - } - if x.Round != 0 { - n += 9 - } - l = len(x.ChainId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*CanonicalVoteExtension) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.ChainId) > 0 { - i -= len(x.ChainId) - copy(dAtA[i:], x.ChainId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ChainId))) - i-- - dAtA[i] = 0x22 - } - if x.Round != 0 { - i -= 8 - binary.LittleEndian.PutUint64(dAtA[i:], uint64(x.Round)) - i-- - dAtA[i] = 0x19 - } - if x.Height != 0 { - i -= 8 - binary.LittleEndian.PutUint64(dAtA[i:], uint64(x.Height)) - i-- - dAtA[i] = 0x11 - } - if len(x.Extension) > 0 { - i -= len(x.Extension) - copy(dAtA[i:], x.Extension) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Extension))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*CanonicalVoteExtension) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CanonicalVoteExtension: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CanonicalVoteExtension: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Extension", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Extension = append(x.Extension[:0], dAtA[iNdEx:postIndex]...) - if x.Extension == nil { - x.Extension = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 1 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) - } - x.Height = 0 - if (iNdEx + 8) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Height = int64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - case 3: - if wireType != 1 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Round", wireType) - } - x.Round = 0 - if (iNdEx + 8) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Round = int64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cometbft/types/v2/canonical.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// CanonicalBlockID is a canonical representation of a BlockID, which gets -// serialized and signed. -type CanonicalBlockID struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` - PartSetHeader *CanonicalPartSetHeader `protobuf:"bytes,2,opt,name=part_set_header,json=partSetHeader,proto3" json:"part_set_header,omitempty"` -} - -func (x *CanonicalBlockID) Reset() { - *x = CanonicalBlockID{} - if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_canonical_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CanonicalBlockID) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CanonicalBlockID) ProtoMessage() {} - -// Deprecated: Use CanonicalBlockID.ProtoReflect.Descriptor instead. -func (*CanonicalBlockID) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_canonical_proto_rawDescGZIP(), []int{0} -} - -func (x *CanonicalBlockID) GetHash() []byte { - if x != nil { - return x.Hash - } - return nil -} - -func (x *CanonicalBlockID) GetPartSetHeader() *CanonicalPartSetHeader { - if x != nil { - return x.PartSetHeader - } - return nil -} - -// CanonicalPartSetHeader is a canonical representation of a PartSetHeader, -// which gets serialized and signed. -type CanonicalPartSetHeader struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` - Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` -} - -func (x *CanonicalPartSetHeader) Reset() { - *x = CanonicalPartSetHeader{} - if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_canonical_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CanonicalPartSetHeader) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CanonicalPartSetHeader) ProtoMessage() {} - -// Deprecated: Use CanonicalPartSetHeader.ProtoReflect.Descriptor instead. -func (*CanonicalPartSetHeader) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_canonical_proto_rawDescGZIP(), []int{1} -} - -func (x *CanonicalPartSetHeader) GetTotal() uint32 { - if x != nil { - return x.Total - } - return 0 -} - -func (x *CanonicalPartSetHeader) GetHash() []byte { - if x != nil { - return x.Hash - } - return nil -} - -// CanonicalProposal is a canonical representation of a Proposal, which gets -// serialized and signed. -type CanonicalProposal struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Type_ SignedMsgType `protobuf:"varint,1,opt,name=type,proto3,enum=cometbft.types.v2.SignedMsgType" json:"type,omitempty"` // type alias for byte - Height int64 `protobuf:"fixed64,2,opt,name=height,proto3" json:"height,omitempty"` // canonicalization requires fixed size encoding here - Round int64 `protobuf:"fixed64,3,opt,name=round,proto3" json:"round,omitempty"` // canonicalization requires fixed size encoding here - PolRound int64 `protobuf:"varint,4,opt,name=pol_round,json=polRound,proto3" json:"pol_round,omitempty"` - BlockId *CanonicalBlockID `protobuf:"bytes,5,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` - Timestamp *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - ChainId string `protobuf:"bytes,7,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` -} - -func (x *CanonicalProposal) Reset() { - *x = CanonicalProposal{} - if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_canonical_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CanonicalProposal) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CanonicalProposal) ProtoMessage() {} - -// Deprecated: Use CanonicalProposal.ProtoReflect.Descriptor instead. -func (*CanonicalProposal) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_canonical_proto_rawDescGZIP(), []int{2} -} - -func (x *CanonicalProposal) GetType_() SignedMsgType { - if x != nil { - return x.Type_ - } - return SignedMsgType_SIGNED_MSG_TYPE_UNKNOWN -} - -func (x *CanonicalProposal) GetHeight() int64 { - if x != nil { - return x.Height - } - return 0 -} - -func (x *CanonicalProposal) GetRound() int64 { - if x != nil { - return x.Round - } - return 0 -} - -func (x *CanonicalProposal) GetPolRound() int64 { - if x != nil { - return x.PolRound - } - return 0 -} - -func (x *CanonicalProposal) GetBlockId() *CanonicalBlockID { - if x != nil { - return x.BlockId - } - return nil -} - -func (x *CanonicalProposal) GetTimestamp() *timestamppb.Timestamp { - if x != nil { - return x.Timestamp - } - return nil -} - -func (x *CanonicalProposal) GetChainId() string { - if x != nil { - return x.ChainId - } - return "" -} - -// CanonicalVote is a canonical representation of a Vote, which gets -// serialized and signed. -type CanonicalVote struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Type_ SignedMsgType `protobuf:"varint,1,opt,name=type,proto3,enum=cometbft.types.v2.SignedMsgType" json:"type,omitempty"` // type alias for byte - Height int64 `protobuf:"fixed64,2,opt,name=height,proto3" json:"height,omitempty"` // canonicalization requires fixed size encoding here - Round int64 `protobuf:"fixed64,3,opt,name=round,proto3" json:"round,omitempty"` // canonicalization requires fixed size encoding here - BlockId *CanonicalBlockID `protobuf:"bytes,4,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` - Timestamp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - ChainId string `protobuf:"bytes,6,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` -} - -func (x *CanonicalVote) Reset() { - *x = CanonicalVote{} - if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_canonical_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CanonicalVote) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CanonicalVote) ProtoMessage() {} - -// Deprecated: Use CanonicalVote.ProtoReflect.Descriptor instead. -func (*CanonicalVote) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_canonical_proto_rawDescGZIP(), []int{3} -} - -func (x *CanonicalVote) GetType_() SignedMsgType { - if x != nil { - return x.Type_ - } - return SignedMsgType_SIGNED_MSG_TYPE_UNKNOWN -} - -func (x *CanonicalVote) GetHeight() int64 { - if x != nil { - return x.Height - } - return 0 -} - -func (x *CanonicalVote) GetRound() int64 { - if x != nil { - return x.Round - } - return 0 -} - -func (x *CanonicalVote) GetBlockId() *CanonicalBlockID { - if x != nil { - return x.BlockId - } - return nil -} - -func (x *CanonicalVote) GetTimestamp() *timestamppb.Timestamp { - if x != nil { - return x.Timestamp - } - return nil -} - -func (x *CanonicalVote) GetChainId() string { - if x != nil { - return x.ChainId - } - return "" -} - -// CanonicalVoteExtension provides us a way to serialize a vote extension from -// a particular validator such that we can sign over those serialized bytes. -type CanonicalVoteExtension struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Extension []byte `protobuf:"bytes,1,opt,name=extension,proto3" json:"extension,omitempty"` - Height int64 `protobuf:"fixed64,2,opt,name=height,proto3" json:"height,omitempty"` - Round int64 `protobuf:"fixed64,3,opt,name=round,proto3" json:"round,omitempty"` - ChainId string `protobuf:"bytes,4,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` -} - -func (x *CanonicalVoteExtension) Reset() { - *x = CanonicalVoteExtension{} - if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_canonical_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CanonicalVoteExtension) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CanonicalVoteExtension) ProtoMessage() {} - -// Deprecated: Use CanonicalVoteExtension.ProtoReflect.Descriptor instead. -func (*CanonicalVoteExtension) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_canonical_proto_rawDescGZIP(), []int{4} -} - -func (x *CanonicalVoteExtension) GetExtension() []byte { - if x != nil { - return x.Extension - } - return nil -} - -func (x *CanonicalVoteExtension) GetHeight() int64 { - if x != nil { - return x.Height - } - return 0 -} - -func (x *CanonicalVoteExtension) GetRound() int64 { - if x != nil { - return x.Round - } - return 0 -} - -func (x *CanonicalVoteExtension) GetChainId() string { - if x != nil { - return x.ChainId - } - return "" -} - -var File_cometbft_types_v2_canonical_proto protoreflect.FileDescriptor - -var file_cometbft_types_v2_canonical_proto_rawDesc = []byte{ - 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x61, 0x6e, 0x6f, 0x6e, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x6f, - 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x32, 0x2f, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7f, 0x0a, 0x10, - 0x43, 0x61, 0x6e, 0x6f, 0x6e, 0x69, 0x63, 0x61, 0x6c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, - 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, - 0x68, 0x61, 0x73, 0x68, 0x12, 0x57, 0x0a, 0x0f, 0x70, 0x61, 0x72, 0x74, 0x5f, 0x73, 0x65, 0x74, - 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, - 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, - 0x32, 0x2e, 0x43, 0x61, 0x6e, 0x6f, 0x6e, 0x69, 0x63, 0x61, 0x6c, 0x50, 0x61, 0x72, 0x74, 0x53, - 0x65, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0d, - 0x70, 0x61, 0x72, 0x74, 0x53, 0x65, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22, 0x42, 0x0a, - 0x16, 0x43, 0x61, 0x6e, 0x6f, 0x6e, 0x69, 0x63, 0x61, 0x6c, 0x50, 0x61, 0x72, 0x74, 0x53, 0x65, - 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x12, 0x0a, - 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x68, 0x61, 0x73, - 0x68, 0x22, 0xdb, 0x02, 0x0a, 0x11, 0x43, 0x61, 0x6e, 0x6f, 0x6e, 0x69, 0x63, 0x61, 0x6c, 0x50, - 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x34, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, - 0x4d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, - 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x10, 0x52, 0x06, 0x68, - 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x10, 0x52, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x29, 0x0a, 0x09, 0x70, - 0x6f, 0x6c, 0x5f, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x42, 0x0c, - 0xe2, 0xde, 0x1f, 0x08, 0x50, 0x4f, 0x4c, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x52, 0x08, 0x70, 0x6f, - 0x6c, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x4b, 0x0a, 0x08, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, - 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, - 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x61, 0x6e, - 0x6f, 0x6e, 0x69, 0x63, 0x61, 0x6c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x42, 0x0b, 0xe2, - 0xde, 0x1f, 0x07, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x63, - 0x6b, 0x49, 0x64, 0x12, 0x42, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x74, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x26, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe2, 0xde, 0x1f, 0x07, 0x43, - 0x68, 0x61, 0x69, 0x6e, 0x49, 0x44, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, - 0xac, 0x02, 0x0a, 0x0d, 0x43, 0x61, 0x6e, 0x6f, 0x6e, 0x69, 0x63, 0x61, 0x6c, 0x56, 0x6f, 0x74, - 0x65, 0x12, 0x34, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x20, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x4d, 0x73, 0x67, 0x54, 0x79, 0x70, - 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, - 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x10, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, - 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x10, 0x52, 0x05, - 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x4b, 0x0a, 0x08, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, - 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, - 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x61, 0x6e, 0x6f, - 0x6e, 0x69, 0x63, 0x61, 0x6c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x42, 0x0b, 0xe2, 0xde, - 0x1f, 0x07, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x63, 0x6b, - 0x49, 0x64, 0x12, 0x42, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x74, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x26, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, - 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe2, 0xde, 0x1f, 0x07, 0x43, 0x68, - 0x61, 0x69, 0x6e, 0x49, 0x44, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0x7f, - 0x0a, 0x16, 0x43, 0x61, 0x6e, 0x6f, 0x6e, 0x69, 0x63, 0x61, 0x6c, 0x56, 0x6f, 0x74, 0x65, 0x45, - 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x78, 0x74, 0x65, - 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x65, 0x78, 0x74, - 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x10, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x14, - 0x0a, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x10, 0x52, 0x05, 0x72, - 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x42, - 0xb9, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x42, 0x0e, 0x43, 0x61, 0x6e, 0x6f, 0x6e, - 0x69, 0x63, 0x61, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2a, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, - 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x32, 0x3b, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x76, 0x32, 0xa2, 0x02, 0x03, 0x43, 0x54, 0x58, 0xaa, 0x02, 0x11, - 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, - 0x32, 0xca, 0x02, 0x11, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x5c, 0x54, 0x79, 0x70, - 0x65, 0x73, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x1d, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, - 0x5c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, - 0x3a, 0x3a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, -} - -var ( - file_cometbft_types_v2_canonical_proto_rawDescOnce sync.Once - file_cometbft_types_v2_canonical_proto_rawDescData = file_cometbft_types_v2_canonical_proto_rawDesc -) - -func file_cometbft_types_v2_canonical_proto_rawDescGZIP() []byte { - file_cometbft_types_v2_canonical_proto_rawDescOnce.Do(func() { - file_cometbft_types_v2_canonical_proto_rawDescData = protoimpl.X.CompressGZIP(file_cometbft_types_v2_canonical_proto_rawDescData) - }) - return file_cometbft_types_v2_canonical_proto_rawDescData -} - -var file_cometbft_types_v2_canonical_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_cometbft_types_v2_canonical_proto_goTypes = []interface{}{ - (*CanonicalBlockID)(nil), // 0: cometbft.types.v2.CanonicalBlockID - (*CanonicalPartSetHeader)(nil), // 1: cometbft.types.v2.CanonicalPartSetHeader - (*CanonicalProposal)(nil), // 2: cometbft.types.v2.CanonicalProposal - (*CanonicalVote)(nil), // 3: cometbft.types.v2.CanonicalVote - (*CanonicalVoteExtension)(nil), // 4: cometbft.types.v2.CanonicalVoteExtension - (SignedMsgType)(0), // 5: cometbft.types.v2.SignedMsgType - (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp -} -var file_cometbft_types_v2_canonical_proto_depIdxs = []int32{ - 1, // 0: cometbft.types.v2.CanonicalBlockID.part_set_header:type_name -> cometbft.types.v2.CanonicalPartSetHeader - 5, // 1: cometbft.types.v2.CanonicalProposal.type:type_name -> cometbft.types.v2.SignedMsgType - 0, // 2: cometbft.types.v2.CanonicalProposal.block_id:type_name -> cometbft.types.v2.CanonicalBlockID - 6, // 3: cometbft.types.v2.CanonicalProposal.timestamp:type_name -> google.protobuf.Timestamp - 5, // 4: cometbft.types.v2.CanonicalVote.type:type_name -> cometbft.types.v2.SignedMsgType - 0, // 5: cometbft.types.v2.CanonicalVote.block_id:type_name -> cometbft.types.v2.CanonicalBlockID - 6, // 6: cometbft.types.v2.CanonicalVote.timestamp:type_name -> google.protobuf.Timestamp - 7, // [7:7] is the sub-list for method output_type - 7, // [7:7] is the sub-list for method input_type - 7, // [7:7] is the sub-list for extension type_name - 7, // [7:7] is the sub-list for extension extendee - 0, // [0:7] is the sub-list for field type_name -} - -func init() { file_cometbft_types_v2_canonical_proto_init() } -func file_cometbft_types_v2_canonical_proto_init() { - if File_cometbft_types_v2_canonical_proto != nil { - return - } - file_cometbft_types_v2_types_proto_init() - if !protoimpl.UnsafeEnabled { - file_cometbft_types_v2_canonical_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CanonicalBlockID); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cometbft_types_v2_canonical_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CanonicalPartSetHeader); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cometbft_types_v2_canonical_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CanonicalProposal); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cometbft_types_v2_canonical_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CanonicalVote); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cometbft_types_v2_canonical_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CanonicalVoteExtension); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cometbft_types_v2_canonical_proto_rawDesc, - NumEnums: 0, - NumMessages: 5, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cometbft_types_v2_canonical_proto_goTypes, - DependencyIndexes: file_cometbft_types_v2_canonical_proto_depIdxs, - MessageInfos: file_cometbft_types_v2_canonical_proto_msgTypes, - }.Build() - File_cometbft_types_v2_canonical_proto = out.File - file_cometbft_types_v2_canonical_proto_rawDesc = nil - file_cometbft_types_v2_canonical_proto_goTypes = nil - file_cometbft_types_v2_canonical_proto_depIdxs = nil -} diff --git a/api/cometbft/types/v2/events.pulsar.go b/api/cometbft/types/v2/events.pulsar.go deleted file mode 100644 index c95b40caa2..0000000000 --- a/api/cometbft/types/v2/events.pulsar.go +++ /dev/null @@ -1,683 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package typesv2 - -import ( - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_EventDataRoundState protoreflect.MessageDescriptor - fd_EventDataRoundState_height protoreflect.FieldDescriptor - fd_EventDataRoundState_round protoreflect.FieldDescriptor - fd_EventDataRoundState_step protoreflect.FieldDescriptor -) - -func init() { - file_cometbft_types_v2_events_proto_init() - md_EventDataRoundState = File_cometbft_types_v2_events_proto.Messages().ByName("EventDataRoundState") - fd_EventDataRoundState_height = md_EventDataRoundState.Fields().ByName("height") - fd_EventDataRoundState_round = md_EventDataRoundState.Fields().ByName("round") - fd_EventDataRoundState_step = md_EventDataRoundState.Fields().ByName("step") -} - -var _ protoreflect.Message = (*fastReflection_EventDataRoundState)(nil) - -type fastReflection_EventDataRoundState EventDataRoundState - -func (x *EventDataRoundState) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventDataRoundState)(x) -} - -func (x *EventDataRoundState) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_events_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_EventDataRoundState_messageType fastReflection_EventDataRoundState_messageType -var _ protoreflect.MessageType = fastReflection_EventDataRoundState_messageType{} - -type fastReflection_EventDataRoundState_messageType struct{} - -func (x fastReflection_EventDataRoundState_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventDataRoundState)(nil) -} -func (x fastReflection_EventDataRoundState_messageType) New() protoreflect.Message { - return new(fastReflection_EventDataRoundState) -} -func (x fastReflection_EventDataRoundState_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventDataRoundState -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_EventDataRoundState) Descriptor() protoreflect.MessageDescriptor { - return md_EventDataRoundState -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_EventDataRoundState) Type() protoreflect.MessageType { - return _fastReflection_EventDataRoundState_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventDataRoundState) New() protoreflect.Message { - return new(fastReflection_EventDataRoundState) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_EventDataRoundState) Interface() protoreflect.ProtoMessage { - return (*EventDataRoundState)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_EventDataRoundState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Height != int64(0) { - value := protoreflect.ValueOfInt64(x.Height) - if !f(fd_EventDataRoundState_height, value) { - return - } - } - if x.Round != int32(0) { - value := protoreflect.ValueOfInt32(x.Round) - if !f(fd_EventDataRoundState_round, value) { - return - } - } - if x.Step != "" { - value := protoreflect.ValueOfString(x.Step) - if !f(fd_EventDataRoundState_step, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_EventDataRoundState) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cometbft.types.v2.EventDataRoundState.height": - return x.Height != int64(0) - case "cometbft.types.v2.EventDataRoundState.round": - return x.Round != int32(0) - case "cometbft.types.v2.EventDataRoundState.step": - return x.Step != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.EventDataRoundState")) - } - panic(fmt.Errorf("message cometbft.types.v2.EventDataRoundState does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventDataRoundState) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cometbft.types.v2.EventDataRoundState.height": - x.Height = int64(0) - case "cometbft.types.v2.EventDataRoundState.round": - x.Round = int32(0) - case "cometbft.types.v2.EventDataRoundState.step": - x.Step = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.EventDataRoundState")) - } - panic(fmt.Errorf("message cometbft.types.v2.EventDataRoundState does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_EventDataRoundState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cometbft.types.v2.EventDataRoundState.height": - value := x.Height - return protoreflect.ValueOfInt64(value) - case "cometbft.types.v2.EventDataRoundState.round": - value := x.Round - return protoreflect.ValueOfInt32(value) - case "cometbft.types.v2.EventDataRoundState.step": - value := x.Step - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.EventDataRoundState")) - } - panic(fmt.Errorf("message cometbft.types.v2.EventDataRoundState does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventDataRoundState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cometbft.types.v2.EventDataRoundState.height": - x.Height = value.Int() - case "cometbft.types.v2.EventDataRoundState.round": - x.Round = int32(value.Int()) - case "cometbft.types.v2.EventDataRoundState.step": - x.Step = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.EventDataRoundState")) - } - panic(fmt.Errorf("message cometbft.types.v2.EventDataRoundState does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventDataRoundState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cometbft.types.v2.EventDataRoundState.height": - panic(fmt.Errorf("field height of message cometbft.types.v2.EventDataRoundState is not mutable")) - case "cometbft.types.v2.EventDataRoundState.round": - panic(fmt.Errorf("field round of message cometbft.types.v2.EventDataRoundState is not mutable")) - case "cometbft.types.v2.EventDataRoundState.step": - panic(fmt.Errorf("field step of message cometbft.types.v2.EventDataRoundState is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.EventDataRoundState")) - } - panic(fmt.Errorf("message cometbft.types.v2.EventDataRoundState does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_EventDataRoundState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cometbft.types.v2.EventDataRoundState.height": - return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.types.v2.EventDataRoundState.round": - return protoreflect.ValueOfInt32(int32(0)) - case "cometbft.types.v2.EventDataRoundState.step": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.EventDataRoundState")) - } - panic(fmt.Errorf("message cometbft.types.v2.EventDataRoundState does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_EventDataRoundState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.EventDataRoundState", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_EventDataRoundState) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventDataRoundState) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_EventDataRoundState) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_EventDataRoundState) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventDataRoundState) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Height != 0 { - n += 1 + runtime.Sov(uint64(x.Height)) - } - if x.Round != 0 { - n += 1 + runtime.Sov(uint64(x.Round)) - } - l = len(x.Step) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EventDataRoundState) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Step) > 0 { - i -= len(x.Step) - copy(dAtA[i:], x.Step) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Step))) - i-- - dAtA[i] = 0x1a - } - if x.Round != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Round)) - i-- - dAtA[i] = 0x10 - } - if x.Height != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Height)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EventDataRoundState) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventDataRoundState: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventDataRoundState: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) - } - x.Height = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Height |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Round", wireType) - } - x.Round = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Round |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Step", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Step = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cometbft/types/v2/events.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// EventDataRoundState is emitted with each new round step. -type EventDataRoundState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` - Round int32 `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"` - Step string `protobuf:"bytes,3,opt,name=step,proto3" json:"step,omitempty"` -} - -func (x *EventDataRoundState) Reset() { - *x = EventDataRoundState{} - if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_events_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EventDataRoundState) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EventDataRoundState) ProtoMessage() {} - -// Deprecated: Use EventDataRoundState.ProtoReflect.Descriptor instead. -func (*EventDataRoundState) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_events_proto_rawDescGZIP(), []int{0} -} - -func (x *EventDataRoundState) GetHeight() int64 { - if x != nil { - return x.Height - } - return 0 -} - -func (x *EventDataRoundState) GetRound() int32 { - if x != nil { - return x.Round - } - return 0 -} - -func (x *EventDataRoundState) GetStep() string { - if x != nil { - return x.Step - } - return "" -} - -var File_cometbft_types_v2_events_proto protoreflect.FileDescriptor - -var file_cometbft_types_v2_events_proto_rawDesc = []byte{ - 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2f, 0x76, 0x32, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x11, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x76, 0x32, 0x22, 0x57, 0x0a, 0x13, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, - 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, - 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, - 0x68, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x74, 0x65, 0x70, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x74, 0x65, 0x70, 0x42, 0xb6, 0x01, 0x0a, - 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x42, 0x0b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, - 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, - 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x32, 0x3b, 0x74, 0x79, 0x70, 0x65, 0x73, 0x76, - 0x32, 0xa2, 0x02, 0x03, 0x43, 0x54, 0x58, 0xaa, 0x02, 0x11, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, - 0x66, 0x74, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x11, 0x43, 0x6f, - 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x5c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x56, 0x32, 0xe2, - 0x02, 0x1d, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x5c, 0x54, 0x79, 0x70, 0x65, 0x73, - 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, - 0x02, 0x13, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x3a, 0x3a, 0x54, 0x79, 0x70, 0x65, - 0x73, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cometbft_types_v2_events_proto_rawDescOnce sync.Once - file_cometbft_types_v2_events_proto_rawDescData = file_cometbft_types_v2_events_proto_rawDesc -) - -func file_cometbft_types_v2_events_proto_rawDescGZIP() []byte { - file_cometbft_types_v2_events_proto_rawDescOnce.Do(func() { - file_cometbft_types_v2_events_proto_rawDescData = protoimpl.X.CompressGZIP(file_cometbft_types_v2_events_proto_rawDescData) - }) - return file_cometbft_types_v2_events_proto_rawDescData -} - -var file_cometbft_types_v2_events_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_cometbft_types_v2_events_proto_goTypes = []interface{}{ - (*EventDataRoundState)(nil), // 0: cometbft.types.v2.EventDataRoundState -} -var file_cometbft_types_v2_events_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_cometbft_types_v2_events_proto_init() } -func file_cometbft_types_v2_events_proto_init() { - if File_cometbft_types_v2_events_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cometbft_types_v2_events_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventDataRoundState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cometbft_types_v2_events_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cometbft_types_v2_events_proto_goTypes, - DependencyIndexes: file_cometbft_types_v2_events_proto_depIdxs, - MessageInfos: file_cometbft_types_v2_events_proto_msgTypes, - }.Build() - File_cometbft_types_v2_events_proto = out.File - file_cometbft_types_v2_events_proto_rawDesc = nil - file_cometbft_types_v2_events_proto_goTypes = nil - file_cometbft_types_v2_events_proto_depIdxs = nil -} diff --git a/api/cosmos/base/abci/v1beta1/abci.pulsar.go b/api/cosmos/base/abci/v1beta1/abci.pulsar.go index 915570d4b7..2c103678b7 100644 --- a/api/cosmos/base/abci/v1beta1/abci.pulsar.go +++ b/api/cosmos/base/abci/v1beta1/abci.pulsar.go @@ -2,8 +2,8 @@ package abciv1beta1 import ( - v2 "cosmossdk.io/api/cometbft/abci/v2" - v21 "cosmossdk.io/api/cometbft/types/v2" + abci "cosmossdk.io/api/tendermint/abci" + types "cosmossdk.io/api/tendermint/types" fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" @@ -71,7 +71,7 @@ func (x *_TxResponse_7_list) IsValid() bool { var _ protoreflect.List = (*_TxResponse_13_list)(nil) type _TxResponse_13_list struct { - list *[]*v2.Event + list *[]*abci.Event } func (x *_TxResponse_13_list) Len() int { @@ -87,18 +87,18 @@ func (x *_TxResponse_13_list) Get(i int) protoreflect.Value { func (x *_TxResponse_13_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v2.Event) + concreteValue := valueUnwrapped.Interface().(*abci.Event) (*x.list)[i] = concreteValue } func (x *_TxResponse_13_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v2.Event) + concreteValue := valueUnwrapped.Interface().(*abci.Event) *x.list = append(*x.list, concreteValue) } func (x *_TxResponse_13_list) AppendMutable() protoreflect.Value { - v := new(v2.Event) + v := new(abci.Event) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -111,7 +111,7 @@ func (x *_TxResponse_13_list) Truncate(n int) { } func (x *_TxResponse_13_list) NewElement() protoreflect.Value { - v := new(v2.Event) + v := new(abci.Event) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -524,7 +524,7 @@ func (x *fastReflection_TxResponse) Mutable(fd protoreflect.FieldDescriptor) pro return protoreflect.ValueOfMessage(x.Tx.ProtoReflect()) case "cosmos.base.abci.v1beta1.TxResponse.events": if x.Events == nil { - x.Events = []*v2.Event{} + x.Events = []*abci.Event{} } value := &_TxResponse_13_list{list: &x.Events} return protoreflect.ValueOfList(value) @@ -588,7 +588,7 @@ func (x *fastReflection_TxResponse) NewField(fd protoreflect.FieldDescriptor) pr case "cosmos.base.abci.v1beta1.TxResponse.timestamp": return protoreflect.ValueOfString("") case "cosmos.base.abci.v1beta1.TxResponse.events": - list := []*v2.Event{} + list := []*abci.Event{} return protoreflect.ValueOfList(&_TxResponse_13_list{list: &list}) default: if fd.IsExtension() { @@ -1264,7 +1264,7 @@ func (x *fastReflection_TxResponse) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Events = append(x.Events, &v2.Event{}) + x.Events = append(x.Events, &abci.Event{}) if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Events[len(x.Events)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -3407,7 +3407,7 @@ func (x *fastReflection_GasInfo) ProtoMethods() *protoiface.Methods { var _ protoreflect.List = (*_Result_3_list)(nil) type _Result_3_list struct { - list *[]*v2.Event + list *[]*abci.Event } func (x *_Result_3_list) Len() int { @@ -3423,18 +3423,18 @@ func (x *_Result_3_list) Get(i int) protoreflect.Value { func (x *_Result_3_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v2.Event) + concreteValue := valueUnwrapped.Interface().(*abci.Event) (*x.list)[i] = concreteValue } func (x *_Result_3_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v2.Event) + concreteValue := valueUnwrapped.Interface().(*abci.Event) *x.list = append(*x.list, concreteValue) } func (x *_Result_3_list) AppendMutable() protoreflect.Value { - v := new(v2.Event) + v := new(abci.Event) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -3447,7 +3447,7 @@ func (x *_Result_3_list) Truncate(n int) { } func (x *_Result_3_list) NewElement() protoreflect.Value { - v := new(v2.Event) + v := new(abci.Event) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -3747,7 +3747,7 @@ func (x *fastReflection_Result) Mutable(fd protoreflect.FieldDescriptor) protore switch fd.FullName() { case "cosmos.base.abci.v1beta1.Result.events": if x.Events == nil { - x.Events = []*v2.Event{} + x.Events = []*abci.Event{} } value := &_Result_3_list{list: &x.Events} return protoreflect.ValueOfList(value) @@ -3779,7 +3779,7 @@ func (x *fastReflection_Result) NewField(fd protoreflect.FieldDescriptor) protor case "cosmos.base.abci.v1beta1.Result.log": return protoreflect.ValueOfString("") case "cosmos.base.abci.v1beta1.Result.events": - list := []*v2.Event{} + list := []*abci.Event{} return protoreflect.ValueOfList(&_Result_3_list{list: &list}) case "cosmos.base.abci.v1beta1.Result.msg_responses": list := []*anypb.Any{} @@ -4092,7 +4092,7 @@ func (x *fastReflection_Result) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Events = append(x.Events, &v2.Event{}) + x.Events = append(x.Events, &abci.Event{}) if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Events[len(x.Events)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -6535,7 +6535,7 @@ func (x *fastReflection_SearchTxsResult) ProtoMethods() *protoiface.Methods { var _ protoreflect.List = (*_SearchBlocksResult_6_list)(nil) type _SearchBlocksResult_6_list struct { - list *[]*v21.Block + list *[]*types.Block } func (x *_SearchBlocksResult_6_list) Len() int { @@ -6551,18 +6551,18 @@ func (x *_SearchBlocksResult_6_list) Get(i int) protoreflect.Value { func (x *_SearchBlocksResult_6_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v21.Block) + concreteValue := valueUnwrapped.Interface().(*types.Block) (*x.list)[i] = concreteValue } func (x *_SearchBlocksResult_6_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v21.Block) + concreteValue := valueUnwrapped.Interface().(*types.Block) *x.list = append(*x.list, concreteValue) } func (x *_SearchBlocksResult_6_list) AppendMutable() protoreflect.Value { - v := new(v21.Block) + v := new(types.Block) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -6575,7 +6575,7 @@ func (x *_SearchBlocksResult_6_list) Truncate(n int) { } func (x *_SearchBlocksResult_6_list) NewElement() protoreflect.Value { - v := new(v21.Block) + v := new(types.Block) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -6853,7 +6853,7 @@ func (x *fastReflection_SearchBlocksResult) Mutable(fd protoreflect.FieldDescrip switch fd.FullName() { case "cosmos.base.abci.v1beta1.SearchBlocksResult.blocks": if x.Blocks == nil { - x.Blocks = []*v21.Block{} + x.Blocks = []*types.Block{} } value := &_SearchBlocksResult_6_list{list: &x.Blocks} return protoreflect.ValueOfList(value) @@ -6891,7 +6891,7 @@ func (x *fastReflection_SearchBlocksResult) NewField(fd protoreflect.FieldDescri case "cosmos.base.abci.v1beta1.SearchBlocksResult.limit": return protoreflect.ValueOfInt64(int64(0)) case "cosmos.base.abci.v1beta1.SearchBlocksResult.blocks": - list := []*v21.Block{} + list := []*types.Block{} return protoreflect.ValueOfList(&_SearchBlocksResult_6_list{list: &list}) default: if fd.IsExtension() { @@ -7226,7 +7226,7 @@ func (x *fastReflection_SearchBlocksResult) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Blocks = append(x.Blocks, &v21.Block{}) + x.Blocks = append(x.Blocks, &types.Block{}) if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Blocks[len(x.Blocks)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -7317,7 +7317,7 @@ type TxResponse struct { // 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. - Events []*v2.Event `protobuf:"bytes,13,rep,name=events,proto3" json:"events,omitempty"` + Events []*abci.Event `protobuf:"bytes,13,rep,name=events,proto3" json:"events,omitempty"` } func (x *TxResponse) Reset() { @@ -7424,7 +7424,7 @@ func (x *TxResponse) GetTimestamp() string { return "" } -func (x *TxResponse) GetEvents() []*v2.Event { +func (x *TxResponse) GetEvents() []*abci.Event { if x != nil { return x.Events } @@ -7485,7 +7485,7 @@ func (x *ABCIMessageLog) GetEvents() []*StringEvent { return nil } -// StringEvent defines an Event object wrapper where all the attributes +// StringEvent defines en Event object wrapper where all the attributes // contain key/value pairs that are strings instead of raw bytes. type StringEvent struct { state protoimpl.MessageState @@ -7638,7 +7638,7 @@ type Result struct { Log string `protobuf:"bytes,2,opt,name=log,proto3" json:"log,omitempty"` // Events contains a slice of Event objects that were emitted during message // or handler execution. - Events []*v2.Event `protobuf:"bytes,3,rep,name=events,proto3" json:"events,omitempty"` + Events []*abci.Event `protobuf:"bytes,3,rep,name=events,proto3" json:"events,omitempty"` // msg_responses contains the Msg handler responses type packed in Anys. MsgResponses []*anypb.Any `protobuf:"bytes,4,rep,name=msg_responses,json=msgResponses,proto3" json:"msg_responses,omitempty"` } @@ -7678,7 +7678,7 @@ func (x *Result) GetLog() string { return "" } -func (x *Result) GetEvents() []*v2.Event { +func (x *Result) GetEvents() []*abci.Event { if x != nil { return x.Events } @@ -7933,7 +7933,7 @@ type SearchBlocksResult struct { // Max count blocks per page Limit int64 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` // List of blocks in current page - Blocks []*v21.Block `protobuf:"bytes,6,rep,name=blocks,proto3" json:"blocks,omitempty"` + Blocks []*types.Block `protobuf:"bytes,6,rep,name=blocks,proto3" json:"blocks,omitempty"` } func (x *SearchBlocksResult) Reset() { @@ -7991,7 +7991,7 @@ func (x *SearchBlocksResult) GetLimit() int64 { return 0 } -func (x *SearchBlocksResult) GetBlocks() []*v21.Block { +func (x *SearchBlocksResult) GetBlocks() []*types.Block { if x != nil { return x.Blocks } @@ -8006,148 +8006,148 @@ var file_cosmos_base_abci_v1beta1_abci_proto_rawDesc = []byte{ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, - 0x61, 0x62, 0x63, 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe0, 0x03, 0x0a, 0x0a, 0x54, 0x78, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, - 0x22, 0x0a, 0x06, 0x74, 0x78, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x0a, 0xe2, 0xde, 0x1f, 0x06, 0x54, 0x78, 0x48, 0x61, 0x73, 0x68, 0x52, 0x06, 0x74, 0x78, 0x68, - 0x61, 0x73, 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, - 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x61, 0x77, - 0x5f, 0x6c, 0x6f, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x61, 0x77, 0x4c, - 0x6f, 0x67, 0x12, 0x55, 0x0a, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x28, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, - 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x42, 0x43, 0x49, - 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4c, 0x6f, 0x67, 0x42, 0x17, 0xc8, 0xde, 0x1f, 0x00, - 0xaa, 0xdf, 0x1f, 0x0f, 0x41, 0x42, 0x43, 0x49, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4c, - 0x6f, 0x67, 0x73, 0x52, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x6e, 0x66, - 0x6f, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x1d, 0x0a, - 0x0a, 0x67, 0x61, 0x73, 0x5f, 0x77, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x09, 0x67, 0x61, 0x73, 0x57, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, - 0x67, 0x61, 0x73, 0x5f, 0x75, 0x73, 0x65, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, - 0x67, 0x61, 0x73, 0x55, 0x73, 0x65, 0x64, 0x12, 0x24, 0x0a, 0x02, 0x74, 0x78, 0x18, 0x0b, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x02, 0x74, 0x78, 0x12, 0x1c, 0x0a, - 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x48, 0x0a, 0x06, 0x65, - 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x6f, - 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x42, 0x17, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x35, 0x52, 0x06, 0x65, - 0x76, 0x65, 0x6e, 0x74, 0x73, 0x3a, 0x04, 0x88, 0xa0, 0x1f, 0x00, 0x22, 0xa9, 0x01, 0x0a, 0x0e, - 0x41, 0x42, 0x43, 0x49, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4c, 0x6f, 0x67, 0x12, 0x2a, - 0x0a, 0x09, 0x6d, 0x73, 0x67, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0d, 0x42, 0x0d, 0xea, 0xde, 0x1f, 0x09, 0x6d, 0x73, 0x67, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, - 0x52, 0x08, 0x6d, 0x73, 0x67, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, - 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6c, 0x6f, 0x67, 0x12, 0x53, 0x0a, 0x06, - 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x42, 0x14, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x0c, 0x53, 0x74, 0x72, - 0x69, 0x6e, 0x67, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x73, 0x3a, 0x04, 0x80, 0xdc, 0x20, 0x01, 0x22, 0x72, 0x0a, 0x0b, 0x53, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x49, 0x0a, 0x0a, 0x61, 0x74, - 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, + 0x74, 0x2f, 0x61, 0x62, 0x63, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x1c, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdf, 0x03, 0x0a, 0x0a, 0x54, 0x78, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x22, 0x0a, + 0x06, 0x74, 0x78, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xe2, + 0xde, 0x1f, 0x06, 0x54, 0x78, 0x48, 0x61, 0x73, 0x68, 0x52, 0x06, 0x74, 0x78, 0x68, 0x61, 0x73, + 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, + 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x63, + 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x61, 0x77, 0x5f, 0x6c, + 0x6f, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x61, 0x77, 0x4c, 0x6f, 0x67, + 0x12, 0x55, 0x0a, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, - 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, - 0x62, 0x75, 0x74, 0x65, 0x73, 0x3a, 0x04, 0x80, 0xdc, 0x20, 0x01, 0x22, 0x33, 0x0a, 0x09, 0x41, - 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x22, 0x43, 0x0a, 0x07, 0x47, 0x61, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1d, 0x0a, 0x0a, 0x67, - 0x61, 0x73, 0x5f, 0x77, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x42, 0x43, 0x49, 0x4d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x4c, 0x6f, 0x67, 0x42, 0x17, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, + 0x1f, 0x0f, 0x41, 0x42, 0x43, 0x49, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4c, 0x6f, 0x67, + 0x73, 0x52, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x1d, 0x0a, 0x0a, 0x67, + 0x61, 0x73, 0x5f, 0x77, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x67, 0x61, 0x73, 0x57, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x61, - 0x73, 0x5f, 0x75, 0x73, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x67, 0x61, - 0x73, 0x55, 0x73, 0x65, 0x64, 0x22, 0xbf, 0x01, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x12, 0x16, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x02, - 0x18, 0x01, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x67, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6c, 0x6f, 0x67, 0x12, 0x35, 0x0a, 0x06, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x6f, 0x6d, - 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x73, 0x12, 0x4e, 0x0a, 0x0d, 0x6d, 0x73, 0x67, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x42, 0x13, - 0xda, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, - 0x2e, 0x34, 0x36, 0x52, 0x0c, 0x6d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x73, 0x3a, 0x04, 0x88, 0xa0, 0x1f, 0x00, 0x22, 0x96, 0x01, 0x0a, 0x12, 0x53, 0x69, 0x6d, 0x75, - 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, - 0x0a, 0x08, 0x67, 0x61, 0x73, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x21, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, - 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x61, 0x73, 0x49, - 0x6e, 0x66, 0x6f, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0xd0, 0xde, 0x1f, 0x01, 0x52, 0x07, 0x67, - 0x61, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x38, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x22, 0x40, 0x0a, 0x07, 0x4d, 0x73, 0x67, 0x44, 0x61, 0x74, 0x61, 0x12, 0x19, 0x0a, 0x08, 0x6d, - 0x73, 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, - 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x3a, 0x06, 0x80, 0xdc, 0x20, 0x01, - 0x18, 0x01, 0x22, 0x9c, 0x01, 0x0a, 0x09, 0x54, 0x78, 0x4d, 0x73, 0x67, 0x44, 0x61, 0x74, 0x61, - 0x12, 0x39, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, - 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, - 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x61, 0x74, - 0x61, 0x42, 0x02, 0x18, 0x01, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x4e, 0x0a, 0x0d, 0x6d, - 0x73, 0x67, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x42, 0x13, 0xda, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x36, 0x52, 0x0c, 0x6d, - 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x3a, 0x04, 0x80, 0xdc, 0x20, - 0x01, 0x22, 0xdc, 0x01, 0x0a, 0x0f, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x54, 0x78, 0x73, 0x52, - 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, - 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, - 0x70, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1d, 0x0a, - 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, - 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6d, - 0x69, 0x74, 0x12, 0x36, 0x0a, 0x03, 0x74, 0x78, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x24, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, - 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x03, 0x74, 0x78, 0x73, 0x3a, 0x04, 0x80, 0xdc, 0x20, 0x01, - 0x22, 0xd9, 0x01, 0x0a, 0x12, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x73, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, - 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x74, 0x6f, - 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f, - 0x0a, 0x0b, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, - 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x14, - 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6c, - 0x69, 0x6d, 0x69, 0x74, 0x12, 0x30, 0x0a, 0x06, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x18, 0x06, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x06, - 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x3a, 0x04, 0x80, 0xdc, 0x20, 0x01, 0x42, 0xe7, 0x01, 0xd8, - 0xe1, 0x1e, 0x00, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x42, 0x09, 0x41, 0x62, 0x63, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x35, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x61, 0x62, 0x63, - 0x69, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x61, 0x62, 0x63, 0x69, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x42, 0x41, 0xaa, 0x02, 0x18, 0x43, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x2e, 0x41, 0x62, 0x63, 0x69, 0x2e, 0x56, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x18, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, - 0x42, 0x61, 0x73, 0x65, 0x5c, 0x41, 0x62, 0x63, 0x69, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0xe2, 0x02, 0x24, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x42, 0x61, 0x73, 0x65, 0x5c, - 0x41, 0x62, 0x63, 0x69, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x43, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x3a, 0x3a, 0x42, 0x61, 0x73, 0x65, 0x3a, 0x3a, 0x41, 0x62, 0x63, 0x69, 0x3a, 0x3a, 0x56, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x73, 0x5f, 0x75, 0x73, 0x65, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x67, 0x61, + 0x73, 0x55, 0x73, 0x65, 0x64, 0x12, 0x24, 0x0a, 0x02, 0x74, 0x78, 0x18, 0x0b, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x02, 0x74, 0x78, 0x12, 0x1c, 0x0a, 0x09, 0x74, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x47, 0x0a, 0x06, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x42, 0x17, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x35, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, + 0x74, 0x73, 0x3a, 0x04, 0x88, 0xa0, 0x1f, 0x00, 0x22, 0xa9, 0x01, 0x0a, 0x0e, 0x41, 0x42, 0x43, + 0x49, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4c, 0x6f, 0x67, 0x12, 0x2a, 0x0a, 0x09, 0x6d, + 0x73, 0x67, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x0d, + 0xea, 0xde, 0x1f, 0x09, 0x6d, 0x73, 0x67, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x08, 0x6d, + 0x73, 0x67, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x67, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6c, 0x6f, 0x67, 0x12, 0x53, 0x0a, 0x06, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x42, 0x14, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x0c, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x3a, 0x04, + 0x80, 0xdc, 0x20, 0x01, 0x22, 0x72, 0x0a, 0x0b, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x49, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x3a, 0x04, 0x80, 0xdc, 0x20, 0x01, 0x22, 0x33, 0x0a, 0x09, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x43, 0x0a, + 0x07, 0x47, 0x61, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x61, 0x73, 0x5f, + 0x77, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x67, 0x61, + 0x73, 0x57, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x61, 0x73, 0x5f, 0x75, + 0x73, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x67, 0x61, 0x73, 0x55, 0x73, + 0x65, 0x64, 0x22, 0xbe, 0x01, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x16, 0x0a, + 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x02, 0x18, 0x01, 0x52, + 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x67, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6c, 0x6f, 0x67, 0x12, 0x34, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x42, + 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x4e, 0x0a, + 0x0d, 0x6d, 0x73, 0x67, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x04, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x42, 0x13, 0xda, 0xb4, 0x2d, 0x0f, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x36, 0x52, + 0x0c, 0x6d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x3a, 0x04, 0x88, + 0xa0, 0x1f, 0x00, 0x22, 0x96, 0x01, 0x0a, 0x12, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x08, 0x67, 0x61, + 0x73, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x61, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x42, + 0x08, 0xc8, 0xde, 0x1f, 0x00, 0xd0, 0xde, 0x1f, 0x01, 0x52, 0x07, 0x67, 0x61, 0x73, 0x49, 0x6e, + 0x66, 0x6f, 0x12, 0x38, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, + 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x40, 0x0a, 0x07, + 0x4d, 0x73, 0x67, 0x44, 0x61, 0x74, 0x61, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x73, 0x67, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x3a, 0x06, 0x80, 0xdc, 0x20, 0x01, 0x18, 0x01, 0x22, 0x9c, + 0x01, 0x0a, 0x09, 0x54, 0x78, 0x4d, 0x73, 0x67, 0x44, 0x61, 0x74, 0x61, 0x12, 0x39, 0x0a, 0x04, + 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x61, 0x74, 0x61, 0x42, 0x02, 0x18, + 0x01, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x4e, 0x0a, 0x0d, 0x6d, 0x73, 0x67, 0x5f, 0x72, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x41, 0x6e, 0x79, 0x42, 0x13, 0xda, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x36, 0x52, 0x0c, 0x6d, 0x73, 0x67, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x3a, 0x04, 0x80, 0xdc, 0x20, 0x01, 0x22, 0xdc, 0x01, + 0x0a, 0x0f, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x54, 0x78, 0x73, 0x52, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, + 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x61, 0x67, 0x65, + 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, + 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, + 0x65, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x70, + 0x61, 0x67, 0x65, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, + 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x36, + 0x0a, 0x03, 0x74, 0x78, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x52, 0x03, 0x74, 0x78, 0x73, 0x3a, 0x04, 0x80, 0xdc, 0x20, 0x01, 0x22, 0xd8, 0x01, 0x0a, + 0x12, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x52, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, + 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x61, + 0x67, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x0a, 0x70, 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x70, + 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, + 0x6d, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, + 0x12, 0x2f, 0x0a, 0x06, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x17, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x06, 0x62, 0x6c, 0x6f, 0x63, 0x6b, + 0x73, 0x3a, 0x04, 0x80, 0xdc, 0x20, 0x01, 0x42, 0xe7, 0x01, 0xd8, 0xe1, 0x1e, 0x00, 0x0a, 0x1c, + 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, + 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x09, 0x41, 0x62, + 0x63, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x35, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x61, 0x62, 0x63, 0x69, 0x2f, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x3b, 0x61, 0x62, 0x63, 0x69, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0xa2, 0x02, 0x03, 0x43, 0x42, 0x41, 0xaa, 0x02, 0x18, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x42, 0x61, 0x73, 0x65, 0x2e, 0x41, 0x62, 0x63, 0x69, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0xca, 0x02, 0x18, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x42, 0x61, 0x73, 0x65, 0x5c, + 0x41, 0x62, 0x63, 0x69, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x24, 0x43, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x42, 0x61, 0x73, 0x65, 0x5c, 0x41, 0x62, 0x63, 0x69, 0x5c, + 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x42, 0x61, + 0x73, 0x65, 0x3a, 0x3a, 0x41, 0x62, 0x63, 0x69, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -8176,23 +8176,23 @@ var file_cosmos_base_abci_v1beta1_abci_proto_goTypes = []interface{}{ (*SearchTxsResult)(nil), // 9: cosmos.base.abci.v1beta1.SearchTxsResult (*SearchBlocksResult)(nil), // 10: cosmos.base.abci.v1beta1.SearchBlocksResult (*anypb.Any)(nil), // 11: google.protobuf.Any - (*v2.Event)(nil), // 12: cometbft.abci.v2.Event - (*v21.Block)(nil), // 13: cometbft.types.v2.Block + (*abci.Event)(nil), // 12: tendermint.abci.Event + (*types.Block)(nil), // 13: tendermint.types.Block } var file_cosmos_base_abci_v1beta1_abci_proto_depIdxs = []int32{ 1, // 0: cosmos.base.abci.v1beta1.TxResponse.logs:type_name -> cosmos.base.abci.v1beta1.ABCIMessageLog 11, // 1: cosmos.base.abci.v1beta1.TxResponse.tx:type_name -> google.protobuf.Any - 12, // 2: cosmos.base.abci.v1beta1.TxResponse.events:type_name -> cometbft.abci.v2.Event + 12, // 2: cosmos.base.abci.v1beta1.TxResponse.events:type_name -> tendermint.abci.Event 2, // 3: cosmos.base.abci.v1beta1.ABCIMessageLog.events:type_name -> cosmos.base.abci.v1beta1.StringEvent 3, // 4: cosmos.base.abci.v1beta1.StringEvent.attributes:type_name -> cosmos.base.abci.v1beta1.Attribute - 12, // 5: cosmos.base.abci.v1beta1.Result.events:type_name -> cometbft.abci.v2.Event + 12, // 5: cosmos.base.abci.v1beta1.Result.events:type_name -> tendermint.abci.Event 11, // 6: cosmos.base.abci.v1beta1.Result.msg_responses:type_name -> google.protobuf.Any 4, // 7: cosmos.base.abci.v1beta1.SimulationResponse.gas_info:type_name -> cosmos.base.abci.v1beta1.GasInfo 5, // 8: cosmos.base.abci.v1beta1.SimulationResponse.result:type_name -> cosmos.base.abci.v1beta1.Result 7, // 9: cosmos.base.abci.v1beta1.TxMsgData.data:type_name -> cosmos.base.abci.v1beta1.MsgData 11, // 10: cosmos.base.abci.v1beta1.TxMsgData.msg_responses:type_name -> google.protobuf.Any 0, // 11: cosmos.base.abci.v1beta1.SearchTxsResult.txs:type_name -> cosmos.base.abci.v1beta1.TxResponse - 13, // 12: cosmos.base.abci.v1beta1.SearchBlocksResult.blocks:type_name -> cometbft.types.v2.Block + 13, // 12: cosmos.base.abci.v1beta1.SearchBlocksResult.blocks:type_name -> tendermint.types.Block 13, // [13:13] is the sub-list for method output_type 13, // [13:13] is the sub-list for method input_type 13, // [13:13] is the sub-list for extension type_name diff --git a/api/cosmos/base/tendermint/v1beta1/query.pulsar.go b/api/cosmos/base/tendermint/v1beta1/query.pulsar.go index 8625e4eb05..2af025ad8f 100644 --- a/api/cosmos/base/tendermint/v1beta1/query.pulsar.go +++ b/api/cosmos/base/tendermint/v1beta1/query.pulsar.go @@ -3,9 +3,9 @@ package tendermintv1beta1 import ( _ "cosmossdk.io/api/amino" - v1 "cosmossdk.io/api/cometbft/p2p/v1" - v2 "cosmossdk.io/api/cometbft/types/v2" v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1" + p2p "cosmossdk.io/api/tendermint/p2p" + types "cosmossdk.io/api/tendermint/types" fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" @@ -3366,9 +3366,9 @@ func (x *fastReflection_GetBlockByHeightResponse) Get(descriptor protoreflect.Fi func (x *fastReflection_GetBlockByHeightResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.block_id": - x.BlockId = value.Message().Interface().(*v2.BlockID) + x.BlockId = value.Message().Interface().(*types.BlockID) case "cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.block": - x.Block = value.Message().Interface().(*v2.Block) + x.Block = value.Message().Interface().(*types.Block) case "cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.sdk_block": x.SdkBlock = value.Message().Interface().(*Block) default: @@ -3393,12 +3393,12 @@ func (x *fastReflection_GetBlockByHeightResponse) Mutable(fd protoreflect.FieldD switch fd.FullName() { case "cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.block_id": if x.BlockId == nil { - x.BlockId = new(v2.BlockID) + x.BlockId = new(types.BlockID) } return protoreflect.ValueOfMessage(x.BlockId.ProtoReflect()) case "cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.block": if x.Block == nil { - x.Block = new(v2.Block) + x.Block = new(types.Block) } return protoreflect.ValueOfMessage(x.Block.ProtoReflect()) case "cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.sdk_block": @@ -3420,10 +3420,10 @@ func (x *fastReflection_GetBlockByHeightResponse) Mutable(fd protoreflect.FieldD func (x *fastReflection_GetBlockByHeightResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.block_id": - m := new(v2.BlockID) + m := new(types.BlockID) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.block": - m := new(v2.Block) + m := new(types.Block) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.sdk_block": m := new(Block) @@ -3659,7 +3659,7 @@ func (x *fastReflection_GetBlockByHeightResponse) ProtoMethods() *protoiface.Met return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.BlockId == nil { - x.BlockId = &v2.BlockID{} + x.BlockId = &types.BlockID{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.BlockId); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -3695,7 +3695,7 @@ func (x *fastReflection_GetBlockByHeightResponse) ProtoMethods() *protoiface.Met return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.Block == nil { - x.Block = &v2.Block{} + x.Block = &types.Block{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Block); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -4315,9 +4315,9 @@ func (x *fastReflection_GetLatestBlockResponse) Get(descriptor protoreflect.Fiel func (x *fastReflection_GetLatestBlockResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.block_id": - x.BlockId = value.Message().Interface().(*v2.BlockID) + x.BlockId = value.Message().Interface().(*types.BlockID) case "cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.block": - x.Block = value.Message().Interface().(*v2.Block) + x.Block = value.Message().Interface().(*types.Block) case "cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.sdk_block": x.SdkBlock = value.Message().Interface().(*Block) default: @@ -4342,12 +4342,12 @@ func (x *fastReflection_GetLatestBlockResponse) Mutable(fd protoreflect.FieldDes switch fd.FullName() { case "cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.block_id": if x.BlockId == nil { - x.BlockId = new(v2.BlockID) + x.BlockId = new(types.BlockID) } return protoreflect.ValueOfMessage(x.BlockId.ProtoReflect()) case "cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.block": if x.Block == nil { - x.Block = new(v2.Block) + x.Block = new(types.Block) } return protoreflect.ValueOfMessage(x.Block.ProtoReflect()) case "cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.sdk_block": @@ -4369,10 +4369,10 @@ func (x *fastReflection_GetLatestBlockResponse) Mutable(fd protoreflect.FieldDes func (x *fastReflection_GetLatestBlockResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.block_id": - m := new(v2.BlockID) + m := new(types.BlockID) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.block": - m := new(v2.Block) + m := new(types.Block) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.sdk_block": m := new(Block) @@ -4608,7 +4608,7 @@ func (x *fastReflection_GetLatestBlockResponse) ProtoMethods() *protoiface.Metho return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.BlockId == nil { - x.BlockId = &v2.BlockID{} + x.BlockId = &types.BlockID{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.BlockId); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -4644,7 +4644,7 @@ func (x *fastReflection_GetLatestBlockResponse) ProtoMethods() *protoiface.Metho return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.Block == nil { - x.Block = &v2.Block{} + x.Block = &types.Block{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Block); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -6015,7 +6015,7 @@ func (x *fastReflection_GetNodeInfoResponse) Get(descriptor protoreflect.FieldDe func (x *fastReflection_GetNodeInfoResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.default_node_info": - x.DefaultNodeInfo = value.Message().Interface().(*v1.DefaultNodeInfo) + x.DefaultNodeInfo = value.Message().Interface().(*p2p.DefaultNodeInfo) case "cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.application_version": x.ApplicationVersion = value.Message().Interface().(*VersionInfo) default: @@ -6040,7 +6040,7 @@ func (x *fastReflection_GetNodeInfoResponse) Mutable(fd protoreflect.FieldDescri switch fd.FullName() { case "cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.default_node_info": if x.DefaultNodeInfo == nil { - x.DefaultNodeInfo = new(v1.DefaultNodeInfo) + x.DefaultNodeInfo = new(p2p.DefaultNodeInfo) } return protoreflect.ValueOfMessage(x.DefaultNodeInfo.ProtoReflect()) case "cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.application_version": @@ -6062,7 +6062,7 @@ func (x *fastReflection_GetNodeInfoResponse) Mutable(fd protoreflect.FieldDescri func (x *fastReflection_GetNodeInfoResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.default_node_info": - m := new(v1.DefaultNodeInfo) + m := new(p2p.DefaultNodeInfo) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.application_version": m := new(VersionInfo) @@ -6280,7 +6280,7 @@ func (x *fastReflection_GetNodeInfoResponse) ProtoMethods() *protoiface.Methods return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.DefaultNodeInfo == nil { - x.DefaultNodeInfo = &v1.DefaultNodeInfo{} + x.DefaultNodeInfo = &p2p.DefaultNodeInfo{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DefaultNodeInfo); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -10404,7 +10404,7 @@ type GetValidatorSetByHeightRequest struct { unknownFields protoimpl.UnknownFields Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` - // pagination defines a pagination for the request. + // pagination defines an pagination for the request. Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -10450,7 +10450,7 @@ type GetValidatorSetByHeightResponse struct { BlockHeight int64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` Validators []*Validator `protobuf:"bytes,2,rep,name=validators,proto3" json:"validators,omitempty"` - // pagination defines a pagination for the response. + // pagination defines an pagination for the response. Pagination *v1beta1.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -10501,7 +10501,7 @@ type GetLatestValidatorSetRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // pagination defines a pagination for the request. + // pagination defines an pagination for the request. Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -10540,7 +10540,7 @@ type GetLatestValidatorSetResponse struct { BlockHeight int64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` Validators []*Validator `protobuf:"bytes,2,rep,name=validators,proto3" json:"validators,omitempty"` - // pagination defines a pagination for the response. + // pagination defines an pagination for the response. Pagination *v1beta1.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -10687,10 +10687,10 @@ type GetBlockByHeightResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - BlockId *v2.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` + BlockId *types.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` // Deprecated: please use `sdk_block` instead - Block *v2.Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"` - SdkBlock *Block `protobuf:"bytes,3,opt,name=sdk_block,json=sdkBlock,proto3" json:"sdk_block,omitempty"` + Block *types.Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"` + SdkBlock *Block `protobuf:"bytes,3,opt,name=sdk_block,json=sdkBlock,proto3" json:"sdk_block,omitempty"` } func (x *GetBlockByHeightResponse) Reset() { @@ -10713,14 +10713,14 @@ func (*GetBlockByHeightResponse) Descriptor() ([]byte, []int) { return file_cosmos_base_tendermint_v1beta1_query_proto_rawDescGZIP(), []int{6} } -func (x *GetBlockByHeightResponse) GetBlockId() *v2.BlockID { +func (x *GetBlockByHeightResponse) GetBlockId() *types.BlockID { if x != nil { return x.BlockId } return nil } -func (x *GetBlockByHeightResponse) GetBlock() *v2.Block { +func (x *GetBlockByHeightResponse) GetBlock() *types.Block { if x != nil { return x.Block } @@ -10767,10 +10767,10 @@ type GetLatestBlockResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - BlockId *v2.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` + BlockId *types.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` // Deprecated: please use `sdk_block` instead - Block *v2.Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"` - SdkBlock *Block `protobuf:"bytes,3,opt,name=sdk_block,json=sdkBlock,proto3" json:"sdk_block,omitempty"` + Block *types.Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"` + SdkBlock *Block `protobuf:"bytes,3,opt,name=sdk_block,json=sdkBlock,proto3" json:"sdk_block,omitempty"` } func (x *GetLatestBlockResponse) Reset() { @@ -10793,14 +10793,14 @@ func (*GetLatestBlockResponse) Descriptor() ([]byte, []int) { return file_cosmos_base_tendermint_v1beta1_query_proto_rawDescGZIP(), []int{8} } -func (x *GetLatestBlockResponse) GetBlockId() *v2.BlockID { +func (x *GetLatestBlockResponse) GetBlockId() *types.BlockID { if x != nil { return x.BlockId } return nil } -func (x *GetLatestBlockResponse) GetBlock() *v2.Block { +func (x *GetLatestBlockResponse) GetBlock() *types.Block { if x != nil { return x.Block } @@ -10910,8 +10910,8 @@ type GetNodeInfoResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - DefaultNodeInfo *v1.DefaultNodeInfo `protobuf:"bytes,1,opt,name=default_node_info,json=defaultNodeInfo,proto3" json:"default_node_info,omitempty"` - ApplicationVersion *VersionInfo `protobuf:"bytes,2,opt,name=application_version,json=applicationVersion,proto3" json:"application_version,omitempty"` + DefaultNodeInfo *p2p.DefaultNodeInfo `protobuf:"bytes,1,opt,name=default_node_info,json=defaultNodeInfo,proto3" json:"default_node_info,omitempty"` + ApplicationVersion *VersionInfo `protobuf:"bytes,2,opt,name=application_version,json=applicationVersion,proto3" json:"application_version,omitempty"` } func (x *GetNodeInfoResponse) Reset() { @@ -10934,7 +10934,7 @@ func (*GetNodeInfoResponse) Descriptor() ([]byte, []int) { return file_cosmos_base_tendermint_v1beta1_query_proto_rawDescGZIP(), []int{12} } -func (x *GetNodeInfoResponse) GetDefaultNodeInfo() *v1.DefaultNodeInfo { +func (x *GetNodeInfoResponse) GetDefaultNodeInfo() *p2p.DefaultNodeInfo { if x != nil { return x.DefaultNodeInfo } @@ -11364,285 +11364,285 @@ var file_cosmos_base_tendermint_v1beta1_query_proto_rawDesc = []byte{ 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x63, 0x6f, 0x6d, - 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x70, 0x32, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, - 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, - 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, - 0x2f, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x6f, 0x6d, 0x65, - 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x62, 0x6c, - 0x6f, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, - 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x80, 0x01, 0x0a, - 0x1e, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, - 0x42, 0x79, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x74, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x70, 0x32, 0x70, 0x2f, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, + 0x69, 0x6e, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, + 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x74, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, + 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x80, 0x01, 0x0a, 0x1e, 0x47, 0x65, + 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x42, 0x79, 0x48, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, + 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, + 0x69, 0x67, 0x68, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xd8, 0x01, 0x0a, + 0x1f, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, + 0x42, 0x79, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x12, 0x49, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x52, 0x0a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x47, + 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, + 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, + 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, + 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x66, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x4c, 0x61, + 0x74, 0x65, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, - 0xd8, 0x01, 0x0a, 0x1f, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, - 0x53, 0x65, 0x74, 0x42, 0x79, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, - 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, - 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x49, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x6f, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, - 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x0a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, - 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, - 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, - 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x66, 0x0a, 0x1c, 0x47, 0x65, - 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, - 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, - 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, - 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, - 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x22, 0xd6, 0x01, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, - 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, - 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, - 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x49, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x69, 0x64, - 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, - 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x56, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x0a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, - 0x72, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, - 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xbe, 0x01, 0x0a, 0x09, - 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2d, 0x0a, - 0x07, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x0c, - 0x76, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x0b, 0x76, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x12, - 0x2b, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x5f, 0x70, 0x72, 0x69, 0x6f, - 0x72, 0x69, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x70, 0x72, 0x6f, 0x70, - 0x6f, 0x73, 0x65, 0x72, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x31, 0x0a, 0x17, - 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x79, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, - 0xda, 0x01, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x79, 0x48, 0x65, - 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x08, - 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, - 0x76, 0x32, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x63, - 0x6b, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x05, 0x62, 0x6c, - 0x6f, 0x63, 0x6b, 0x12, 0x57, 0x0a, 0x09, 0x73, 0x64, 0x6b, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0xd6, 0x01, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x56, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, + 0x69, 0x67, 0x68, 0x74, 0x12, 0x49, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, + 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, + 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, + 0x74, 0x6f, 0x72, 0x52, 0x0a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, + 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, + 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, + 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xbe, 0x01, 0x0a, 0x09, 0x56, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2d, 0x0a, 0x07, 0x70, 0x75, + 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, + 0x79, 0x52, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x76, 0x6f, 0x74, + 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x0b, 0x76, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x12, 0x2b, 0x0a, 0x11, + 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x5f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, + 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, + 0x72, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x31, 0x0a, 0x17, 0x47, 0x65, 0x74, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x79, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0xd8, 0x01, 0x0a, + 0x18, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x79, 0x48, 0x65, 0x69, 0x67, 0x68, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x08, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x74, 0x65, + 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x64, 0x12, + 0x2d, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, + 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x57, + 0x0a, 0x09, 0x73, 0x64, 0x6b, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, + 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x13, 0xda, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x37, 0x52, 0x08, 0x73, + 0x64, 0x6b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x22, 0x17, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x4c, 0x61, + 0x74, 0x65, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x22, 0xd6, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x08, 0x62, + 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x49, + 0x64, 0x12, 0x2d, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x17, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, + 0x12, 0x57, 0x0a, 0x09, 0x73, 0x64, 0x6b, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, + 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x13, 0xda, 0xb4, 0x2d, 0x0f, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x37, 0x52, + 0x08, 0x73, 0x64, 0x6b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x22, 0x13, 0x0a, 0x11, 0x47, 0x65, 0x74, + 0x53, 0x79, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x2e, + 0x0a, 0x12, 0x47, 0x65, 0x74, 0x53, 0x79, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x79, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x79, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x22, 0x14, + 0x0a, 0x12, 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x22, 0xc0, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, + 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x11, + 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x6e, 0x66, + 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x32, 0x70, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, + 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, + 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x5c, 0x0a, 0x13, 0x61, 0x70, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x13, 0xda, - 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, - 0x34, 0x37, 0x52, 0x08, 0x73, 0x64, 0x6b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x22, 0x17, 0x0a, 0x15, - 0x47, 0x65, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xd8, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x74, - 0x65, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x35, 0x0a, 0x08, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x52, 0x07, - 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, - 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x57, 0x0a, 0x09, 0x73, 0x64, 0x6b, 0x5f, 0x62, - 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x6f, 0x73, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x49, + 0x6e, 0x66, 0x6f, 0x52, 0x12, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xbd, 0x02, 0x0a, 0x0b, 0x56, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x61, + 0x70, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, + 0x70, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, + 0x1d, 0x0a, 0x0a, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x74, 0x61, 0x67, 0x73, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x54, 0x61, 0x67, 0x73, 0x12, 0x1d, + 0x0a, 0x0a, 0x67, 0x6f, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x67, 0x6f, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x45, 0x0a, + 0x0a, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x64, 0x65, 0x70, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, + 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x09, 0x62, 0x75, 0x69, 0x6c, 0x64, + 0x44, 0x65, 0x70, 0x73, 0x12, 0x41, 0x0a, 0x12, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x73, + 0x64, 0x6b, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x13, 0xda, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, + 0x20, 0x30, 0x2e, 0x34, 0x33, 0x52, 0x10, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x53, 0x64, 0x6b, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x48, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, + 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, + 0x10, 0x0a, 0x03, 0x73, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x75, + 0x6d, 0x22, 0x68, 0x0a, 0x10, 0x41, 0x42, 0x43, 0x49, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, + 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x16, 0x0a, + 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x22, 0x8e, 0x02, 0x0a, 0x11, + 0x41, 0x42, 0x43, 0x49, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x67, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6c, 0x6f, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x14, 0x0a, 0x05, 0x69, + 0x6e, 0x64, 0x65, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, + 0x78, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, + 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x45, 0x0a, 0x09, 0x70, 0x72, 0x6f, + 0x6f, 0x66, 0x5f, 0x6f, 0x70, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, + 0x6f, 0x6f, 0x66, 0x4f, 0x70, 0x73, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x4f, 0x70, 0x73, + 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x64, 0x65, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x64, + 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x22, 0x43, 0x0a, 0x07, + 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x4f, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x12, 0x0a, + 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, + 0x61, 0x22, 0x50, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x4f, 0x70, 0x73, 0x12, 0x44, 0x0a, + 0x03, 0x6f, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, - 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x42, 0x13, 0xda, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, - 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x37, 0x52, 0x08, 0x73, 0x64, 0x6b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x22, 0x13, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x53, 0x79, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x2e, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x53, 0x79, 0x6e, 0x63, - 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, - 0x79, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x79, - 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x22, 0x14, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, - 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xc1, 0x01, 0x0a, 0x13, - 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x11, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x6e, - 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, - 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x70, 0x32, 0x70, 0x2e, 0x76, 0x31, - 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, - 0x52, 0x0f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, - 0x6f, 0x12, 0x5c, 0x0a, 0x13, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, - 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, - 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x12, 0x61, 0x70, 0x70, - 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, - 0xbd, 0x02, 0x0a, 0x0b, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, - 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x70, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x70, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, - 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x69, 0x74, 0x5f, - 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x69, - 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x75, 0x69, 0x6c, 0x64, - 0x5f, 0x74, 0x61, 0x67, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x62, 0x75, 0x69, - 0x6c, 0x64, 0x54, 0x61, 0x67, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x6f, 0x5f, 0x76, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x6f, 0x56, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x45, 0x0a, 0x0a, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x64, - 0x65, 0x70, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, - 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, - 0x65, 0x52, 0x09, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x44, 0x65, 0x70, 0x73, 0x12, 0x41, 0x0a, 0x12, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x73, 0x64, 0x6b, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x42, 0x13, 0xda, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x33, 0x52, 0x10, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x53, 0x64, 0x6b, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, - 0x48, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, - 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x18, 0x0a, - 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x75, 0x6d, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x75, 0x6d, 0x22, 0x68, 0x0a, 0x10, 0x41, 0x42, 0x43, - 0x49, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, - 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, - 0x61, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x14, 0x0a, - 0x05, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x70, 0x72, - 0x6f, 0x76, 0x65, 0x22, 0x8e, 0x02, 0x0a, 0x11, 0x41, 0x42, 0x43, 0x49, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, - 0x03, 0x6c, 0x6f, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6c, 0x6f, 0x67, 0x12, - 0x12, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x69, - 0x6e, 0x66, 0x6f, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x12, 0x45, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x5f, 0x6f, 0x70, 0x73, 0x18, 0x08, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, - 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x4f, 0x70, 0x73, 0x52, 0x08, - 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x4f, 0x70, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, - 0x68, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, - 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x0a, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4a, 0x04, - 0x08, 0x02, 0x10, 0x03, 0x22, 0x43, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x4f, 0x70, 0x12, - 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, - 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x50, 0x0a, 0x08, 0x50, 0x72, 0x6f, - 0x6f, 0x66, 0x4f, 0x70, 0x73, 0x12, 0x44, 0x0a, 0x03, 0x6f, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, - 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x4f, 0x70, 0x42, 0x09, 0xc8, 0xde, 0x1f, - 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x03, 0x6f, 0x70, 0x73, 0x32, 0xc2, 0x0a, 0x0a, 0x07, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xa9, 0x01, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x4e, - 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x32, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, - 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, - 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, - 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, - 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, - 0x6e, 0x66, 0x6f, 0x12, 0xa4, 0x01, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x53, 0x79, 0x6e, 0x63, 0x69, - 0x6e, 0x67, 0x12, 0x31, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, - 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x79, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, - 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x79, 0x6e, 0x63, 0x69, 0x6e, - 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x29, 0x12, 0x27, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, - 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2f, 0x73, 0x79, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x12, 0xb6, 0x01, 0x0a, 0x0e, 0x47, - 0x65, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x35, 0x2e, + 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6f, + 0x66, 0x4f, 0x70, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x03, + 0x6f, 0x70, 0x73, 0x32, 0xc2, 0x0a, 0x0a, 0x07, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, + 0xa9, 0x01, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, + 0x32, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, + 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, + 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, + 0x12, 0x29, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x74, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0xa4, 0x01, 0x0a, 0x0a, + 0x47, 0x65, 0x74, 0x53, 0x79, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x12, 0x31, 0x2e, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, + 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, + 0x79, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, - 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x42, - 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x35, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x2f, 0x12, 0x2d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, - 0x73, 0x65, 0x2f, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2f, 0x6c, 0x61, 0x74, - 0x65, 0x73, 0x74, 0x12, 0xbe, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x42, 0x79, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x37, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, - 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x42, 0x79, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x38, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, - 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x79, 0x48, 0x65, 0x69, - 0x67, 0x68, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x31, 0x12, 0x2f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, - 0x65, 0x2f, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2f, 0x7b, 0x68, 0x65, 0x69, - 0x67, 0x68, 0x74, 0x7d, 0x12, 0xd2, 0x01, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x74, 0x65, - 0x73, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x12, 0x3c, - 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, - 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x47, 0x65, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, - 0x6f, 0x72, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d, 0x2e, 0x63, + 0x65, 0x74, 0x53, 0x79, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x12, 0x27, 0x2f, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, + 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x79, 0x6e, 0x63, 0x69, + 0x6e, 0x67, 0x12, 0xb6, 0x01, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x35, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, + 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, - 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, - 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3c, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x36, 0x12, 0x34, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, - 0x65, 0x2f, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x65, - 0x74, 0x73, 0x2f, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x12, 0xda, 0x01, 0x0a, 0x17, 0x47, 0x65, - 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x42, 0x79, 0x48, - 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x3e, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, - 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x42, 0x79, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3f, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, - 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x42, 0x79, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x38, 0x12, 0x36, - 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x74, 0x65, 0x6e, - 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, - 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x65, 0x74, 0x73, 0x2f, 0x7b, 0x68, - 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, 0xb7, 0x01, 0x0a, 0x09, 0x41, 0x42, 0x43, 0x49, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x12, 0x30, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, + 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x35, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x12, 0x2d, 0x2f, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x74, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x62, 0x6c, + 0x6f, 0x63, 0x6b, 0x73, 0x2f, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x12, 0xbe, 0x01, 0x0a, 0x10, + 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x79, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x12, 0x37, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x79, 0x48, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, + 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x42, 0x79, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x12, 0x2f, 0x2f, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x73, 0x2f, 0x7b, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, 0xd2, 0x01, 0x0a, + 0x15, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, + 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x12, 0x3c, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, + 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x42, 0x43, 0x49, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x42, 0x43, 0x49, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x45, 0xca, 0xb4, 0x2d, 0x0f, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x36, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, - 0x73, 0x65, 0x2f, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x61, 0x62, 0x63, 0x69, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, - 0x42, 0x8e, 0x02, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x41, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, - 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, - 0x61, 0x73, 0x65, 0x2f, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, - 0x74, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x42, 0x54, 0xaa, 0x02, - 0x1e, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x2e, 0x54, 0x65, 0x6e, - 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, - 0x02, 0x1e, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x42, 0x61, 0x73, 0x65, 0x5c, 0x54, 0x65, - 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0xe2, 0x02, 0x2a, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x42, 0x61, 0x73, 0x65, 0x5c, 0x54, - 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x21, - 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x42, 0x61, 0x73, 0x65, 0x3a, 0x3a, 0x54, 0x65, - 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x56, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x3c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x12, 0x34, 0x2f, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x76, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x65, 0x74, 0x73, 0x2f, 0x6c, 0x61, 0x74, 0x65, 0x73, + 0x74, 0x12, 0xda, 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x53, 0x65, 0x74, 0x42, 0x79, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x3e, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, + 0x65, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x42, 0x79, + 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3f, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, + 0x65, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x42, 0x79, + 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3e, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x38, 0x12, 0x36, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, + 0x62, 0x61, 0x73, 0x65, 0x2f, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, + 0x72, 0x73, 0x65, 0x74, 0x73, 0x2f, 0x7b, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, 0xb7, + 0x01, 0x0a, 0x09, 0x41, 0x42, 0x43, 0x49, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x30, 0x2e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x42, + 0x43, 0x49, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x41, 0x42, 0x43, 0x49, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x45, 0xca, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, + 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x36, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x74, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x61, 0x62, + 0x63, 0x69, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x42, 0x8e, 0x02, 0x0a, 0x22, 0x63, 0x6f, 0x6d, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, + 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x41, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x74, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x74, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0xa2, 0x02, 0x03, 0x43, 0x42, 0x54, 0xaa, 0x02, 0x1e, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x42, 0x61, 0x73, 0x65, 0x2e, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, + 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x1e, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x5c, 0x42, 0x61, 0x73, 0x65, 0x5c, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, + 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x2a, 0x43, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x5c, 0x42, 0x61, 0x73, 0x65, 0x5c, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, + 0x74, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x21, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, + 0x42, 0x61, 0x73, 0x65, 0x3a, 0x3a, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, + 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( @@ -11681,10 +11681,10 @@ var file_cosmos_base_tendermint_v1beta1_query_proto_goTypes = []interface{}{ (*v1beta1.PageRequest)(nil), // 19: cosmos.base.query.v1beta1.PageRequest (*v1beta1.PageResponse)(nil), // 20: cosmos.base.query.v1beta1.PageResponse (*anypb.Any)(nil), // 21: google.protobuf.Any - (*v2.BlockID)(nil), // 22: cometbft.types.v2.BlockID - (*v2.Block)(nil), // 23: cometbft.types.v2.Block + (*types.BlockID)(nil), // 22: tendermint.types.BlockID + (*types.Block)(nil), // 23: tendermint.types.Block (*Block)(nil), // 24: cosmos.base.tendermint.v1beta1.Block - (*v1.DefaultNodeInfo)(nil), // 25: cometbft.p2p.v1.DefaultNodeInfo + (*p2p.DefaultNodeInfo)(nil), // 25: tendermint.p2p.DefaultNodeInfo } var file_cosmos_base_tendermint_v1beta1_query_proto_depIdxs = []int32{ 19, // 0: cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest @@ -11694,13 +11694,13 @@ var file_cosmos_base_tendermint_v1beta1_query_proto_depIdxs = []int32{ 4, // 4: cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.validators:type_name -> cosmos.base.tendermint.v1beta1.Validator 20, // 5: cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse 21, // 6: cosmos.base.tendermint.v1beta1.Validator.pub_key:type_name -> google.protobuf.Any - 22, // 7: cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.block_id:type_name -> cometbft.types.v2.BlockID - 23, // 8: cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.block:type_name -> cometbft.types.v2.Block + 22, // 7: cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.block_id:type_name -> tendermint.types.BlockID + 23, // 8: cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.block:type_name -> tendermint.types.Block 24, // 9: cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.sdk_block:type_name -> cosmos.base.tendermint.v1beta1.Block - 22, // 10: cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.block_id:type_name -> cometbft.types.v2.BlockID - 23, // 11: cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.block:type_name -> cometbft.types.v2.Block + 22, // 10: cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.block_id:type_name -> tendermint.types.BlockID + 23, // 11: cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.block:type_name -> tendermint.types.Block 24, // 12: cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.sdk_block:type_name -> cosmos.base.tendermint.v1beta1.Block - 25, // 13: cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.default_node_info:type_name -> cometbft.p2p.v1.DefaultNodeInfo + 25, // 13: cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.default_node_info:type_name -> tendermint.p2p.DefaultNodeInfo 13, // 14: cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.application_version:type_name -> cosmos.base.tendermint.v1beta1.VersionInfo 14, // 15: cosmos.base.tendermint.v1beta1.VersionInfo.build_deps:type_name -> cosmos.base.tendermint.v1beta1.Module 18, // 16: cosmos.base.tendermint.v1beta1.ABCIQueryResponse.proof_ops:type_name -> cosmos.base.tendermint.v1beta1.ProofOps diff --git a/api/cosmos/base/tendermint/v1beta1/types.pulsar.go b/api/cosmos/base/tendermint/v1beta1/types.pulsar.go index 1df3adaefc..3b813632fe 100644 --- a/api/cosmos/base/tendermint/v1beta1/types.pulsar.go +++ b/api/cosmos/base/tendermint/v1beta1/types.pulsar.go @@ -3,8 +3,8 @@ package tendermintv1beta1 import ( _ "cosmossdk.io/api/amino" - v2 "cosmossdk.io/api/cometbft/types/v2" - v1 "cosmossdk.io/api/cometbft/version/v1" + types "cosmossdk.io/api/tendermint/types" + version "cosmossdk.io/api/tendermint/version" fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" @@ -221,11 +221,11 @@ func (x *fastReflection_Block) Set(fd protoreflect.FieldDescriptor, value protor case "cosmos.base.tendermint.v1beta1.Block.header": x.Header = value.Message().Interface().(*Header) case "cosmos.base.tendermint.v1beta1.Block.data": - x.Data = value.Message().Interface().(*v2.Data) + x.Data = value.Message().Interface().(*types.Data) case "cosmos.base.tendermint.v1beta1.Block.evidence": - x.Evidence = value.Message().Interface().(*v2.EvidenceList) + x.Evidence = value.Message().Interface().(*types.EvidenceList) case "cosmos.base.tendermint.v1beta1.Block.last_commit": - x.LastCommit = value.Message().Interface().(*v2.Commit) + x.LastCommit = value.Message().Interface().(*types.Commit) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.tendermint.v1beta1.Block")) @@ -253,17 +253,17 @@ func (x *fastReflection_Block) Mutable(fd protoreflect.FieldDescriptor) protoref return protoreflect.ValueOfMessage(x.Header.ProtoReflect()) case "cosmos.base.tendermint.v1beta1.Block.data": if x.Data == nil { - x.Data = new(v2.Data) + x.Data = new(types.Data) } return protoreflect.ValueOfMessage(x.Data.ProtoReflect()) case "cosmos.base.tendermint.v1beta1.Block.evidence": if x.Evidence == nil { - x.Evidence = new(v2.EvidenceList) + x.Evidence = new(types.EvidenceList) } return protoreflect.ValueOfMessage(x.Evidence.ProtoReflect()) case "cosmos.base.tendermint.v1beta1.Block.last_commit": if x.LastCommit == nil { - x.LastCommit = new(v2.Commit) + x.LastCommit = new(types.Commit) } return protoreflect.ValueOfMessage(x.LastCommit.ProtoReflect()) default: @@ -283,13 +283,13 @@ func (x *fastReflection_Block) NewField(fd protoreflect.FieldDescriptor) protore m := new(Header) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cosmos.base.tendermint.v1beta1.Block.data": - m := new(v2.Data) + m := new(types.Data) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cosmos.base.tendermint.v1beta1.Block.evidence": - m := new(v2.EvidenceList) + m := new(types.EvidenceList) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cosmos.base.tendermint.v1beta1.Block.last_commit": - m := new(v2.Commit) + m := new(types.Commit) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { @@ -576,7 +576,7 @@ func (x *fastReflection_Block) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.Data == nil { - x.Data = &v2.Data{} + x.Data = &types.Data{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Data); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -612,7 +612,7 @@ func (x *fastReflection_Block) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.Evidence == nil { - x.Evidence = &v2.EvidenceList{} + x.Evidence = &types.EvidenceList{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Evidence); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -648,7 +648,7 @@ func (x *fastReflection_Block) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.LastCommit == nil { - x.LastCommit = &v2.Commit{} + x.LastCommit = &types.Commit{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LastCommit); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -1041,7 +1041,7 @@ func (x *fastReflection_Header) Get(descriptor protoreflect.FieldDescriptor) pro func (x *fastReflection_Header) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "cosmos.base.tendermint.v1beta1.Header.version": - x.Version = value.Message().Interface().(*v1.Consensus) + x.Version = value.Message().Interface().(*version.Consensus) case "cosmos.base.tendermint.v1beta1.Header.chain_id": x.ChainId = value.Interface().(string) case "cosmos.base.tendermint.v1beta1.Header.height": @@ -1049,7 +1049,7 @@ func (x *fastReflection_Header) Set(fd protoreflect.FieldDescriptor, value proto case "cosmos.base.tendermint.v1beta1.Header.time": x.Time = value.Message().Interface().(*timestamppb.Timestamp) case "cosmos.base.tendermint.v1beta1.Header.last_block_id": - x.LastBlockId = value.Message().Interface().(*v2.BlockID) + x.LastBlockId = value.Message().Interface().(*types.BlockID) case "cosmos.base.tendermint.v1beta1.Header.last_commit_hash": x.LastCommitHash = value.Bytes() case "cosmos.base.tendermint.v1beta1.Header.data_hash": @@ -1090,7 +1090,7 @@ func (x *fastReflection_Header) Mutable(fd protoreflect.FieldDescriptor) protore switch fd.FullName() { case "cosmos.base.tendermint.v1beta1.Header.version": if x.Version == nil { - x.Version = new(v1.Consensus) + x.Version = new(version.Consensus) } return protoreflect.ValueOfMessage(x.Version.ProtoReflect()) case "cosmos.base.tendermint.v1beta1.Header.time": @@ -1100,7 +1100,7 @@ func (x *fastReflection_Header) Mutable(fd protoreflect.FieldDescriptor) protore return protoreflect.ValueOfMessage(x.Time.ProtoReflect()) case "cosmos.base.tendermint.v1beta1.Header.last_block_id": if x.LastBlockId == nil { - x.LastBlockId = new(v2.BlockID) + x.LastBlockId = new(types.BlockID) } return protoreflect.ValueOfMessage(x.LastBlockId.ProtoReflect()) case "cosmos.base.tendermint.v1beta1.Header.chain_id": @@ -1139,7 +1139,7 @@ func (x *fastReflection_Header) Mutable(fd protoreflect.FieldDescriptor) protore func (x *fastReflection_Header) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "cosmos.base.tendermint.v1beta1.Header.version": - m := new(v1.Consensus) + m := new(version.Consensus) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cosmos.base.tendermint.v1beta1.Header.chain_id": return protoreflect.ValueOfString("") @@ -1149,7 +1149,7 @@ func (x *fastReflection_Header) NewField(fd protoreflect.FieldDescriptor) protor m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cosmos.base.tendermint.v1beta1.Header.last_block_id": - m := new(v2.BlockID) + m := new(types.BlockID) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cosmos.base.tendermint.v1beta1.Header.last_commit_hash": return protoreflect.ValueOfBytes(nil) @@ -1518,7 +1518,7 @@ func (x *fastReflection_Header) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.Version == nil { - x.Version = &v1.Consensus{} + x.Version = &version.Consensus{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Version); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -1641,7 +1641,7 @@ func (x *fastReflection_Header) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.LastBlockId == nil { - x.LastBlockId = &v2.BlockID{} + x.LastBlockId = &types.BlockID{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LastBlockId); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -2006,10 +2006,10 @@ type Block struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Data *v2.Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - Evidence *v2.EvidenceList `protobuf:"bytes,3,opt,name=evidence,proto3" json:"evidence,omitempty"` - LastCommit *v2.Commit `protobuf:"bytes,4,opt,name=last_commit,json=lastCommit,proto3" json:"last_commit,omitempty"` + Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Data *types.Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + Evidence *types.EvidenceList `protobuf:"bytes,3,opt,name=evidence,proto3" json:"evidence,omitempty"` + LastCommit *types.Commit `protobuf:"bytes,4,opt,name=last_commit,json=lastCommit,proto3" json:"last_commit,omitempty"` } func (x *Block) Reset() { @@ -2039,21 +2039,21 @@ func (x *Block) GetHeader() *Header { return nil } -func (x *Block) GetData() *v2.Data { +func (x *Block) GetData() *types.Data { if x != nil { return x.Data } return nil } -func (x *Block) GetEvidence() *v2.EvidenceList { +func (x *Block) GetEvidence() *types.EvidenceList { if x != nil { return x.Evidence } return nil } -func (x *Block) GetLastCommit() *v2.Commit { +func (x *Block) GetLastCommit() *types.Commit { if x != nil { return x.LastCommit } @@ -2067,12 +2067,12 @@ type Header struct { unknownFields protoimpl.UnknownFields // basic block info - Version *v1.Consensus `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + Version *version.Consensus `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` Time *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=time,proto3" json:"time,omitempty"` // prev block info - LastBlockId *v2.BlockID `protobuf:"bytes,5,opt,name=last_block_id,json=lastBlockId,proto3" json:"last_block_id,omitempty"` + LastBlockId *types.BlockID `protobuf:"bytes,5,opt,name=last_block_id,json=lastBlockId,proto3" json:"last_block_id,omitempty"` // hashes of block data LastCommitHash []byte `protobuf:"bytes,6,opt,name=last_commit_hash,json=lastCommitHash,proto3" json:"last_commit_hash,omitempty"` // commit from validators from the last block DataHash []byte `protobuf:"bytes,7,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"` // transactions @@ -2110,7 +2110,7 @@ func (*Header) Descriptor() ([]byte, []int) { return file_cosmos_base_tendermint_v1beta1_types_proto_rawDescGZIP(), []int{1} } -func (x *Header) GetVersion() *v1.Consensus { +func (x *Header) GetVersion() *version.Consensus { if x != nil { return x.Version } @@ -2138,7 +2138,7 @@ func (x *Header) GetTime() *timestamppb.Timestamp { return nil } -func (x *Header) GetLastBlockId() *v2.BlockID { +func (x *Header) GetLastBlockId() *types.BlockID { if x != nil { return x.LastBlockId } @@ -2217,90 +2217,90 @@ var file_cosmos_base_tendermint_v1beta1_types_proto_rawDesc = []byte{ 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, - 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8e, 0x02, 0x0a, 0x05, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x12, 0x49, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, - 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, - 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x36, 0x0a, - 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x6f, - 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, - 0x44, 0x61, 0x74, 0x61, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, - 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x46, 0x0a, 0x08, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, - 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x76, 0x69, 0x64, - 0x65, 0x6e, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, - 0xb0, 0x2a, 0x01, 0x52, 0x08, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x3a, 0x0a, - 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x0a, 0x6c, - 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x22, 0xf7, 0x04, 0x0a, 0x06, 0x48, 0x65, - 0x61, 0x64, 0x65, 0x72, 0x12, 0x43, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, - 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x73, - 0x65, 0x6e, 0x73, 0x75, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, - 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x26, 0x0a, 0x08, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe2, 0xde, 0x1f, - 0x07, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x44, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, - 0x64, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x3d, 0x0a, 0x04, 0x74, 0x69, 0x6d, - 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x42, 0x0d, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0xa8, 0xe7, 0xb0, - 0x2a, 0x01, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x49, 0x0a, 0x0d, 0x6c, 0x61, 0x73, 0x74, - 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x42, 0x09, 0xc8, 0xde, 0x1f, - 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, - 0x69, 0x74, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x6c, - 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x48, 0x61, 0x73, 0x68, 0x12, 0x1b, 0x0a, - 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x48, 0x61, 0x73, 0x68, 0x12, 0x27, 0x0a, 0x0f, 0x76, 0x61, - 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x08, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x48, - 0x61, 0x73, 0x68, 0x12, 0x30, 0x0a, 0x14, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x09, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x12, 0x6e, 0x65, 0x78, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, - 0x73, 0x48, 0x61, 0x73, 0x68, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, - 0x75, 0x73, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x63, - 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x48, 0x61, 0x73, 0x68, 0x12, 0x19, 0x0a, 0x08, - 0x61, 0x70, 0x70, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, - 0x61, 0x70, 0x70, 0x48, 0x61, 0x73, 0x68, 0x12, 0x2a, 0x0a, 0x11, 0x6c, 0x61, 0x73, 0x74, 0x5f, - 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x0c, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x0f, 0x6c, 0x61, 0x73, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x48, - 0x61, 0x73, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x5f, - 0x68, 0x61, 0x73, 0x68, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x65, 0x76, 0x69, 0x64, - 0x65, 0x6e, 0x63, 0x65, 0x48, 0x61, 0x73, 0x68, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x70, - 0x6f, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x0e, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x42, 0x8e, 0x02, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, - 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, - 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x41, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, - 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, - 0x6d, 0x69, 0x6e, 0x74, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x42, - 0x54, 0xaa, 0x02, 0x1e, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x2e, - 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0xca, 0x02, 0x1e, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x42, 0x61, 0x73, 0x65, - 0x5c, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x5c, 0x56, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0xe2, 0x02, 0x2a, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x42, 0x61, 0x73, - 0x65, 0x5c, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x5c, 0x56, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0xea, 0x02, 0x21, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x42, 0x61, 0x73, 0x65, 0x3a, - 0x3a, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x74, 0x6f, 0x1a, 0x1c, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x1f, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2f, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x1e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8b, 0x02, 0x0a, 0x05, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, + 0x49, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, + 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, + 0x2a, 0x01, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x35, 0x0a, 0x04, 0x64, 0x61, + 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x44, 0x61, 0x74, 0x61, + 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x04, 0x64, 0x61, 0x74, + 0x61, 0x12, 0x45, 0x0a, 0x08, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x4c, + 0x69, 0x73, 0x74, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x08, + 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x39, 0x0a, 0x0b, 0x6c, 0x61, 0x73, 0x74, + 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, + 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x22, 0xf5, 0x04, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x42, + 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1d, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x42, 0x09, + 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x12, 0x26, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe2, 0xde, 0x1f, 0x07, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x49, + 0x44, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, + 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x12, 0x3d, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x0d, 0xc8, 0xde, + 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x04, 0x74, 0x69, 0x6d, + 0x65, 0x12, 0x48, 0x0a, 0x0d, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, + 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x49, 0x44, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0b, + 0x6c, 0x61, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x6c, + 0x61, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x6c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x48, 0x61, 0x73, 0x68, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x68, 0x61, + 0x73, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x48, 0x61, + 0x73, 0x68, 0x12, 0x27, 0x0a, 0x0f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, + 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x76, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x48, 0x61, 0x73, 0x68, 0x12, 0x30, 0x0a, 0x14, 0x6e, + 0x65, 0x78, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x5f, 0x68, + 0x61, 0x73, 0x68, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x12, 0x6e, 0x65, 0x78, 0x74, 0x56, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x48, 0x61, 0x73, 0x68, 0x12, 0x25, 0x0a, + 0x0e, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, + 0x0a, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, + 0x48, 0x61, 0x73, 0x68, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x70, 0x70, 0x5f, 0x68, 0x61, 0x73, 0x68, + 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x70, 0x70, 0x48, 0x61, 0x73, 0x68, 0x12, + 0x2a, 0x0a, 0x11, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x5f, + 0x68, 0x61, 0x73, 0x68, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x6c, 0x61, 0x73, 0x74, + 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x48, 0x61, 0x73, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x65, + 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x0d, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x0c, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x48, 0x61, 0x73, 0x68, + 0x12, 0x29, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x70, + 0x6f, 0x73, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x8e, 0x02, 0x0a, 0x22, + 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, + 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x41, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x74, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x3b, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x42, 0x54, 0xaa, 0x02, 0x1e, 0x43, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x2e, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, + 0x6e, 0x74, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x1e, 0x43, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x5c, 0x42, 0x61, 0x73, 0x65, 0x5c, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, + 0x69, 0x6e, 0x74, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x2a, 0x43, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x42, 0x61, 0x73, 0x65, 0x5c, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x6d, 0x69, 0x6e, 0x74, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x21, 0x43, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x3a, 0x3a, 0x42, 0x61, 0x73, 0x65, 0x3a, 0x3a, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, + 0x69, 0x6e, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -2319,21 +2319,21 @@ var file_cosmos_base_tendermint_v1beta1_types_proto_msgTypes = make([]protoimpl. var file_cosmos_base_tendermint_v1beta1_types_proto_goTypes = []interface{}{ (*Block)(nil), // 0: cosmos.base.tendermint.v1beta1.Block (*Header)(nil), // 1: cosmos.base.tendermint.v1beta1.Header - (*v2.Data)(nil), // 2: cometbft.types.v2.Data - (*v2.EvidenceList)(nil), // 3: cometbft.types.v2.EvidenceList - (*v2.Commit)(nil), // 4: cometbft.types.v2.Commit - (*v1.Consensus)(nil), // 5: cometbft.version.v1.Consensus + (*types.Data)(nil), // 2: tendermint.types.Data + (*types.EvidenceList)(nil), // 3: tendermint.types.EvidenceList + (*types.Commit)(nil), // 4: tendermint.types.Commit + (*version.Consensus)(nil), // 5: tendermint.version.Consensus (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp - (*v2.BlockID)(nil), // 7: cometbft.types.v2.BlockID + (*types.BlockID)(nil), // 7: tendermint.types.BlockID } var file_cosmos_base_tendermint_v1beta1_types_proto_depIdxs = []int32{ 1, // 0: cosmos.base.tendermint.v1beta1.Block.header:type_name -> cosmos.base.tendermint.v1beta1.Header - 2, // 1: cosmos.base.tendermint.v1beta1.Block.data:type_name -> cometbft.types.v2.Data - 3, // 2: cosmos.base.tendermint.v1beta1.Block.evidence:type_name -> cometbft.types.v2.EvidenceList - 4, // 3: cosmos.base.tendermint.v1beta1.Block.last_commit:type_name -> cometbft.types.v2.Commit - 5, // 4: cosmos.base.tendermint.v1beta1.Header.version:type_name -> cometbft.version.v1.Consensus + 2, // 1: cosmos.base.tendermint.v1beta1.Block.data:type_name -> tendermint.types.Data + 3, // 2: cosmos.base.tendermint.v1beta1.Block.evidence:type_name -> tendermint.types.EvidenceList + 4, // 3: cosmos.base.tendermint.v1beta1.Block.last_commit:type_name -> tendermint.types.Commit + 5, // 4: cosmos.base.tendermint.v1beta1.Header.version:type_name -> tendermint.version.Consensus 6, // 5: cosmos.base.tendermint.v1beta1.Header.time:type_name -> google.protobuf.Timestamp - 7, // 6: cosmos.base.tendermint.v1beta1.Header.last_block_id:type_name -> cometbft.types.v2.BlockID + 7, // 6: cosmos.base.tendermint.v1beta1.Header.last_block_id:type_name -> tendermint.types.BlockID 7, // [7:7] is the sub-list for method output_type 7, // [7:7] is the sub-list for method input_type 7, // [7:7] is the sub-list for extension type_name diff --git a/api/cosmos/circuit/module/v1/module.pulsar.go b/api/cosmos/circuit/module/v1/module.pulsar.go deleted file mode 100644 index a3cd8db2ff..0000000000 --- a/api/cosmos/circuit/module/v1/module.pulsar.go +++ /dev/null @@ -1,579 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package modulev1 - -import ( - _ "cosmossdk.io/api/cosmos/app/v1alpha1" - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_Module protoreflect.MessageDescriptor - fd_Module_authority protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_circuit_module_v1_module_proto_init() - md_Module = File_cosmos_circuit_module_v1_module_proto.Messages().ByName("Module") - fd_Module_authority = md_Module.Fields().ByName("authority") -} - -var _ protoreflect.Message = (*fastReflection_Module)(nil) - -type fastReflection_Module Module - -func (x *Module) ProtoReflect() protoreflect.Message { - return (*fastReflection_Module)(x) -} - -func (x *Module) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_circuit_module_v1_module_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_Module_messageType fastReflection_Module_messageType -var _ protoreflect.MessageType = fastReflection_Module_messageType{} - -type fastReflection_Module_messageType struct{} - -func (x fastReflection_Module_messageType) Zero() protoreflect.Message { - return (*fastReflection_Module)(nil) -} -func (x fastReflection_Module_messageType) New() protoreflect.Message { - return new(fastReflection_Module) -} -func (x fastReflection_Module_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Module -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Module) Descriptor() protoreflect.MessageDescriptor { - return md_Module -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_Module) Type() protoreflect.MessageType { - return _fastReflection_Module_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Module) New() protoreflect.Message { - return new(fastReflection_Module) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Module) Interface() protoreflect.ProtoMessage { - return (*Module)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_Module) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Authority != "" { - value := protoreflect.ValueOfString(x.Authority) - if !f(fd_Module_authority, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.circuit.module.v1.Module.authority": - return x.Authority != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.module.v1.Module")) - } - panic(fmt.Errorf("message cosmos.circuit.module.v1.Module does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.circuit.module.v1.Module.authority": - x.Authority = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.module.v1.Module")) - } - panic(fmt.Errorf("message cosmos.circuit.module.v1.Module does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.circuit.module.v1.Module.authority": - value := x.Authority - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.module.v1.Module")) - } - panic(fmt.Errorf("message cosmos.circuit.module.v1.Module does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Module) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.circuit.module.v1.Module.authority": - x.Authority = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.module.v1.Module")) - } - panic(fmt.Errorf("message cosmos.circuit.module.v1.Module does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.circuit.module.v1.Module.authority": - panic(fmt.Errorf("field authority of message cosmos.circuit.module.v1.Module is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.module.v1.Module")) - } - panic(fmt.Errorf("message cosmos.circuit.module.v1.Module does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_Module) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.circuit.module.v1.Module.authority": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.module.v1.Module")) - } - panic(fmt.Errorf("message cosmos.circuit.module.v1.Module does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_Module) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.circuit.module.v1.Module", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_Module) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Module) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_Module) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Module) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Authority) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*Module) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Authority) > 0 { - i -= len(x.Authority) - copy(dAtA[i:], x.Authority) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*Module) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Authority = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cosmos/circuit/module/v1/module.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Module is the config object of the circuit module. -type Module struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // authority defines the custom module authority. If not set, defaults to the governance module. - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` -} - -func (x *Module) Reset() { - *x = Module{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_circuit_module_v1_module_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Module) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Module) ProtoMessage() {} - -// Deprecated: Use Module.ProtoReflect.Descriptor instead. -func (*Module) Descriptor() ([]byte, []int) { - return file_cosmos_circuit_module_v1_module_proto_rawDescGZIP(), []int{0} -} - -func (x *Module) GetAuthority() string { - if x != nil { - return x.Authority - } - return "" -} - -var File_cosmos_circuit_module_v1_module_proto protoreflect.FileDescriptor - -var file_cosmos_circuit_module_v1_module_proto_rawDesc = []byte{ - 0x0a, 0x25, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, - 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, - 0x31, 0x1a, 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x76, 0x31, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x22, 0x5e, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x1c, 0x0a, - 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x3a, 0x36, 0xba, 0xc0, 0x96, - 0xda, 0x01, 0x30, 0x0a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, - 0x6b, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x2f, 0x78, 0x2f, 0x63, 0x69, 0x72, 0x63, - 0x75, 0x69, 0x74, 0x42, 0xe2, 0x01, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, - 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x50, 0x01, 0x5a, 0x32, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, - 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x69, 0x72, - 0x63, 0x75, 0x69, 0x74, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x6d, - 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x4d, 0xaa, 0x02, 0x18, - 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x43, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x2e, 0x4d, - 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x18, 0x43, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x5c, 0x43, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, - 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x24, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x43, 0x69, 0x72, - 0x63, 0x75, 0x69, 0x74, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, - 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x43, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x43, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x3a, 0x3a, 0x4d, 0x6f, - 0x64, 0x75, 0x6c, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cosmos_circuit_module_v1_module_proto_rawDescOnce sync.Once - file_cosmos_circuit_module_v1_module_proto_rawDescData = file_cosmos_circuit_module_v1_module_proto_rawDesc -) - -func file_cosmos_circuit_module_v1_module_proto_rawDescGZIP() []byte { - file_cosmos_circuit_module_v1_module_proto_rawDescOnce.Do(func() { - file_cosmos_circuit_module_v1_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_circuit_module_v1_module_proto_rawDescData) - }) - return file_cosmos_circuit_module_v1_module_proto_rawDescData -} - -var file_cosmos_circuit_module_v1_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_cosmos_circuit_module_v1_module_proto_goTypes = []interface{}{ - (*Module)(nil), // 0: cosmos.circuit.module.v1.Module -} -var file_cosmos_circuit_module_v1_module_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_cosmos_circuit_module_v1_module_proto_init() } -func file_cosmos_circuit_module_v1_module_proto_init() { - if File_cosmos_circuit_module_v1_module_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cosmos_circuit_module_v1_module_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Module); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cosmos_circuit_module_v1_module_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cosmos_circuit_module_v1_module_proto_goTypes, - DependencyIndexes: file_cosmos_circuit_module_v1_module_proto_depIdxs, - MessageInfos: file_cosmos_circuit_module_v1_module_proto_msgTypes, - }.Build() - File_cosmos_circuit_module_v1_module_proto = out.File - file_cosmos_circuit_module_v1_module_proto_rawDesc = nil - file_cosmos_circuit_module_v1_module_proto_goTypes = nil - file_cosmos_circuit_module_v1_module_proto_depIdxs = nil -} diff --git a/api/cosmos/circuit/v1/query.pulsar.go b/api/cosmos/circuit/v1/query.pulsar.go deleted file mode 100644 index 20e4721372..0000000000 --- a/api/cosmos/circuit/v1/query.pulsar.go +++ /dev/null @@ -1,3174 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package circuitv1 - -import ( - v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1" - _ "cosmossdk.io/api/cosmos/query/v1" - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "google.golang.org/genproto/googleapis/api/annotations" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_QueryAccountRequest protoreflect.MessageDescriptor - fd_QueryAccountRequest_address protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_circuit_v1_query_proto_init() - md_QueryAccountRequest = File_cosmos_circuit_v1_query_proto.Messages().ByName("QueryAccountRequest") - fd_QueryAccountRequest_address = md_QueryAccountRequest.Fields().ByName("address") -} - -var _ protoreflect.Message = (*fastReflection_QueryAccountRequest)(nil) - -type fastReflection_QueryAccountRequest QueryAccountRequest - -func (x *QueryAccountRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAccountRequest)(x) -} - -func (x *QueryAccountRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_circuit_v1_query_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryAccountRequest_messageType fastReflection_QueryAccountRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryAccountRequest_messageType{} - -type fastReflection_QueryAccountRequest_messageType struct{} - -func (x fastReflection_QueryAccountRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryAccountRequest)(nil) -} -func (x fastReflection_QueryAccountRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryAccountRequest) -} -func (x fastReflection_QueryAccountRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAccountRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryAccountRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAccountRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryAccountRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryAccountRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAccountRequest) New() protoreflect.Message { - return new(fastReflection_QueryAccountRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAccountRequest) Interface() protoreflect.ProtoMessage { - return (*QueryAccountRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryAccountRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Address != "" { - value := protoreflect.ValueOfString(x.Address) - if !f(fd_QueryAccountRequest_address, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryAccountRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.circuit.v1.QueryAccountRequest.address": - return x.Address != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.QueryAccountRequest")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.QueryAccountRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAccountRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.circuit.v1.QueryAccountRequest.address": - x.Address = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.QueryAccountRequest")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.QueryAccountRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryAccountRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.circuit.v1.QueryAccountRequest.address": - value := x.Address - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.QueryAccountRequest")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.QueryAccountRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAccountRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.circuit.v1.QueryAccountRequest.address": - x.Address = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.QueryAccountRequest")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.QueryAccountRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAccountRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.circuit.v1.QueryAccountRequest.address": - panic(fmt.Errorf("field address of message cosmos.circuit.v1.QueryAccountRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.QueryAccountRequest")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.QueryAccountRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryAccountRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.circuit.v1.QueryAccountRequest.address": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.QueryAccountRequest")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.QueryAccountRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryAccountRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.circuit.v1.QueryAccountRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryAccountRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAccountRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryAccountRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryAccountRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryAccountRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Address) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryAccountRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Address) > 0 { - i -= len(x.Address) - copy(dAtA[i:], x.Address) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryAccountRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAccountRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAccountRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_AccountResponse protoreflect.MessageDescriptor - fd_AccountResponse_permission protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_circuit_v1_query_proto_init() - md_AccountResponse = File_cosmos_circuit_v1_query_proto.Messages().ByName("AccountResponse") - fd_AccountResponse_permission = md_AccountResponse.Fields().ByName("permission") -} - -var _ protoreflect.Message = (*fastReflection_AccountResponse)(nil) - -type fastReflection_AccountResponse AccountResponse - -func (x *AccountResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_AccountResponse)(x) -} - -func (x *AccountResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_circuit_v1_query_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_AccountResponse_messageType fastReflection_AccountResponse_messageType -var _ protoreflect.MessageType = fastReflection_AccountResponse_messageType{} - -type fastReflection_AccountResponse_messageType struct{} - -func (x fastReflection_AccountResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_AccountResponse)(nil) -} -func (x fastReflection_AccountResponse_messageType) New() protoreflect.Message { - return new(fastReflection_AccountResponse) -} -func (x fastReflection_AccountResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_AccountResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_AccountResponse) Descriptor() protoreflect.MessageDescriptor { - return md_AccountResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_AccountResponse) Type() protoreflect.MessageType { - return _fastReflection_AccountResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_AccountResponse) New() protoreflect.Message { - return new(fastReflection_AccountResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_AccountResponse) Interface() protoreflect.ProtoMessage { - return (*AccountResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_AccountResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Permission != nil { - value := protoreflect.ValueOfMessage(x.Permission.ProtoReflect()) - if !f(fd_AccountResponse_permission, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_AccountResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.circuit.v1.AccountResponse.permission": - return x.Permission != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.AccountResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.AccountResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AccountResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.circuit.v1.AccountResponse.permission": - x.Permission = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.AccountResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.AccountResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_AccountResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.circuit.v1.AccountResponse.permission": - value := x.Permission - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.AccountResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.AccountResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AccountResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.circuit.v1.AccountResponse.permission": - x.Permission = value.Message().Interface().(*Permissions) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.AccountResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.AccountResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AccountResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.circuit.v1.AccountResponse.permission": - if x.Permission == nil { - x.Permission = new(Permissions) - } - return protoreflect.ValueOfMessage(x.Permission.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.AccountResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.AccountResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_AccountResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.circuit.v1.AccountResponse.permission": - m := new(Permissions) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.AccountResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.AccountResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_AccountResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.circuit.v1.AccountResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_AccountResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AccountResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_AccountResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_AccountResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*AccountResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Permission != nil { - l = options.Size(x.Permission) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*AccountResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Permission != nil { - encoded, err := options.Marshal(x.Permission) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*AccountResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AccountResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AccountResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Permission == nil { - x.Permission = &Permissions{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Permission); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryAccountsRequest protoreflect.MessageDescriptor - fd_QueryAccountsRequest_pagination protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_circuit_v1_query_proto_init() - md_QueryAccountsRequest = File_cosmos_circuit_v1_query_proto.Messages().ByName("QueryAccountsRequest") - fd_QueryAccountsRequest_pagination = md_QueryAccountsRequest.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryAccountsRequest)(nil) - -type fastReflection_QueryAccountsRequest QueryAccountsRequest - -func (x *QueryAccountsRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAccountsRequest)(x) -} - -func (x *QueryAccountsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_circuit_v1_query_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryAccountsRequest_messageType fastReflection_QueryAccountsRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryAccountsRequest_messageType{} - -type fastReflection_QueryAccountsRequest_messageType struct{} - -func (x fastReflection_QueryAccountsRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryAccountsRequest)(nil) -} -func (x fastReflection_QueryAccountsRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryAccountsRequest) -} -func (x fastReflection_QueryAccountsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAccountsRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryAccountsRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAccountsRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryAccountsRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryAccountsRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAccountsRequest) New() protoreflect.Message { - return new(fastReflection_QueryAccountsRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAccountsRequest) Interface() protoreflect.ProtoMessage { - return (*QueryAccountsRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryAccountsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryAccountsRequest_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryAccountsRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.circuit.v1.QueryAccountsRequest.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.QueryAccountsRequest")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.QueryAccountsRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAccountsRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.circuit.v1.QueryAccountsRequest.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.QueryAccountsRequest")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.QueryAccountsRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryAccountsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.circuit.v1.QueryAccountsRequest.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.QueryAccountsRequest")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.QueryAccountsRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAccountsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.circuit.v1.QueryAccountsRequest.pagination": - x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.QueryAccountsRequest")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.QueryAccountsRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAccountsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.circuit.v1.QueryAccountsRequest.pagination": - if x.Pagination == nil { - x.Pagination = new(v1beta1.PageRequest) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.QueryAccountsRequest")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.QueryAccountsRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryAccountsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.circuit.v1.QueryAccountsRequest.pagination": - m := new(v1beta1.PageRequest) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.QueryAccountsRequest")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.QueryAccountsRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryAccountsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.circuit.v1.QueryAccountsRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryAccountsRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAccountsRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryAccountsRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryAccountsRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryAccountsRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryAccountsRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryAccountsRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAccountsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAccountsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &v1beta1.PageRequest{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_AccountsResponse_1_list)(nil) - -type _AccountsResponse_1_list struct { - list *[]*GenesisAccountPermissions -} - -func (x *_AccountsResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_AccountsResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_AccountsResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*GenesisAccountPermissions) - (*x.list)[i] = concreteValue -} - -func (x *_AccountsResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*GenesisAccountPermissions) - *x.list = append(*x.list, concreteValue) -} - -func (x *_AccountsResponse_1_list) AppendMutable() protoreflect.Value { - v := new(GenesisAccountPermissions) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_AccountsResponse_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_AccountsResponse_1_list) NewElement() protoreflect.Value { - v := new(GenesisAccountPermissions) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_AccountsResponse_1_list) IsValid() bool { - return x.list != nil -} - -var ( - md_AccountsResponse protoreflect.MessageDescriptor - fd_AccountsResponse_accounts protoreflect.FieldDescriptor - fd_AccountsResponse_pagination protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_circuit_v1_query_proto_init() - md_AccountsResponse = File_cosmos_circuit_v1_query_proto.Messages().ByName("AccountsResponse") - fd_AccountsResponse_accounts = md_AccountsResponse.Fields().ByName("accounts") - fd_AccountsResponse_pagination = md_AccountsResponse.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_AccountsResponse)(nil) - -type fastReflection_AccountsResponse AccountsResponse - -func (x *AccountsResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_AccountsResponse)(x) -} - -func (x *AccountsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_circuit_v1_query_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_AccountsResponse_messageType fastReflection_AccountsResponse_messageType -var _ protoreflect.MessageType = fastReflection_AccountsResponse_messageType{} - -type fastReflection_AccountsResponse_messageType struct{} - -func (x fastReflection_AccountsResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_AccountsResponse)(nil) -} -func (x fastReflection_AccountsResponse_messageType) New() protoreflect.Message { - return new(fastReflection_AccountsResponse) -} -func (x fastReflection_AccountsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_AccountsResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_AccountsResponse) Descriptor() protoreflect.MessageDescriptor { - return md_AccountsResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_AccountsResponse) Type() protoreflect.MessageType { - return _fastReflection_AccountsResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_AccountsResponse) New() protoreflect.Message { - return new(fastReflection_AccountsResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_AccountsResponse) Interface() protoreflect.ProtoMessage { - return (*AccountsResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_AccountsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Accounts) != 0 { - value := protoreflect.ValueOfList(&_AccountsResponse_1_list{list: &x.Accounts}) - if !f(fd_AccountsResponse_accounts, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_AccountsResponse_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_AccountsResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.circuit.v1.AccountsResponse.accounts": - return len(x.Accounts) != 0 - case "cosmos.circuit.v1.AccountsResponse.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.AccountsResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.AccountsResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AccountsResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.circuit.v1.AccountsResponse.accounts": - x.Accounts = nil - case "cosmos.circuit.v1.AccountsResponse.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.AccountsResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.AccountsResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_AccountsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.circuit.v1.AccountsResponse.accounts": - if len(x.Accounts) == 0 { - return protoreflect.ValueOfList(&_AccountsResponse_1_list{}) - } - listValue := &_AccountsResponse_1_list{list: &x.Accounts} - return protoreflect.ValueOfList(listValue) - case "cosmos.circuit.v1.AccountsResponse.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.AccountsResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.AccountsResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AccountsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.circuit.v1.AccountsResponse.accounts": - lv := value.List() - clv := lv.(*_AccountsResponse_1_list) - x.Accounts = *clv.list - case "cosmos.circuit.v1.AccountsResponse.pagination": - x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.AccountsResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.AccountsResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AccountsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.circuit.v1.AccountsResponse.accounts": - if x.Accounts == nil { - x.Accounts = []*GenesisAccountPermissions{} - } - value := &_AccountsResponse_1_list{list: &x.Accounts} - return protoreflect.ValueOfList(value) - case "cosmos.circuit.v1.AccountsResponse.pagination": - if x.Pagination == nil { - x.Pagination = new(v1beta1.PageResponse) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.AccountsResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.AccountsResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_AccountsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.circuit.v1.AccountsResponse.accounts": - list := []*GenesisAccountPermissions{} - return protoreflect.ValueOfList(&_AccountsResponse_1_list{list: &list}) - case "cosmos.circuit.v1.AccountsResponse.pagination": - m := new(v1beta1.PageResponse) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.AccountsResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.AccountsResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_AccountsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.circuit.v1.AccountsResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_AccountsResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AccountsResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_AccountsResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_AccountsResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*AccountsResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.Accounts) > 0 { - for _, e := range x.Accounts { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*AccountsResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Accounts) > 0 { - for iNdEx := len(x.Accounts) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Accounts[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*AccountsResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AccountsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AccountsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Accounts", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Accounts = append(x.Accounts, &GenesisAccountPermissions{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Accounts[len(x.Accounts)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &v1beta1.PageResponse{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryDisabledListRequest protoreflect.MessageDescriptor -) - -func init() { - file_cosmos_circuit_v1_query_proto_init() - md_QueryDisabledListRequest = File_cosmos_circuit_v1_query_proto.Messages().ByName("QueryDisabledListRequest") -} - -var _ protoreflect.Message = (*fastReflection_QueryDisabledListRequest)(nil) - -type fastReflection_QueryDisabledListRequest QueryDisabledListRequest - -func (x *QueryDisabledListRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryDisabledListRequest)(x) -} - -func (x *QueryDisabledListRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_circuit_v1_query_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryDisabledListRequest_messageType fastReflection_QueryDisabledListRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryDisabledListRequest_messageType{} - -type fastReflection_QueryDisabledListRequest_messageType struct{} - -func (x fastReflection_QueryDisabledListRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryDisabledListRequest)(nil) -} -func (x fastReflection_QueryDisabledListRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryDisabledListRequest) -} -func (x fastReflection_QueryDisabledListRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryDisabledListRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryDisabledListRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryDisabledListRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryDisabledListRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryDisabledListRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryDisabledListRequest) New() protoreflect.Message { - return new(fastReflection_QueryDisabledListRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryDisabledListRequest) Interface() protoreflect.ProtoMessage { - return (*QueryDisabledListRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryDisabledListRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryDisabledListRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.QueryDisabledListRequest")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.QueryDisabledListRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDisabledListRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.QueryDisabledListRequest")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.QueryDisabledListRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryDisabledListRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.QueryDisabledListRequest")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.QueryDisabledListRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDisabledListRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.QueryDisabledListRequest")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.QueryDisabledListRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDisabledListRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.QueryDisabledListRequest")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.QueryDisabledListRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryDisabledListRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.QueryDisabledListRequest")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.QueryDisabledListRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryDisabledListRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.circuit.v1.QueryDisabledListRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryDisabledListRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDisabledListRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryDisabledListRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryDisabledListRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryDisabledListRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryDisabledListRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryDisabledListRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDisabledListRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDisabledListRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_DisabledListResponse_1_list)(nil) - -type _DisabledListResponse_1_list struct { - list *[]string -} - -func (x *_DisabledListResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_DisabledListResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_DisabledListResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_DisabledListResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_DisabledListResponse_1_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message DisabledListResponse at list field DisabledList as it is not of Message kind")) -} - -func (x *_DisabledListResponse_1_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_DisabledListResponse_1_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_DisabledListResponse_1_list) IsValid() bool { - return x.list != nil -} - -var ( - md_DisabledListResponse protoreflect.MessageDescriptor - fd_DisabledListResponse_disabled_list protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_circuit_v1_query_proto_init() - md_DisabledListResponse = File_cosmos_circuit_v1_query_proto.Messages().ByName("DisabledListResponse") - fd_DisabledListResponse_disabled_list = md_DisabledListResponse.Fields().ByName("disabled_list") -} - -var _ protoreflect.Message = (*fastReflection_DisabledListResponse)(nil) - -type fastReflection_DisabledListResponse DisabledListResponse - -func (x *DisabledListResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_DisabledListResponse)(x) -} - -func (x *DisabledListResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_circuit_v1_query_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_DisabledListResponse_messageType fastReflection_DisabledListResponse_messageType -var _ protoreflect.MessageType = fastReflection_DisabledListResponse_messageType{} - -type fastReflection_DisabledListResponse_messageType struct{} - -func (x fastReflection_DisabledListResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_DisabledListResponse)(nil) -} -func (x fastReflection_DisabledListResponse_messageType) New() protoreflect.Message { - return new(fastReflection_DisabledListResponse) -} -func (x fastReflection_DisabledListResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_DisabledListResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_DisabledListResponse) Descriptor() protoreflect.MessageDescriptor { - return md_DisabledListResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_DisabledListResponse) Type() protoreflect.MessageType { - return _fastReflection_DisabledListResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_DisabledListResponse) New() protoreflect.Message { - return new(fastReflection_DisabledListResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_DisabledListResponse) Interface() protoreflect.ProtoMessage { - return (*DisabledListResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_DisabledListResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.DisabledList) != 0 { - value := protoreflect.ValueOfList(&_DisabledListResponse_1_list{list: &x.DisabledList}) - if !f(fd_DisabledListResponse_disabled_list, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_DisabledListResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.circuit.v1.DisabledListResponse.disabled_list": - return len(x.DisabledList) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.DisabledListResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.DisabledListResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_DisabledListResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.circuit.v1.DisabledListResponse.disabled_list": - x.DisabledList = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.DisabledListResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.DisabledListResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_DisabledListResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.circuit.v1.DisabledListResponse.disabled_list": - if len(x.DisabledList) == 0 { - return protoreflect.ValueOfList(&_DisabledListResponse_1_list{}) - } - listValue := &_DisabledListResponse_1_list{list: &x.DisabledList} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.DisabledListResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.DisabledListResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_DisabledListResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.circuit.v1.DisabledListResponse.disabled_list": - lv := value.List() - clv := lv.(*_DisabledListResponse_1_list) - x.DisabledList = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.DisabledListResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.DisabledListResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_DisabledListResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.circuit.v1.DisabledListResponse.disabled_list": - if x.DisabledList == nil { - x.DisabledList = []string{} - } - value := &_DisabledListResponse_1_list{list: &x.DisabledList} - return protoreflect.ValueOfList(value) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.DisabledListResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.DisabledListResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_DisabledListResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.circuit.v1.DisabledListResponse.disabled_list": - list := []string{} - return protoreflect.ValueOfList(&_DisabledListResponse_1_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.DisabledListResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.DisabledListResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_DisabledListResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.circuit.v1.DisabledListResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_DisabledListResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_DisabledListResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_DisabledListResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_DisabledListResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*DisabledListResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.DisabledList) > 0 { - for _, s := range x.DisabledList { - l = len(s) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*DisabledListResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.DisabledList) > 0 { - for iNdEx := len(x.DisabledList) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.DisabledList[iNdEx]) - copy(dAtA[i:], x.DisabledList[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DisabledList[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*DisabledListResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: DisabledListResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: DisabledListResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DisabledList", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.DisabledList = append(x.DisabledList, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cosmos/circuit/v1/query.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// QueryAccountRequest is the request type for the Query/Account RPC method. -type QueryAccountRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` -} - -func (x *QueryAccountRequest) Reset() { - *x = QueryAccountRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_circuit_v1_query_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryAccountRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryAccountRequest) ProtoMessage() {} - -// Deprecated: Use QueryAccountRequest.ProtoReflect.Descriptor instead. -func (*QueryAccountRequest) Descriptor() ([]byte, []int) { - return file_cosmos_circuit_v1_query_proto_rawDescGZIP(), []int{0} -} - -func (x *QueryAccountRequest) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -// AccountResponse is the response type for the Query/Account RPC method. -type AccountResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Permission *Permissions `protobuf:"bytes,1,opt,name=permission,proto3" json:"permission,omitempty"` -} - -func (x *AccountResponse) Reset() { - *x = AccountResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_circuit_v1_query_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AccountResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AccountResponse) ProtoMessage() {} - -// Deprecated: Use AccountResponse.ProtoReflect.Descriptor instead. -func (*AccountResponse) Descriptor() ([]byte, []int) { - return file_cosmos_circuit_v1_query_proto_rawDescGZIP(), []int{1} -} - -func (x *AccountResponse) GetPermission() *Permissions { - if x != nil { - return x.Permission - } - return nil -} - -// QueryAccountsRequest is the request type for the Query/Accounts RPC method. -type QueryAccountsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // pagination defines an optional pagination for the request. - Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *QueryAccountsRequest) Reset() { - *x = QueryAccountsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_circuit_v1_query_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryAccountsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryAccountsRequest) ProtoMessage() {} - -// Deprecated: Use QueryAccountsRequest.ProtoReflect.Descriptor instead. -func (*QueryAccountsRequest) Descriptor() ([]byte, []int) { - return file_cosmos_circuit_v1_query_proto_rawDescGZIP(), []int{2} -} - -func (x *QueryAccountsRequest) GetPagination() *v1beta1.PageRequest { - if x != nil { - return x.Pagination - } - return nil -} - -// AccountsResponse is the response type for the Query/Accounts RPC method. -type AccountsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Accounts []*GenesisAccountPermissions `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` - // pagination defines the pagination in the response. - Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *AccountsResponse) Reset() { - *x = AccountsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_circuit_v1_query_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AccountsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AccountsResponse) ProtoMessage() {} - -// Deprecated: Use AccountsResponse.ProtoReflect.Descriptor instead. -func (*AccountsResponse) Descriptor() ([]byte, []int) { - return file_cosmos_circuit_v1_query_proto_rawDescGZIP(), []int{3} -} - -func (x *AccountsResponse) GetAccounts() []*GenesisAccountPermissions { - if x != nil { - return x.Accounts - } - return nil -} - -func (x *AccountsResponse) GetPagination() *v1beta1.PageResponse { - if x != nil { - return x.Pagination - } - return nil -} - -// QueryDisableListRequest is the request type for the Query/DisabledList RPC method. -type QueryDisabledListRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *QueryDisabledListRequest) Reset() { - *x = QueryDisabledListRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_circuit_v1_query_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryDisabledListRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryDisabledListRequest) ProtoMessage() {} - -// Deprecated: Use QueryDisabledListRequest.ProtoReflect.Descriptor instead. -func (*QueryDisabledListRequest) Descriptor() ([]byte, []int) { - return file_cosmos_circuit_v1_query_proto_rawDescGZIP(), []int{4} -} - -// DisabledListResponse is the response type for the Query/DisabledList RPC method. -type DisabledListResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DisabledList []string `protobuf:"bytes,1,rep,name=disabled_list,json=disabledList,proto3" json:"disabled_list,omitempty"` -} - -func (x *DisabledListResponse) Reset() { - *x = DisabledListResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_circuit_v1_query_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DisabledListResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DisabledListResponse) ProtoMessage() {} - -// Deprecated: Use DisabledListResponse.ProtoReflect.Descriptor instead. -func (*DisabledListResponse) Descriptor() ([]byte, []int) { - return file_cosmos_circuit_v1_query_proto_rawDescGZIP(), []int{5} -} - -func (x *DisabledListResponse) GetDisabledList() []string { - if x != nil { - return x.DisabledList - } - return nil -} - -var File_cosmos_circuit_v1_query_proto protoreflect.FileDescriptor - -var file_cosmos_circuit_v1_query_proto_rawDesc = []byte{ - 0x0a, 0x1d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, - 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x11, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x2e, - 0x76, 0x31, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, - 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, - 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x2f, 0x76, - 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, - 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2f, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x51, 0x0a, 0x0f, 0x41, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x0a, - 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1e, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x52, 0x0a, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x5e, 0x0a, 0x14, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa5, 0x01, 0x0a, - 0x10, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x48, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x63, 0x69, 0x72, - 0x63, 0x75, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x41, - 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x52, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, - 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, - 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x1a, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x69, 0x73, - 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x22, 0x3b, 0x0a, 0x14, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4c, 0x69, 0x73, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x69, 0x73, 0x61, - 0x62, 0x6c, 0x65, 0x64, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x0c, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x32, 0xad, 0x03, - 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x89, 0x01, 0x0a, 0x07, 0x41, 0x63, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x12, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x63, 0x69, 0x72, - 0x63, 0x75, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, - 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x32, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, 0x25, 0x2f, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x2f, 0x76, 0x31, - 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x7d, 0x12, 0x82, 0x01, 0x0a, 0x08, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, - 0x12, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, - 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, - 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x92, 0x01, 0x0a, 0x0c, 0x44, 0x69, 0x73, - 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2b, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, - 0x6c, 0x65, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x2c, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12, 0x1f, 0x2f, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x2f, 0x76, 0x31, - 0x2f, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x42, 0xb7, 0x01, - 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x63, 0x69, 0x72, - 0x63, 0x75, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, - 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, - 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, - 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x11, 0x43, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x43, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x11, - 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x43, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x5c, 0x56, - 0x31, 0xe2, 0x02, 0x1d, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x43, 0x69, 0x72, 0x63, 0x75, - 0x69, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0xea, 0x02, 0x13, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x43, 0x69, 0x72, 0x63, - 0x75, 0x69, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cosmos_circuit_v1_query_proto_rawDescOnce sync.Once - file_cosmos_circuit_v1_query_proto_rawDescData = file_cosmos_circuit_v1_query_proto_rawDesc -) - -func file_cosmos_circuit_v1_query_proto_rawDescGZIP() []byte { - file_cosmos_circuit_v1_query_proto_rawDescOnce.Do(func() { - file_cosmos_circuit_v1_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_circuit_v1_query_proto_rawDescData) - }) - return file_cosmos_circuit_v1_query_proto_rawDescData -} - -var file_cosmos_circuit_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_cosmos_circuit_v1_query_proto_goTypes = []interface{}{ - (*QueryAccountRequest)(nil), // 0: cosmos.circuit.v1.QueryAccountRequest - (*AccountResponse)(nil), // 1: cosmos.circuit.v1.AccountResponse - (*QueryAccountsRequest)(nil), // 2: cosmos.circuit.v1.QueryAccountsRequest - (*AccountsResponse)(nil), // 3: cosmos.circuit.v1.AccountsResponse - (*QueryDisabledListRequest)(nil), // 4: cosmos.circuit.v1.QueryDisabledListRequest - (*DisabledListResponse)(nil), // 5: cosmos.circuit.v1.DisabledListResponse - (*Permissions)(nil), // 6: cosmos.circuit.v1.Permissions - (*v1beta1.PageRequest)(nil), // 7: cosmos.base.query.v1beta1.PageRequest - (*GenesisAccountPermissions)(nil), // 8: cosmos.circuit.v1.GenesisAccountPermissions - (*v1beta1.PageResponse)(nil), // 9: cosmos.base.query.v1beta1.PageResponse -} -var file_cosmos_circuit_v1_query_proto_depIdxs = []int32{ - 6, // 0: cosmos.circuit.v1.AccountResponse.permission:type_name -> cosmos.circuit.v1.Permissions - 7, // 1: cosmos.circuit.v1.QueryAccountsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 8, // 2: cosmos.circuit.v1.AccountsResponse.accounts:type_name -> cosmos.circuit.v1.GenesisAccountPermissions - 9, // 3: cosmos.circuit.v1.AccountsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 0, // 4: cosmos.circuit.v1.Query.Account:input_type -> cosmos.circuit.v1.QueryAccountRequest - 2, // 5: cosmos.circuit.v1.Query.Accounts:input_type -> cosmos.circuit.v1.QueryAccountsRequest - 4, // 6: cosmos.circuit.v1.Query.DisabledList:input_type -> cosmos.circuit.v1.QueryDisabledListRequest - 1, // 7: cosmos.circuit.v1.Query.Account:output_type -> cosmos.circuit.v1.AccountResponse - 3, // 8: cosmos.circuit.v1.Query.Accounts:output_type -> cosmos.circuit.v1.AccountsResponse - 5, // 9: cosmos.circuit.v1.Query.DisabledList:output_type -> cosmos.circuit.v1.DisabledListResponse - 7, // [7:10] is the sub-list for method output_type - 4, // [4:7] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name -} - -func init() { file_cosmos_circuit_v1_query_proto_init() } -func file_cosmos_circuit_v1_query_proto_init() { - if File_cosmos_circuit_v1_query_proto != nil { - return - } - file_cosmos_circuit_v1_types_proto_init() - if !protoimpl.UnsafeEnabled { - file_cosmos_circuit_v1_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAccountRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_circuit_v1_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AccountResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_circuit_v1_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAccountsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_circuit_v1_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AccountsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_circuit_v1_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryDisabledListRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_circuit_v1_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DisabledListResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cosmos_circuit_v1_query_proto_rawDesc, - NumEnums: 0, - NumMessages: 6, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_cosmos_circuit_v1_query_proto_goTypes, - DependencyIndexes: file_cosmos_circuit_v1_query_proto_depIdxs, - MessageInfos: file_cosmos_circuit_v1_query_proto_msgTypes, - }.Build() - File_cosmos_circuit_v1_query_proto = out.File - file_cosmos_circuit_v1_query_proto_rawDesc = nil - file_cosmos_circuit_v1_query_proto_goTypes = nil - file_cosmos_circuit_v1_query_proto_depIdxs = nil -} diff --git a/api/cosmos/circuit/v1/query_grpc.pb.go b/api/cosmos/circuit/v1/query_grpc.pb.go deleted file mode 100644 index 84fc70dcba..0000000000 --- a/api/cosmos/circuit/v1/query_grpc.pb.go +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.5.1 -// - protoc (unknown) -// source: cosmos/circuit/v1/query.proto - -package circuitv1 - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.64.0 or later. -const _ = grpc.SupportPackageIsVersion9 - -const ( - Query_Account_FullMethodName = "/cosmos.circuit.v1.Query/Account" - Query_Accounts_FullMethodName = "/cosmos.circuit.v1.Query/Accounts" - Query_DisabledList_FullMethodName = "/cosmos.circuit.v1.Query/DisabledList" -) - -// QueryClient is the client API for Query service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -// -// Query defines the circuit gRPC querier service. -type QueryClient interface { - // Account returns account permissions. - Account(ctx context.Context, in *QueryAccountRequest, opts ...grpc.CallOption) (*AccountResponse, error) - // Account returns account permissions. - Accounts(ctx context.Context, in *QueryAccountsRequest, opts ...grpc.CallOption) (*AccountsResponse, error) - // DisabledList returns a list of disabled message urls - DisabledList(ctx context.Context, in *QueryDisabledListRequest, opts ...grpc.CallOption) (*DisabledListResponse, error) -} - -type queryClient struct { - cc grpc.ClientConnInterface -} - -func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { - return &queryClient{cc} -} - -func (c *queryClient) Account(ctx context.Context, in *QueryAccountRequest, opts ...grpc.CallOption) (*AccountResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(AccountResponse) - err := c.cc.Invoke(ctx, Query_Account_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Accounts(ctx context.Context, in *QueryAccountsRequest, opts ...grpc.CallOption) (*AccountsResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(AccountsResponse) - err := c.cc.Invoke(ctx, Query_Accounts_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) DisabledList(ctx context.Context, in *QueryDisabledListRequest, opts ...grpc.CallOption) (*DisabledListResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(DisabledListResponse) - err := c.cc.Invoke(ctx, Query_DisabledList_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -// QueryServer is the server API for Query service. -// All implementations must embed UnimplementedQueryServer -// for forward compatibility. -// -// Query defines the circuit gRPC querier service. -type QueryServer interface { - // Account returns account permissions. - Account(context.Context, *QueryAccountRequest) (*AccountResponse, error) - // Account returns account permissions. - Accounts(context.Context, *QueryAccountsRequest) (*AccountsResponse, error) - // DisabledList returns a list of disabled message urls - DisabledList(context.Context, *QueryDisabledListRequest) (*DisabledListResponse, error) - mustEmbedUnimplementedQueryServer() -} - -// UnimplementedQueryServer must be embedded to have -// forward compatible implementations. -// -// NOTE: this should be embedded by value instead of pointer to avoid a nil -// pointer dereference when methods are called. -type UnimplementedQueryServer struct{} - -func (UnimplementedQueryServer) Account(context.Context, *QueryAccountRequest) (*AccountResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Account not implemented") -} -func (UnimplementedQueryServer) Accounts(context.Context, *QueryAccountsRequest) (*AccountsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Accounts not implemented") -} -func (UnimplementedQueryServer) DisabledList(context.Context, *QueryDisabledListRequest) (*DisabledListResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DisabledList not implemented") -} -func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} -func (UnimplementedQueryServer) testEmbeddedByValue() {} - -// UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to QueryServer will -// result in compilation errors. -type UnsafeQueryServer interface { - mustEmbedUnimplementedQueryServer() -} - -func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) { - // If the following call pancis, it indicates UnimplementedQueryServer was - // embedded by pointer and is nil. This will cause panics if an - // unimplemented method is ever invoked, so we test this at initialization - // time to prevent it from happening at runtime later due to I/O. - if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { - t.testEmbeddedByValue() - } - s.RegisterService(&Query_ServiceDesc, srv) -} - -func _Query_Account_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAccountRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Account(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_Account_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Account(ctx, req.(*QueryAccountRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Accounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAccountsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Accounts(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_Accounts_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Accounts(ctx, req.(*QueryAccountsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_DisabledList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryDisabledListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).DisabledList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_DisabledList_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).DisabledList(ctx, req.(*QueryDisabledListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// Query_ServiceDesc is the grpc.ServiceDesc for Query service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var Query_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "cosmos.circuit.v1.Query", - HandlerType: (*QueryServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Account", - Handler: _Query_Account_Handler, - }, - { - MethodName: "Accounts", - Handler: _Query_Accounts_Handler, - }, - { - MethodName: "DisabledList", - Handler: _Query_DisabledList_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "cosmos/circuit/v1/query.proto", -} diff --git a/api/cosmos/circuit/v1/tx.pulsar.go b/api/cosmos/circuit/v1/tx.pulsar.go deleted file mode 100644 index a6a43bb1e7..0000000000 --- a/api/cosmos/circuit/v1/tx.pulsar.go +++ /dev/null @@ -1,3391 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package circuitv1 - -import ( - _ "cosmossdk.io/api/cosmos/msg/v1" - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_MsgAuthorizeCircuitBreaker protoreflect.MessageDescriptor - fd_MsgAuthorizeCircuitBreaker_granter protoreflect.FieldDescriptor - fd_MsgAuthorizeCircuitBreaker_grantee protoreflect.FieldDescriptor - fd_MsgAuthorizeCircuitBreaker_permissions protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_circuit_v1_tx_proto_init() - md_MsgAuthorizeCircuitBreaker = File_cosmos_circuit_v1_tx_proto.Messages().ByName("MsgAuthorizeCircuitBreaker") - fd_MsgAuthorizeCircuitBreaker_granter = md_MsgAuthorizeCircuitBreaker.Fields().ByName("granter") - fd_MsgAuthorizeCircuitBreaker_grantee = md_MsgAuthorizeCircuitBreaker.Fields().ByName("grantee") - fd_MsgAuthorizeCircuitBreaker_permissions = md_MsgAuthorizeCircuitBreaker.Fields().ByName("permissions") -} - -var _ protoreflect.Message = (*fastReflection_MsgAuthorizeCircuitBreaker)(nil) - -type fastReflection_MsgAuthorizeCircuitBreaker MsgAuthorizeCircuitBreaker - -func (x *MsgAuthorizeCircuitBreaker) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgAuthorizeCircuitBreaker)(x) -} - -func (x *MsgAuthorizeCircuitBreaker) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_circuit_v1_tx_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgAuthorizeCircuitBreaker_messageType fastReflection_MsgAuthorizeCircuitBreaker_messageType -var _ protoreflect.MessageType = fastReflection_MsgAuthorizeCircuitBreaker_messageType{} - -type fastReflection_MsgAuthorizeCircuitBreaker_messageType struct{} - -func (x fastReflection_MsgAuthorizeCircuitBreaker_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgAuthorizeCircuitBreaker)(nil) -} -func (x fastReflection_MsgAuthorizeCircuitBreaker_messageType) New() protoreflect.Message { - return new(fastReflection_MsgAuthorizeCircuitBreaker) -} -func (x fastReflection_MsgAuthorizeCircuitBreaker_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgAuthorizeCircuitBreaker -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgAuthorizeCircuitBreaker) Descriptor() protoreflect.MessageDescriptor { - return md_MsgAuthorizeCircuitBreaker -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgAuthorizeCircuitBreaker) Type() protoreflect.MessageType { - return _fastReflection_MsgAuthorizeCircuitBreaker_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgAuthorizeCircuitBreaker) New() protoreflect.Message { - return new(fastReflection_MsgAuthorizeCircuitBreaker) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgAuthorizeCircuitBreaker) Interface() protoreflect.ProtoMessage { - return (*MsgAuthorizeCircuitBreaker)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgAuthorizeCircuitBreaker) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Granter != "" { - value := protoreflect.ValueOfString(x.Granter) - if !f(fd_MsgAuthorizeCircuitBreaker_granter, value) { - return - } - } - if x.Grantee != "" { - value := protoreflect.ValueOfString(x.Grantee) - if !f(fd_MsgAuthorizeCircuitBreaker_grantee, value) { - return - } - } - if x.Permissions != nil { - value := protoreflect.ValueOfMessage(x.Permissions.ProtoReflect()) - if !f(fd_MsgAuthorizeCircuitBreaker_permissions, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgAuthorizeCircuitBreaker) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.circuit.v1.MsgAuthorizeCircuitBreaker.granter": - return x.Granter != "" - case "cosmos.circuit.v1.MsgAuthorizeCircuitBreaker.grantee": - return x.Grantee != "" - case "cosmos.circuit.v1.MsgAuthorizeCircuitBreaker.permissions": - return x.Permissions != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgAuthorizeCircuitBreaker")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgAuthorizeCircuitBreaker does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAuthorizeCircuitBreaker) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.circuit.v1.MsgAuthorizeCircuitBreaker.granter": - x.Granter = "" - case "cosmos.circuit.v1.MsgAuthorizeCircuitBreaker.grantee": - x.Grantee = "" - case "cosmos.circuit.v1.MsgAuthorizeCircuitBreaker.permissions": - x.Permissions = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgAuthorizeCircuitBreaker")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgAuthorizeCircuitBreaker does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgAuthorizeCircuitBreaker) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.circuit.v1.MsgAuthorizeCircuitBreaker.granter": - value := x.Granter - return protoreflect.ValueOfString(value) - case "cosmos.circuit.v1.MsgAuthorizeCircuitBreaker.grantee": - value := x.Grantee - return protoreflect.ValueOfString(value) - case "cosmos.circuit.v1.MsgAuthorizeCircuitBreaker.permissions": - value := x.Permissions - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgAuthorizeCircuitBreaker")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgAuthorizeCircuitBreaker does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAuthorizeCircuitBreaker) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.circuit.v1.MsgAuthorizeCircuitBreaker.granter": - x.Granter = value.Interface().(string) - case "cosmos.circuit.v1.MsgAuthorizeCircuitBreaker.grantee": - x.Grantee = value.Interface().(string) - case "cosmos.circuit.v1.MsgAuthorizeCircuitBreaker.permissions": - x.Permissions = value.Message().Interface().(*Permissions) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgAuthorizeCircuitBreaker")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgAuthorizeCircuitBreaker does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAuthorizeCircuitBreaker) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.circuit.v1.MsgAuthorizeCircuitBreaker.permissions": - if x.Permissions == nil { - x.Permissions = new(Permissions) - } - return protoreflect.ValueOfMessage(x.Permissions.ProtoReflect()) - case "cosmos.circuit.v1.MsgAuthorizeCircuitBreaker.granter": - panic(fmt.Errorf("field granter of message cosmos.circuit.v1.MsgAuthorizeCircuitBreaker is not mutable")) - case "cosmos.circuit.v1.MsgAuthorizeCircuitBreaker.grantee": - panic(fmt.Errorf("field grantee of message cosmos.circuit.v1.MsgAuthorizeCircuitBreaker is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgAuthorizeCircuitBreaker")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgAuthorizeCircuitBreaker does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgAuthorizeCircuitBreaker) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.circuit.v1.MsgAuthorizeCircuitBreaker.granter": - return protoreflect.ValueOfString("") - case "cosmos.circuit.v1.MsgAuthorizeCircuitBreaker.grantee": - return protoreflect.ValueOfString("") - case "cosmos.circuit.v1.MsgAuthorizeCircuitBreaker.permissions": - m := new(Permissions) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgAuthorizeCircuitBreaker")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgAuthorizeCircuitBreaker does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgAuthorizeCircuitBreaker) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.circuit.v1.MsgAuthorizeCircuitBreaker", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgAuthorizeCircuitBreaker) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAuthorizeCircuitBreaker) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgAuthorizeCircuitBreaker) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgAuthorizeCircuitBreaker) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgAuthorizeCircuitBreaker) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Granter) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Grantee) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Permissions != nil { - l = options.Size(x.Permissions) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgAuthorizeCircuitBreaker) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Permissions != nil { - encoded, err := options.Marshal(x.Permissions) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x1a - } - if len(x.Grantee) > 0 { - i -= len(x.Grantee) - copy(dAtA[i:], x.Grantee) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Grantee))) - i-- - dAtA[i] = 0x12 - } - if len(x.Granter) > 0 { - i -= len(x.Granter) - copy(dAtA[i:], x.Granter) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Granter))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgAuthorizeCircuitBreaker) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAuthorizeCircuitBreaker: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAuthorizeCircuitBreaker: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Granter", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Granter = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Grantee = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Permissions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Permissions == nil { - x.Permissions = &Permissions{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Permissions); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgAuthorizeCircuitBreakerResponse protoreflect.MessageDescriptor - fd_MsgAuthorizeCircuitBreakerResponse_success protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_circuit_v1_tx_proto_init() - md_MsgAuthorizeCircuitBreakerResponse = File_cosmos_circuit_v1_tx_proto.Messages().ByName("MsgAuthorizeCircuitBreakerResponse") - fd_MsgAuthorizeCircuitBreakerResponse_success = md_MsgAuthorizeCircuitBreakerResponse.Fields().ByName("success") -} - -var _ protoreflect.Message = (*fastReflection_MsgAuthorizeCircuitBreakerResponse)(nil) - -type fastReflection_MsgAuthorizeCircuitBreakerResponse MsgAuthorizeCircuitBreakerResponse - -func (x *MsgAuthorizeCircuitBreakerResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgAuthorizeCircuitBreakerResponse)(x) -} - -func (x *MsgAuthorizeCircuitBreakerResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_circuit_v1_tx_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgAuthorizeCircuitBreakerResponse_messageType fastReflection_MsgAuthorizeCircuitBreakerResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgAuthorizeCircuitBreakerResponse_messageType{} - -type fastReflection_MsgAuthorizeCircuitBreakerResponse_messageType struct{} - -func (x fastReflection_MsgAuthorizeCircuitBreakerResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgAuthorizeCircuitBreakerResponse)(nil) -} -func (x fastReflection_MsgAuthorizeCircuitBreakerResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgAuthorizeCircuitBreakerResponse) -} -func (x fastReflection_MsgAuthorizeCircuitBreakerResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgAuthorizeCircuitBreakerResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgAuthorizeCircuitBreakerResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgAuthorizeCircuitBreakerResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgAuthorizeCircuitBreakerResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgAuthorizeCircuitBreakerResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgAuthorizeCircuitBreakerResponse) New() protoreflect.Message { - return new(fastReflection_MsgAuthorizeCircuitBreakerResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgAuthorizeCircuitBreakerResponse) Interface() protoreflect.ProtoMessage { - return (*MsgAuthorizeCircuitBreakerResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgAuthorizeCircuitBreakerResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Success != false { - value := protoreflect.ValueOfBool(x.Success) - if !f(fd_MsgAuthorizeCircuitBreakerResponse_success, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgAuthorizeCircuitBreakerResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.circuit.v1.MsgAuthorizeCircuitBreakerResponse.success": - return x.Success != false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgAuthorizeCircuitBreakerResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgAuthorizeCircuitBreakerResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAuthorizeCircuitBreakerResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.circuit.v1.MsgAuthorizeCircuitBreakerResponse.success": - x.Success = false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgAuthorizeCircuitBreakerResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgAuthorizeCircuitBreakerResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgAuthorizeCircuitBreakerResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.circuit.v1.MsgAuthorizeCircuitBreakerResponse.success": - value := x.Success - return protoreflect.ValueOfBool(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgAuthorizeCircuitBreakerResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgAuthorizeCircuitBreakerResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAuthorizeCircuitBreakerResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.circuit.v1.MsgAuthorizeCircuitBreakerResponse.success": - x.Success = value.Bool() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgAuthorizeCircuitBreakerResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgAuthorizeCircuitBreakerResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAuthorizeCircuitBreakerResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.circuit.v1.MsgAuthorizeCircuitBreakerResponse.success": - panic(fmt.Errorf("field success of message cosmos.circuit.v1.MsgAuthorizeCircuitBreakerResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgAuthorizeCircuitBreakerResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgAuthorizeCircuitBreakerResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgAuthorizeCircuitBreakerResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.circuit.v1.MsgAuthorizeCircuitBreakerResponse.success": - return protoreflect.ValueOfBool(false) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgAuthorizeCircuitBreakerResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgAuthorizeCircuitBreakerResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgAuthorizeCircuitBreakerResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.circuit.v1.MsgAuthorizeCircuitBreakerResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgAuthorizeCircuitBreakerResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAuthorizeCircuitBreakerResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgAuthorizeCircuitBreakerResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgAuthorizeCircuitBreakerResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgAuthorizeCircuitBreakerResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Success { - n += 2 - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgAuthorizeCircuitBreakerResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Success { - i-- - if x.Success { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgAuthorizeCircuitBreakerResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAuthorizeCircuitBreakerResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAuthorizeCircuitBreakerResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Success", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Success = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_MsgTripCircuitBreaker_2_list)(nil) - -type _MsgTripCircuitBreaker_2_list struct { - list *[]string -} - -func (x *_MsgTripCircuitBreaker_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgTripCircuitBreaker_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_MsgTripCircuitBreaker_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_MsgTripCircuitBreaker_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgTripCircuitBreaker_2_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message MsgTripCircuitBreaker at list field MsgTypeUrls as it is not of Message kind")) -} - -func (x *_MsgTripCircuitBreaker_2_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_MsgTripCircuitBreaker_2_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_MsgTripCircuitBreaker_2_list) IsValid() bool { - return x.list != nil -} - -var ( - md_MsgTripCircuitBreaker protoreflect.MessageDescriptor - fd_MsgTripCircuitBreaker_authority protoreflect.FieldDescriptor - fd_MsgTripCircuitBreaker_msg_type_urls protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_circuit_v1_tx_proto_init() - md_MsgTripCircuitBreaker = File_cosmos_circuit_v1_tx_proto.Messages().ByName("MsgTripCircuitBreaker") - fd_MsgTripCircuitBreaker_authority = md_MsgTripCircuitBreaker.Fields().ByName("authority") - fd_MsgTripCircuitBreaker_msg_type_urls = md_MsgTripCircuitBreaker.Fields().ByName("msg_type_urls") -} - -var _ protoreflect.Message = (*fastReflection_MsgTripCircuitBreaker)(nil) - -type fastReflection_MsgTripCircuitBreaker MsgTripCircuitBreaker - -func (x *MsgTripCircuitBreaker) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgTripCircuitBreaker)(x) -} - -func (x *MsgTripCircuitBreaker) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_circuit_v1_tx_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgTripCircuitBreaker_messageType fastReflection_MsgTripCircuitBreaker_messageType -var _ protoreflect.MessageType = fastReflection_MsgTripCircuitBreaker_messageType{} - -type fastReflection_MsgTripCircuitBreaker_messageType struct{} - -func (x fastReflection_MsgTripCircuitBreaker_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgTripCircuitBreaker)(nil) -} -func (x fastReflection_MsgTripCircuitBreaker_messageType) New() protoreflect.Message { - return new(fastReflection_MsgTripCircuitBreaker) -} -func (x fastReflection_MsgTripCircuitBreaker_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgTripCircuitBreaker -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgTripCircuitBreaker) Descriptor() protoreflect.MessageDescriptor { - return md_MsgTripCircuitBreaker -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgTripCircuitBreaker) Type() protoreflect.MessageType { - return _fastReflection_MsgTripCircuitBreaker_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgTripCircuitBreaker) New() protoreflect.Message { - return new(fastReflection_MsgTripCircuitBreaker) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgTripCircuitBreaker) Interface() protoreflect.ProtoMessage { - return (*MsgTripCircuitBreaker)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgTripCircuitBreaker) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Authority != "" { - value := protoreflect.ValueOfString(x.Authority) - if !f(fd_MsgTripCircuitBreaker_authority, value) { - return - } - } - if len(x.MsgTypeUrls) != 0 { - value := protoreflect.ValueOfList(&_MsgTripCircuitBreaker_2_list{list: &x.MsgTypeUrls}) - if !f(fd_MsgTripCircuitBreaker_msg_type_urls, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgTripCircuitBreaker) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.circuit.v1.MsgTripCircuitBreaker.authority": - return x.Authority != "" - case "cosmos.circuit.v1.MsgTripCircuitBreaker.msg_type_urls": - return len(x.MsgTypeUrls) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgTripCircuitBreaker")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgTripCircuitBreaker does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgTripCircuitBreaker) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.circuit.v1.MsgTripCircuitBreaker.authority": - x.Authority = "" - case "cosmos.circuit.v1.MsgTripCircuitBreaker.msg_type_urls": - x.MsgTypeUrls = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgTripCircuitBreaker")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgTripCircuitBreaker does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgTripCircuitBreaker) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.circuit.v1.MsgTripCircuitBreaker.authority": - value := x.Authority - return protoreflect.ValueOfString(value) - case "cosmos.circuit.v1.MsgTripCircuitBreaker.msg_type_urls": - if len(x.MsgTypeUrls) == 0 { - return protoreflect.ValueOfList(&_MsgTripCircuitBreaker_2_list{}) - } - listValue := &_MsgTripCircuitBreaker_2_list{list: &x.MsgTypeUrls} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgTripCircuitBreaker")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgTripCircuitBreaker does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgTripCircuitBreaker) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.circuit.v1.MsgTripCircuitBreaker.authority": - x.Authority = value.Interface().(string) - case "cosmos.circuit.v1.MsgTripCircuitBreaker.msg_type_urls": - lv := value.List() - clv := lv.(*_MsgTripCircuitBreaker_2_list) - x.MsgTypeUrls = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgTripCircuitBreaker")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgTripCircuitBreaker does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgTripCircuitBreaker) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.circuit.v1.MsgTripCircuitBreaker.msg_type_urls": - if x.MsgTypeUrls == nil { - x.MsgTypeUrls = []string{} - } - value := &_MsgTripCircuitBreaker_2_list{list: &x.MsgTypeUrls} - return protoreflect.ValueOfList(value) - case "cosmos.circuit.v1.MsgTripCircuitBreaker.authority": - panic(fmt.Errorf("field authority of message cosmos.circuit.v1.MsgTripCircuitBreaker is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgTripCircuitBreaker")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgTripCircuitBreaker does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgTripCircuitBreaker) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.circuit.v1.MsgTripCircuitBreaker.authority": - return protoreflect.ValueOfString("") - case "cosmos.circuit.v1.MsgTripCircuitBreaker.msg_type_urls": - list := []string{} - return protoreflect.ValueOfList(&_MsgTripCircuitBreaker_2_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgTripCircuitBreaker")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgTripCircuitBreaker does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgTripCircuitBreaker) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.circuit.v1.MsgTripCircuitBreaker", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgTripCircuitBreaker) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgTripCircuitBreaker) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgTripCircuitBreaker) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgTripCircuitBreaker) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgTripCircuitBreaker) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Authority) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.MsgTypeUrls) > 0 { - for _, s := range x.MsgTypeUrls { - l = len(s) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgTripCircuitBreaker) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.MsgTypeUrls) > 0 { - for iNdEx := len(x.MsgTypeUrls) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.MsgTypeUrls[iNdEx]) - copy(dAtA[i:], x.MsgTypeUrls[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MsgTypeUrls[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(x.Authority) > 0 { - i -= len(x.Authority) - copy(dAtA[i:], x.Authority) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgTripCircuitBreaker) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgTripCircuitBreaker: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgTripCircuitBreaker: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Authority = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MsgTypeUrls", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.MsgTypeUrls = append(x.MsgTypeUrls, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgTripCircuitBreakerResponse protoreflect.MessageDescriptor - fd_MsgTripCircuitBreakerResponse_success protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_circuit_v1_tx_proto_init() - md_MsgTripCircuitBreakerResponse = File_cosmos_circuit_v1_tx_proto.Messages().ByName("MsgTripCircuitBreakerResponse") - fd_MsgTripCircuitBreakerResponse_success = md_MsgTripCircuitBreakerResponse.Fields().ByName("success") -} - -var _ protoreflect.Message = (*fastReflection_MsgTripCircuitBreakerResponse)(nil) - -type fastReflection_MsgTripCircuitBreakerResponse MsgTripCircuitBreakerResponse - -func (x *MsgTripCircuitBreakerResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgTripCircuitBreakerResponse)(x) -} - -func (x *MsgTripCircuitBreakerResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_circuit_v1_tx_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgTripCircuitBreakerResponse_messageType fastReflection_MsgTripCircuitBreakerResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgTripCircuitBreakerResponse_messageType{} - -type fastReflection_MsgTripCircuitBreakerResponse_messageType struct{} - -func (x fastReflection_MsgTripCircuitBreakerResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgTripCircuitBreakerResponse)(nil) -} -func (x fastReflection_MsgTripCircuitBreakerResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgTripCircuitBreakerResponse) -} -func (x fastReflection_MsgTripCircuitBreakerResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgTripCircuitBreakerResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgTripCircuitBreakerResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgTripCircuitBreakerResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgTripCircuitBreakerResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgTripCircuitBreakerResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgTripCircuitBreakerResponse) New() protoreflect.Message { - return new(fastReflection_MsgTripCircuitBreakerResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgTripCircuitBreakerResponse) Interface() protoreflect.ProtoMessage { - return (*MsgTripCircuitBreakerResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgTripCircuitBreakerResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Success != false { - value := protoreflect.ValueOfBool(x.Success) - if !f(fd_MsgTripCircuitBreakerResponse_success, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgTripCircuitBreakerResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.circuit.v1.MsgTripCircuitBreakerResponse.success": - return x.Success != false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgTripCircuitBreakerResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgTripCircuitBreakerResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgTripCircuitBreakerResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.circuit.v1.MsgTripCircuitBreakerResponse.success": - x.Success = false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgTripCircuitBreakerResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgTripCircuitBreakerResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgTripCircuitBreakerResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.circuit.v1.MsgTripCircuitBreakerResponse.success": - value := x.Success - return protoreflect.ValueOfBool(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgTripCircuitBreakerResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgTripCircuitBreakerResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgTripCircuitBreakerResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.circuit.v1.MsgTripCircuitBreakerResponse.success": - x.Success = value.Bool() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgTripCircuitBreakerResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgTripCircuitBreakerResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgTripCircuitBreakerResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.circuit.v1.MsgTripCircuitBreakerResponse.success": - panic(fmt.Errorf("field success of message cosmos.circuit.v1.MsgTripCircuitBreakerResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgTripCircuitBreakerResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgTripCircuitBreakerResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgTripCircuitBreakerResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.circuit.v1.MsgTripCircuitBreakerResponse.success": - return protoreflect.ValueOfBool(false) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgTripCircuitBreakerResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgTripCircuitBreakerResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgTripCircuitBreakerResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.circuit.v1.MsgTripCircuitBreakerResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgTripCircuitBreakerResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgTripCircuitBreakerResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgTripCircuitBreakerResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgTripCircuitBreakerResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgTripCircuitBreakerResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Success { - n += 2 - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgTripCircuitBreakerResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Success { - i-- - if x.Success { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgTripCircuitBreakerResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgTripCircuitBreakerResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgTripCircuitBreakerResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Success", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Success = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_MsgResetCircuitBreaker_3_list)(nil) - -type _MsgResetCircuitBreaker_3_list struct { - list *[]string -} - -func (x *_MsgResetCircuitBreaker_3_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgResetCircuitBreaker_3_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_MsgResetCircuitBreaker_3_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_MsgResetCircuitBreaker_3_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgResetCircuitBreaker_3_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message MsgResetCircuitBreaker at list field MsgTypeUrls as it is not of Message kind")) -} - -func (x *_MsgResetCircuitBreaker_3_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_MsgResetCircuitBreaker_3_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_MsgResetCircuitBreaker_3_list) IsValid() bool { - return x.list != nil -} - -var ( - md_MsgResetCircuitBreaker protoreflect.MessageDescriptor - fd_MsgResetCircuitBreaker_authority protoreflect.FieldDescriptor - fd_MsgResetCircuitBreaker_msg_type_urls protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_circuit_v1_tx_proto_init() - md_MsgResetCircuitBreaker = File_cosmos_circuit_v1_tx_proto.Messages().ByName("MsgResetCircuitBreaker") - fd_MsgResetCircuitBreaker_authority = md_MsgResetCircuitBreaker.Fields().ByName("authority") - fd_MsgResetCircuitBreaker_msg_type_urls = md_MsgResetCircuitBreaker.Fields().ByName("msg_type_urls") -} - -var _ protoreflect.Message = (*fastReflection_MsgResetCircuitBreaker)(nil) - -type fastReflection_MsgResetCircuitBreaker MsgResetCircuitBreaker - -func (x *MsgResetCircuitBreaker) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgResetCircuitBreaker)(x) -} - -func (x *MsgResetCircuitBreaker) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_circuit_v1_tx_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgResetCircuitBreaker_messageType fastReflection_MsgResetCircuitBreaker_messageType -var _ protoreflect.MessageType = fastReflection_MsgResetCircuitBreaker_messageType{} - -type fastReflection_MsgResetCircuitBreaker_messageType struct{} - -func (x fastReflection_MsgResetCircuitBreaker_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgResetCircuitBreaker)(nil) -} -func (x fastReflection_MsgResetCircuitBreaker_messageType) New() protoreflect.Message { - return new(fastReflection_MsgResetCircuitBreaker) -} -func (x fastReflection_MsgResetCircuitBreaker_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgResetCircuitBreaker -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgResetCircuitBreaker) Descriptor() protoreflect.MessageDescriptor { - return md_MsgResetCircuitBreaker -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgResetCircuitBreaker) Type() protoreflect.MessageType { - return _fastReflection_MsgResetCircuitBreaker_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgResetCircuitBreaker) New() protoreflect.Message { - return new(fastReflection_MsgResetCircuitBreaker) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgResetCircuitBreaker) Interface() protoreflect.ProtoMessage { - return (*MsgResetCircuitBreaker)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgResetCircuitBreaker) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Authority != "" { - value := protoreflect.ValueOfString(x.Authority) - if !f(fd_MsgResetCircuitBreaker_authority, value) { - return - } - } - if len(x.MsgTypeUrls) != 0 { - value := protoreflect.ValueOfList(&_MsgResetCircuitBreaker_3_list{list: &x.MsgTypeUrls}) - if !f(fd_MsgResetCircuitBreaker_msg_type_urls, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgResetCircuitBreaker) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.circuit.v1.MsgResetCircuitBreaker.authority": - return x.Authority != "" - case "cosmos.circuit.v1.MsgResetCircuitBreaker.msg_type_urls": - return len(x.MsgTypeUrls) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgResetCircuitBreaker")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgResetCircuitBreaker does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgResetCircuitBreaker) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.circuit.v1.MsgResetCircuitBreaker.authority": - x.Authority = "" - case "cosmos.circuit.v1.MsgResetCircuitBreaker.msg_type_urls": - x.MsgTypeUrls = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgResetCircuitBreaker")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgResetCircuitBreaker does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgResetCircuitBreaker) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.circuit.v1.MsgResetCircuitBreaker.authority": - value := x.Authority - return protoreflect.ValueOfString(value) - case "cosmos.circuit.v1.MsgResetCircuitBreaker.msg_type_urls": - if len(x.MsgTypeUrls) == 0 { - return protoreflect.ValueOfList(&_MsgResetCircuitBreaker_3_list{}) - } - listValue := &_MsgResetCircuitBreaker_3_list{list: &x.MsgTypeUrls} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgResetCircuitBreaker")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgResetCircuitBreaker does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgResetCircuitBreaker) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.circuit.v1.MsgResetCircuitBreaker.authority": - x.Authority = value.Interface().(string) - case "cosmos.circuit.v1.MsgResetCircuitBreaker.msg_type_urls": - lv := value.List() - clv := lv.(*_MsgResetCircuitBreaker_3_list) - x.MsgTypeUrls = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgResetCircuitBreaker")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgResetCircuitBreaker does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgResetCircuitBreaker) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.circuit.v1.MsgResetCircuitBreaker.msg_type_urls": - if x.MsgTypeUrls == nil { - x.MsgTypeUrls = []string{} - } - value := &_MsgResetCircuitBreaker_3_list{list: &x.MsgTypeUrls} - return protoreflect.ValueOfList(value) - case "cosmos.circuit.v1.MsgResetCircuitBreaker.authority": - panic(fmt.Errorf("field authority of message cosmos.circuit.v1.MsgResetCircuitBreaker is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgResetCircuitBreaker")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgResetCircuitBreaker does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgResetCircuitBreaker) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.circuit.v1.MsgResetCircuitBreaker.authority": - return protoreflect.ValueOfString("") - case "cosmos.circuit.v1.MsgResetCircuitBreaker.msg_type_urls": - list := []string{} - return protoreflect.ValueOfList(&_MsgResetCircuitBreaker_3_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgResetCircuitBreaker")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgResetCircuitBreaker does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgResetCircuitBreaker) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.circuit.v1.MsgResetCircuitBreaker", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgResetCircuitBreaker) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgResetCircuitBreaker) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgResetCircuitBreaker) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgResetCircuitBreaker) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgResetCircuitBreaker) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Authority) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.MsgTypeUrls) > 0 { - for _, s := range x.MsgTypeUrls { - l = len(s) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgResetCircuitBreaker) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.MsgTypeUrls) > 0 { - for iNdEx := len(x.MsgTypeUrls) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.MsgTypeUrls[iNdEx]) - copy(dAtA[i:], x.MsgTypeUrls[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MsgTypeUrls[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if len(x.Authority) > 0 { - i -= len(x.Authority) - copy(dAtA[i:], x.Authority) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgResetCircuitBreaker) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgResetCircuitBreaker: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgResetCircuitBreaker: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Authority = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MsgTypeUrls", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.MsgTypeUrls = append(x.MsgTypeUrls, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgResetCircuitBreakerResponse protoreflect.MessageDescriptor - fd_MsgResetCircuitBreakerResponse_success protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_circuit_v1_tx_proto_init() - md_MsgResetCircuitBreakerResponse = File_cosmos_circuit_v1_tx_proto.Messages().ByName("MsgResetCircuitBreakerResponse") - fd_MsgResetCircuitBreakerResponse_success = md_MsgResetCircuitBreakerResponse.Fields().ByName("success") -} - -var _ protoreflect.Message = (*fastReflection_MsgResetCircuitBreakerResponse)(nil) - -type fastReflection_MsgResetCircuitBreakerResponse MsgResetCircuitBreakerResponse - -func (x *MsgResetCircuitBreakerResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgResetCircuitBreakerResponse)(x) -} - -func (x *MsgResetCircuitBreakerResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_circuit_v1_tx_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgResetCircuitBreakerResponse_messageType fastReflection_MsgResetCircuitBreakerResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgResetCircuitBreakerResponse_messageType{} - -type fastReflection_MsgResetCircuitBreakerResponse_messageType struct{} - -func (x fastReflection_MsgResetCircuitBreakerResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgResetCircuitBreakerResponse)(nil) -} -func (x fastReflection_MsgResetCircuitBreakerResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgResetCircuitBreakerResponse) -} -func (x fastReflection_MsgResetCircuitBreakerResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgResetCircuitBreakerResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgResetCircuitBreakerResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgResetCircuitBreakerResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgResetCircuitBreakerResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgResetCircuitBreakerResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgResetCircuitBreakerResponse) New() protoreflect.Message { - return new(fastReflection_MsgResetCircuitBreakerResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgResetCircuitBreakerResponse) Interface() protoreflect.ProtoMessage { - return (*MsgResetCircuitBreakerResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgResetCircuitBreakerResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Success != false { - value := protoreflect.ValueOfBool(x.Success) - if !f(fd_MsgResetCircuitBreakerResponse_success, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgResetCircuitBreakerResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.circuit.v1.MsgResetCircuitBreakerResponse.success": - return x.Success != false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgResetCircuitBreakerResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgResetCircuitBreakerResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgResetCircuitBreakerResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.circuit.v1.MsgResetCircuitBreakerResponse.success": - x.Success = false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgResetCircuitBreakerResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgResetCircuitBreakerResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgResetCircuitBreakerResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.circuit.v1.MsgResetCircuitBreakerResponse.success": - value := x.Success - return protoreflect.ValueOfBool(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgResetCircuitBreakerResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgResetCircuitBreakerResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgResetCircuitBreakerResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.circuit.v1.MsgResetCircuitBreakerResponse.success": - x.Success = value.Bool() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgResetCircuitBreakerResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgResetCircuitBreakerResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgResetCircuitBreakerResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.circuit.v1.MsgResetCircuitBreakerResponse.success": - panic(fmt.Errorf("field success of message cosmos.circuit.v1.MsgResetCircuitBreakerResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgResetCircuitBreakerResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgResetCircuitBreakerResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgResetCircuitBreakerResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.circuit.v1.MsgResetCircuitBreakerResponse.success": - return protoreflect.ValueOfBool(false) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.MsgResetCircuitBreakerResponse")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.MsgResetCircuitBreakerResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgResetCircuitBreakerResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.circuit.v1.MsgResetCircuitBreakerResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgResetCircuitBreakerResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgResetCircuitBreakerResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgResetCircuitBreakerResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgResetCircuitBreakerResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgResetCircuitBreakerResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Success { - n += 2 - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgResetCircuitBreakerResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Success { - i-- - if x.Success { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgResetCircuitBreakerResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgResetCircuitBreakerResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgResetCircuitBreakerResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Success", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Success = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cosmos/circuit/v1/tx.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// MsgAuthorizeCircuitBreaker defines the Msg/AuthorizeCircuitBreaker request type. -type MsgAuthorizeCircuitBreaker struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // granter is the granter of the circuit breaker permissions and must have - // LEVEL_SUPER_ADMIN. - Granter string `protobuf:"bytes,1,opt,name=granter,proto3" json:"granter,omitempty"` - // grantee is the account authorized with the provided permissions. - Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"` - // 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. - Permissions *Permissions `protobuf:"bytes,3,opt,name=permissions,proto3" json:"permissions,omitempty"` -} - -func (x *MsgAuthorizeCircuitBreaker) Reset() { - *x = MsgAuthorizeCircuitBreaker{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_circuit_v1_tx_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgAuthorizeCircuitBreaker) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgAuthorizeCircuitBreaker) ProtoMessage() {} - -// Deprecated: Use MsgAuthorizeCircuitBreaker.ProtoReflect.Descriptor instead. -func (*MsgAuthorizeCircuitBreaker) Descriptor() ([]byte, []int) { - return file_cosmos_circuit_v1_tx_proto_rawDescGZIP(), []int{0} -} - -func (x *MsgAuthorizeCircuitBreaker) GetGranter() string { - if x != nil { - return x.Granter - } - return "" -} - -func (x *MsgAuthorizeCircuitBreaker) GetGrantee() string { - if x != nil { - return x.Grantee - } - return "" -} - -func (x *MsgAuthorizeCircuitBreaker) GetPermissions() *Permissions { - if x != nil { - return x.Permissions - } - return nil -} - -// MsgAuthorizeCircuitBreakerResponse defines the Msg/AuthorizeCircuitBreaker response type. -type MsgAuthorizeCircuitBreakerResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` -} - -func (x *MsgAuthorizeCircuitBreakerResponse) Reset() { - *x = MsgAuthorizeCircuitBreakerResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_circuit_v1_tx_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgAuthorizeCircuitBreakerResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgAuthorizeCircuitBreakerResponse) ProtoMessage() {} - -// Deprecated: Use MsgAuthorizeCircuitBreakerResponse.ProtoReflect.Descriptor instead. -func (*MsgAuthorizeCircuitBreakerResponse) Descriptor() ([]byte, []int) { - return file_cosmos_circuit_v1_tx_proto_rawDescGZIP(), []int{1} -} - -func (x *MsgAuthorizeCircuitBreakerResponse) GetSuccess() bool { - if x != nil { - return x.Success - } - return false -} - -// MsgTripCircuitBreaker defines the Msg/TripCircuitBreaker request type. -type MsgTripCircuitBreaker struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // authority is the account authorized to trip the circuit breaker. - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - // 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. - MsgTypeUrls []string `protobuf:"bytes,2,rep,name=msg_type_urls,json=msgTypeUrls,proto3" json:"msg_type_urls,omitempty"` -} - -func (x *MsgTripCircuitBreaker) Reset() { - *x = MsgTripCircuitBreaker{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_circuit_v1_tx_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgTripCircuitBreaker) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgTripCircuitBreaker) ProtoMessage() {} - -// Deprecated: Use MsgTripCircuitBreaker.ProtoReflect.Descriptor instead. -func (*MsgTripCircuitBreaker) Descriptor() ([]byte, []int) { - return file_cosmos_circuit_v1_tx_proto_rawDescGZIP(), []int{2} -} - -func (x *MsgTripCircuitBreaker) GetAuthority() string { - if x != nil { - return x.Authority - } - return "" -} - -func (x *MsgTripCircuitBreaker) GetMsgTypeUrls() []string { - if x != nil { - return x.MsgTypeUrls - } - return nil -} - -// MsgTripCircuitBreakerResponse defines the Msg/TripCircuitBreaker response type. -type MsgTripCircuitBreakerResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` -} - -func (x *MsgTripCircuitBreakerResponse) Reset() { - *x = MsgTripCircuitBreakerResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_circuit_v1_tx_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgTripCircuitBreakerResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgTripCircuitBreakerResponse) ProtoMessage() {} - -// Deprecated: Use MsgTripCircuitBreakerResponse.ProtoReflect.Descriptor instead. -func (*MsgTripCircuitBreakerResponse) Descriptor() ([]byte, []int) { - return file_cosmos_circuit_v1_tx_proto_rawDescGZIP(), []int{3} -} - -func (x *MsgTripCircuitBreakerResponse) GetSuccess() bool { - if x != nil { - return x.Success - } - return false -} - -// MsgResetCircuitBreaker defines the Msg/ResetCircuitBreaker request type. -type MsgResetCircuitBreaker struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // authority is the account authorized to trip or reset the circuit breaker. - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - // 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. - MsgTypeUrls []string `protobuf:"bytes,3,rep,name=msg_type_urls,json=msgTypeUrls,proto3" json:"msg_type_urls,omitempty"` -} - -func (x *MsgResetCircuitBreaker) Reset() { - *x = MsgResetCircuitBreaker{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_circuit_v1_tx_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgResetCircuitBreaker) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgResetCircuitBreaker) ProtoMessage() {} - -// Deprecated: Use MsgResetCircuitBreaker.ProtoReflect.Descriptor instead. -func (*MsgResetCircuitBreaker) Descriptor() ([]byte, []int) { - return file_cosmos_circuit_v1_tx_proto_rawDescGZIP(), []int{4} -} - -func (x *MsgResetCircuitBreaker) GetAuthority() string { - if x != nil { - return x.Authority - } - return "" -} - -func (x *MsgResetCircuitBreaker) GetMsgTypeUrls() []string { - if x != nil { - return x.MsgTypeUrls - } - return nil -} - -// MsgResetCircuitBreakerResponse defines the Msg/ResetCircuitBreaker response type. -type MsgResetCircuitBreakerResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` -} - -func (x *MsgResetCircuitBreakerResponse) Reset() { - *x = MsgResetCircuitBreakerResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_circuit_v1_tx_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgResetCircuitBreakerResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgResetCircuitBreakerResponse) ProtoMessage() {} - -// Deprecated: Use MsgResetCircuitBreakerResponse.ProtoReflect.Descriptor instead. -func (*MsgResetCircuitBreakerResponse) Descriptor() ([]byte, []int) { - return file_cosmos_circuit_v1_tx_proto_rawDescGZIP(), []int{5} -} - -func (x *MsgResetCircuitBreakerResponse) GetSuccess() bool { - if x != nil { - return x.Success - } - return false -} - -var File_cosmos_circuit_v1_tx_proto protoreflect.FileDescriptor - -var file_cosmos_circuit_v1_tx_proto_rawDesc = []byte{ - 0x0a, 0x1a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, - 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x1a, - 0x17, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x73, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, - 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2f, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa0, 0x01, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x41, - 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x43, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x42, - 0x72, 0x65, 0x61, 0x6b, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, - 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x72, - 0x12, 0x18, 0x0a, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x70, 0x65, - 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1e, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, - 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, - 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x0c, 0x82, 0xe7, - 0xb0, 0x2a, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x72, 0x22, 0x3e, 0x0a, 0x22, 0x4d, 0x73, - 0x67, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x43, 0x69, 0x72, 0x63, 0x75, 0x69, - 0x74, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x22, 0x69, 0x0a, 0x15, 0x4d, 0x73, - 0x67, 0x54, 0x72, 0x69, 0x70, 0x43, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x42, 0x72, 0x65, 0x61, - 0x6b, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, - 0x79, 0x12, 0x22, 0x0a, 0x0d, 0x6d, 0x73, 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x75, 0x72, - 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, - 0x65, 0x55, 0x72, 0x6c, 0x73, 0x3a, 0x0e, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, - 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x39, 0x0a, 0x1d, 0x4d, 0x73, 0x67, 0x54, 0x72, 0x69, 0x70, - 0x43, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x65, 0x72, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, - 0x22, 0x6a, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x65, 0x74, 0x43, 0x69, 0x72, 0x63, - 0x75, 0x69, 0x74, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, - 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, - 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x22, 0x0a, 0x0d, 0x6d, 0x73, 0x67, 0x5f, - 0x74, 0x79, 0x70, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x0b, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x55, 0x72, 0x6c, 0x73, 0x3a, 0x0e, 0x82, 0xe7, - 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x3a, 0x0a, 0x1e, - 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x65, 0x74, 0x43, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x42, - 0x72, 0x65, 0x61, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, - 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x32, 0xf4, 0x02, 0x0a, 0x03, 0x4d, 0x73, 0x67, - 0x12, 0x7f, 0x0a, 0x17, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x43, 0x69, 0x72, - 0x63, 0x75, 0x69, 0x74, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x65, 0x72, 0x12, 0x2d, 0x2e, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x73, 0x67, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x43, 0x69, 0x72, 0x63, - 0x75, 0x69, 0x74, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x65, 0x72, 0x1a, 0x35, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, - 0x73, 0x67, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x43, 0x69, 0x72, 0x63, 0x75, - 0x69, 0x74, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x70, 0x0a, 0x12, 0x54, 0x72, 0x69, 0x70, 0x43, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, - 0x42, 0x72, 0x65, 0x61, 0x6b, 0x65, 0x72, 0x12, 0x28, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x54, - 0x72, 0x69, 0x70, 0x43, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x65, - 0x72, 0x1a, 0x30, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x75, - 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x54, 0x72, 0x69, 0x70, 0x43, 0x69, 0x72, - 0x63, 0x75, 0x69, 0x74, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x73, 0x0a, 0x13, 0x52, 0x65, 0x73, 0x65, 0x74, 0x43, 0x69, 0x72, 0x63, - 0x75, 0x69, 0x74, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x65, 0x72, 0x12, 0x29, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, - 0x73, 0x67, 0x52, 0x65, 0x73, 0x65, 0x74, 0x43, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x42, 0x72, - 0x65, 0x61, 0x6b, 0x65, 0x72, 0x1a, 0x31, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x63, - 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, - 0x65, 0x74, 0x43, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x65, 0x72, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, - 0xb4, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x63, - 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, - 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x69, - 0x72, 0x63, 0x75, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, - 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x11, 0x43, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x43, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x11, 0x43, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x43, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x5c, 0x56, 0x31, - 0xe2, 0x02, 0x1d, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x43, 0x69, 0x72, 0x63, 0x75, 0x69, - 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0xea, 0x02, 0x13, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x43, 0x69, 0x72, 0x63, 0x75, - 0x69, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cosmos_circuit_v1_tx_proto_rawDescOnce sync.Once - file_cosmos_circuit_v1_tx_proto_rawDescData = file_cosmos_circuit_v1_tx_proto_rawDesc -) - -func file_cosmos_circuit_v1_tx_proto_rawDescGZIP() []byte { - file_cosmos_circuit_v1_tx_proto_rawDescOnce.Do(func() { - file_cosmos_circuit_v1_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_circuit_v1_tx_proto_rawDescData) - }) - return file_cosmos_circuit_v1_tx_proto_rawDescData -} - -var file_cosmos_circuit_v1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_cosmos_circuit_v1_tx_proto_goTypes = []interface{}{ - (*MsgAuthorizeCircuitBreaker)(nil), // 0: cosmos.circuit.v1.MsgAuthorizeCircuitBreaker - (*MsgAuthorizeCircuitBreakerResponse)(nil), // 1: cosmos.circuit.v1.MsgAuthorizeCircuitBreakerResponse - (*MsgTripCircuitBreaker)(nil), // 2: cosmos.circuit.v1.MsgTripCircuitBreaker - (*MsgTripCircuitBreakerResponse)(nil), // 3: cosmos.circuit.v1.MsgTripCircuitBreakerResponse - (*MsgResetCircuitBreaker)(nil), // 4: cosmos.circuit.v1.MsgResetCircuitBreaker - (*MsgResetCircuitBreakerResponse)(nil), // 5: cosmos.circuit.v1.MsgResetCircuitBreakerResponse - (*Permissions)(nil), // 6: cosmos.circuit.v1.Permissions -} -var file_cosmos_circuit_v1_tx_proto_depIdxs = []int32{ - 6, // 0: cosmos.circuit.v1.MsgAuthorizeCircuitBreaker.permissions:type_name -> cosmos.circuit.v1.Permissions - 0, // 1: cosmos.circuit.v1.Msg.AuthorizeCircuitBreaker:input_type -> cosmos.circuit.v1.MsgAuthorizeCircuitBreaker - 2, // 2: cosmos.circuit.v1.Msg.TripCircuitBreaker:input_type -> cosmos.circuit.v1.MsgTripCircuitBreaker - 4, // 3: cosmos.circuit.v1.Msg.ResetCircuitBreaker:input_type -> cosmos.circuit.v1.MsgResetCircuitBreaker - 1, // 4: cosmos.circuit.v1.Msg.AuthorizeCircuitBreaker:output_type -> cosmos.circuit.v1.MsgAuthorizeCircuitBreakerResponse - 3, // 5: cosmos.circuit.v1.Msg.TripCircuitBreaker:output_type -> cosmos.circuit.v1.MsgTripCircuitBreakerResponse - 5, // 6: cosmos.circuit.v1.Msg.ResetCircuitBreaker:output_type -> cosmos.circuit.v1.MsgResetCircuitBreakerResponse - 4, // [4:7] is the sub-list for method output_type - 1, // [1:4] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_cosmos_circuit_v1_tx_proto_init() } -func file_cosmos_circuit_v1_tx_proto_init() { - if File_cosmos_circuit_v1_tx_proto != nil { - return - } - file_cosmos_circuit_v1_types_proto_init() - if !protoimpl.UnsafeEnabled { - file_cosmos_circuit_v1_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgAuthorizeCircuitBreaker); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_circuit_v1_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgAuthorizeCircuitBreakerResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_circuit_v1_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgTripCircuitBreaker); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_circuit_v1_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgTripCircuitBreakerResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_circuit_v1_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgResetCircuitBreaker); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_circuit_v1_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgResetCircuitBreakerResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cosmos_circuit_v1_tx_proto_rawDesc, - NumEnums: 0, - NumMessages: 6, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_cosmos_circuit_v1_tx_proto_goTypes, - DependencyIndexes: file_cosmos_circuit_v1_tx_proto_depIdxs, - MessageInfos: file_cosmos_circuit_v1_tx_proto_msgTypes, - }.Build() - File_cosmos_circuit_v1_tx_proto = out.File - file_cosmos_circuit_v1_tx_proto_rawDesc = nil - file_cosmos_circuit_v1_tx_proto_goTypes = nil - file_cosmos_circuit_v1_tx_proto_depIdxs = nil -} diff --git a/api/cosmos/circuit/v1/tx_grpc.pb.go b/api/cosmos/circuit/v1/tx_grpc.pb.go deleted file mode 100644 index 0ff2af4b8a..0000000000 --- a/api/cosmos/circuit/v1/tx_grpc.pb.go +++ /dev/null @@ -1,211 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.5.1 -// - protoc (unknown) -// source: cosmos/circuit/v1/tx.proto - -package circuitv1 - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.64.0 or later. -const _ = grpc.SupportPackageIsVersion9 - -const ( - Msg_AuthorizeCircuitBreaker_FullMethodName = "/cosmos.circuit.v1.Msg/AuthorizeCircuitBreaker" - Msg_TripCircuitBreaker_FullMethodName = "/cosmos.circuit.v1.Msg/TripCircuitBreaker" - Msg_ResetCircuitBreaker_FullMethodName = "/cosmos.circuit.v1.Msg/ResetCircuitBreaker" -) - -// MsgClient is the client API for Msg service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -// -// Msg defines the circuit Msg service. -type MsgClient interface { - // AuthorizeCircuitBreaker allows a super-admin to grant (or revoke) another - // account's circuit breaker permissions. - AuthorizeCircuitBreaker(ctx context.Context, in *MsgAuthorizeCircuitBreaker, opts ...grpc.CallOption) (*MsgAuthorizeCircuitBreakerResponse, error) - // TripCircuitBreaker pauses processing of Msg's in the state machine. - TripCircuitBreaker(ctx context.Context, in *MsgTripCircuitBreaker, opts ...grpc.CallOption) (*MsgTripCircuitBreakerResponse, error) - // ResetCircuitBreaker resumes processing of Msg's in the state machine that - // have been paused using TripCircuitBreaker. - ResetCircuitBreaker(ctx context.Context, in *MsgResetCircuitBreaker, opts ...grpc.CallOption) (*MsgResetCircuitBreakerResponse, error) -} - -type msgClient struct { - cc grpc.ClientConnInterface -} - -func NewMsgClient(cc grpc.ClientConnInterface) MsgClient { - return &msgClient{cc} -} - -func (c *msgClient) AuthorizeCircuitBreaker(ctx context.Context, in *MsgAuthorizeCircuitBreaker, opts ...grpc.CallOption) (*MsgAuthorizeCircuitBreakerResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(MsgAuthorizeCircuitBreakerResponse) - err := c.cc.Invoke(ctx, Msg_AuthorizeCircuitBreaker_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) TripCircuitBreaker(ctx context.Context, in *MsgTripCircuitBreaker, opts ...grpc.CallOption) (*MsgTripCircuitBreakerResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(MsgTripCircuitBreakerResponse) - err := c.cc.Invoke(ctx, Msg_TripCircuitBreaker_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) ResetCircuitBreaker(ctx context.Context, in *MsgResetCircuitBreaker, opts ...grpc.CallOption) (*MsgResetCircuitBreakerResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(MsgResetCircuitBreakerResponse) - err := c.cc.Invoke(ctx, Msg_ResetCircuitBreaker_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -// MsgServer is the server API for Msg service. -// All implementations must embed UnimplementedMsgServer -// for forward compatibility. -// -// Msg defines the circuit Msg service. -type MsgServer interface { - // AuthorizeCircuitBreaker allows a super-admin to grant (or revoke) another - // account's circuit breaker permissions. - AuthorizeCircuitBreaker(context.Context, *MsgAuthorizeCircuitBreaker) (*MsgAuthorizeCircuitBreakerResponse, error) - // TripCircuitBreaker pauses processing of Msg's in the state machine. - TripCircuitBreaker(context.Context, *MsgTripCircuitBreaker) (*MsgTripCircuitBreakerResponse, error) - // ResetCircuitBreaker resumes processing of Msg's in the state machine that - // have been paused using TripCircuitBreaker. - ResetCircuitBreaker(context.Context, *MsgResetCircuitBreaker) (*MsgResetCircuitBreakerResponse, error) - mustEmbedUnimplementedMsgServer() -} - -// UnimplementedMsgServer must be embedded to have -// forward compatible implementations. -// -// NOTE: this should be embedded by value instead of pointer to avoid a nil -// pointer dereference when methods are called. -type UnimplementedMsgServer struct{} - -func (UnimplementedMsgServer) AuthorizeCircuitBreaker(context.Context, *MsgAuthorizeCircuitBreaker) (*MsgAuthorizeCircuitBreakerResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AuthorizeCircuitBreaker not implemented") -} -func (UnimplementedMsgServer) TripCircuitBreaker(context.Context, *MsgTripCircuitBreaker) (*MsgTripCircuitBreakerResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TripCircuitBreaker not implemented") -} -func (UnimplementedMsgServer) ResetCircuitBreaker(context.Context, *MsgResetCircuitBreaker) (*MsgResetCircuitBreakerResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ResetCircuitBreaker not implemented") -} -func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {} -func (UnimplementedMsgServer) testEmbeddedByValue() {} - -// UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to MsgServer will -// result in compilation errors. -type UnsafeMsgServer interface { - mustEmbedUnimplementedMsgServer() -} - -func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer) { - // If the following call pancis, it indicates UnimplementedMsgServer was - // embedded by pointer and is nil. This will cause panics if an - // unimplemented method is ever invoked, so we test this at initialization - // time to prevent it from happening at runtime later due to I/O. - if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { - t.testEmbeddedByValue() - } - s.RegisterService(&Msg_ServiceDesc, srv) -} - -func _Msg_AuthorizeCircuitBreaker_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgAuthorizeCircuitBreaker) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).AuthorizeCircuitBreaker(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_AuthorizeCircuitBreaker_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).AuthorizeCircuitBreaker(ctx, req.(*MsgAuthorizeCircuitBreaker)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_TripCircuitBreaker_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgTripCircuitBreaker) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).TripCircuitBreaker(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_TripCircuitBreaker_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).TripCircuitBreaker(ctx, req.(*MsgTripCircuitBreaker)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_ResetCircuitBreaker_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgResetCircuitBreaker) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).ResetCircuitBreaker(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_ResetCircuitBreaker_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).ResetCircuitBreaker(ctx, req.(*MsgResetCircuitBreaker)) - } - return interceptor(ctx, in, info, handler) -} - -// Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var Msg_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "cosmos.circuit.v1.Msg", - HandlerType: (*MsgServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "AuthorizeCircuitBreaker", - Handler: _Msg_AuthorizeCircuitBreaker_Handler, - }, - { - MethodName: "TripCircuitBreaker", - Handler: _Msg_TripCircuitBreaker_Handler, - }, - { - MethodName: "ResetCircuitBreaker", - Handler: _Msg_ResetCircuitBreaker_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "cosmos/circuit/v1/tx.proto", -} diff --git a/api/cosmos/circuit/v1/types.pulsar.go b/api/cosmos/circuit/v1/types.pulsar.go deleted file mode 100644 index 56e4c0e892..0000000000 --- a/api/cosmos/circuit/v1/types.pulsar.go +++ /dev/null @@ -1,2018 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package circuitv1 - -import ( - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var _ protoreflect.List = (*_Permissions_2_list)(nil) - -type _Permissions_2_list struct { - list *[]string -} - -func (x *_Permissions_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_Permissions_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_Permissions_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_Permissions_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_Permissions_2_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message Permissions at list field LimitTypeUrls as it is not of Message kind")) -} - -func (x *_Permissions_2_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_Permissions_2_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_Permissions_2_list) IsValid() bool { - return x.list != nil -} - -var ( - md_Permissions protoreflect.MessageDescriptor - fd_Permissions_level protoreflect.FieldDescriptor - fd_Permissions_limit_type_urls protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_circuit_v1_types_proto_init() - md_Permissions = File_cosmos_circuit_v1_types_proto.Messages().ByName("Permissions") - fd_Permissions_level = md_Permissions.Fields().ByName("level") - fd_Permissions_limit_type_urls = md_Permissions.Fields().ByName("limit_type_urls") -} - -var _ protoreflect.Message = (*fastReflection_Permissions)(nil) - -type fastReflection_Permissions Permissions - -func (x *Permissions) ProtoReflect() protoreflect.Message { - return (*fastReflection_Permissions)(x) -} - -func (x *Permissions) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_circuit_v1_types_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_Permissions_messageType fastReflection_Permissions_messageType -var _ protoreflect.MessageType = fastReflection_Permissions_messageType{} - -type fastReflection_Permissions_messageType struct{} - -func (x fastReflection_Permissions_messageType) Zero() protoreflect.Message { - return (*fastReflection_Permissions)(nil) -} -func (x fastReflection_Permissions_messageType) New() protoreflect.Message { - return new(fastReflection_Permissions) -} -func (x fastReflection_Permissions_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Permissions -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Permissions) Descriptor() protoreflect.MessageDescriptor { - return md_Permissions -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_Permissions) Type() protoreflect.MessageType { - return _fastReflection_Permissions_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Permissions) New() protoreflect.Message { - return new(fastReflection_Permissions) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Permissions) Interface() protoreflect.ProtoMessage { - return (*Permissions)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_Permissions) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Level != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Level)) - if !f(fd_Permissions_level, value) { - return - } - } - if len(x.LimitTypeUrls) != 0 { - value := protoreflect.ValueOfList(&_Permissions_2_list{list: &x.LimitTypeUrls}) - if !f(fd_Permissions_limit_type_urls, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_Permissions) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.circuit.v1.Permissions.level": - return x.Level != 0 - case "cosmos.circuit.v1.Permissions.limit_type_urls": - return len(x.LimitTypeUrls) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.Permissions")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.Permissions does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Permissions) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.circuit.v1.Permissions.level": - x.Level = 0 - case "cosmos.circuit.v1.Permissions.limit_type_urls": - x.LimitTypeUrls = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.Permissions")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.Permissions does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_Permissions) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.circuit.v1.Permissions.level": - value := x.Level - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "cosmos.circuit.v1.Permissions.limit_type_urls": - if len(x.LimitTypeUrls) == 0 { - return protoreflect.ValueOfList(&_Permissions_2_list{}) - } - listValue := &_Permissions_2_list{list: &x.LimitTypeUrls} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.Permissions")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.Permissions does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Permissions) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.circuit.v1.Permissions.level": - x.Level = (Permissions_Level)(value.Enum()) - case "cosmos.circuit.v1.Permissions.limit_type_urls": - lv := value.List() - clv := lv.(*_Permissions_2_list) - x.LimitTypeUrls = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.Permissions")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.Permissions does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Permissions) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.circuit.v1.Permissions.limit_type_urls": - if x.LimitTypeUrls == nil { - x.LimitTypeUrls = []string{} - } - value := &_Permissions_2_list{list: &x.LimitTypeUrls} - return protoreflect.ValueOfList(value) - case "cosmos.circuit.v1.Permissions.level": - panic(fmt.Errorf("field level of message cosmos.circuit.v1.Permissions is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.Permissions")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.Permissions does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_Permissions) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.circuit.v1.Permissions.level": - return protoreflect.ValueOfEnum(0) - case "cosmos.circuit.v1.Permissions.limit_type_urls": - list := []string{} - return protoreflect.ValueOfList(&_Permissions_2_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.Permissions")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.Permissions does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_Permissions) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.circuit.v1.Permissions", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_Permissions) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Permissions) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_Permissions) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_Permissions) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Permissions) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Level != 0 { - n += 1 + runtime.Sov(uint64(x.Level)) - } - if len(x.LimitTypeUrls) > 0 { - for _, s := range x.LimitTypeUrls { - l = len(s) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*Permissions) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.LimitTypeUrls) > 0 { - for iNdEx := len(x.LimitTypeUrls) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.LimitTypeUrls[iNdEx]) - copy(dAtA[i:], x.LimitTypeUrls[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.LimitTypeUrls[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if x.Level != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Level)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*Permissions) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Permissions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Permissions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Level", wireType) - } - x.Level = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Level |= Permissions_Level(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LimitTypeUrls", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.LimitTypeUrls = append(x.LimitTypeUrls, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_GenesisAccountPermissions protoreflect.MessageDescriptor - fd_GenesisAccountPermissions_address protoreflect.FieldDescriptor - fd_GenesisAccountPermissions_permissions protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_circuit_v1_types_proto_init() - md_GenesisAccountPermissions = File_cosmos_circuit_v1_types_proto.Messages().ByName("GenesisAccountPermissions") - fd_GenesisAccountPermissions_address = md_GenesisAccountPermissions.Fields().ByName("address") - fd_GenesisAccountPermissions_permissions = md_GenesisAccountPermissions.Fields().ByName("permissions") -} - -var _ protoreflect.Message = (*fastReflection_GenesisAccountPermissions)(nil) - -type fastReflection_GenesisAccountPermissions GenesisAccountPermissions - -func (x *GenesisAccountPermissions) ProtoReflect() protoreflect.Message { - return (*fastReflection_GenesisAccountPermissions)(x) -} - -func (x *GenesisAccountPermissions) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_circuit_v1_types_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_GenesisAccountPermissions_messageType fastReflection_GenesisAccountPermissions_messageType -var _ protoreflect.MessageType = fastReflection_GenesisAccountPermissions_messageType{} - -type fastReflection_GenesisAccountPermissions_messageType struct{} - -func (x fastReflection_GenesisAccountPermissions_messageType) Zero() protoreflect.Message { - return (*fastReflection_GenesisAccountPermissions)(nil) -} -func (x fastReflection_GenesisAccountPermissions_messageType) New() protoreflect.Message { - return new(fastReflection_GenesisAccountPermissions) -} -func (x fastReflection_GenesisAccountPermissions_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_GenesisAccountPermissions -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_GenesisAccountPermissions) Descriptor() protoreflect.MessageDescriptor { - return md_GenesisAccountPermissions -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_GenesisAccountPermissions) Type() protoreflect.MessageType { - return _fastReflection_GenesisAccountPermissions_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_GenesisAccountPermissions) New() protoreflect.Message { - return new(fastReflection_GenesisAccountPermissions) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_GenesisAccountPermissions) Interface() protoreflect.ProtoMessage { - return (*GenesisAccountPermissions)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_GenesisAccountPermissions) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Address != "" { - value := protoreflect.ValueOfString(x.Address) - if !f(fd_GenesisAccountPermissions_address, value) { - return - } - } - if x.Permissions != nil { - value := protoreflect.ValueOfMessage(x.Permissions.ProtoReflect()) - if !f(fd_GenesisAccountPermissions_permissions, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_GenesisAccountPermissions) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.circuit.v1.GenesisAccountPermissions.address": - return x.Address != "" - case "cosmos.circuit.v1.GenesisAccountPermissions.permissions": - return x.Permissions != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.GenesisAccountPermissions")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.GenesisAccountPermissions does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GenesisAccountPermissions) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.circuit.v1.GenesisAccountPermissions.address": - x.Address = "" - case "cosmos.circuit.v1.GenesisAccountPermissions.permissions": - x.Permissions = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.GenesisAccountPermissions")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.GenesisAccountPermissions does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_GenesisAccountPermissions) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.circuit.v1.GenesisAccountPermissions.address": - value := x.Address - return protoreflect.ValueOfString(value) - case "cosmos.circuit.v1.GenesisAccountPermissions.permissions": - value := x.Permissions - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.GenesisAccountPermissions")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.GenesisAccountPermissions does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GenesisAccountPermissions) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.circuit.v1.GenesisAccountPermissions.address": - x.Address = value.Interface().(string) - case "cosmos.circuit.v1.GenesisAccountPermissions.permissions": - x.Permissions = value.Message().Interface().(*Permissions) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.GenesisAccountPermissions")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.GenesisAccountPermissions does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GenesisAccountPermissions) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.circuit.v1.GenesisAccountPermissions.permissions": - if x.Permissions == nil { - x.Permissions = new(Permissions) - } - return protoreflect.ValueOfMessage(x.Permissions.ProtoReflect()) - case "cosmos.circuit.v1.GenesisAccountPermissions.address": - panic(fmt.Errorf("field address of message cosmos.circuit.v1.GenesisAccountPermissions is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.GenesisAccountPermissions")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.GenesisAccountPermissions does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_GenesisAccountPermissions) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.circuit.v1.GenesisAccountPermissions.address": - return protoreflect.ValueOfString("") - case "cosmos.circuit.v1.GenesisAccountPermissions.permissions": - m := new(Permissions) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.GenesisAccountPermissions")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.GenesisAccountPermissions does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_GenesisAccountPermissions) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.circuit.v1.GenesisAccountPermissions", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_GenesisAccountPermissions) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GenesisAccountPermissions) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_GenesisAccountPermissions) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_GenesisAccountPermissions) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*GenesisAccountPermissions) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Address) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Permissions != nil { - l = options.Size(x.Permissions) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*GenesisAccountPermissions) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Permissions != nil { - encoded, err := options.Marshal(x.Permissions) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Address) > 0 { - i -= len(x.Address) - copy(dAtA[i:], x.Address) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*GenesisAccountPermissions) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisAccountPermissions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisAccountPermissions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Permissions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Permissions == nil { - x.Permissions = &Permissions{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Permissions); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_GenesisState_1_list)(nil) - -type _GenesisState_1_list struct { - list *[]*GenesisAccountPermissions -} - -func (x *_GenesisState_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_GenesisState_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_GenesisState_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*GenesisAccountPermissions) - (*x.list)[i] = concreteValue -} - -func (x *_GenesisState_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*GenesisAccountPermissions) - *x.list = append(*x.list, concreteValue) -} - -func (x *_GenesisState_1_list) AppendMutable() protoreflect.Value { - v := new(GenesisAccountPermissions) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_GenesisState_1_list) NewElement() protoreflect.Value { - v := new(GenesisAccountPermissions) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_1_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_GenesisState_2_list)(nil) - -type _GenesisState_2_list struct { - list *[]string -} - -func (x *_GenesisState_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_GenesisState_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_GenesisState_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_GenesisState_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_GenesisState_2_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message GenesisState at list field DisabledTypeUrls as it is not of Message kind")) -} - -func (x *_GenesisState_2_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_GenesisState_2_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_GenesisState_2_list) IsValid() bool { - return x.list != nil -} - -var ( - md_GenesisState protoreflect.MessageDescriptor - fd_GenesisState_account_permissions protoreflect.FieldDescriptor - fd_GenesisState_disabled_type_urls protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_circuit_v1_types_proto_init() - md_GenesisState = File_cosmos_circuit_v1_types_proto.Messages().ByName("GenesisState") - fd_GenesisState_account_permissions = md_GenesisState.Fields().ByName("account_permissions") - fd_GenesisState_disabled_type_urls = md_GenesisState.Fields().ByName("disabled_type_urls") -} - -var _ protoreflect.Message = (*fastReflection_GenesisState)(nil) - -type fastReflection_GenesisState GenesisState - -func (x *GenesisState) ProtoReflect() protoreflect.Message { - return (*fastReflection_GenesisState)(x) -} - -func (x *GenesisState) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_circuit_v1_types_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_GenesisState_messageType fastReflection_GenesisState_messageType -var _ protoreflect.MessageType = fastReflection_GenesisState_messageType{} - -type fastReflection_GenesisState_messageType struct{} - -func (x fastReflection_GenesisState_messageType) Zero() protoreflect.Message { - return (*fastReflection_GenesisState)(nil) -} -func (x fastReflection_GenesisState_messageType) New() protoreflect.Message { - return new(fastReflection_GenesisState) -} -func (x fastReflection_GenesisState_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_GenesisState -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_GenesisState) Descriptor() protoreflect.MessageDescriptor { - return md_GenesisState -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_GenesisState) Type() protoreflect.MessageType { - return _fastReflection_GenesisState_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_GenesisState) New() protoreflect.Message { - return new(fastReflection_GenesisState) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_GenesisState) Interface() protoreflect.ProtoMessage { - return (*GenesisState)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.AccountPermissions) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_1_list{list: &x.AccountPermissions}) - if !f(fd_GenesisState_account_permissions, value) { - return - } - } - if len(x.DisabledTypeUrls) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_2_list{list: &x.DisabledTypeUrls}) - if !f(fd_GenesisState_disabled_type_urls, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.circuit.v1.GenesisState.account_permissions": - return len(x.AccountPermissions) != 0 - case "cosmos.circuit.v1.GenesisState.disabled_type_urls": - return len(x.DisabledTypeUrls) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.GenesisState")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.GenesisState does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.circuit.v1.GenesisState.account_permissions": - x.AccountPermissions = nil - case "cosmos.circuit.v1.GenesisState.disabled_type_urls": - x.DisabledTypeUrls = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.GenesisState")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.GenesisState does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.circuit.v1.GenesisState.account_permissions": - if len(x.AccountPermissions) == 0 { - return protoreflect.ValueOfList(&_GenesisState_1_list{}) - } - listValue := &_GenesisState_1_list{list: &x.AccountPermissions} - return protoreflect.ValueOfList(listValue) - case "cosmos.circuit.v1.GenesisState.disabled_type_urls": - if len(x.DisabledTypeUrls) == 0 { - return protoreflect.ValueOfList(&_GenesisState_2_list{}) - } - listValue := &_GenesisState_2_list{list: &x.DisabledTypeUrls} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.GenesisState")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.GenesisState does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.circuit.v1.GenesisState.account_permissions": - lv := value.List() - clv := lv.(*_GenesisState_1_list) - x.AccountPermissions = *clv.list - case "cosmos.circuit.v1.GenesisState.disabled_type_urls": - lv := value.List() - clv := lv.(*_GenesisState_2_list) - x.DisabledTypeUrls = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.GenesisState")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.GenesisState does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.circuit.v1.GenesisState.account_permissions": - if x.AccountPermissions == nil { - x.AccountPermissions = []*GenesisAccountPermissions{} - } - value := &_GenesisState_1_list{list: &x.AccountPermissions} - return protoreflect.ValueOfList(value) - case "cosmos.circuit.v1.GenesisState.disabled_type_urls": - if x.DisabledTypeUrls == nil { - x.DisabledTypeUrls = []string{} - } - value := &_GenesisState_2_list{list: &x.DisabledTypeUrls} - return protoreflect.ValueOfList(value) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.GenesisState")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.GenesisState does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.circuit.v1.GenesisState.account_permissions": - list := []*GenesisAccountPermissions{} - return protoreflect.ValueOfList(&_GenesisState_1_list{list: &list}) - case "cosmos.circuit.v1.GenesisState.disabled_type_urls": - list := []string{} - return protoreflect.ValueOfList(&_GenesisState_2_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.circuit.v1.GenesisState")) - } - panic(fmt.Errorf("message cosmos.circuit.v1.GenesisState does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.circuit.v1.GenesisState", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_GenesisState) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GenesisState) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_GenesisState) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*GenesisState) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.AccountPermissions) > 0 { - for _, e := range x.AccountPermissions { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.DisabledTypeUrls) > 0 { - for _, s := range x.DisabledTypeUrls { - l = len(s) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*GenesisState) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.DisabledTypeUrls) > 0 { - for iNdEx := len(x.DisabledTypeUrls) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.DisabledTypeUrls[iNdEx]) - copy(dAtA[i:], x.DisabledTypeUrls[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DisabledTypeUrls[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(x.AccountPermissions) > 0 { - for iNdEx := len(x.AccountPermissions) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.AccountPermissions[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*GenesisState) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AccountPermissions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.AccountPermissions = append(x.AccountPermissions, &GenesisAccountPermissions{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.AccountPermissions[len(x.AccountPermissions)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DisabledTypeUrls", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.DisabledTypeUrls = append(x.DisabledTypeUrls, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cosmos/circuit/v1/types.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Level is the permission level. -type Permissions_Level int32 - -const ( - // LEVEL_NONE_UNSPECIFIED indicates that the account will have no circuit - // breaker permissions. - Permissions_LEVEL_NONE_UNSPECIFIED Permissions_Level = 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. - Permissions_LEVEL_SOME_MSGS Permissions_Level = 1 - // LEVEL_ALL_MSGS indicates that the account can trip or reset the circuit - // breaker for Msg's of all type URLs. - Permissions_LEVEL_ALL_MSGS Permissions_Level = 2 - // LEVEL_SUPER_ADMIN indicates that the account can take all circuit breaker - // actions and can grant permissions to other accounts. - Permissions_LEVEL_SUPER_ADMIN Permissions_Level = 3 -) - -// Enum value maps for Permissions_Level. -var ( - Permissions_Level_name = map[int32]string{ - 0: "LEVEL_NONE_UNSPECIFIED", - 1: "LEVEL_SOME_MSGS", - 2: "LEVEL_ALL_MSGS", - 3: "LEVEL_SUPER_ADMIN", - } - Permissions_Level_value = map[string]int32{ - "LEVEL_NONE_UNSPECIFIED": 0, - "LEVEL_SOME_MSGS": 1, - "LEVEL_ALL_MSGS": 2, - "LEVEL_SUPER_ADMIN": 3, - } -) - -func (x Permissions_Level) Enum() *Permissions_Level { - p := new(Permissions_Level) - *p = x - return p -} - -func (x Permissions_Level) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (Permissions_Level) Descriptor() protoreflect.EnumDescriptor { - return file_cosmos_circuit_v1_types_proto_enumTypes[0].Descriptor() -} - -func (Permissions_Level) Type() protoreflect.EnumType { - return &file_cosmos_circuit_v1_types_proto_enumTypes[0] -} - -func (x Permissions_Level) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use Permissions_Level.Descriptor instead. -func (Permissions_Level) EnumDescriptor() ([]byte, []int) { - return file_cosmos_circuit_v1_types_proto_rawDescGZIP(), []int{0, 0} -} - -// Permissions are the permissions that an account has to trip -// or reset the circuit breaker. -type Permissions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // level is the level of permissions granted to this account. - Level Permissions_Level `protobuf:"varint,1,opt,name=level,proto3,enum=cosmos.circuit.v1.Permissions_Level" json:"level,omitempty"` - // 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. - LimitTypeUrls []string `protobuf:"bytes,2,rep,name=limit_type_urls,json=limitTypeUrls,proto3" json:"limit_type_urls,omitempty"` -} - -func (x *Permissions) Reset() { - *x = Permissions{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_circuit_v1_types_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Permissions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Permissions) ProtoMessage() {} - -// Deprecated: Use Permissions.ProtoReflect.Descriptor instead. -func (*Permissions) Descriptor() ([]byte, []int) { - return file_cosmos_circuit_v1_types_proto_rawDescGZIP(), []int{0} -} - -func (x *Permissions) GetLevel() Permissions_Level { - if x != nil { - return x.Level - } - return Permissions_LEVEL_NONE_UNSPECIFIED -} - -func (x *Permissions) GetLimitTypeUrls() []string { - if x != nil { - return x.LimitTypeUrls - } - return nil -} - -// GenesisAccountPermissions is the account permissions for the circuit breaker in genesis -type GenesisAccountPermissions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Permissions *Permissions `protobuf:"bytes,2,opt,name=permissions,proto3" json:"permissions,omitempty"` -} - -func (x *GenesisAccountPermissions) Reset() { - *x = GenesisAccountPermissions{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_circuit_v1_types_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GenesisAccountPermissions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GenesisAccountPermissions) ProtoMessage() {} - -// Deprecated: Use GenesisAccountPermissions.ProtoReflect.Descriptor instead. -func (*GenesisAccountPermissions) Descriptor() ([]byte, []int) { - return file_cosmos_circuit_v1_types_proto_rawDescGZIP(), []int{1} -} - -func (x *GenesisAccountPermissions) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -func (x *GenesisAccountPermissions) GetPermissions() *Permissions { - if x != nil { - return x.Permissions - } - return nil -} - -// GenesisState is the state that must be provided at genesis. -type GenesisState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AccountPermissions []*GenesisAccountPermissions `protobuf:"bytes,1,rep,name=account_permissions,json=accountPermissions,proto3" json:"account_permissions,omitempty"` - DisabledTypeUrls []string `protobuf:"bytes,2,rep,name=disabled_type_urls,json=disabledTypeUrls,proto3" json:"disabled_type_urls,omitempty"` -} - -func (x *GenesisState) Reset() { - *x = GenesisState{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_circuit_v1_types_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GenesisState) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GenesisState) ProtoMessage() {} - -// Deprecated: Use GenesisState.ProtoReflect.Descriptor instead. -func (*GenesisState) Descriptor() ([]byte, []int) { - return file_cosmos_circuit_v1_types_proto_rawDescGZIP(), []int{2} -} - -func (x *GenesisState) GetAccountPermissions() []*GenesisAccountPermissions { - if x != nil { - return x.AccountPermissions - } - return nil -} - -func (x *GenesisState) GetDisabledTypeUrls() []string { - if x != nil { - return x.DisabledTypeUrls - } - return nil -} - -var File_cosmos_circuit_v1_types_proto protoreflect.FileDescriptor - -var file_cosmos_circuit_v1_types_proto_rawDesc = []byte{ - 0x0a, 0x1d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, - 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x11, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x2e, - 0x76, 0x31, 0x22, 0xd6, 0x01, 0x0a, 0x0b, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x12, 0x3a, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x24, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x75, - 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x2e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x26, - 0x0a, 0x0f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x75, 0x72, 0x6c, - 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x54, 0x79, - 0x70, 0x65, 0x55, 0x72, 0x6c, 0x73, 0x22, 0x63, 0x0a, 0x05, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, - 0x1a, 0x0a, 0x16, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x5f, 0x55, 0x4e, - 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x4c, - 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x53, 0x4f, 0x4d, 0x45, 0x5f, 0x4d, 0x53, 0x47, 0x53, 0x10, 0x01, - 0x12, 0x12, 0x0a, 0x0e, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x41, 0x4c, 0x4c, 0x5f, 0x4d, 0x53, - 0x47, 0x53, 0x10, 0x02, 0x12, 0x15, 0x0a, 0x11, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x53, 0x55, - 0x50, 0x45, 0x52, 0x5f, 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x10, 0x03, 0x22, 0x77, 0x0a, 0x19, 0x47, - 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x65, 0x72, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x12, 0x40, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x72, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x9b, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x5d, 0x0a, 0x13, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x5f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x63, 0x69, 0x72, 0x63, - 0x75, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x41, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x52, 0x12, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, - 0x52, 0x10, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x55, 0x72, - 0x6c, 0x73, 0x42, 0xb7, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x54, 0x79, - 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x3b, 0x63, - 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, - 0x11, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x43, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x2e, - 0x56, 0x31, 0xca, 0x02, 0x11, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x43, 0x69, 0x72, 0x63, - 0x75, 0x69, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1d, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, - 0x43, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, - 0x3a, 0x43, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cosmos_circuit_v1_types_proto_rawDescOnce sync.Once - file_cosmos_circuit_v1_types_proto_rawDescData = file_cosmos_circuit_v1_types_proto_rawDesc -) - -func file_cosmos_circuit_v1_types_proto_rawDescGZIP() []byte { - file_cosmos_circuit_v1_types_proto_rawDescOnce.Do(func() { - file_cosmos_circuit_v1_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_circuit_v1_types_proto_rawDescData) - }) - return file_cosmos_circuit_v1_types_proto_rawDescData -} - -var file_cosmos_circuit_v1_types_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_cosmos_circuit_v1_types_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_cosmos_circuit_v1_types_proto_goTypes = []interface{}{ - (Permissions_Level)(0), // 0: cosmos.circuit.v1.Permissions.Level - (*Permissions)(nil), // 1: cosmos.circuit.v1.Permissions - (*GenesisAccountPermissions)(nil), // 2: cosmos.circuit.v1.GenesisAccountPermissions - (*GenesisState)(nil), // 3: cosmos.circuit.v1.GenesisState -} -var file_cosmos_circuit_v1_types_proto_depIdxs = []int32{ - 0, // 0: cosmos.circuit.v1.Permissions.level:type_name -> cosmos.circuit.v1.Permissions.Level - 1, // 1: cosmos.circuit.v1.GenesisAccountPermissions.permissions:type_name -> cosmos.circuit.v1.Permissions - 2, // 2: cosmos.circuit.v1.GenesisState.account_permissions:type_name -> cosmos.circuit.v1.GenesisAccountPermissions - 3, // [3:3] is the sub-list for method output_type - 3, // [3:3] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name -} - -func init() { file_cosmos_circuit_v1_types_proto_init() } -func file_cosmos_circuit_v1_types_proto_init() { - if File_cosmos_circuit_v1_types_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cosmos_circuit_v1_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Permissions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_circuit_v1_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenesisAccountPermissions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_circuit_v1_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenesisState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cosmos_circuit_v1_types_proto_rawDesc, - NumEnums: 1, - NumMessages: 3, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cosmos_circuit_v1_types_proto_goTypes, - DependencyIndexes: file_cosmos_circuit_v1_types_proto_depIdxs, - EnumInfos: file_cosmos_circuit_v1_types_proto_enumTypes, - MessageInfos: file_cosmos_circuit_v1_types_proto_msgTypes, - }.Build() - File_cosmos_circuit_v1_types_proto = out.File - file_cosmos_circuit_v1_types_proto_rawDesc = nil - file_cosmos_circuit_v1_types_proto_goTypes = nil - file_cosmos_circuit_v1_types_proto_depIdxs = nil -} diff --git a/api/cosmos/consensus/v1/query.pulsar.go b/api/cosmos/consensus/v1/query.pulsar.go index 32a376e471..254fcf6316 100644 --- a/api/cosmos/consensus/v1/query.pulsar.go +++ b/api/cosmos/consensus/v1/query.pulsar.go @@ -2,7 +2,7 @@ package consensusv1 import ( - v2 "cosmossdk.io/api/cometbft/types/v2" + types "cosmossdk.io/api/tendermint/types" fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" @@ -528,7 +528,7 @@ func (x *fastReflection_QueryParamsResponse) Get(descriptor protoreflect.FieldDe func (x *fastReflection_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "cosmos.consensus.v1.QueryParamsResponse.params": - x.Params = value.Message().Interface().(*v2.ConsensusParams) + x.Params = value.Message().Interface().(*types.ConsensusParams) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.consensus.v1.QueryParamsResponse")) @@ -551,7 +551,7 @@ func (x *fastReflection_QueryParamsResponse) Mutable(fd protoreflect.FieldDescri switch fd.FullName() { case "cosmos.consensus.v1.QueryParamsResponse.params": if x.Params == nil { - x.Params = new(v2.ConsensusParams) + x.Params = new(types.ConsensusParams) } return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) default: @@ -568,7 +568,7 @@ func (x *fastReflection_QueryParamsResponse) Mutable(fd protoreflect.FieldDescri func (x *fastReflection_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "cosmos.consensus.v1.QueryParamsResponse.params": - m := new(v2.ConsensusParams) + m := new(types.ConsensusParams) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { @@ -765,7 +765,7 @@ func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.Params == nil { - x.Params = &v2.ConsensusParams{} + x.Params = &types.ConsensusParams{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -855,7 +855,7 @@ type QueryParamsResponse struct { // 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. - Params *v2.ConsensusParams `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` + Params *types.ConsensusParams `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` } func (x *QueryParamsResponse) Reset() { @@ -878,7 +878,7 @@ func (*QueryParamsResponse) Descriptor() ([]byte, []int) { return file_cosmos_consensus_v1_query_proto_rawDescGZIP(), []int{1} } -func (x *QueryParamsResponse) GetParams() *v2.ConsensusParams { +func (x *QueryParamsResponse) GetParams() *types.ConsensusParams { if x != nil { return x.Params } @@ -893,40 +893,40 @@ var file_cosmos_consensus_v1_query_proto_rawDesc = []byte{ 0x6f, 0x12, 0x13, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, - 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x51, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x06, - 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, - 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, - 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, - 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x32, 0x9d, 0x01, 0x0a, 0x05, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x12, 0x93, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x27, 0x2e, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, - 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x36, 0xca, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, - 0x20, 0x30, 0x2e, 0x34, 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2f, 0x76, - 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0xc5, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, - 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, - 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x30, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x73, - 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, - 0x75, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x13, 0x43, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x56, 0x31, - 0xca, 0x02, 0x13, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, - 0x73, 0x75, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1f, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, - 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x15, 0x43, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x3a, 0x3a, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x3a, 0x3a, 0x56, 0x31, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, + 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x14, + 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x22, 0x50, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x06, 0x70, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x74, 0x65, + 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, + 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x32, 0x9d, 0x01, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x12, 0x93, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x27, 0x2e, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x63, 0x6f, + 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x36, + 0xca, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, + 0x2e, 0x34, 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2f, 0x76, 0x31, 0x2f, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0xc5, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, + 0x76, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x30, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, + 0x73, 0x75, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, + 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x13, 0x43, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, + 0x13, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, + 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1f, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x43, 0x6f, + 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x15, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, + 0x3a, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -943,12 +943,12 @@ func file_cosmos_consensus_v1_query_proto_rawDescGZIP() []byte { var file_cosmos_consensus_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_cosmos_consensus_v1_query_proto_goTypes = []interface{}{ - (*QueryParamsRequest)(nil), // 0: cosmos.consensus.v1.QueryParamsRequest - (*QueryParamsResponse)(nil), // 1: cosmos.consensus.v1.QueryParamsResponse - (*v2.ConsensusParams)(nil), // 2: cometbft.types.v2.ConsensusParams + (*QueryParamsRequest)(nil), // 0: cosmos.consensus.v1.QueryParamsRequest + (*QueryParamsResponse)(nil), // 1: cosmos.consensus.v1.QueryParamsResponse + (*types.ConsensusParams)(nil), // 2: tendermint.types.ConsensusParams } var file_cosmos_consensus_v1_query_proto_depIdxs = []int32{ - 2, // 0: cosmos.consensus.v1.QueryParamsResponse.params:type_name -> cometbft.types.v2.ConsensusParams + 2, // 0: cosmos.consensus.v1.QueryParamsResponse.params:type_name -> tendermint.types.ConsensusParams 0, // 1: cosmos.consensus.v1.Query.Params:input_type -> cosmos.consensus.v1.QueryParamsRequest 1, // 2: cosmos.consensus.v1.Query.Params:output_type -> cosmos.consensus.v1.QueryParamsResponse 2, // [2:3] is the sub-list for method output_type diff --git a/api/cosmos/consensus/v1/tx.pulsar.go b/api/cosmos/consensus/v1/tx.pulsar.go index 9ffd4411dc..861b2ab8b8 100644 --- a/api/cosmos/consensus/v1/tx.pulsar.go +++ b/api/cosmos/consensus/v1/tx.pulsar.go @@ -3,8 +3,8 @@ package consensusv1 import ( _ "cosmossdk.io/api/amino" - v2 "cosmossdk.io/api/cometbft/types/v2" _ "cosmossdk.io/api/cosmos/msg/v1" + types "cosmossdk.io/api/tendermint/types" fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" @@ -23,8 +23,6 @@ var ( fd_MsgUpdateParams_evidence protoreflect.FieldDescriptor fd_MsgUpdateParams_validator protoreflect.FieldDescriptor fd_MsgUpdateParams_abci protoreflect.FieldDescriptor - fd_MsgUpdateParams_synchrony protoreflect.FieldDescriptor - fd_MsgUpdateParams_feature protoreflect.FieldDescriptor ) func init() { @@ -35,8 +33,6 @@ func init() { fd_MsgUpdateParams_evidence = md_MsgUpdateParams.Fields().ByName("evidence") fd_MsgUpdateParams_validator = md_MsgUpdateParams.Fields().ByName("validator") fd_MsgUpdateParams_abci = md_MsgUpdateParams.Fields().ByName("abci") - fd_MsgUpdateParams_synchrony = md_MsgUpdateParams.Fields().ByName("synchrony") - fd_MsgUpdateParams_feature = md_MsgUpdateParams.Fields().ByName("feature") } var _ protoreflect.Message = (*fastReflection_MsgUpdateParams)(nil) @@ -134,18 +130,6 @@ func (x *fastReflection_MsgUpdateParams) Range(f func(protoreflect.FieldDescript return } } - if x.Synchrony != nil { - value := protoreflect.ValueOfMessage(x.Synchrony.ProtoReflect()) - if !f(fd_MsgUpdateParams_synchrony, value) { - return - } - } - if x.Feature != nil { - value := protoreflect.ValueOfMessage(x.Feature.ProtoReflect()) - if !f(fd_MsgUpdateParams_feature, value) { - return - } - } } // Has reports whether a field is populated. @@ -171,10 +155,6 @@ func (x *fastReflection_MsgUpdateParams) Has(fd protoreflect.FieldDescriptor) bo return x.Validator != nil case "cosmos.consensus.v1.MsgUpdateParams.abci": return x.Abci != nil - case "cosmos.consensus.v1.MsgUpdateParams.synchrony": - return x.Synchrony != nil - case "cosmos.consensus.v1.MsgUpdateParams.feature": - return x.Feature != nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.consensus.v1.MsgUpdateParams")) @@ -201,10 +181,6 @@ func (x *fastReflection_MsgUpdateParams) Clear(fd protoreflect.FieldDescriptor) x.Validator = nil case "cosmos.consensus.v1.MsgUpdateParams.abci": x.Abci = nil - case "cosmos.consensus.v1.MsgUpdateParams.synchrony": - x.Synchrony = nil - case "cosmos.consensus.v1.MsgUpdateParams.feature": - x.Feature = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.consensus.v1.MsgUpdateParams")) @@ -236,12 +212,6 @@ func (x *fastReflection_MsgUpdateParams) Get(descriptor protoreflect.FieldDescri case "cosmos.consensus.v1.MsgUpdateParams.abci": value := x.Abci return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cosmos.consensus.v1.MsgUpdateParams.synchrony": - value := x.Synchrony - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cosmos.consensus.v1.MsgUpdateParams.feature": - value := x.Feature - return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.consensus.v1.MsgUpdateParams")) @@ -265,17 +235,13 @@ func (x *fastReflection_MsgUpdateParams) Set(fd protoreflect.FieldDescriptor, va case "cosmos.consensus.v1.MsgUpdateParams.authority": x.Authority = value.Interface().(string) case "cosmos.consensus.v1.MsgUpdateParams.block": - x.Block = value.Message().Interface().(*v2.BlockParams) + x.Block = value.Message().Interface().(*types.BlockParams) case "cosmos.consensus.v1.MsgUpdateParams.evidence": - x.Evidence = value.Message().Interface().(*v2.EvidenceParams) + x.Evidence = value.Message().Interface().(*types.EvidenceParams) case "cosmos.consensus.v1.MsgUpdateParams.validator": - x.Validator = value.Message().Interface().(*v2.ValidatorParams) + x.Validator = value.Message().Interface().(*types.ValidatorParams) case "cosmos.consensus.v1.MsgUpdateParams.abci": - x.Abci = value.Message().Interface().(*v2.ABCIParams) - case "cosmos.consensus.v1.MsgUpdateParams.synchrony": - x.Synchrony = value.Message().Interface().(*v2.SynchronyParams) - case "cosmos.consensus.v1.MsgUpdateParams.feature": - x.Feature = value.Message().Interface().(*v2.FeatureParams) + x.Abci = value.Message().Interface().(*types.ABCIParams) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.consensus.v1.MsgUpdateParams")) @@ -298,34 +264,24 @@ func (x *fastReflection_MsgUpdateParams) Mutable(fd protoreflect.FieldDescriptor switch fd.FullName() { case "cosmos.consensus.v1.MsgUpdateParams.block": if x.Block == nil { - x.Block = new(v2.BlockParams) + x.Block = new(types.BlockParams) } return protoreflect.ValueOfMessage(x.Block.ProtoReflect()) case "cosmos.consensus.v1.MsgUpdateParams.evidence": if x.Evidence == nil { - x.Evidence = new(v2.EvidenceParams) + x.Evidence = new(types.EvidenceParams) } return protoreflect.ValueOfMessage(x.Evidence.ProtoReflect()) case "cosmos.consensus.v1.MsgUpdateParams.validator": if x.Validator == nil { - x.Validator = new(v2.ValidatorParams) + x.Validator = new(types.ValidatorParams) } return protoreflect.ValueOfMessage(x.Validator.ProtoReflect()) case "cosmos.consensus.v1.MsgUpdateParams.abci": if x.Abci == nil { - x.Abci = new(v2.ABCIParams) + x.Abci = new(types.ABCIParams) } return protoreflect.ValueOfMessage(x.Abci.ProtoReflect()) - case "cosmos.consensus.v1.MsgUpdateParams.synchrony": - if x.Synchrony == nil { - x.Synchrony = new(v2.SynchronyParams) - } - return protoreflect.ValueOfMessage(x.Synchrony.ProtoReflect()) - case "cosmos.consensus.v1.MsgUpdateParams.feature": - if x.Feature == nil { - x.Feature = new(v2.FeatureParams) - } - return protoreflect.ValueOfMessage(x.Feature.ProtoReflect()) case "cosmos.consensus.v1.MsgUpdateParams.authority": panic(fmt.Errorf("field authority of message cosmos.consensus.v1.MsgUpdateParams is not mutable")) default: @@ -344,22 +300,16 @@ func (x *fastReflection_MsgUpdateParams) NewField(fd protoreflect.FieldDescripto case "cosmos.consensus.v1.MsgUpdateParams.authority": return protoreflect.ValueOfString("") case "cosmos.consensus.v1.MsgUpdateParams.block": - m := new(v2.BlockParams) + m := new(types.BlockParams) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cosmos.consensus.v1.MsgUpdateParams.evidence": - m := new(v2.EvidenceParams) + m := new(types.EvidenceParams) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cosmos.consensus.v1.MsgUpdateParams.validator": - m := new(v2.ValidatorParams) + m := new(types.ValidatorParams) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cosmos.consensus.v1.MsgUpdateParams.abci": - m := new(v2.ABCIParams) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cosmos.consensus.v1.MsgUpdateParams.synchrony": - m := new(v2.SynchronyParams) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cosmos.consensus.v1.MsgUpdateParams.feature": - m := new(v2.FeatureParams) + m := new(types.ABCIParams) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { @@ -450,14 +400,6 @@ func (x *fastReflection_MsgUpdateParams) ProtoMethods() *protoiface.Methods { l = options.Size(x.Abci) n += 1 + l + runtime.Sov(uint64(l)) } - if x.Synchrony != nil { - l = options.Size(x.Synchrony) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Feature != nil { - l = options.Size(x.Feature) - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -487,34 +429,6 @@ func (x *fastReflection_MsgUpdateParams) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Feature != nil { - encoded, err := options.Marshal(x.Feature) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x3a - } - if x.Synchrony != nil { - encoded, err := options.Marshal(x.Synchrony) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x32 - } if x.Abci != nil { encoded, err := options.Marshal(x.Abci) if err != nil { @@ -689,7 +603,7 @@ func (x *fastReflection_MsgUpdateParams) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.Block == nil { - x.Block = &v2.BlockParams{} + x.Block = &types.BlockParams{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Block); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -725,7 +639,7 @@ func (x *fastReflection_MsgUpdateParams) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.Evidence == nil { - x.Evidence = &v2.EvidenceParams{} + x.Evidence = &types.EvidenceParams{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Evidence); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -761,7 +675,7 @@ func (x *fastReflection_MsgUpdateParams) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.Validator == nil { - x.Validator = &v2.ValidatorParams{} + x.Validator = &types.ValidatorParams{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Validator); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -797,84 +711,12 @@ func (x *fastReflection_MsgUpdateParams) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.Abci == nil { - x.Abci = &v2.ABCIParams{} + x.Abci = &types.ABCIParams{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Abci); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 6: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Synchrony", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Synchrony == nil { - x.Synchrony = &v2.SynchronyParams{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Synchrony); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Feature", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Feature == nil { - x.Feature = &v2.FeatureParams{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Feature); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -1289,16 +1131,13 @@ type MsgUpdateParams struct { Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the x/consensus parameters to update. // VersionsParams is not included in this Msg because it is tracked - // separately in x/upgrade. + // separarately in x/upgrade. // // NOTE: All parameters must be supplied. - Block *v2.BlockParams `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"` - Evidence *v2.EvidenceParams `protobuf:"bytes,3,opt,name=evidence,proto3" json:"evidence,omitempty"` - Validator *v2.ValidatorParams `protobuf:"bytes,4,opt,name=validator,proto3" json:"validator,omitempty"` - // Deprecated: Do not use. - Abci *v2.ABCIParams `protobuf:"bytes,5,opt,name=abci,proto3" json:"abci,omitempty"` - Synchrony *v2.SynchronyParams `protobuf:"bytes,6,opt,name=synchrony,proto3" json:"synchrony,omitempty"` - Feature *v2.FeatureParams `protobuf:"bytes,7,opt,name=feature,proto3" json:"feature,omitempty"` + Block *types.BlockParams `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"` + Evidence *types.EvidenceParams `protobuf:"bytes,3,opt,name=evidence,proto3" json:"evidence,omitempty"` + Validator *types.ValidatorParams `protobuf:"bytes,4,opt,name=validator,proto3" json:"validator,omitempty"` + Abci *types.ABCIParams `protobuf:"bytes,5,opt,name=abci,proto3" json:"abci,omitempty"` } func (x *MsgUpdateParams) Reset() { @@ -1328,49 +1167,34 @@ func (x *MsgUpdateParams) GetAuthority() string { return "" } -func (x *MsgUpdateParams) GetBlock() *v2.BlockParams { +func (x *MsgUpdateParams) GetBlock() *types.BlockParams { if x != nil { return x.Block } return nil } -func (x *MsgUpdateParams) GetEvidence() *v2.EvidenceParams { +func (x *MsgUpdateParams) GetEvidence() *types.EvidenceParams { if x != nil { return x.Evidence } return nil } -func (x *MsgUpdateParams) GetValidator() *v2.ValidatorParams { +func (x *MsgUpdateParams) GetValidator() *types.ValidatorParams { if x != nil { return x.Validator } return nil } -// Deprecated: Do not use. -func (x *MsgUpdateParams) GetAbci() *v2.ABCIParams { +func (x *MsgUpdateParams) GetAbci() *types.ABCIParams { if x != nil { return x.Abci } return nil } -func (x *MsgUpdateParams) GetSynchrony() *v2.SynchronyParams { - if x != nil { - return x.Synchrony - } - return nil -} - -func (x *MsgUpdateParams) GetFeature() *v2.FeatureParams { - if x != nil { - return x.Feature - } - return nil -} - // MsgUpdateParamsResponse defines the response structure for executing a // MsgUpdateParams message. type MsgUpdateParamsResponse struct { @@ -1409,67 +1233,56 @@ var file_cosmos_consensus_v1_tx_proto_rawDesc = []byte{ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x73, 0x67, 0x2f, 0x76, 0x31, - 0x2f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x6f, 0x6d, 0x65, - 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x70, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xad, 0x04, 0x0a, 0x0f, 0x4d, - 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x36, - 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, - 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x34, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x50, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x3d, 0x0a, 0x08, - 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, - 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, - 0x76, 0x32, 0x2e, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x52, 0x08, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x40, 0x0a, 0x09, 0x76, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, - 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, - 0x76, 0x32, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x50, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x48, 0x0a, - 0x04, 0x61, 0x62, 0x63, 0x69, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x63, 0x6f, - 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, - 0x41, 0x42, 0x43, 0x49, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x15, 0xda, 0xb4, 0x2d, 0x0f, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x35, 0x30, 0x18, - 0x01, 0x52, 0x04, 0x61, 0x62, 0x63, 0x69, 0x12, 0x55, 0x0a, 0x09, 0x73, 0x79, 0x6e, 0x63, 0x68, - 0x72, 0x6f, 0x6e, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x6f, 0x6d, - 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x53, - 0x79, 0x6e, 0x63, 0x68, 0x72, 0x6f, 0x6e, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x13, - 0xda, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, - 0x2e, 0x35, 0x34, 0x52, 0x09, 0x73, 0x79, 0x6e, 0x63, 0x68, 0x72, 0x6f, 0x6e, 0x79, 0x12, 0x4f, - 0x0a, 0x07, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x20, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x42, 0x13, 0xda, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, - 0x6b, 0x20, 0x30, 0x2e, 0x35, 0x34, 0x52, 0x07, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x3a, - 0x39, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x8a, - 0xe7, 0xb0, 0x2a, 0x26, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x78, - 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2f, 0x4d, 0x73, 0x67, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x19, 0x0a, 0x17, 0x4d, 0x73, - 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x85, 0x01, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x77, 0x0a, - 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x24, 0x2e, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x1a, 0x2c, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6e, - 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x13, 0xca, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, - 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x37, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xc2, 0x01, - 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6e, - 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, - 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, - 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6e, 0x73, 0x65, - 0x6e, 0x73, 0x75, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x13, 0x43, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, - 0x56, 0x31, 0xca, 0x02, 0x13, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x43, 0x6f, 0x6e, 0x73, - 0x65, 0x6e, 0x73, 0x75, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1f, 0x43, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x5c, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, - 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x15, 0x43, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x3a, 0x3a, - 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x2f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x74, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x70, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xff, 0x02, 0x0a, 0x0f, 0x4d, 0x73, + 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x36, 0x0a, + 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x33, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, + 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x3c, 0x0a, 0x08, 0x65, 0x76, + 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x74, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x08, + 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x3f, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x74, 0x65, + 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x09, + 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x45, 0x0a, 0x04, 0x61, 0x62, 0x63, + 0x69, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x41, 0x42, 0x43, 0x49, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x13, 0xda, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x35, 0x30, 0x52, 0x04, 0x61, 0x62, 0x63, 0x69, + 0x3a, 0x39, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, + 0x8a, 0xe7, 0xb0, 0x2a, 0x26, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, + 0x78, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2f, 0x4d, 0x73, 0x67, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x19, 0x0a, 0x17, 0x4d, + 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x85, 0x01, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x77, + 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x24, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x2c, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x63, 0x6f, + 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x13, 0xca, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, + 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x37, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xc2, + 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x63, 0x6f, + 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, + 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, + 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6e, 0x73, + 0x65, 0x6e, 0x73, 0x75, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x13, + 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, + 0x2e, 0x56, 0x31, 0xca, 0x02, 0x13, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x43, 0x6f, 0x6e, + 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1f, 0x43, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x5c, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x5c, 0x56, 0x31, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x15, 0x43, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x3a, + 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1488,27 +1301,23 @@ var file_cosmos_consensus_v1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 2 var file_cosmos_consensus_v1_tx_proto_goTypes = []interface{}{ (*MsgUpdateParams)(nil), // 0: cosmos.consensus.v1.MsgUpdateParams (*MsgUpdateParamsResponse)(nil), // 1: cosmos.consensus.v1.MsgUpdateParamsResponse - (*v2.BlockParams)(nil), // 2: cometbft.types.v2.BlockParams - (*v2.EvidenceParams)(nil), // 3: cometbft.types.v2.EvidenceParams - (*v2.ValidatorParams)(nil), // 4: cometbft.types.v2.ValidatorParams - (*v2.ABCIParams)(nil), // 5: cometbft.types.v2.ABCIParams - (*v2.SynchronyParams)(nil), // 6: cometbft.types.v2.SynchronyParams - (*v2.FeatureParams)(nil), // 7: cometbft.types.v2.FeatureParams + (*types.BlockParams)(nil), // 2: tendermint.types.BlockParams + (*types.EvidenceParams)(nil), // 3: tendermint.types.EvidenceParams + (*types.ValidatorParams)(nil), // 4: tendermint.types.ValidatorParams + (*types.ABCIParams)(nil), // 5: tendermint.types.ABCIParams } var file_cosmos_consensus_v1_tx_proto_depIdxs = []int32{ - 2, // 0: cosmos.consensus.v1.MsgUpdateParams.block:type_name -> cometbft.types.v2.BlockParams - 3, // 1: cosmos.consensus.v1.MsgUpdateParams.evidence:type_name -> cometbft.types.v2.EvidenceParams - 4, // 2: cosmos.consensus.v1.MsgUpdateParams.validator:type_name -> cometbft.types.v2.ValidatorParams - 5, // 3: cosmos.consensus.v1.MsgUpdateParams.abci:type_name -> cometbft.types.v2.ABCIParams - 6, // 4: cosmos.consensus.v1.MsgUpdateParams.synchrony:type_name -> cometbft.types.v2.SynchronyParams - 7, // 5: cosmos.consensus.v1.MsgUpdateParams.feature:type_name -> cometbft.types.v2.FeatureParams - 0, // 6: cosmos.consensus.v1.Msg.UpdateParams:input_type -> cosmos.consensus.v1.MsgUpdateParams - 1, // 7: cosmos.consensus.v1.Msg.UpdateParams:output_type -> cosmos.consensus.v1.MsgUpdateParamsResponse - 7, // [7:8] is the sub-list for method output_type - 6, // [6:7] is the sub-list for method input_type - 6, // [6:6] is the sub-list for extension type_name - 6, // [6:6] is the sub-list for extension extendee - 0, // [0:6] is the sub-list for field type_name + 2, // 0: cosmos.consensus.v1.MsgUpdateParams.block:type_name -> tendermint.types.BlockParams + 3, // 1: cosmos.consensus.v1.MsgUpdateParams.evidence:type_name -> tendermint.types.EvidenceParams + 4, // 2: cosmos.consensus.v1.MsgUpdateParams.validator:type_name -> tendermint.types.ValidatorParams + 5, // 3: cosmos.consensus.v1.MsgUpdateParams.abci:type_name -> tendermint.types.ABCIParams + 0, // 4: cosmos.consensus.v1.Msg.UpdateParams:input_type -> cosmos.consensus.v1.MsgUpdateParams + 1, // 5: cosmos.consensus.v1.Msg.UpdateParams:output_type -> cosmos.consensus.v1.MsgUpdateParamsResponse + 5, // [5:6] is the sub-list for method output_type + 4, // [4:5] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name } func init() { file_cosmos_consensus_v1_tx_proto_init() } diff --git a/api/cosmos/evidence/module/v1/module.pulsar.go b/api/cosmos/evidence/module/v1/module.pulsar.go index 11cd170325..27cb57703a 100644 --- a/api/cosmos/evidence/module/v1/module.pulsar.go +++ b/api/cosmos/evidence/module/v1/module.pulsar.go @@ -418,26 +418,26 @@ var file_cosmos_evidence_module_v1_module_proto_rawDesc = []byte{ 0x2e, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x41, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x3a, - 0x37, 0xba, 0xc0, 0x96, 0xda, 0x01, 0x31, 0x0a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x39, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x3a, + 0x2f, 0xba, 0xc0, 0x96, 0xda, 0x01, 0x29, 0x0a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x2f, 0x78, 0x2f, - 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x42, 0xe8, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, - 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, - 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, - 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x33, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2f, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x6d, 0x6f, 0x64, 0x75, - 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x76, 0x31, 0xa2, 0x02, - 0x03, 0x43, 0x45, 0x4d, 0xaa, 0x02, 0x19, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x45, 0x76, - 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x56, 0x31, - 0xca, 0x02, 0x19, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, - 0x63, 0x65, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x25, 0x43, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x5c, 0x4d, - 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1c, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x45, - 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x3a, 0x3a, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x3a, - 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x78, 0x2f, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x42, 0xe8, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, + 0x76, 0x31, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x33, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x65, 0x76, 0x69, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x6d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x45, 0x4d, 0xaa, 0x02, 0x19, 0x43, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x4d, + 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x19, 0x43, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x5c, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, + 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x25, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x45, 0x76, + 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1c, 0x43, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x3a, + 0x3a, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( diff --git a/api/cosmos/group/module/v1/module.pulsar.go b/api/cosmos/group/module/v1/module.pulsar.go deleted file mode 100644 index 750657fb3c..0000000000 --- a/api/cosmos/group/module/v1/module.pulsar.go +++ /dev/null @@ -1,668 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package modulev1 - -import ( - _ "cosmossdk.io/api/amino" - _ "cosmossdk.io/api/cosmos/app/v1alpha1" - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_Module protoreflect.MessageDescriptor - fd_Module_max_execution_period protoreflect.FieldDescriptor - fd_Module_max_metadata_len protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_module_v1_module_proto_init() - md_Module = File_cosmos_group_module_v1_module_proto.Messages().ByName("Module") - fd_Module_max_execution_period = md_Module.Fields().ByName("max_execution_period") - fd_Module_max_metadata_len = md_Module.Fields().ByName("max_metadata_len") -} - -var _ protoreflect.Message = (*fastReflection_Module)(nil) - -type fastReflection_Module Module - -func (x *Module) ProtoReflect() protoreflect.Message { - return (*fastReflection_Module)(x) -} - -func (x *Module) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_module_v1_module_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_Module_messageType fastReflection_Module_messageType -var _ protoreflect.MessageType = fastReflection_Module_messageType{} - -type fastReflection_Module_messageType struct{} - -func (x fastReflection_Module_messageType) Zero() protoreflect.Message { - return (*fastReflection_Module)(nil) -} -func (x fastReflection_Module_messageType) New() protoreflect.Message { - return new(fastReflection_Module) -} -func (x fastReflection_Module_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Module -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Module) Descriptor() protoreflect.MessageDescriptor { - return md_Module -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_Module) Type() protoreflect.MessageType { - return _fastReflection_Module_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Module) New() protoreflect.Message { - return new(fastReflection_Module) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Module) Interface() protoreflect.ProtoMessage { - return (*Module)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_Module) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.MaxExecutionPeriod != nil { - value := protoreflect.ValueOfMessage(x.MaxExecutionPeriod.ProtoReflect()) - if !f(fd_Module_max_execution_period, value) { - return - } - } - if x.MaxMetadataLen != uint64(0) { - value := protoreflect.ValueOfUint64(x.MaxMetadataLen) - if !f(fd_Module_max_metadata_len, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.module.v1.Module.max_execution_period": - return x.MaxExecutionPeriod != nil - case "cosmos.group.module.v1.Module.max_metadata_len": - return x.MaxMetadataLen != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.module.v1.Module")) - } - panic(fmt.Errorf("message cosmos.group.module.v1.Module does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.module.v1.Module.max_execution_period": - x.MaxExecutionPeriod = nil - case "cosmos.group.module.v1.Module.max_metadata_len": - x.MaxMetadataLen = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.module.v1.Module")) - } - panic(fmt.Errorf("message cosmos.group.module.v1.Module does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.module.v1.Module.max_execution_period": - value := x.MaxExecutionPeriod - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cosmos.group.module.v1.Module.max_metadata_len": - value := x.MaxMetadataLen - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.module.v1.Module")) - } - panic(fmt.Errorf("message cosmos.group.module.v1.Module does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Module) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.module.v1.Module.max_execution_period": - x.MaxExecutionPeriod = value.Message().Interface().(*durationpb.Duration) - case "cosmos.group.module.v1.Module.max_metadata_len": - x.MaxMetadataLen = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.module.v1.Module")) - } - panic(fmt.Errorf("message cosmos.group.module.v1.Module does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.module.v1.Module.max_execution_period": - if x.MaxExecutionPeriod == nil { - x.MaxExecutionPeriod = new(durationpb.Duration) - } - return protoreflect.ValueOfMessage(x.MaxExecutionPeriod.ProtoReflect()) - case "cosmos.group.module.v1.Module.max_metadata_len": - panic(fmt.Errorf("field max_metadata_len of message cosmos.group.module.v1.Module is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.module.v1.Module")) - } - panic(fmt.Errorf("message cosmos.group.module.v1.Module does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_Module) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.module.v1.Module.max_execution_period": - m := new(durationpb.Duration) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cosmos.group.module.v1.Module.max_metadata_len": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.module.v1.Module")) - } - panic(fmt.Errorf("message cosmos.group.module.v1.Module does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_Module) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.module.v1.Module", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_Module) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Module) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_Module) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Module) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.MaxExecutionPeriod != nil { - l = options.Size(x.MaxExecutionPeriod) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.MaxMetadataLen != 0 { - n += 1 + runtime.Sov(uint64(x.MaxMetadataLen)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*Module) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.MaxMetadataLen != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.MaxMetadataLen)) - i-- - dAtA[i] = 0x10 - } - if x.MaxExecutionPeriod != nil { - encoded, err := options.Marshal(x.MaxExecutionPeriod) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*Module) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxExecutionPeriod", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.MaxExecutionPeriod == nil { - x.MaxExecutionPeriod = &durationpb.Duration{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.MaxExecutionPeriod); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxMetadataLen", wireType) - } - x.MaxMetadataLen = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.MaxMetadataLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cosmos/group/module/v1/module.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Module is the config object of the group module. -type Module struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // max_execution_period defines the max duration after a proposal's voting period ends that members can send a MsgExec - // to execute the proposal. - MaxExecutionPeriod *durationpb.Duration `protobuf:"bytes,1,opt,name=max_execution_period,json=maxExecutionPeriod,proto3" json:"max_execution_period,omitempty"` - // 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. - MaxMetadataLen uint64 `protobuf:"varint,2,opt,name=max_metadata_len,json=maxMetadataLen,proto3" json:"max_metadata_len,omitempty"` -} - -func (x *Module) Reset() { - *x = Module{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_module_v1_module_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Module) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Module) ProtoMessage() {} - -// Deprecated: Use Module.ProtoReflect.Descriptor instead. -func (*Module) Descriptor() ([]byte, []int) { - return file_cosmos_group_module_v1_module_proto_rawDescGZIP(), []int{0} -} - -func (x *Module) GetMaxExecutionPeriod() *durationpb.Duration { - if x != nil { - return x.MaxExecutionPeriod - } - return nil -} - -func (x *Module) GetMaxMetadataLen() uint64 { - if x != nil { - return x.MaxMetadataLen - } - return 0 -} - -var File_cosmos_group_module_v1_module_proto protoreflect.FileDescriptor - -var file_cosmos_group_module_v1_module_proto_rawDesc = []byte{ - 0x0a, 0x23, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x6d, - 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, - 0x6f, 0x75, 0x70, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x20, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, - 0x61, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, - 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc4, 0x01, 0x0a, 0x06, 0x4d, 0x6f, 0x64, - 0x75, 0x6c, 0x65, 0x12, 0x5a, 0x0a, 0x14, 0x6d, 0x61, 0x78, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0d, 0xc8, 0xde, - 0x1f, 0x00, 0x98, 0xdf, 0x1f, 0x01, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x12, 0x6d, 0x61, 0x78, - 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, - 0x28, 0x0a, 0x10, 0x6d, 0x61, 0x78, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, - 0x6c, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x6d, 0x61, 0x78, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4c, 0x65, 0x6e, 0x3a, 0x34, 0xba, 0xc0, 0x96, 0xda, 0x01, - 0x2e, 0x0a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, - 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x2f, 0x78, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x42, - 0xd6, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, - 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0b, - 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x6d, 0x6f, 0x64, - 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x76, 0x31, 0xa2, - 0x02, 0x03, 0x43, 0x47, 0x4d, 0xaa, 0x02, 0x16, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x47, - 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, - 0x16, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x5c, 0x4d, 0x6f, - 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x22, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x5c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19, 0x43, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x3a, 0x3a, 0x4d, 0x6f, - 0x64, 0x75, 0x6c, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cosmos_group_module_v1_module_proto_rawDescOnce sync.Once - file_cosmos_group_module_v1_module_proto_rawDescData = file_cosmos_group_module_v1_module_proto_rawDesc -) - -func file_cosmos_group_module_v1_module_proto_rawDescGZIP() []byte { - file_cosmos_group_module_v1_module_proto_rawDescOnce.Do(func() { - file_cosmos_group_module_v1_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_group_module_v1_module_proto_rawDescData) - }) - return file_cosmos_group_module_v1_module_proto_rawDescData -} - -var file_cosmos_group_module_v1_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_cosmos_group_module_v1_module_proto_goTypes = []interface{}{ - (*Module)(nil), // 0: cosmos.group.module.v1.Module - (*durationpb.Duration)(nil), // 1: google.protobuf.Duration -} -var file_cosmos_group_module_v1_module_proto_depIdxs = []int32{ - 1, // 0: cosmos.group.module.v1.Module.max_execution_period:type_name -> google.protobuf.Duration - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_cosmos_group_module_v1_module_proto_init() } -func file_cosmos_group_module_v1_module_proto_init() { - if File_cosmos_group_module_v1_module_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cosmos_group_module_v1_module_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Module); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cosmos_group_module_v1_module_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cosmos_group_module_v1_module_proto_goTypes, - DependencyIndexes: file_cosmos_group_module_v1_module_proto_depIdxs, - MessageInfos: file_cosmos_group_module_v1_module_proto_msgTypes, - }.Build() - File_cosmos_group_module_v1_module_proto = out.File - file_cosmos_group_module_v1_module_proto_rawDesc = nil - file_cosmos_group_module_v1_module_proto_goTypes = nil - file_cosmos_group_module_v1_module_proto_depIdxs = nil -} diff --git a/api/cosmos/group/v1/events.pulsar.go b/api/cosmos/group/v1/events.pulsar.go deleted file mode 100644 index 3c9efb2e19..0000000000 --- a/api/cosmos/group/v1/events.pulsar.go +++ /dev/null @@ -1,5611 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package groupv1 - -import ( - fmt "fmt" - _ "github.com/cosmos/cosmos-proto" - runtime "github.com/cosmos/cosmos-proto/runtime" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_EventCreateGroup protoreflect.MessageDescriptor - fd_EventCreateGroup_group_id protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_events_proto_init() - md_EventCreateGroup = File_cosmos_group_v1_events_proto.Messages().ByName("EventCreateGroup") - fd_EventCreateGroup_group_id = md_EventCreateGroup.Fields().ByName("group_id") -} - -var _ protoreflect.Message = (*fastReflection_EventCreateGroup)(nil) - -type fastReflection_EventCreateGroup EventCreateGroup - -func (x *EventCreateGroup) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventCreateGroup)(x) -} - -func (x *EventCreateGroup) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_events_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_EventCreateGroup_messageType fastReflection_EventCreateGroup_messageType -var _ protoreflect.MessageType = fastReflection_EventCreateGroup_messageType{} - -type fastReflection_EventCreateGroup_messageType struct{} - -func (x fastReflection_EventCreateGroup_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventCreateGroup)(nil) -} -func (x fastReflection_EventCreateGroup_messageType) New() protoreflect.Message { - return new(fastReflection_EventCreateGroup) -} -func (x fastReflection_EventCreateGroup_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventCreateGroup -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_EventCreateGroup) Descriptor() protoreflect.MessageDescriptor { - return md_EventCreateGroup -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_EventCreateGroup) Type() protoreflect.MessageType { - return _fastReflection_EventCreateGroup_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventCreateGroup) New() protoreflect.Message { - return new(fastReflection_EventCreateGroup) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_EventCreateGroup) Interface() protoreflect.ProtoMessage { - return (*EventCreateGroup)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_EventCreateGroup) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.GroupId != uint64(0) { - value := protoreflect.ValueOfUint64(x.GroupId) - if !f(fd_EventCreateGroup_group_id, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_EventCreateGroup) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.EventCreateGroup.group_id": - return x.GroupId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventCreateGroup")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventCreateGroup does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventCreateGroup) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.EventCreateGroup.group_id": - x.GroupId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventCreateGroup")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventCreateGroup does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_EventCreateGroup) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.EventCreateGroup.group_id": - value := x.GroupId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventCreateGroup")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventCreateGroup does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventCreateGroup) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.EventCreateGroup.group_id": - x.GroupId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventCreateGroup")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventCreateGroup does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventCreateGroup) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.EventCreateGroup.group_id": - panic(fmt.Errorf("field group_id of message cosmos.group.v1.EventCreateGroup is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventCreateGroup")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventCreateGroup does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_EventCreateGroup) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.EventCreateGroup.group_id": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventCreateGroup")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventCreateGroup does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_EventCreateGroup) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.EventCreateGroup", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_EventCreateGroup) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventCreateGroup) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_EventCreateGroup) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_EventCreateGroup) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventCreateGroup) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.GroupId != 0 { - n += 1 + runtime.Sov(uint64(x.GroupId)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EventCreateGroup) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.GroupId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.GroupId)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EventCreateGroup) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventCreateGroup: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventCreateGroup: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - x.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.GroupId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_EventUpdateGroup protoreflect.MessageDescriptor - fd_EventUpdateGroup_group_id protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_events_proto_init() - md_EventUpdateGroup = File_cosmos_group_v1_events_proto.Messages().ByName("EventUpdateGroup") - fd_EventUpdateGroup_group_id = md_EventUpdateGroup.Fields().ByName("group_id") -} - -var _ protoreflect.Message = (*fastReflection_EventUpdateGroup)(nil) - -type fastReflection_EventUpdateGroup EventUpdateGroup - -func (x *EventUpdateGroup) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventUpdateGroup)(x) -} - -func (x *EventUpdateGroup) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_events_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_EventUpdateGroup_messageType fastReflection_EventUpdateGroup_messageType -var _ protoreflect.MessageType = fastReflection_EventUpdateGroup_messageType{} - -type fastReflection_EventUpdateGroup_messageType struct{} - -func (x fastReflection_EventUpdateGroup_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventUpdateGroup)(nil) -} -func (x fastReflection_EventUpdateGroup_messageType) New() protoreflect.Message { - return new(fastReflection_EventUpdateGroup) -} -func (x fastReflection_EventUpdateGroup_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventUpdateGroup -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_EventUpdateGroup) Descriptor() protoreflect.MessageDescriptor { - return md_EventUpdateGroup -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_EventUpdateGroup) Type() protoreflect.MessageType { - return _fastReflection_EventUpdateGroup_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventUpdateGroup) New() protoreflect.Message { - return new(fastReflection_EventUpdateGroup) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_EventUpdateGroup) Interface() protoreflect.ProtoMessage { - return (*EventUpdateGroup)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_EventUpdateGroup) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.GroupId != uint64(0) { - value := protoreflect.ValueOfUint64(x.GroupId) - if !f(fd_EventUpdateGroup_group_id, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_EventUpdateGroup) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.EventUpdateGroup.group_id": - return x.GroupId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventUpdateGroup")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventUpdateGroup does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventUpdateGroup) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.EventUpdateGroup.group_id": - x.GroupId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventUpdateGroup")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventUpdateGroup does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_EventUpdateGroup) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.EventUpdateGroup.group_id": - value := x.GroupId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventUpdateGroup")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventUpdateGroup does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventUpdateGroup) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.EventUpdateGroup.group_id": - x.GroupId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventUpdateGroup")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventUpdateGroup does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventUpdateGroup) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.EventUpdateGroup.group_id": - panic(fmt.Errorf("field group_id of message cosmos.group.v1.EventUpdateGroup is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventUpdateGroup")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventUpdateGroup does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_EventUpdateGroup) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.EventUpdateGroup.group_id": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventUpdateGroup")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventUpdateGroup does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_EventUpdateGroup) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.EventUpdateGroup", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_EventUpdateGroup) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventUpdateGroup) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_EventUpdateGroup) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_EventUpdateGroup) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventUpdateGroup) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.GroupId != 0 { - n += 1 + runtime.Sov(uint64(x.GroupId)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EventUpdateGroup) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.GroupId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.GroupId)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EventUpdateGroup) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventUpdateGroup: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventUpdateGroup: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - x.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.GroupId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_EventCreateGroupPolicy protoreflect.MessageDescriptor - fd_EventCreateGroupPolicy_address protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_events_proto_init() - md_EventCreateGroupPolicy = File_cosmos_group_v1_events_proto.Messages().ByName("EventCreateGroupPolicy") - fd_EventCreateGroupPolicy_address = md_EventCreateGroupPolicy.Fields().ByName("address") -} - -var _ protoreflect.Message = (*fastReflection_EventCreateGroupPolicy)(nil) - -type fastReflection_EventCreateGroupPolicy EventCreateGroupPolicy - -func (x *EventCreateGroupPolicy) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventCreateGroupPolicy)(x) -} - -func (x *EventCreateGroupPolicy) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_events_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_EventCreateGroupPolicy_messageType fastReflection_EventCreateGroupPolicy_messageType -var _ protoreflect.MessageType = fastReflection_EventCreateGroupPolicy_messageType{} - -type fastReflection_EventCreateGroupPolicy_messageType struct{} - -func (x fastReflection_EventCreateGroupPolicy_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventCreateGroupPolicy)(nil) -} -func (x fastReflection_EventCreateGroupPolicy_messageType) New() protoreflect.Message { - return new(fastReflection_EventCreateGroupPolicy) -} -func (x fastReflection_EventCreateGroupPolicy_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventCreateGroupPolicy -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_EventCreateGroupPolicy) Descriptor() protoreflect.MessageDescriptor { - return md_EventCreateGroupPolicy -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_EventCreateGroupPolicy) Type() protoreflect.MessageType { - return _fastReflection_EventCreateGroupPolicy_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventCreateGroupPolicy) New() protoreflect.Message { - return new(fastReflection_EventCreateGroupPolicy) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_EventCreateGroupPolicy) Interface() protoreflect.ProtoMessage { - return (*EventCreateGroupPolicy)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_EventCreateGroupPolicy) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Address != "" { - value := protoreflect.ValueOfString(x.Address) - if !f(fd_EventCreateGroupPolicy_address, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_EventCreateGroupPolicy) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.EventCreateGroupPolicy.address": - return x.Address != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventCreateGroupPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventCreateGroupPolicy does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventCreateGroupPolicy) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.EventCreateGroupPolicy.address": - x.Address = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventCreateGroupPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventCreateGroupPolicy does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_EventCreateGroupPolicy) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.EventCreateGroupPolicy.address": - value := x.Address - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventCreateGroupPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventCreateGroupPolicy does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventCreateGroupPolicy) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.EventCreateGroupPolicy.address": - x.Address = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventCreateGroupPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventCreateGroupPolicy does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventCreateGroupPolicy) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.EventCreateGroupPolicy.address": - panic(fmt.Errorf("field address of message cosmos.group.v1.EventCreateGroupPolicy is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventCreateGroupPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventCreateGroupPolicy does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_EventCreateGroupPolicy) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.EventCreateGroupPolicy.address": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventCreateGroupPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventCreateGroupPolicy does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_EventCreateGroupPolicy) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.EventCreateGroupPolicy", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_EventCreateGroupPolicy) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventCreateGroupPolicy) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_EventCreateGroupPolicy) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_EventCreateGroupPolicy) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventCreateGroupPolicy) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Address) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EventCreateGroupPolicy) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Address) > 0 { - i -= len(x.Address) - copy(dAtA[i:], x.Address) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EventCreateGroupPolicy) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventCreateGroupPolicy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventCreateGroupPolicy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_EventUpdateGroupPolicy protoreflect.MessageDescriptor - fd_EventUpdateGroupPolicy_address protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_events_proto_init() - md_EventUpdateGroupPolicy = File_cosmos_group_v1_events_proto.Messages().ByName("EventUpdateGroupPolicy") - fd_EventUpdateGroupPolicy_address = md_EventUpdateGroupPolicy.Fields().ByName("address") -} - -var _ protoreflect.Message = (*fastReflection_EventUpdateGroupPolicy)(nil) - -type fastReflection_EventUpdateGroupPolicy EventUpdateGroupPolicy - -func (x *EventUpdateGroupPolicy) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventUpdateGroupPolicy)(x) -} - -func (x *EventUpdateGroupPolicy) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_events_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_EventUpdateGroupPolicy_messageType fastReflection_EventUpdateGroupPolicy_messageType -var _ protoreflect.MessageType = fastReflection_EventUpdateGroupPolicy_messageType{} - -type fastReflection_EventUpdateGroupPolicy_messageType struct{} - -func (x fastReflection_EventUpdateGroupPolicy_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventUpdateGroupPolicy)(nil) -} -func (x fastReflection_EventUpdateGroupPolicy_messageType) New() protoreflect.Message { - return new(fastReflection_EventUpdateGroupPolicy) -} -func (x fastReflection_EventUpdateGroupPolicy_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventUpdateGroupPolicy -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_EventUpdateGroupPolicy) Descriptor() protoreflect.MessageDescriptor { - return md_EventUpdateGroupPolicy -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_EventUpdateGroupPolicy) Type() protoreflect.MessageType { - return _fastReflection_EventUpdateGroupPolicy_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventUpdateGroupPolicy) New() protoreflect.Message { - return new(fastReflection_EventUpdateGroupPolicy) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_EventUpdateGroupPolicy) Interface() protoreflect.ProtoMessage { - return (*EventUpdateGroupPolicy)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_EventUpdateGroupPolicy) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Address != "" { - value := protoreflect.ValueOfString(x.Address) - if !f(fd_EventUpdateGroupPolicy_address, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_EventUpdateGroupPolicy) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.EventUpdateGroupPolicy.address": - return x.Address != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventUpdateGroupPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventUpdateGroupPolicy does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventUpdateGroupPolicy) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.EventUpdateGroupPolicy.address": - x.Address = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventUpdateGroupPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventUpdateGroupPolicy does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_EventUpdateGroupPolicy) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.EventUpdateGroupPolicy.address": - value := x.Address - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventUpdateGroupPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventUpdateGroupPolicy does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventUpdateGroupPolicy) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.EventUpdateGroupPolicy.address": - x.Address = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventUpdateGroupPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventUpdateGroupPolicy does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventUpdateGroupPolicy) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.EventUpdateGroupPolicy.address": - panic(fmt.Errorf("field address of message cosmos.group.v1.EventUpdateGroupPolicy is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventUpdateGroupPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventUpdateGroupPolicy does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_EventUpdateGroupPolicy) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.EventUpdateGroupPolicy.address": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventUpdateGroupPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventUpdateGroupPolicy does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_EventUpdateGroupPolicy) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.EventUpdateGroupPolicy", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_EventUpdateGroupPolicy) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventUpdateGroupPolicy) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_EventUpdateGroupPolicy) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_EventUpdateGroupPolicy) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventUpdateGroupPolicy) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Address) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EventUpdateGroupPolicy) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Address) > 0 { - i -= len(x.Address) - copy(dAtA[i:], x.Address) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EventUpdateGroupPolicy) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventUpdateGroupPolicy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventUpdateGroupPolicy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_EventSubmitProposal protoreflect.MessageDescriptor - fd_EventSubmitProposal_proposal_id protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_events_proto_init() - md_EventSubmitProposal = File_cosmos_group_v1_events_proto.Messages().ByName("EventSubmitProposal") - fd_EventSubmitProposal_proposal_id = md_EventSubmitProposal.Fields().ByName("proposal_id") -} - -var _ protoreflect.Message = (*fastReflection_EventSubmitProposal)(nil) - -type fastReflection_EventSubmitProposal EventSubmitProposal - -func (x *EventSubmitProposal) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventSubmitProposal)(x) -} - -func (x *EventSubmitProposal) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_events_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_EventSubmitProposal_messageType fastReflection_EventSubmitProposal_messageType -var _ protoreflect.MessageType = fastReflection_EventSubmitProposal_messageType{} - -type fastReflection_EventSubmitProposal_messageType struct{} - -func (x fastReflection_EventSubmitProposal_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventSubmitProposal)(nil) -} -func (x fastReflection_EventSubmitProposal_messageType) New() protoreflect.Message { - return new(fastReflection_EventSubmitProposal) -} -func (x fastReflection_EventSubmitProposal_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventSubmitProposal -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_EventSubmitProposal) Descriptor() protoreflect.MessageDescriptor { - return md_EventSubmitProposal -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_EventSubmitProposal) Type() protoreflect.MessageType { - return _fastReflection_EventSubmitProposal_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventSubmitProposal) New() protoreflect.Message { - return new(fastReflection_EventSubmitProposal) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_EventSubmitProposal) Interface() protoreflect.ProtoMessage { - return (*EventSubmitProposal)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_EventSubmitProposal) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ProposalId != uint64(0) { - value := protoreflect.ValueOfUint64(x.ProposalId) - if !f(fd_EventSubmitProposal_proposal_id, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_EventSubmitProposal) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.EventSubmitProposal.proposal_id": - return x.ProposalId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventSubmitProposal")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventSubmitProposal does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventSubmitProposal) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.EventSubmitProposal.proposal_id": - x.ProposalId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventSubmitProposal")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventSubmitProposal does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_EventSubmitProposal) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.EventSubmitProposal.proposal_id": - value := x.ProposalId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventSubmitProposal")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventSubmitProposal does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventSubmitProposal) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.EventSubmitProposal.proposal_id": - x.ProposalId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventSubmitProposal")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventSubmitProposal does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventSubmitProposal) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.EventSubmitProposal.proposal_id": - panic(fmt.Errorf("field proposal_id of message cosmos.group.v1.EventSubmitProposal is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventSubmitProposal")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventSubmitProposal does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_EventSubmitProposal) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.EventSubmitProposal.proposal_id": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventSubmitProposal")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventSubmitProposal does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_EventSubmitProposal) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.EventSubmitProposal", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_EventSubmitProposal) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventSubmitProposal) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_EventSubmitProposal) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_EventSubmitProposal) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventSubmitProposal) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.ProposalId != 0 { - n += 1 + runtime.Sov(uint64(x.ProposalId)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EventSubmitProposal) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.ProposalId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ProposalId)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EventSubmitProposal) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventSubmitProposal: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventSubmitProposal: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) - } - x.ProposalId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.ProposalId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_EventWithdrawProposal protoreflect.MessageDescriptor - fd_EventWithdrawProposal_proposal_id protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_events_proto_init() - md_EventWithdrawProposal = File_cosmos_group_v1_events_proto.Messages().ByName("EventWithdrawProposal") - fd_EventWithdrawProposal_proposal_id = md_EventWithdrawProposal.Fields().ByName("proposal_id") -} - -var _ protoreflect.Message = (*fastReflection_EventWithdrawProposal)(nil) - -type fastReflection_EventWithdrawProposal EventWithdrawProposal - -func (x *EventWithdrawProposal) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventWithdrawProposal)(x) -} - -func (x *EventWithdrawProposal) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_events_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_EventWithdrawProposal_messageType fastReflection_EventWithdrawProposal_messageType -var _ protoreflect.MessageType = fastReflection_EventWithdrawProposal_messageType{} - -type fastReflection_EventWithdrawProposal_messageType struct{} - -func (x fastReflection_EventWithdrawProposal_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventWithdrawProposal)(nil) -} -func (x fastReflection_EventWithdrawProposal_messageType) New() protoreflect.Message { - return new(fastReflection_EventWithdrawProposal) -} -func (x fastReflection_EventWithdrawProposal_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventWithdrawProposal -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_EventWithdrawProposal) Descriptor() protoreflect.MessageDescriptor { - return md_EventWithdrawProposal -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_EventWithdrawProposal) Type() protoreflect.MessageType { - return _fastReflection_EventWithdrawProposal_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventWithdrawProposal) New() protoreflect.Message { - return new(fastReflection_EventWithdrawProposal) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_EventWithdrawProposal) Interface() protoreflect.ProtoMessage { - return (*EventWithdrawProposal)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_EventWithdrawProposal) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ProposalId != uint64(0) { - value := protoreflect.ValueOfUint64(x.ProposalId) - if !f(fd_EventWithdrawProposal_proposal_id, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_EventWithdrawProposal) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.EventWithdrawProposal.proposal_id": - return x.ProposalId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventWithdrawProposal")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventWithdrawProposal does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventWithdrawProposal) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.EventWithdrawProposal.proposal_id": - x.ProposalId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventWithdrawProposal")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventWithdrawProposal does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_EventWithdrawProposal) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.EventWithdrawProposal.proposal_id": - value := x.ProposalId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventWithdrawProposal")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventWithdrawProposal does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventWithdrawProposal) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.EventWithdrawProposal.proposal_id": - x.ProposalId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventWithdrawProposal")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventWithdrawProposal does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventWithdrawProposal) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.EventWithdrawProposal.proposal_id": - panic(fmt.Errorf("field proposal_id of message cosmos.group.v1.EventWithdrawProposal is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventWithdrawProposal")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventWithdrawProposal does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_EventWithdrawProposal) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.EventWithdrawProposal.proposal_id": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventWithdrawProposal")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventWithdrawProposal does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_EventWithdrawProposal) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.EventWithdrawProposal", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_EventWithdrawProposal) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventWithdrawProposal) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_EventWithdrawProposal) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_EventWithdrawProposal) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventWithdrawProposal) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.ProposalId != 0 { - n += 1 + runtime.Sov(uint64(x.ProposalId)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EventWithdrawProposal) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.ProposalId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ProposalId)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EventWithdrawProposal) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventWithdrawProposal: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventWithdrawProposal: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) - } - x.ProposalId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.ProposalId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_EventVote protoreflect.MessageDescriptor - fd_EventVote_proposal_id protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_events_proto_init() - md_EventVote = File_cosmos_group_v1_events_proto.Messages().ByName("EventVote") - fd_EventVote_proposal_id = md_EventVote.Fields().ByName("proposal_id") -} - -var _ protoreflect.Message = (*fastReflection_EventVote)(nil) - -type fastReflection_EventVote EventVote - -func (x *EventVote) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventVote)(x) -} - -func (x *EventVote) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_events_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_EventVote_messageType fastReflection_EventVote_messageType -var _ protoreflect.MessageType = fastReflection_EventVote_messageType{} - -type fastReflection_EventVote_messageType struct{} - -func (x fastReflection_EventVote_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventVote)(nil) -} -func (x fastReflection_EventVote_messageType) New() protoreflect.Message { - return new(fastReflection_EventVote) -} -func (x fastReflection_EventVote_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventVote -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_EventVote) Descriptor() protoreflect.MessageDescriptor { - return md_EventVote -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_EventVote) Type() protoreflect.MessageType { - return _fastReflection_EventVote_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventVote) New() protoreflect.Message { - return new(fastReflection_EventVote) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_EventVote) Interface() protoreflect.ProtoMessage { - return (*EventVote)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_EventVote) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ProposalId != uint64(0) { - value := protoreflect.ValueOfUint64(x.ProposalId) - if !f(fd_EventVote_proposal_id, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_EventVote) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.EventVote.proposal_id": - return x.ProposalId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventVote")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventVote does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventVote) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.EventVote.proposal_id": - x.ProposalId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventVote")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventVote does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_EventVote) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.EventVote.proposal_id": - value := x.ProposalId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventVote")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventVote does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventVote) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.EventVote.proposal_id": - x.ProposalId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventVote")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventVote does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventVote) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.EventVote.proposal_id": - panic(fmt.Errorf("field proposal_id of message cosmos.group.v1.EventVote is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventVote")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventVote does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_EventVote) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.EventVote.proposal_id": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventVote")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventVote does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_EventVote) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.EventVote", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_EventVote) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventVote) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_EventVote) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_EventVote) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventVote) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.ProposalId != 0 { - n += 1 + runtime.Sov(uint64(x.ProposalId)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EventVote) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.ProposalId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ProposalId)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EventVote) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventVote: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventVote: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) - } - x.ProposalId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.ProposalId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_EventExec protoreflect.MessageDescriptor - fd_EventExec_proposal_id protoreflect.FieldDescriptor - fd_EventExec_result protoreflect.FieldDescriptor - fd_EventExec_logs protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_events_proto_init() - md_EventExec = File_cosmos_group_v1_events_proto.Messages().ByName("EventExec") - fd_EventExec_proposal_id = md_EventExec.Fields().ByName("proposal_id") - fd_EventExec_result = md_EventExec.Fields().ByName("result") - fd_EventExec_logs = md_EventExec.Fields().ByName("logs") -} - -var _ protoreflect.Message = (*fastReflection_EventExec)(nil) - -type fastReflection_EventExec EventExec - -func (x *EventExec) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventExec)(x) -} - -func (x *EventExec) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_events_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_EventExec_messageType fastReflection_EventExec_messageType -var _ protoreflect.MessageType = fastReflection_EventExec_messageType{} - -type fastReflection_EventExec_messageType struct{} - -func (x fastReflection_EventExec_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventExec)(nil) -} -func (x fastReflection_EventExec_messageType) New() protoreflect.Message { - return new(fastReflection_EventExec) -} -func (x fastReflection_EventExec_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventExec -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_EventExec) Descriptor() protoreflect.MessageDescriptor { - return md_EventExec -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_EventExec) Type() protoreflect.MessageType { - return _fastReflection_EventExec_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventExec) New() protoreflect.Message { - return new(fastReflection_EventExec) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_EventExec) Interface() protoreflect.ProtoMessage { - return (*EventExec)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_EventExec) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ProposalId != uint64(0) { - value := protoreflect.ValueOfUint64(x.ProposalId) - if !f(fd_EventExec_proposal_id, value) { - return - } - } - if x.Result != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Result)) - if !f(fd_EventExec_result, value) { - return - } - } - if x.Logs != "" { - value := protoreflect.ValueOfString(x.Logs) - if !f(fd_EventExec_logs, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_EventExec) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.EventExec.proposal_id": - return x.ProposalId != uint64(0) - case "cosmos.group.v1.EventExec.result": - return x.Result != 0 - case "cosmos.group.v1.EventExec.logs": - return x.Logs != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventExec")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventExec does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventExec) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.EventExec.proposal_id": - x.ProposalId = uint64(0) - case "cosmos.group.v1.EventExec.result": - x.Result = 0 - case "cosmos.group.v1.EventExec.logs": - x.Logs = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventExec")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventExec does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_EventExec) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.EventExec.proposal_id": - value := x.ProposalId - return protoreflect.ValueOfUint64(value) - case "cosmos.group.v1.EventExec.result": - value := x.Result - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "cosmos.group.v1.EventExec.logs": - value := x.Logs - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventExec")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventExec does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventExec) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.EventExec.proposal_id": - x.ProposalId = value.Uint() - case "cosmos.group.v1.EventExec.result": - x.Result = (ProposalExecutorResult)(value.Enum()) - case "cosmos.group.v1.EventExec.logs": - x.Logs = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventExec")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventExec does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventExec) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.EventExec.proposal_id": - panic(fmt.Errorf("field proposal_id of message cosmos.group.v1.EventExec is not mutable")) - case "cosmos.group.v1.EventExec.result": - panic(fmt.Errorf("field result of message cosmos.group.v1.EventExec is not mutable")) - case "cosmos.group.v1.EventExec.logs": - panic(fmt.Errorf("field logs of message cosmos.group.v1.EventExec is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventExec")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventExec does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_EventExec) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.EventExec.proposal_id": - return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.group.v1.EventExec.result": - return protoreflect.ValueOfEnum(0) - case "cosmos.group.v1.EventExec.logs": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventExec")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventExec does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_EventExec) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.EventExec", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_EventExec) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventExec) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_EventExec) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_EventExec) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventExec) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.ProposalId != 0 { - n += 1 + runtime.Sov(uint64(x.ProposalId)) - } - if x.Result != 0 { - n += 1 + runtime.Sov(uint64(x.Result)) - } - l = len(x.Logs) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EventExec) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Logs) > 0 { - i -= len(x.Logs) - copy(dAtA[i:], x.Logs) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Logs))) - i-- - dAtA[i] = 0x1a - } - if x.Result != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Result)) - i-- - dAtA[i] = 0x10 - } - if x.ProposalId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ProposalId)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EventExec) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventExec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventExec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) - } - x.ProposalId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.ProposalId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) - } - x.Result = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Result |= ProposalExecutorResult(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Logs", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Logs = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_EventLeaveGroup protoreflect.MessageDescriptor - fd_EventLeaveGroup_group_id protoreflect.FieldDescriptor - fd_EventLeaveGroup_address protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_events_proto_init() - md_EventLeaveGroup = File_cosmos_group_v1_events_proto.Messages().ByName("EventLeaveGroup") - fd_EventLeaveGroup_group_id = md_EventLeaveGroup.Fields().ByName("group_id") - fd_EventLeaveGroup_address = md_EventLeaveGroup.Fields().ByName("address") -} - -var _ protoreflect.Message = (*fastReflection_EventLeaveGroup)(nil) - -type fastReflection_EventLeaveGroup EventLeaveGroup - -func (x *EventLeaveGroup) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventLeaveGroup)(x) -} - -func (x *EventLeaveGroup) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_events_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_EventLeaveGroup_messageType fastReflection_EventLeaveGroup_messageType -var _ protoreflect.MessageType = fastReflection_EventLeaveGroup_messageType{} - -type fastReflection_EventLeaveGroup_messageType struct{} - -func (x fastReflection_EventLeaveGroup_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventLeaveGroup)(nil) -} -func (x fastReflection_EventLeaveGroup_messageType) New() protoreflect.Message { - return new(fastReflection_EventLeaveGroup) -} -func (x fastReflection_EventLeaveGroup_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventLeaveGroup -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_EventLeaveGroup) Descriptor() protoreflect.MessageDescriptor { - return md_EventLeaveGroup -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_EventLeaveGroup) Type() protoreflect.MessageType { - return _fastReflection_EventLeaveGroup_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventLeaveGroup) New() protoreflect.Message { - return new(fastReflection_EventLeaveGroup) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_EventLeaveGroup) Interface() protoreflect.ProtoMessage { - return (*EventLeaveGroup)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_EventLeaveGroup) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.GroupId != uint64(0) { - value := protoreflect.ValueOfUint64(x.GroupId) - if !f(fd_EventLeaveGroup_group_id, value) { - return - } - } - if x.Address != "" { - value := protoreflect.ValueOfString(x.Address) - if !f(fd_EventLeaveGroup_address, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_EventLeaveGroup) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.EventLeaveGroup.group_id": - return x.GroupId != uint64(0) - case "cosmos.group.v1.EventLeaveGroup.address": - return x.Address != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventLeaveGroup")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventLeaveGroup does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventLeaveGroup) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.EventLeaveGroup.group_id": - x.GroupId = uint64(0) - case "cosmos.group.v1.EventLeaveGroup.address": - x.Address = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventLeaveGroup")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventLeaveGroup does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_EventLeaveGroup) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.EventLeaveGroup.group_id": - value := x.GroupId - return protoreflect.ValueOfUint64(value) - case "cosmos.group.v1.EventLeaveGroup.address": - value := x.Address - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventLeaveGroup")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventLeaveGroup does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventLeaveGroup) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.EventLeaveGroup.group_id": - x.GroupId = value.Uint() - case "cosmos.group.v1.EventLeaveGroup.address": - x.Address = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventLeaveGroup")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventLeaveGroup does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventLeaveGroup) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.EventLeaveGroup.group_id": - panic(fmt.Errorf("field group_id of message cosmos.group.v1.EventLeaveGroup is not mutable")) - case "cosmos.group.v1.EventLeaveGroup.address": - panic(fmt.Errorf("field address of message cosmos.group.v1.EventLeaveGroup is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventLeaveGroup")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventLeaveGroup does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_EventLeaveGroup) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.EventLeaveGroup.group_id": - return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.group.v1.EventLeaveGroup.address": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventLeaveGroup")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventLeaveGroup does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_EventLeaveGroup) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.EventLeaveGroup", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_EventLeaveGroup) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventLeaveGroup) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_EventLeaveGroup) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_EventLeaveGroup) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventLeaveGroup) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.GroupId != 0 { - n += 1 + runtime.Sov(uint64(x.GroupId)) - } - l = len(x.Address) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EventLeaveGroup) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Address) > 0 { - i -= len(x.Address) - copy(dAtA[i:], x.Address) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) - i-- - dAtA[i] = 0x12 - } - if x.GroupId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.GroupId)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EventLeaveGroup) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventLeaveGroup: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventLeaveGroup: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - x.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.GroupId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_EventProposalPruned protoreflect.MessageDescriptor - fd_EventProposalPruned_proposal_id protoreflect.FieldDescriptor - fd_EventProposalPruned_status protoreflect.FieldDescriptor - fd_EventProposalPruned_tally_result protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_events_proto_init() - md_EventProposalPruned = File_cosmos_group_v1_events_proto.Messages().ByName("EventProposalPruned") - fd_EventProposalPruned_proposal_id = md_EventProposalPruned.Fields().ByName("proposal_id") - fd_EventProposalPruned_status = md_EventProposalPruned.Fields().ByName("status") - fd_EventProposalPruned_tally_result = md_EventProposalPruned.Fields().ByName("tally_result") -} - -var _ protoreflect.Message = (*fastReflection_EventProposalPruned)(nil) - -type fastReflection_EventProposalPruned EventProposalPruned - -func (x *EventProposalPruned) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventProposalPruned)(x) -} - -func (x *EventProposalPruned) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_events_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_EventProposalPruned_messageType fastReflection_EventProposalPruned_messageType -var _ protoreflect.MessageType = fastReflection_EventProposalPruned_messageType{} - -type fastReflection_EventProposalPruned_messageType struct{} - -func (x fastReflection_EventProposalPruned_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventProposalPruned)(nil) -} -func (x fastReflection_EventProposalPruned_messageType) New() protoreflect.Message { - return new(fastReflection_EventProposalPruned) -} -func (x fastReflection_EventProposalPruned_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventProposalPruned -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_EventProposalPruned) Descriptor() protoreflect.MessageDescriptor { - return md_EventProposalPruned -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_EventProposalPruned) Type() protoreflect.MessageType { - return _fastReflection_EventProposalPruned_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventProposalPruned) New() protoreflect.Message { - return new(fastReflection_EventProposalPruned) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_EventProposalPruned) Interface() protoreflect.ProtoMessage { - return (*EventProposalPruned)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_EventProposalPruned) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ProposalId != uint64(0) { - value := protoreflect.ValueOfUint64(x.ProposalId) - if !f(fd_EventProposalPruned_proposal_id, value) { - return - } - } - if x.Status != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Status)) - if !f(fd_EventProposalPruned_status, value) { - return - } - } - if x.TallyResult != nil { - value := protoreflect.ValueOfMessage(x.TallyResult.ProtoReflect()) - if !f(fd_EventProposalPruned_tally_result, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_EventProposalPruned) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.EventProposalPruned.proposal_id": - return x.ProposalId != uint64(0) - case "cosmos.group.v1.EventProposalPruned.status": - return x.Status != 0 - case "cosmos.group.v1.EventProposalPruned.tally_result": - return x.TallyResult != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventProposalPruned")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventProposalPruned does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventProposalPruned) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.EventProposalPruned.proposal_id": - x.ProposalId = uint64(0) - case "cosmos.group.v1.EventProposalPruned.status": - x.Status = 0 - case "cosmos.group.v1.EventProposalPruned.tally_result": - x.TallyResult = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventProposalPruned")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventProposalPruned does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_EventProposalPruned) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.EventProposalPruned.proposal_id": - value := x.ProposalId - return protoreflect.ValueOfUint64(value) - case "cosmos.group.v1.EventProposalPruned.status": - value := x.Status - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "cosmos.group.v1.EventProposalPruned.tally_result": - value := x.TallyResult - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventProposalPruned")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventProposalPruned does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventProposalPruned) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.EventProposalPruned.proposal_id": - x.ProposalId = value.Uint() - case "cosmos.group.v1.EventProposalPruned.status": - x.Status = (ProposalStatus)(value.Enum()) - case "cosmos.group.v1.EventProposalPruned.tally_result": - x.TallyResult = value.Message().Interface().(*TallyResult) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventProposalPruned")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventProposalPruned does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventProposalPruned) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.EventProposalPruned.tally_result": - if x.TallyResult == nil { - x.TallyResult = new(TallyResult) - } - return protoreflect.ValueOfMessage(x.TallyResult.ProtoReflect()) - case "cosmos.group.v1.EventProposalPruned.proposal_id": - panic(fmt.Errorf("field proposal_id of message cosmos.group.v1.EventProposalPruned is not mutable")) - case "cosmos.group.v1.EventProposalPruned.status": - panic(fmt.Errorf("field status of message cosmos.group.v1.EventProposalPruned is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventProposalPruned")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventProposalPruned does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_EventProposalPruned) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.EventProposalPruned.proposal_id": - return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.group.v1.EventProposalPruned.status": - return protoreflect.ValueOfEnum(0) - case "cosmos.group.v1.EventProposalPruned.tally_result": - m := new(TallyResult) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventProposalPruned")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventProposalPruned does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_EventProposalPruned) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.EventProposalPruned", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_EventProposalPruned) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventProposalPruned) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_EventProposalPruned) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_EventProposalPruned) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventProposalPruned) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.ProposalId != 0 { - n += 1 + runtime.Sov(uint64(x.ProposalId)) - } - if x.Status != 0 { - n += 1 + runtime.Sov(uint64(x.Status)) - } - if x.TallyResult != nil { - l = options.Size(x.TallyResult) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EventProposalPruned) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.TallyResult != nil { - encoded, err := options.Marshal(x.TallyResult) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x1a - } - if x.Status != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Status)) - i-- - dAtA[i] = 0x10 - } - if x.ProposalId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ProposalId)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EventProposalPruned) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventProposalPruned: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventProposalPruned: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) - } - x.ProposalId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.ProposalId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - x.Status = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Status |= ProposalStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TallyResult", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.TallyResult == nil { - x.TallyResult = &TallyResult{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.TallyResult); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_EventTallyError protoreflect.MessageDescriptor - fd_EventTallyError_proposal_id protoreflect.FieldDescriptor - fd_EventTallyError_error_message protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_events_proto_init() - md_EventTallyError = File_cosmos_group_v1_events_proto.Messages().ByName("EventTallyError") - fd_EventTallyError_proposal_id = md_EventTallyError.Fields().ByName("proposal_id") - fd_EventTallyError_error_message = md_EventTallyError.Fields().ByName("error_message") -} - -var _ protoreflect.Message = (*fastReflection_EventTallyError)(nil) - -type fastReflection_EventTallyError EventTallyError - -func (x *EventTallyError) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventTallyError)(x) -} - -func (x *EventTallyError) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_events_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_EventTallyError_messageType fastReflection_EventTallyError_messageType -var _ protoreflect.MessageType = fastReflection_EventTallyError_messageType{} - -type fastReflection_EventTallyError_messageType struct{} - -func (x fastReflection_EventTallyError_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventTallyError)(nil) -} -func (x fastReflection_EventTallyError_messageType) New() protoreflect.Message { - return new(fastReflection_EventTallyError) -} -func (x fastReflection_EventTallyError_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventTallyError -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_EventTallyError) Descriptor() protoreflect.MessageDescriptor { - return md_EventTallyError -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_EventTallyError) Type() protoreflect.MessageType { - return _fastReflection_EventTallyError_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventTallyError) New() protoreflect.Message { - return new(fastReflection_EventTallyError) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_EventTallyError) Interface() protoreflect.ProtoMessage { - return (*EventTallyError)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_EventTallyError) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ProposalId != uint64(0) { - value := protoreflect.ValueOfUint64(x.ProposalId) - if !f(fd_EventTallyError_proposal_id, value) { - return - } - } - if x.ErrorMessage != "" { - value := protoreflect.ValueOfString(x.ErrorMessage) - if !f(fd_EventTallyError_error_message, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_EventTallyError) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.EventTallyError.proposal_id": - return x.ProposalId != uint64(0) - case "cosmos.group.v1.EventTallyError.error_message": - return x.ErrorMessage != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventTallyError")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventTallyError does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventTallyError) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.EventTallyError.proposal_id": - x.ProposalId = uint64(0) - case "cosmos.group.v1.EventTallyError.error_message": - x.ErrorMessage = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventTallyError")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventTallyError does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_EventTallyError) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.EventTallyError.proposal_id": - value := x.ProposalId - return protoreflect.ValueOfUint64(value) - case "cosmos.group.v1.EventTallyError.error_message": - value := x.ErrorMessage - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventTallyError")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventTallyError does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventTallyError) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.EventTallyError.proposal_id": - x.ProposalId = value.Uint() - case "cosmos.group.v1.EventTallyError.error_message": - x.ErrorMessage = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventTallyError")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventTallyError does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventTallyError) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.EventTallyError.proposal_id": - panic(fmt.Errorf("field proposal_id of message cosmos.group.v1.EventTallyError is not mutable")) - case "cosmos.group.v1.EventTallyError.error_message": - panic(fmt.Errorf("field error_message of message cosmos.group.v1.EventTallyError is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventTallyError")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventTallyError does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_EventTallyError) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.EventTallyError.proposal_id": - return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.group.v1.EventTallyError.error_message": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.EventTallyError")) - } - panic(fmt.Errorf("message cosmos.group.v1.EventTallyError does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_EventTallyError) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.EventTallyError", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_EventTallyError) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventTallyError) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_EventTallyError) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_EventTallyError) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventTallyError) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.ProposalId != 0 { - n += 1 + runtime.Sov(uint64(x.ProposalId)) - } - l = len(x.ErrorMessage) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EventTallyError) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.ErrorMessage) > 0 { - i -= len(x.ErrorMessage) - copy(dAtA[i:], x.ErrorMessage) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ErrorMessage))) - i-- - dAtA[i] = 0x12 - } - if x.ProposalId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ProposalId)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EventTallyError) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventTallyError: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventTallyError: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) - } - x.ProposalId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.ProposalId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ErrorMessage", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ErrorMessage = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cosmos/group/v1/events.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// EventCreateGroup is an event emitted when a group is created. -type EventCreateGroup struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // group_id is the unique ID of the group. - GroupId uint64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` -} - -func (x *EventCreateGroup) Reset() { - *x = EventCreateGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_events_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EventCreateGroup) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EventCreateGroup) ProtoMessage() {} - -// Deprecated: Use EventCreateGroup.ProtoReflect.Descriptor instead. -func (*EventCreateGroup) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_events_proto_rawDescGZIP(), []int{0} -} - -func (x *EventCreateGroup) GetGroupId() uint64 { - if x != nil { - return x.GroupId - } - return 0 -} - -// EventUpdateGroup is an event emitted when a group is updated. -type EventUpdateGroup struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // group_id is the unique ID of the group. - GroupId uint64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` -} - -func (x *EventUpdateGroup) Reset() { - *x = EventUpdateGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_events_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EventUpdateGroup) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EventUpdateGroup) ProtoMessage() {} - -// Deprecated: Use EventUpdateGroup.ProtoReflect.Descriptor instead. -func (*EventUpdateGroup) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_events_proto_rawDescGZIP(), []int{1} -} - -func (x *EventUpdateGroup) GetGroupId() uint64 { - if x != nil { - return x.GroupId - } - return 0 -} - -// EventCreateGroupPolicy is an event emitted when a group policy is created. -type EventCreateGroupPolicy struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // address is the account address of the group policy. - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` -} - -func (x *EventCreateGroupPolicy) Reset() { - *x = EventCreateGroupPolicy{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_events_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EventCreateGroupPolicy) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EventCreateGroupPolicy) ProtoMessage() {} - -// Deprecated: Use EventCreateGroupPolicy.ProtoReflect.Descriptor instead. -func (*EventCreateGroupPolicy) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_events_proto_rawDescGZIP(), []int{2} -} - -func (x *EventCreateGroupPolicy) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -// EventUpdateGroupPolicy is an event emitted when a group policy is updated. -type EventUpdateGroupPolicy struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // address is the account address of the group policy. - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` -} - -func (x *EventUpdateGroupPolicy) Reset() { - *x = EventUpdateGroupPolicy{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_events_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EventUpdateGroupPolicy) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EventUpdateGroupPolicy) ProtoMessage() {} - -// Deprecated: Use EventUpdateGroupPolicy.ProtoReflect.Descriptor instead. -func (*EventUpdateGroupPolicy) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_events_proto_rawDescGZIP(), []int{3} -} - -func (x *EventUpdateGroupPolicy) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -// EventSubmitProposal is an event emitted when a proposal is created. -type EventSubmitProposal struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // proposal_id is the unique ID of the proposal. - ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` -} - -func (x *EventSubmitProposal) Reset() { - *x = EventSubmitProposal{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_events_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EventSubmitProposal) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EventSubmitProposal) ProtoMessage() {} - -// Deprecated: Use EventSubmitProposal.ProtoReflect.Descriptor instead. -func (*EventSubmitProposal) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_events_proto_rawDescGZIP(), []int{4} -} - -func (x *EventSubmitProposal) GetProposalId() uint64 { - if x != nil { - return x.ProposalId - } - return 0 -} - -// EventWithdrawProposal is an event emitted when a proposal is withdrawn. -type EventWithdrawProposal struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // proposal_id is the unique ID of the proposal. - ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` -} - -func (x *EventWithdrawProposal) Reset() { - *x = EventWithdrawProposal{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_events_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EventWithdrawProposal) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EventWithdrawProposal) ProtoMessage() {} - -// Deprecated: Use EventWithdrawProposal.ProtoReflect.Descriptor instead. -func (*EventWithdrawProposal) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_events_proto_rawDescGZIP(), []int{5} -} - -func (x *EventWithdrawProposal) GetProposalId() uint64 { - if x != nil { - return x.ProposalId - } - return 0 -} - -// EventVote is an event emitted when a voter votes on a proposal. -type EventVote struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // proposal_id is the unique ID of the proposal. - ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` -} - -func (x *EventVote) Reset() { - *x = EventVote{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_events_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EventVote) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EventVote) ProtoMessage() {} - -// Deprecated: Use EventVote.ProtoReflect.Descriptor instead. -func (*EventVote) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_events_proto_rawDescGZIP(), []int{6} -} - -func (x *EventVote) GetProposalId() uint64 { - if x != nil { - return x.ProposalId - } - return 0 -} - -// EventExec is an event emitted when a proposal is executed. -type EventExec struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // proposal_id is the unique ID of the proposal. - ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` - // result is the proposal execution result. - Result ProposalExecutorResult `protobuf:"varint,2,opt,name=result,proto3,enum=cosmos.group.v1.ProposalExecutorResult" json:"result,omitempty"` - // logs contains error logs in case the execution result is FAILURE. - Logs string `protobuf:"bytes,3,opt,name=logs,proto3" json:"logs,omitempty"` -} - -func (x *EventExec) Reset() { - *x = EventExec{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_events_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EventExec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EventExec) ProtoMessage() {} - -// Deprecated: Use EventExec.ProtoReflect.Descriptor instead. -func (*EventExec) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_events_proto_rawDescGZIP(), []int{7} -} - -func (x *EventExec) GetProposalId() uint64 { - if x != nil { - return x.ProposalId - } - return 0 -} - -func (x *EventExec) GetResult() ProposalExecutorResult { - if x != nil { - return x.Result - } - return ProposalExecutorResult_PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED -} - -func (x *EventExec) GetLogs() string { - if x != nil { - return x.Logs - } - return "" -} - -// EventLeaveGroup is an event emitted when group member leaves the group. -type EventLeaveGroup struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // group_id is the unique ID of the group. - GroupId uint64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` - // address is the account address of the group member. - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` -} - -func (x *EventLeaveGroup) Reset() { - *x = EventLeaveGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_events_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EventLeaveGroup) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EventLeaveGroup) ProtoMessage() {} - -// Deprecated: Use EventLeaveGroup.ProtoReflect.Descriptor instead. -func (*EventLeaveGroup) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_events_proto_rawDescGZIP(), []int{8} -} - -func (x *EventLeaveGroup) GetGroupId() uint64 { - if x != nil { - return x.GroupId - } - return 0 -} - -func (x *EventLeaveGroup) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -// EventProposalPruned is an event emitted when a proposal is pruned. -type EventProposalPruned struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // proposal_id is the unique ID of the proposal. - ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` - // status is the proposal status (UNSPECIFIED, SUBMITTED, ACCEPTED, REJECTED, ABORTED, WITHDRAWN). - Status ProposalStatus `protobuf:"varint,2,opt,name=status,proto3,enum=cosmos.group.v1.ProposalStatus" json:"status,omitempty"` - // tally_result is the proposal tally result (when applicable). - TallyResult *TallyResult `protobuf:"bytes,3,opt,name=tally_result,json=tallyResult,proto3" json:"tally_result,omitempty"` -} - -func (x *EventProposalPruned) Reset() { - *x = EventProposalPruned{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_events_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EventProposalPruned) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EventProposalPruned) ProtoMessage() {} - -// Deprecated: Use EventProposalPruned.ProtoReflect.Descriptor instead. -func (*EventProposalPruned) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_events_proto_rawDescGZIP(), []int{9} -} - -func (x *EventProposalPruned) GetProposalId() uint64 { - if x != nil { - return x.ProposalId - } - return 0 -} - -func (x *EventProposalPruned) GetStatus() ProposalStatus { - if x != nil { - return x.Status - } - return ProposalStatus_PROPOSAL_STATUS_UNSPECIFIED -} - -func (x *EventProposalPruned) GetTallyResult() *TallyResult { - if x != nil { - return x.TallyResult - } - return nil -} - -// EventTallyError is an event emitted when a proposal tally failed with an error. -type EventTallyError struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // proposal_id is the unique ID of the proposal. - ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` - // error_message is the raw error output - ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` -} - -func (x *EventTallyError) Reset() { - *x = EventTallyError{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_events_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EventTallyError) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EventTallyError) ProtoMessage() {} - -// Deprecated: Use EventTallyError.ProtoReflect.Descriptor instead. -func (*EventTallyError) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_events_proto_rawDescGZIP(), []int{10} -} - -func (x *EventTallyError) GetProposalId() uint64 { - if x != nil { - return x.ProposalId - } - return 0 -} - -func (x *EventTallyError) GetErrorMessage() string { - if x != nil { - return x.ErrorMessage - } - return "" -} - -var File_cosmos_group_v1_events_proto protoreflect.FileDescriptor - -var file_cosmos_group_v1_events_proto_rawDesc = []byte{ - 0x0a, 0x1c, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, - 0x31, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x1a, - 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2d, 0x0a, 0x10, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x19, 0x0a, 0x08, 0x67, - 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x67, - 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x22, 0x2d, 0x0a, 0x10, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, - 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x67, 0x72, - 0x6f, 0x75, 0x70, 0x49, 0x64, 0x22, 0x4c, 0x0a, 0x16, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, - 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x22, 0x4c, 0x0a, 0x16, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x32, 0x0a, - 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, - 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x22, 0x36, 0x0a, 0x13, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, - 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x70, - 0x6f, 0x73, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, - 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x49, 0x64, 0x22, 0x38, 0x0a, 0x15, 0x45, 0x76, 0x65, - 0x6e, 0x74, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, - 0x61, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, - 0x6c, 0x49, 0x64, 0x22, 0x2c, 0x0a, 0x09, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x56, 0x6f, 0x74, 0x65, - 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x49, - 0x64, 0x22, 0x81, 0x01, 0x0a, 0x09, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x45, 0x78, 0x65, 0x63, 0x12, - 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x49, 0x64, - 0x12, 0x3f, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, - 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x45, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, - 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x22, 0x60, 0x0a, 0x0f, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4c, 0x65, - 0x61, 0x76, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, - 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, - 0x70, 0x49, 0x64, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xb0, 0x01, 0x0a, 0x13, 0x45, 0x76, 0x65, 0x6e, - 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x50, 0x72, 0x75, 0x6e, 0x65, 0x64, 0x12, - 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x49, 0x64, - 0x12, 0x37, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x1f, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, - 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x3f, 0x0a, 0x0c, 0x74, 0x61, 0x6c, - 0x6c, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1c, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, - 0x31, 0x2e, 0x54, 0x61, 0x6c, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x0b, 0x74, - 0x61, 0x6c, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x57, 0x0a, 0x0f, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x54, 0x61, 0x6c, 0x6c, 0x79, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1f, 0x0a, - 0x0b, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x49, 0x64, 0x12, 0x23, - 0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x42, 0xaa, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x45, 0x76, 0x65, - 0x6e, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x28, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x3b, 0x67, 0x72, 0x6f, - 0x75, 0x70, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x47, 0x58, 0xaa, 0x02, 0x0f, 0x43, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0f, 0x43, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x5c, 0x56, 0x31, 0xe2, 0x02, - 0x1b, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x5c, 0x56, 0x31, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x43, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x3a, 0x3a, 0x56, 0x31, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cosmos_group_v1_events_proto_rawDescOnce sync.Once - file_cosmos_group_v1_events_proto_rawDescData = file_cosmos_group_v1_events_proto_rawDesc -) - -func file_cosmos_group_v1_events_proto_rawDescGZIP() []byte { - file_cosmos_group_v1_events_proto_rawDescOnce.Do(func() { - file_cosmos_group_v1_events_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_group_v1_events_proto_rawDescData) - }) - return file_cosmos_group_v1_events_proto_rawDescData -} - -var file_cosmos_group_v1_events_proto_msgTypes = make([]protoimpl.MessageInfo, 11) -var file_cosmos_group_v1_events_proto_goTypes = []interface{}{ - (*EventCreateGroup)(nil), // 0: cosmos.group.v1.EventCreateGroup - (*EventUpdateGroup)(nil), // 1: cosmos.group.v1.EventUpdateGroup - (*EventCreateGroupPolicy)(nil), // 2: cosmos.group.v1.EventCreateGroupPolicy - (*EventUpdateGroupPolicy)(nil), // 3: cosmos.group.v1.EventUpdateGroupPolicy - (*EventSubmitProposal)(nil), // 4: cosmos.group.v1.EventSubmitProposal - (*EventWithdrawProposal)(nil), // 5: cosmos.group.v1.EventWithdrawProposal - (*EventVote)(nil), // 6: cosmos.group.v1.EventVote - (*EventExec)(nil), // 7: cosmos.group.v1.EventExec - (*EventLeaveGroup)(nil), // 8: cosmos.group.v1.EventLeaveGroup - (*EventProposalPruned)(nil), // 9: cosmos.group.v1.EventProposalPruned - (*EventTallyError)(nil), // 10: cosmos.group.v1.EventTallyError - (ProposalExecutorResult)(0), // 11: cosmos.group.v1.ProposalExecutorResult - (ProposalStatus)(0), // 12: cosmos.group.v1.ProposalStatus - (*TallyResult)(nil), // 13: cosmos.group.v1.TallyResult -} -var file_cosmos_group_v1_events_proto_depIdxs = []int32{ - 11, // 0: cosmos.group.v1.EventExec.result:type_name -> cosmos.group.v1.ProposalExecutorResult - 12, // 1: cosmos.group.v1.EventProposalPruned.status:type_name -> cosmos.group.v1.ProposalStatus - 13, // 2: cosmos.group.v1.EventProposalPruned.tally_result:type_name -> cosmos.group.v1.TallyResult - 3, // [3:3] is the sub-list for method output_type - 3, // [3:3] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name -} - -func init() { file_cosmos_group_v1_events_proto_init() } -func file_cosmos_group_v1_events_proto_init() { - if File_cosmos_group_v1_events_proto != nil { - return - } - file_cosmos_group_v1_types_proto_init() - if !protoimpl.UnsafeEnabled { - file_cosmos_group_v1_events_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventCreateGroup); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_events_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventUpdateGroup); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_events_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventCreateGroupPolicy); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_events_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventUpdateGroupPolicy); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_events_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventSubmitProposal); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_events_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventWithdrawProposal); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_events_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventVote); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_events_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventExec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_events_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventLeaveGroup); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_events_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventProposalPruned); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_events_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventTallyError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cosmos_group_v1_events_proto_rawDesc, - NumEnums: 0, - NumMessages: 11, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cosmos_group_v1_events_proto_goTypes, - DependencyIndexes: file_cosmos_group_v1_events_proto_depIdxs, - MessageInfos: file_cosmos_group_v1_events_proto_msgTypes, - }.Build() - File_cosmos_group_v1_events_proto = out.File - file_cosmos_group_v1_events_proto_rawDesc = nil - file_cosmos_group_v1_events_proto_goTypes = nil - file_cosmos_group_v1_events_proto_depIdxs = nil -} diff --git a/api/cosmos/group/v1/genesis.pulsar.go b/api/cosmos/group/v1/genesis.pulsar.go deleted file mode 100644 index 8cf9186145..0000000000 --- a/api/cosmos/group/v1/genesis.pulsar.go +++ /dev/null @@ -1,1441 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package groupv1 - -import ( - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var _ protoreflect.List = (*_GenesisState_2_list)(nil) - -type _GenesisState_2_list struct { - list *[]*GroupInfo -} - -func (x *_GenesisState_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_GenesisState_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_GenesisState_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*GroupInfo) - (*x.list)[i] = concreteValue -} - -func (x *_GenesisState_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*GroupInfo) - *x.list = append(*x.list, concreteValue) -} - -func (x *_GenesisState_2_list) AppendMutable() protoreflect.Value { - v := new(GroupInfo) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_2_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_GenesisState_2_list) NewElement() protoreflect.Value { - v := new(GroupInfo) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_2_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_GenesisState_3_list)(nil) - -type _GenesisState_3_list struct { - list *[]*GroupMember -} - -func (x *_GenesisState_3_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_GenesisState_3_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_GenesisState_3_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*GroupMember) - (*x.list)[i] = concreteValue -} - -func (x *_GenesisState_3_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*GroupMember) - *x.list = append(*x.list, concreteValue) -} - -func (x *_GenesisState_3_list) AppendMutable() protoreflect.Value { - v := new(GroupMember) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_3_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_GenesisState_3_list) NewElement() protoreflect.Value { - v := new(GroupMember) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_3_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_GenesisState_5_list)(nil) - -type _GenesisState_5_list struct { - list *[]*GroupPolicyInfo -} - -func (x *_GenesisState_5_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_GenesisState_5_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_GenesisState_5_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*GroupPolicyInfo) - (*x.list)[i] = concreteValue -} - -func (x *_GenesisState_5_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*GroupPolicyInfo) - *x.list = append(*x.list, concreteValue) -} - -func (x *_GenesisState_5_list) AppendMutable() protoreflect.Value { - v := new(GroupPolicyInfo) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_5_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_GenesisState_5_list) NewElement() protoreflect.Value { - v := new(GroupPolicyInfo) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_5_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_GenesisState_7_list)(nil) - -type _GenesisState_7_list struct { - list *[]*Proposal -} - -func (x *_GenesisState_7_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_GenesisState_7_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_GenesisState_7_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Proposal) - (*x.list)[i] = concreteValue -} - -func (x *_GenesisState_7_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Proposal) - *x.list = append(*x.list, concreteValue) -} - -func (x *_GenesisState_7_list) AppendMutable() protoreflect.Value { - v := new(Proposal) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_7_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_GenesisState_7_list) NewElement() protoreflect.Value { - v := new(Proposal) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_7_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_GenesisState_8_list)(nil) - -type _GenesisState_8_list struct { - list *[]*Vote -} - -func (x *_GenesisState_8_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_GenesisState_8_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_GenesisState_8_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Vote) - (*x.list)[i] = concreteValue -} - -func (x *_GenesisState_8_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Vote) - *x.list = append(*x.list, concreteValue) -} - -func (x *_GenesisState_8_list) AppendMutable() protoreflect.Value { - v := new(Vote) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_8_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_GenesisState_8_list) NewElement() protoreflect.Value { - v := new(Vote) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_8_list) IsValid() bool { - return x.list != nil -} - -var ( - md_GenesisState protoreflect.MessageDescriptor - fd_GenesisState_group_seq protoreflect.FieldDescriptor - fd_GenesisState_groups protoreflect.FieldDescriptor - fd_GenesisState_group_members protoreflect.FieldDescriptor - fd_GenesisState_group_policy_seq protoreflect.FieldDescriptor - fd_GenesisState_group_policies protoreflect.FieldDescriptor - fd_GenesisState_proposal_seq protoreflect.FieldDescriptor - fd_GenesisState_proposals protoreflect.FieldDescriptor - fd_GenesisState_votes protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_genesis_proto_init() - md_GenesisState = File_cosmos_group_v1_genesis_proto.Messages().ByName("GenesisState") - fd_GenesisState_group_seq = md_GenesisState.Fields().ByName("group_seq") - fd_GenesisState_groups = md_GenesisState.Fields().ByName("groups") - fd_GenesisState_group_members = md_GenesisState.Fields().ByName("group_members") - fd_GenesisState_group_policy_seq = md_GenesisState.Fields().ByName("group_policy_seq") - fd_GenesisState_group_policies = md_GenesisState.Fields().ByName("group_policies") - fd_GenesisState_proposal_seq = md_GenesisState.Fields().ByName("proposal_seq") - fd_GenesisState_proposals = md_GenesisState.Fields().ByName("proposals") - fd_GenesisState_votes = md_GenesisState.Fields().ByName("votes") -} - -var _ protoreflect.Message = (*fastReflection_GenesisState)(nil) - -type fastReflection_GenesisState GenesisState - -func (x *GenesisState) ProtoReflect() protoreflect.Message { - return (*fastReflection_GenesisState)(x) -} - -func (x *GenesisState) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_genesis_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_GenesisState_messageType fastReflection_GenesisState_messageType -var _ protoreflect.MessageType = fastReflection_GenesisState_messageType{} - -type fastReflection_GenesisState_messageType struct{} - -func (x fastReflection_GenesisState_messageType) Zero() protoreflect.Message { - return (*fastReflection_GenesisState)(nil) -} -func (x fastReflection_GenesisState_messageType) New() protoreflect.Message { - return new(fastReflection_GenesisState) -} -func (x fastReflection_GenesisState_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_GenesisState -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_GenesisState) Descriptor() protoreflect.MessageDescriptor { - return md_GenesisState -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_GenesisState) Type() protoreflect.MessageType { - return _fastReflection_GenesisState_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_GenesisState) New() protoreflect.Message { - return new(fastReflection_GenesisState) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_GenesisState) Interface() protoreflect.ProtoMessage { - return (*GenesisState)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.GroupSeq != uint64(0) { - value := protoreflect.ValueOfUint64(x.GroupSeq) - if !f(fd_GenesisState_group_seq, value) { - return - } - } - if len(x.Groups) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_2_list{list: &x.Groups}) - if !f(fd_GenesisState_groups, value) { - return - } - } - if len(x.GroupMembers) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_3_list{list: &x.GroupMembers}) - if !f(fd_GenesisState_group_members, value) { - return - } - } - if x.GroupPolicySeq != uint64(0) { - value := protoreflect.ValueOfUint64(x.GroupPolicySeq) - if !f(fd_GenesisState_group_policy_seq, value) { - return - } - } - if len(x.GroupPolicies) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_5_list{list: &x.GroupPolicies}) - if !f(fd_GenesisState_group_policies, value) { - return - } - } - if x.ProposalSeq != uint64(0) { - value := protoreflect.ValueOfUint64(x.ProposalSeq) - if !f(fd_GenesisState_proposal_seq, value) { - return - } - } - if len(x.Proposals) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_7_list{list: &x.Proposals}) - if !f(fd_GenesisState_proposals, value) { - return - } - } - if len(x.Votes) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_8_list{list: &x.Votes}) - if !f(fd_GenesisState_votes, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.GenesisState.group_seq": - return x.GroupSeq != uint64(0) - case "cosmos.group.v1.GenesisState.groups": - return len(x.Groups) != 0 - case "cosmos.group.v1.GenesisState.group_members": - return len(x.GroupMembers) != 0 - case "cosmos.group.v1.GenesisState.group_policy_seq": - return x.GroupPolicySeq != uint64(0) - case "cosmos.group.v1.GenesisState.group_policies": - return len(x.GroupPolicies) != 0 - case "cosmos.group.v1.GenesisState.proposal_seq": - return x.ProposalSeq != uint64(0) - case "cosmos.group.v1.GenesisState.proposals": - return len(x.Proposals) != 0 - case "cosmos.group.v1.GenesisState.votes": - return len(x.Votes) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.GenesisState")) - } - panic(fmt.Errorf("message cosmos.group.v1.GenesisState does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.GenesisState.group_seq": - x.GroupSeq = uint64(0) - case "cosmos.group.v1.GenesisState.groups": - x.Groups = nil - case "cosmos.group.v1.GenesisState.group_members": - x.GroupMembers = nil - case "cosmos.group.v1.GenesisState.group_policy_seq": - x.GroupPolicySeq = uint64(0) - case "cosmos.group.v1.GenesisState.group_policies": - x.GroupPolicies = nil - case "cosmos.group.v1.GenesisState.proposal_seq": - x.ProposalSeq = uint64(0) - case "cosmos.group.v1.GenesisState.proposals": - x.Proposals = nil - case "cosmos.group.v1.GenesisState.votes": - x.Votes = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.GenesisState")) - } - panic(fmt.Errorf("message cosmos.group.v1.GenesisState does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.GenesisState.group_seq": - value := x.GroupSeq - return protoreflect.ValueOfUint64(value) - case "cosmos.group.v1.GenesisState.groups": - if len(x.Groups) == 0 { - return protoreflect.ValueOfList(&_GenesisState_2_list{}) - } - listValue := &_GenesisState_2_list{list: &x.Groups} - return protoreflect.ValueOfList(listValue) - case "cosmos.group.v1.GenesisState.group_members": - if len(x.GroupMembers) == 0 { - return protoreflect.ValueOfList(&_GenesisState_3_list{}) - } - listValue := &_GenesisState_3_list{list: &x.GroupMembers} - return protoreflect.ValueOfList(listValue) - case "cosmos.group.v1.GenesisState.group_policy_seq": - value := x.GroupPolicySeq - return protoreflect.ValueOfUint64(value) - case "cosmos.group.v1.GenesisState.group_policies": - if len(x.GroupPolicies) == 0 { - return protoreflect.ValueOfList(&_GenesisState_5_list{}) - } - listValue := &_GenesisState_5_list{list: &x.GroupPolicies} - return protoreflect.ValueOfList(listValue) - case "cosmos.group.v1.GenesisState.proposal_seq": - value := x.ProposalSeq - return protoreflect.ValueOfUint64(value) - case "cosmos.group.v1.GenesisState.proposals": - if len(x.Proposals) == 0 { - return protoreflect.ValueOfList(&_GenesisState_7_list{}) - } - listValue := &_GenesisState_7_list{list: &x.Proposals} - return protoreflect.ValueOfList(listValue) - case "cosmos.group.v1.GenesisState.votes": - if len(x.Votes) == 0 { - return protoreflect.ValueOfList(&_GenesisState_8_list{}) - } - listValue := &_GenesisState_8_list{list: &x.Votes} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.GenesisState")) - } - panic(fmt.Errorf("message cosmos.group.v1.GenesisState does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.GenesisState.group_seq": - x.GroupSeq = value.Uint() - case "cosmos.group.v1.GenesisState.groups": - lv := value.List() - clv := lv.(*_GenesisState_2_list) - x.Groups = *clv.list - case "cosmos.group.v1.GenesisState.group_members": - lv := value.List() - clv := lv.(*_GenesisState_3_list) - x.GroupMembers = *clv.list - case "cosmos.group.v1.GenesisState.group_policy_seq": - x.GroupPolicySeq = value.Uint() - case "cosmos.group.v1.GenesisState.group_policies": - lv := value.List() - clv := lv.(*_GenesisState_5_list) - x.GroupPolicies = *clv.list - case "cosmos.group.v1.GenesisState.proposal_seq": - x.ProposalSeq = value.Uint() - case "cosmos.group.v1.GenesisState.proposals": - lv := value.List() - clv := lv.(*_GenesisState_7_list) - x.Proposals = *clv.list - case "cosmos.group.v1.GenesisState.votes": - lv := value.List() - clv := lv.(*_GenesisState_8_list) - x.Votes = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.GenesisState")) - } - panic(fmt.Errorf("message cosmos.group.v1.GenesisState does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.GenesisState.groups": - if x.Groups == nil { - x.Groups = []*GroupInfo{} - } - value := &_GenesisState_2_list{list: &x.Groups} - return protoreflect.ValueOfList(value) - case "cosmos.group.v1.GenesisState.group_members": - if x.GroupMembers == nil { - x.GroupMembers = []*GroupMember{} - } - value := &_GenesisState_3_list{list: &x.GroupMembers} - return protoreflect.ValueOfList(value) - case "cosmos.group.v1.GenesisState.group_policies": - if x.GroupPolicies == nil { - x.GroupPolicies = []*GroupPolicyInfo{} - } - value := &_GenesisState_5_list{list: &x.GroupPolicies} - return protoreflect.ValueOfList(value) - case "cosmos.group.v1.GenesisState.proposals": - if x.Proposals == nil { - x.Proposals = []*Proposal{} - } - value := &_GenesisState_7_list{list: &x.Proposals} - return protoreflect.ValueOfList(value) - case "cosmos.group.v1.GenesisState.votes": - if x.Votes == nil { - x.Votes = []*Vote{} - } - value := &_GenesisState_8_list{list: &x.Votes} - return protoreflect.ValueOfList(value) - case "cosmos.group.v1.GenesisState.group_seq": - panic(fmt.Errorf("field group_seq of message cosmos.group.v1.GenesisState is not mutable")) - case "cosmos.group.v1.GenesisState.group_policy_seq": - panic(fmt.Errorf("field group_policy_seq of message cosmos.group.v1.GenesisState is not mutable")) - case "cosmos.group.v1.GenesisState.proposal_seq": - panic(fmt.Errorf("field proposal_seq of message cosmos.group.v1.GenesisState is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.GenesisState")) - } - panic(fmt.Errorf("message cosmos.group.v1.GenesisState does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.GenesisState.group_seq": - return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.group.v1.GenesisState.groups": - list := []*GroupInfo{} - return protoreflect.ValueOfList(&_GenesisState_2_list{list: &list}) - case "cosmos.group.v1.GenesisState.group_members": - list := []*GroupMember{} - return protoreflect.ValueOfList(&_GenesisState_3_list{list: &list}) - case "cosmos.group.v1.GenesisState.group_policy_seq": - return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.group.v1.GenesisState.group_policies": - list := []*GroupPolicyInfo{} - return protoreflect.ValueOfList(&_GenesisState_5_list{list: &list}) - case "cosmos.group.v1.GenesisState.proposal_seq": - return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.group.v1.GenesisState.proposals": - list := []*Proposal{} - return protoreflect.ValueOfList(&_GenesisState_7_list{list: &list}) - case "cosmos.group.v1.GenesisState.votes": - list := []*Vote{} - return protoreflect.ValueOfList(&_GenesisState_8_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.GenesisState")) - } - panic(fmt.Errorf("message cosmos.group.v1.GenesisState does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.GenesisState", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_GenesisState) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GenesisState) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_GenesisState) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*GenesisState) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.GroupSeq != 0 { - n += 1 + runtime.Sov(uint64(x.GroupSeq)) - } - if len(x.Groups) > 0 { - for _, e := range x.Groups { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.GroupMembers) > 0 { - for _, e := range x.GroupMembers { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.GroupPolicySeq != 0 { - n += 1 + runtime.Sov(uint64(x.GroupPolicySeq)) - } - if len(x.GroupPolicies) > 0 { - for _, e := range x.GroupPolicies { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.ProposalSeq != 0 { - n += 1 + runtime.Sov(uint64(x.ProposalSeq)) - } - if len(x.Proposals) > 0 { - for _, e := range x.Proposals { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.Votes) > 0 { - for _, e := range x.Votes { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*GenesisState) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Votes) > 0 { - for iNdEx := len(x.Votes) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Votes[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x42 - } - } - if len(x.Proposals) > 0 { - for iNdEx := len(x.Proposals) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Proposals[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x3a - } - } - if x.ProposalSeq != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ProposalSeq)) - i-- - dAtA[i] = 0x30 - } - if len(x.GroupPolicies) > 0 { - for iNdEx := len(x.GroupPolicies) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.GroupPolicies[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x2a - } - } - if x.GroupPolicySeq != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.GroupPolicySeq)) - i-- - dAtA[i] = 0x20 - } - if len(x.GroupMembers) > 0 { - for iNdEx := len(x.GroupMembers) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.GroupMembers[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x1a - } - } - if len(x.Groups) > 0 { - for iNdEx := len(x.Groups) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Groups[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - } - if x.GroupSeq != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.GroupSeq)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*GenesisState) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupSeq", wireType) - } - x.GroupSeq = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.GroupSeq |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Groups = append(x.Groups, &GroupInfo{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Groups[len(x.Groups)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupMembers", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.GroupMembers = append(x.GroupMembers, &GroupMember{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.GroupMembers[len(x.GroupMembers)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupPolicySeq", wireType) - } - x.GroupPolicySeq = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.GroupPolicySeq |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupPolicies", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.GroupPolicies = append(x.GroupPolicies, &GroupPolicyInfo{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.GroupPolicies[len(x.GroupPolicies)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProposalSeq", wireType) - } - x.ProposalSeq = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.ProposalSeq |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposals", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Proposals = append(x.Proposals, &Proposal{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Proposals[len(x.Proposals)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Votes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Votes = append(x.Votes, &Vote{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Votes[len(x.Votes)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cosmos/group/v1/genesis.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// GenesisState defines the group module's genesis state. -type GenesisState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // group_seq is the group table orm.Sequence, - // it is used to get the next group ID. - GroupSeq uint64 `protobuf:"varint,1,opt,name=group_seq,json=groupSeq,proto3" json:"group_seq,omitempty"` - // groups is the list of groups info. - Groups []*GroupInfo `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups,omitempty"` - // group_members is the list of groups members. - GroupMembers []*GroupMember `protobuf:"bytes,3,rep,name=group_members,json=groupMembers,proto3" json:"group_members,omitempty"` - // group_policy_seq is the group policy table orm.Sequence, - // it is used to generate the next group policy account address. - GroupPolicySeq uint64 `protobuf:"varint,4,opt,name=group_policy_seq,json=groupPolicySeq,proto3" json:"group_policy_seq,omitempty"` - // group_policies is the list of group policies info. - GroupPolicies []*GroupPolicyInfo `protobuf:"bytes,5,rep,name=group_policies,json=groupPolicies,proto3" json:"group_policies,omitempty"` - // proposal_seq is the proposal table orm.Sequence, - // it is used to get the next proposal ID. - ProposalSeq uint64 `protobuf:"varint,6,opt,name=proposal_seq,json=proposalSeq,proto3" json:"proposal_seq,omitempty"` - // proposals is the list of proposals. - Proposals []*Proposal `protobuf:"bytes,7,rep,name=proposals,proto3" json:"proposals,omitempty"` - // votes is the list of votes. - Votes []*Vote `protobuf:"bytes,8,rep,name=votes,proto3" json:"votes,omitempty"` -} - -func (x *GenesisState) Reset() { - *x = GenesisState{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_genesis_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GenesisState) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GenesisState) ProtoMessage() {} - -// Deprecated: Use GenesisState.ProtoReflect.Descriptor instead. -func (*GenesisState) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_genesis_proto_rawDescGZIP(), []int{0} -} - -func (x *GenesisState) GetGroupSeq() uint64 { - if x != nil { - return x.GroupSeq - } - return 0 -} - -func (x *GenesisState) GetGroups() []*GroupInfo { - if x != nil { - return x.Groups - } - return nil -} - -func (x *GenesisState) GetGroupMembers() []*GroupMember { - if x != nil { - return x.GroupMembers - } - return nil -} - -func (x *GenesisState) GetGroupPolicySeq() uint64 { - if x != nil { - return x.GroupPolicySeq - } - return 0 -} - -func (x *GenesisState) GetGroupPolicies() []*GroupPolicyInfo { - if x != nil { - return x.GroupPolicies - } - return nil -} - -func (x *GenesisState) GetProposalSeq() uint64 { - if x != nil { - return x.ProposalSeq - } - return 0 -} - -func (x *GenesisState) GetProposals() []*Proposal { - if x != nil { - return x.Proposals - } - return nil -} - -func (x *GenesisState) GetVotes() []*Vote { - if x != nil { - return x.Votes - } - return nil -} - -var File_cosmos_group_v1_genesis_proto protoreflect.FileDescriptor - -var file_cosmos_group_v1_genesis_proto_rawDesc = []byte{ - 0x0a, 0x1d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, - 0x31, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, - 0x1a, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, - 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9e, 0x03, - 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1b, - 0x0a, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x73, 0x65, 0x71, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x65, 0x71, 0x12, 0x32, 0x0a, 0x06, 0x67, - 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, - 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, - 0x41, 0x0a, 0x0d, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, - 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, - 0x6d, 0x62, 0x65, 0x72, 0x52, 0x0c, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, - 0x72, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x5f, 0x73, 0x65, 0x71, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x67, 0x72, - 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x65, 0x71, 0x12, 0x47, 0x0a, 0x0e, - 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x18, 0x05, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, - 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0d, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, - 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, - 0x6c, 0x5f, 0x73, 0x65, 0x71, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x70, 0x72, 0x6f, - 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x53, 0x65, 0x71, 0x12, 0x37, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x70, - 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, - 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, - 0x73, 0x12, 0x2b, 0x0a, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x15, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, - 0x76, 0x31, 0x2e, 0x56, 0x6f, 0x74, 0x65, 0x52, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x73, 0x42, 0xab, - 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, - 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x28, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, - 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, - 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x3b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x76, 0x31, - 0xa2, 0x02, 0x03, 0x43, 0x47, 0x58, 0xaa, 0x02, 0x0f, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x47, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0f, 0x43, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x5c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1b, 0x43, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x5c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x43, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x3a, 0x3a, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cosmos_group_v1_genesis_proto_rawDescOnce sync.Once - file_cosmos_group_v1_genesis_proto_rawDescData = file_cosmos_group_v1_genesis_proto_rawDesc -) - -func file_cosmos_group_v1_genesis_proto_rawDescGZIP() []byte { - file_cosmos_group_v1_genesis_proto_rawDescOnce.Do(func() { - file_cosmos_group_v1_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_group_v1_genesis_proto_rawDescData) - }) - return file_cosmos_group_v1_genesis_proto_rawDescData -} - -var file_cosmos_group_v1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_cosmos_group_v1_genesis_proto_goTypes = []interface{}{ - (*GenesisState)(nil), // 0: cosmos.group.v1.GenesisState - (*GroupInfo)(nil), // 1: cosmos.group.v1.GroupInfo - (*GroupMember)(nil), // 2: cosmos.group.v1.GroupMember - (*GroupPolicyInfo)(nil), // 3: cosmos.group.v1.GroupPolicyInfo - (*Proposal)(nil), // 4: cosmos.group.v1.Proposal - (*Vote)(nil), // 5: cosmos.group.v1.Vote -} -var file_cosmos_group_v1_genesis_proto_depIdxs = []int32{ - 1, // 0: cosmos.group.v1.GenesisState.groups:type_name -> cosmos.group.v1.GroupInfo - 2, // 1: cosmos.group.v1.GenesisState.group_members:type_name -> cosmos.group.v1.GroupMember - 3, // 2: cosmos.group.v1.GenesisState.group_policies:type_name -> cosmos.group.v1.GroupPolicyInfo - 4, // 3: cosmos.group.v1.GenesisState.proposals:type_name -> cosmos.group.v1.Proposal - 5, // 4: cosmos.group.v1.GenesisState.votes:type_name -> cosmos.group.v1.Vote - 5, // [5:5] is the sub-list for method output_type - 5, // [5:5] is the sub-list for method input_type - 5, // [5:5] is the sub-list for extension type_name - 5, // [5:5] is the sub-list for extension extendee - 0, // [0:5] is the sub-list for field type_name -} - -func init() { file_cosmos_group_v1_genesis_proto_init() } -func file_cosmos_group_v1_genesis_proto_init() { - if File_cosmos_group_v1_genesis_proto != nil { - return - } - file_cosmos_group_v1_types_proto_init() - if !protoimpl.UnsafeEnabled { - file_cosmos_group_v1_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenesisState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cosmos_group_v1_genesis_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cosmos_group_v1_genesis_proto_goTypes, - DependencyIndexes: file_cosmos_group_v1_genesis_proto_depIdxs, - MessageInfos: file_cosmos_group_v1_genesis_proto_msgTypes, - }.Build() - File_cosmos_group_v1_genesis_proto = out.File - file_cosmos_group_v1_genesis_proto_rawDesc = nil - file_cosmos_group_v1_genesis_proto_goTypes = nil - file_cosmos_group_v1_genesis_proto_depIdxs = nil -} diff --git a/api/cosmos/group/v1/query.pulsar.go b/api/cosmos/group/v1/query.pulsar.go deleted file mode 100644 index 47fab54dbc..0000000000 --- a/api/cosmos/group/v1/query.pulsar.go +++ /dev/null @@ -1,15920 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package groupv1 - -import ( - _ "cosmossdk.io/api/amino" - v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1" - fmt "fmt" - _ "github.com/cosmos/cosmos-proto" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - _ "google.golang.org/genproto/googleapis/api/annotations" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_QueryGroupInfoRequest protoreflect.MessageDescriptor - fd_QueryGroupInfoRequest_group_id protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_query_proto_init() - md_QueryGroupInfoRequest = File_cosmos_group_v1_query_proto.Messages().ByName("QueryGroupInfoRequest") - fd_QueryGroupInfoRequest_group_id = md_QueryGroupInfoRequest.Fields().ByName("group_id") -} - -var _ protoreflect.Message = (*fastReflection_QueryGroupInfoRequest)(nil) - -type fastReflection_QueryGroupInfoRequest QueryGroupInfoRequest - -func (x *QueryGroupInfoRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGroupInfoRequest)(x) -} - -func (x *QueryGroupInfoRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_query_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryGroupInfoRequest_messageType fastReflection_QueryGroupInfoRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryGroupInfoRequest_messageType{} - -type fastReflection_QueryGroupInfoRequest_messageType struct{} - -func (x fastReflection_QueryGroupInfoRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGroupInfoRequest)(nil) -} -func (x fastReflection_QueryGroupInfoRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGroupInfoRequest) -} -func (x fastReflection_QueryGroupInfoRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGroupInfoRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryGroupInfoRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGroupInfoRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGroupInfoRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryGroupInfoRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGroupInfoRequest) New() protoreflect.Message { - return new(fastReflection_QueryGroupInfoRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGroupInfoRequest) Interface() protoreflect.ProtoMessage { - return (*QueryGroupInfoRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryGroupInfoRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.GroupId != uint64(0) { - value := protoreflect.ValueOfUint64(x.GroupId) - if !f(fd_QueryGroupInfoRequest_group_id, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGroupInfoRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupInfoRequest.group_id": - return x.GroupId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupInfoRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupInfoRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupInfoRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupInfoRequest.group_id": - x.GroupId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupInfoRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupInfoRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGroupInfoRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.QueryGroupInfoRequest.group_id": - value := x.GroupId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupInfoRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupInfoRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupInfoRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupInfoRequest.group_id": - x.GroupId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupInfoRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupInfoRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupInfoRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupInfoRequest.group_id": - panic(fmt.Errorf("field group_id of message cosmos.group.v1.QueryGroupInfoRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupInfoRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupInfoRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGroupInfoRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupInfoRequest.group_id": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupInfoRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupInfoRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGroupInfoRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.QueryGroupInfoRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGroupInfoRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupInfoRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryGroupInfoRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGroupInfoRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGroupInfoRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.GroupId != 0 { - n += 1 + runtime.Sov(uint64(x.GroupId)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGroupInfoRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.GroupId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.GroupId)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGroupInfoRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupInfoRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - x.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.GroupId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryGroupInfoResponse protoreflect.MessageDescriptor - fd_QueryGroupInfoResponse_info protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_query_proto_init() - md_QueryGroupInfoResponse = File_cosmos_group_v1_query_proto.Messages().ByName("QueryGroupInfoResponse") - fd_QueryGroupInfoResponse_info = md_QueryGroupInfoResponse.Fields().ByName("info") -} - -var _ protoreflect.Message = (*fastReflection_QueryGroupInfoResponse)(nil) - -type fastReflection_QueryGroupInfoResponse QueryGroupInfoResponse - -func (x *QueryGroupInfoResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGroupInfoResponse)(x) -} - -func (x *QueryGroupInfoResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_query_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryGroupInfoResponse_messageType fastReflection_QueryGroupInfoResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryGroupInfoResponse_messageType{} - -type fastReflection_QueryGroupInfoResponse_messageType struct{} - -func (x fastReflection_QueryGroupInfoResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGroupInfoResponse)(nil) -} -func (x fastReflection_QueryGroupInfoResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGroupInfoResponse) -} -func (x fastReflection_QueryGroupInfoResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGroupInfoResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryGroupInfoResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGroupInfoResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGroupInfoResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryGroupInfoResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGroupInfoResponse) New() protoreflect.Message { - return new(fastReflection_QueryGroupInfoResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGroupInfoResponse) Interface() protoreflect.ProtoMessage { - return (*QueryGroupInfoResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryGroupInfoResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Info != nil { - value := protoreflect.ValueOfMessage(x.Info.ProtoReflect()) - if !f(fd_QueryGroupInfoResponse_info, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGroupInfoResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupInfoResponse.info": - return x.Info != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupInfoResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupInfoResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupInfoResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupInfoResponse.info": - x.Info = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupInfoResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupInfoResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGroupInfoResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.QueryGroupInfoResponse.info": - value := x.Info - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupInfoResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupInfoResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupInfoResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupInfoResponse.info": - x.Info = value.Message().Interface().(*GroupInfo) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupInfoResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupInfoResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupInfoResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupInfoResponse.info": - if x.Info == nil { - x.Info = new(GroupInfo) - } - return protoreflect.ValueOfMessage(x.Info.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupInfoResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupInfoResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGroupInfoResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupInfoResponse.info": - m := new(GroupInfo) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupInfoResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupInfoResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGroupInfoResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.QueryGroupInfoResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGroupInfoResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupInfoResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryGroupInfoResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGroupInfoResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGroupInfoResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Info != nil { - l = options.Size(x.Info) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGroupInfoResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Info != nil { - encoded, err := options.Marshal(x.Info) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGroupInfoResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupInfoResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Info == nil { - x.Info = &GroupInfo{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Info); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryGroupPolicyInfoRequest protoreflect.MessageDescriptor - fd_QueryGroupPolicyInfoRequest_address protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_query_proto_init() - md_QueryGroupPolicyInfoRequest = File_cosmos_group_v1_query_proto.Messages().ByName("QueryGroupPolicyInfoRequest") - fd_QueryGroupPolicyInfoRequest_address = md_QueryGroupPolicyInfoRequest.Fields().ByName("address") -} - -var _ protoreflect.Message = (*fastReflection_QueryGroupPolicyInfoRequest)(nil) - -type fastReflection_QueryGroupPolicyInfoRequest QueryGroupPolicyInfoRequest - -func (x *QueryGroupPolicyInfoRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGroupPolicyInfoRequest)(x) -} - -func (x *QueryGroupPolicyInfoRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_query_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryGroupPolicyInfoRequest_messageType fastReflection_QueryGroupPolicyInfoRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryGroupPolicyInfoRequest_messageType{} - -type fastReflection_QueryGroupPolicyInfoRequest_messageType struct{} - -func (x fastReflection_QueryGroupPolicyInfoRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGroupPolicyInfoRequest)(nil) -} -func (x fastReflection_QueryGroupPolicyInfoRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGroupPolicyInfoRequest) -} -func (x fastReflection_QueryGroupPolicyInfoRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGroupPolicyInfoRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryGroupPolicyInfoRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGroupPolicyInfoRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGroupPolicyInfoRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryGroupPolicyInfoRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGroupPolicyInfoRequest) New() protoreflect.Message { - return new(fastReflection_QueryGroupPolicyInfoRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGroupPolicyInfoRequest) Interface() protoreflect.ProtoMessage { - return (*QueryGroupPolicyInfoRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryGroupPolicyInfoRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Address != "" { - value := protoreflect.ValueOfString(x.Address) - if !f(fd_QueryGroupPolicyInfoRequest_address, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGroupPolicyInfoRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupPolicyInfoRequest.address": - return x.Address != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPolicyInfoRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPolicyInfoRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupPolicyInfoRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupPolicyInfoRequest.address": - x.Address = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPolicyInfoRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPolicyInfoRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGroupPolicyInfoRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.QueryGroupPolicyInfoRequest.address": - value := x.Address - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPolicyInfoRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPolicyInfoRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupPolicyInfoRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupPolicyInfoRequest.address": - x.Address = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPolicyInfoRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPolicyInfoRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupPolicyInfoRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupPolicyInfoRequest.address": - panic(fmt.Errorf("field address of message cosmos.group.v1.QueryGroupPolicyInfoRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPolicyInfoRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPolicyInfoRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGroupPolicyInfoRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupPolicyInfoRequest.address": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPolicyInfoRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPolicyInfoRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGroupPolicyInfoRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.QueryGroupPolicyInfoRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGroupPolicyInfoRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupPolicyInfoRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryGroupPolicyInfoRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGroupPolicyInfoRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGroupPolicyInfoRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Address) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGroupPolicyInfoRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Address) > 0 { - i -= len(x.Address) - copy(dAtA[i:], x.Address) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGroupPolicyInfoRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupPolicyInfoRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupPolicyInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryGroupPolicyInfoResponse protoreflect.MessageDescriptor - fd_QueryGroupPolicyInfoResponse_info protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_query_proto_init() - md_QueryGroupPolicyInfoResponse = File_cosmos_group_v1_query_proto.Messages().ByName("QueryGroupPolicyInfoResponse") - fd_QueryGroupPolicyInfoResponse_info = md_QueryGroupPolicyInfoResponse.Fields().ByName("info") -} - -var _ protoreflect.Message = (*fastReflection_QueryGroupPolicyInfoResponse)(nil) - -type fastReflection_QueryGroupPolicyInfoResponse QueryGroupPolicyInfoResponse - -func (x *QueryGroupPolicyInfoResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGroupPolicyInfoResponse)(x) -} - -func (x *QueryGroupPolicyInfoResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_query_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryGroupPolicyInfoResponse_messageType fastReflection_QueryGroupPolicyInfoResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryGroupPolicyInfoResponse_messageType{} - -type fastReflection_QueryGroupPolicyInfoResponse_messageType struct{} - -func (x fastReflection_QueryGroupPolicyInfoResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGroupPolicyInfoResponse)(nil) -} -func (x fastReflection_QueryGroupPolicyInfoResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGroupPolicyInfoResponse) -} -func (x fastReflection_QueryGroupPolicyInfoResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGroupPolicyInfoResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryGroupPolicyInfoResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGroupPolicyInfoResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGroupPolicyInfoResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryGroupPolicyInfoResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGroupPolicyInfoResponse) New() protoreflect.Message { - return new(fastReflection_QueryGroupPolicyInfoResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGroupPolicyInfoResponse) Interface() protoreflect.ProtoMessage { - return (*QueryGroupPolicyInfoResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryGroupPolicyInfoResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Info != nil { - value := protoreflect.ValueOfMessage(x.Info.ProtoReflect()) - if !f(fd_QueryGroupPolicyInfoResponse_info, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGroupPolicyInfoResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupPolicyInfoResponse.info": - return x.Info != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPolicyInfoResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPolicyInfoResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupPolicyInfoResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupPolicyInfoResponse.info": - x.Info = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPolicyInfoResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPolicyInfoResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGroupPolicyInfoResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.QueryGroupPolicyInfoResponse.info": - value := x.Info - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPolicyInfoResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPolicyInfoResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupPolicyInfoResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupPolicyInfoResponse.info": - x.Info = value.Message().Interface().(*GroupPolicyInfo) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPolicyInfoResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPolicyInfoResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupPolicyInfoResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupPolicyInfoResponse.info": - if x.Info == nil { - x.Info = new(GroupPolicyInfo) - } - return protoreflect.ValueOfMessage(x.Info.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPolicyInfoResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPolicyInfoResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGroupPolicyInfoResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupPolicyInfoResponse.info": - m := new(GroupPolicyInfo) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPolicyInfoResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPolicyInfoResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGroupPolicyInfoResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.QueryGroupPolicyInfoResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGroupPolicyInfoResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupPolicyInfoResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryGroupPolicyInfoResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGroupPolicyInfoResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGroupPolicyInfoResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Info != nil { - l = options.Size(x.Info) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGroupPolicyInfoResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Info != nil { - encoded, err := options.Marshal(x.Info) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGroupPolicyInfoResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupPolicyInfoResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupPolicyInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Info == nil { - x.Info = &GroupPolicyInfo{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Info); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryGroupMembersRequest protoreflect.MessageDescriptor - fd_QueryGroupMembersRequest_group_id protoreflect.FieldDescriptor - fd_QueryGroupMembersRequest_pagination protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_query_proto_init() - md_QueryGroupMembersRequest = File_cosmos_group_v1_query_proto.Messages().ByName("QueryGroupMembersRequest") - fd_QueryGroupMembersRequest_group_id = md_QueryGroupMembersRequest.Fields().ByName("group_id") - fd_QueryGroupMembersRequest_pagination = md_QueryGroupMembersRequest.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryGroupMembersRequest)(nil) - -type fastReflection_QueryGroupMembersRequest QueryGroupMembersRequest - -func (x *QueryGroupMembersRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGroupMembersRequest)(x) -} - -func (x *QueryGroupMembersRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_query_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryGroupMembersRequest_messageType fastReflection_QueryGroupMembersRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryGroupMembersRequest_messageType{} - -type fastReflection_QueryGroupMembersRequest_messageType struct{} - -func (x fastReflection_QueryGroupMembersRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGroupMembersRequest)(nil) -} -func (x fastReflection_QueryGroupMembersRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGroupMembersRequest) -} -func (x fastReflection_QueryGroupMembersRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGroupMembersRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryGroupMembersRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGroupMembersRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGroupMembersRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryGroupMembersRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGroupMembersRequest) New() protoreflect.Message { - return new(fastReflection_QueryGroupMembersRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGroupMembersRequest) Interface() protoreflect.ProtoMessage { - return (*QueryGroupMembersRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryGroupMembersRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.GroupId != uint64(0) { - value := protoreflect.ValueOfUint64(x.GroupId) - if !f(fd_QueryGroupMembersRequest_group_id, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryGroupMembersRequest_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGroupMembersRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupMembersRequest.group_id": - return x.GroupId != uint64(0) - case "cosmos.group.v1.QueryGroupMembersRequest.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupMembersRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupMembersRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupMembersRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupMembersRequest.group_id": - x.GroupId = uint64(0) - case "cosmos.group.v1.QueryGroupMembersRequest.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupMembersRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupMembersRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGroupMembersRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.QueryGroupMembersRequest.group_id": - value := x.GroupId - return protoreflect.ValueOfUint64(value) - case "cosmos.group.v1.QueryGroupMembersRequest.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupMembersRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupMembersRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupMembersRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupMembersRequest.group_id": - x.GroupId = value.Uint() - case "cosmos.group.v1.QueryGroupMembersRequest.pagination": - x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupMembersRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupMembersRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupMembersRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupMembersRequest.pagination": - if x.Pagination == nil { - x.Pagination = new(v1beta1.PageRequest) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - case "cosmos.group.v1.QueryGroupMembersRequest.group_id": - panic(fmt.Errorf("field group_id of message cosmos.group.v1.QueryGroupMembersRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupMembersRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupMembersRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGroupMembersRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupMembersRequest.group_id": - return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.group.v1.QueryGroupMembersRequest.pagination": - m := new(v1beta1.PageRequest) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupMembersRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupMembersRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGroupMembersRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.QueryGroupMembersRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGroupMembersRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupMembersRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryGroupMembersRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGroupMembersRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGroupMembersRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.GroupId != 0 { - n += 1 + runtime.Sov(uint64(x.GroupId)) - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGroupMembersRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if x.GroupId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.GroupId)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGroupMembersRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupMembersRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupMembersRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - x.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.GroupId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &v1beta1.PageRequest{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_QueryGroupMembersResponse_1_list)(nil) - -type _QueryGroupMembersResponse_1_list struct { - list *[]*GroupMember -} - -func (x *_QueryGroupMembersResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryGroupMembersResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_QueryGroupMembersResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*GroupMember) - (*x.list)[i] = concreteValue -} - -func (x *_QueryGroupMembersResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*GroupMember) - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryGroupMembersResponse_1_list) AppendMutable() protoreflect.Value { - v := new(GroupMember) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryGroupMembersResponse_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_QueryGroupMembersResponse_1_list) NewElement() protoreflect.Value { - v := new(GroupMember) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryGroupMembersResponse_1_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QueryGroupMembersResponse protoreflect.MessageDescriptor - fd_QueryGroupMembersResponse_members protoreflect.FieldDescriptor - fd_QueryGroupMembersResponse_pagination protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_query_proto_init() - md_QueryGroupMembersResponse = File_cosmos_group_v1_query_proto.Messages().ByName("QueryGroupMembersResponse") - fd_QueryGroupMembersResponse_members = md_QueryGroupMembersResponse.Fields().ByName("members") - fd_QueryGroupMembersResponse_pagination = md_QueryGroupMembersResponse.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryGroupMembersResponse)(nil) - -type fastReflection_QueryGroupMembersResponse QueryGroupMembersResponse - -func (x *QueryGroupMembersResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGroupMembersResponse)(x) -} - -func (x *QueryGroupMembersResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_query_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryGroupMembersResponse_messageType fastReflection_QueryGroupMembersResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryGroupMembersResponse_messageType{} - -type fastReflection_QueryGroupMembersResponse_messageType struct{} - -func (x fastReflection_QueryGroupMembersResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGroupMembersResponse)(nil) -} -func (x fastReflection_QueryGroupMembersResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGroupMembersResponse) -} -func (x fastReflection_QueryGroupMembersResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGroupMembersResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryGroupMembersResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGroupMembersResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGroupMembersResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryGroupMembersResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGroupMembersResponse) New() protoreflect.Message { - return new(fastReflection_QueryGroupMembersResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGroupMembersResponse) Interface() protoreflect.ProtoMessage { - return (*QueryGroupMembersResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryGroupMembersResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Members) != 0 { - value := protoreflect.ValueOfList(&_QueryGroupMembersResponse_1_list{list: &x.Members}) - if !f(fd_QueryGroupMembersResponse_members, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryGroupMembersResponse_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGroupMembersResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupMembersResponse.members": - return len(x.Members) != 0 - case "cosmos.group.v1.QueryGroupMembersResponse.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupMembersResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupMembersResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupMembersResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupMembersResponse.members": - x.Members = nil - case "cosmos.group.v1.QueryGroupMembersResponse.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupMembersResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupMembersResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGroupMembersResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.QueryGroupMembersResponse.members": - if len(x.Members) == 0 { - return protoreflect.ValueOfList(&_QueryGroupMembersResponse_1_list{}) - } - listValue := &_QueryGroupMembersResponse_1_list{list: &x.Members} - return protoreflect.ValueOfList(listValue) - case "cosmos.group.v1.QueryGroupMembersResponse.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupMembersResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupMembersResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupMembersResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupMembersResponse.members": - lv := value.List() - clv := lv.(*_QueryGroupMembersResponse_1_list) - x.Members = *clv.list - case "cosmos.group.v1.QueryGroupMembersResponse.pagination": - x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupMembersResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupMembersResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupMembersResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupMembersResponse.members": - if x.Members == nil { - x.Members = []*GroupMember{} - } - value := &_QueryGroupMembersResponse_1_list{list: &x.Members} - return protoreflect.ValueOfList(value) - case "cosmos.group.v1.QueryGroupMembersResponse.pagination": - if x.Pagination == nil { - x.Pagination = new(v1beta1.PageResponse) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupMembersResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupMembersResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGroupMembersResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupMembersResponse.members": - list := []*GroupMember{} - return protoreflect.ValueOfList(&_QueryGroupMembersResponse_1_list{list: &list}) - case "cosmos.group.v1.QueryGroupMembersResponse.pagination": - m := new(v1beta1.PageResponse) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupMembersResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupMembersResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGroupMembersResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.QueryGroupMembersResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGroupMembersResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupMembersResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryGroupMembersResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGroupMembersResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGroupMembersResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.Members) > 0 { - for _, e := range x.Members { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGroupMembersResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Members) > 0 { - for iNdEx := len(x.Members) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Members[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGroupMembersResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupMembersResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupMembersResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Members", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Members = append(x.Members, &GroupMember{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Members[len(x.Members)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &v1beta1.PageResponse{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryGroupsByAdminRequest protoreflect.MessageDescriptor - fd_QueryGroupsByAdminRequest_admin protoreflect.FieldDescriptor - fd_QueryGroupsByAdminRequest_pagination protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_query_proto_init() - md_QueryGroupsByAdminRequest = File_cosmos_group_v1_query_proto.Messages().ByName("QueryGroupsByAdminRequest") - fd_QueryGroupsByAdminRequest_admin = md_QueryGroupsByAdminRequest.Fields().ByName("admin") - fd_QueryGroupsByAdminRequest_pagination = md_QueryGroupsByAdminRequest.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryGroupsByAdminRequest)(nil) - -type fastReflection_QueryGroupsByAdminRequest QueryGroupsByAdminRequest - -func (x *QueryGroupsByAdminRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGroupsByAdminRequest)(x) -} - -func (x *QueryGroupsByAdminRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_query_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryGroupsByAdminRequest_messageType fastReflection_QueryGroupsByAdminRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryGroupsByAdminRequest_messageType{} - -type fastReflection_QueryGroupsByAdminRequest_messageType struct{} - -func (x fastReflection_QueryGroupsByAdminRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGroupsByAdminRequest)(nil) -} -func (x fastReflection_QueryGroupsByAdminRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGroupsByAdminRequest) -} -func (x fastReflection_QueryGroupsByAdminRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGroupsByAdminRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryGroupsByAdminRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGroupsByAdminRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGroupsByAdminRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryGroupsByAdminRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGroupsByAdminRequest) New() protoreflect.Message { - return new(fastReflection_QueryGroupsByAdminRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGroupsByAdminRequest) Interface() protoreflect.ProtoMessage { - return (*QueryGroupsByAdminRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryGroupsByAdminRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Admin != "" { - value := protoreflect.ValueOfString(x.Admin) - if !f(fd_QueryGroupsByAdminRequest_admin, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryGroupsByAdminRequest_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGroupsByAdminRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupsByAdminRequest.admin": - return x.Admin != "" - case "cosmos.group.v1.QueryGroupsByAdminRequest.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsByAdminRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsByAdminRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupsByAdminRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupsByAdminRequest.admin": - x.Admin = "" - case "cosmos.group.v1.QueryGroupsByAdminRequest.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsByAdminRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsByAdminRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGroupsByAdminRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.QueryGroupsByAdminRequest.admin": - value := x.Admin - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.QueryGroupsByAdminRequest.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsByAdminRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsByAdminRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupsByAdminRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupsByAdminRequest.admin": - x.Admin = value.Interface().(string) - case "cosmos.group.v1.QueryGroupsByAdminRequest.pagination": - x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsByAdminRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsByAdminRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupsByAdminRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupsByAdminRequest.pagination": - if x.Pagination == nil { - x.Pagination = new(v1beta1.PageRequest) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - case "cosmos.group.v1.QueryGroupsByAdminRequest.admin": - panic(fmt.Errorf("field admin of message cosmos.group.v1.QueryGroupsByAdminRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsByAdminRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsByAdminRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGroupsByAdminRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupsByAdminRequest.admin": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.QueryGroupsByAdminRequest.pagination": - m := new(v1beta1.PageRequest) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsByAdminRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsByAdminRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGroupsByAdminRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.QueryGroupsByAdminRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGroupsByAdminRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupsByAdminRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryGroupsByAdminRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGroupsByAdminRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGroupsByAdminRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Admin) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGroupsByAdminRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Admin) > 0 { - i -= len(x.Admin) - copy(dAtA[i:], x.Admin) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Admin))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGroupsByAdminRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupsByAdminRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupsByAdminRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Admin = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &v1beta1.PageRequest{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_QueryGroupsByAdminResponse_1_list)(nil) - -type _QueryGroupsByAdminResponse_1_list struct { - list *[]*GroupInfo -} - -func (x *_QueryGroupsByAdminResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryGroupsByAdminResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_QueryGroupsByAdminResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*GroupInfo) - (*x.list)[i] = concreteValue -} - -func (x *_QueryGroupsByAdminResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*GroupInfo) - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryGroupsByAdminResponse_1_list) AppendMutable() protoreflect.Value { - v := new(GroupInfo) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryGroupsByAdminResponse_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_QueryGroupsByAdminResponse_1_list) NewElement() protoreflect.Value { - v := new(GroupInfo) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryGroupsByAdminResponse_1_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QueryGroupsByAdminResponse protoreflect.MessageDescriptor - fd_QueryGroupsByAdminResponse_groups protoreflect.FieldDescriptor - fd_QueryGroupsByAdminResponse_pagination protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_query_proto_init() - md_QueryGroupsByAdminResponse = File_cosmos_group_v1_query_proto.Messages().ByName("QueryGroupsByAdminResponse") - fd_QueryGroupsByAdminResponse_groups = md_QueryGroupsByAdminResponse.Fields().ByName("groups") - fd_QueryGroupsByAdminResponse_pagination = md_QueryGroupsByAdminResponse.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryGroupsByAdminResponse)(nil) - -type fastReflection_QueryGroupsByAdminResponse QueryGroupsByAdminResponse - -func (x *QueryGroupsByAdminResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGroupsByAdminResponse)(x) -} - -func (x *QueryGroupsByAdminResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_query_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryGroupsByAdminResponse_messageType fastReflection_QueryGroupsByAdminResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryGroupsByAdminResponse_messageType{} - -type fastReflection_QueryGroupsByAdminResponse_messageType struct{} - -func (x fastReflection_QueryGroupsByAdminResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGroupsByAdminResponse)(nil) -} -func (x fastReflection_QueryGroupsByAdminResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGroupsByAdminResponse) -} -func (x fastReflection_QueryGroupsByAdminResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGroupsByAdminResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryGroupsByAdminResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGroupsByAdminResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGroupsByAdminResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryGroupsByAdminResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGroupsByAdminResponse) New() protoreflect.Message { - return new(fastReflection_QueryGroupsByAdminResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGroupsByAdminResponse) Interface() protoreflect.ProtoMessage { - return (*QueryGroupsByAdminResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryGroupsByAdminResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Groups) != 0 { - value := protoreflect.ValueOfList(&_QueryGroupsByAdminResponse_1_list{list: &x.Groups}) - if !f(fd_QueryGroupsByAdminResponse_groups, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryGroupsByAdminResponse_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGroupsByAdminResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupsByAdminResponse.groups": - return len(x.Groups) != 0 - case "cosmos.group.v1.QueryGroupsByAdminResponse.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsByAdminResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsByAdminResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupsByAdminResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupsByAdminResponse.groups": - x.Groups = nil - case "cosmos.group.v1.QueryGroupsByAdminResponse.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsByAdminResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsByAdminResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGroupsByAdminResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.QueryGroupsByAdminResponse.groups": - if len(x.Groups) == 0 { - return protoreflect.ValueOfList(&_QueryGroupsByAdminResponse_1_list{}) - } - listValue := &_QueryGroupsByAdminResponse_1_list{list: &x.Groups} - return protoreflect.ValueOfList(listValue) - case "cosmos.group.v1.QueryGroupsByAdminResponse.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsByAdminResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsByAdminResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupsByAdminResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupsByAdminResponse.groups": - lv := value.List() - clv := lv.(*_QueryGroupsByAdminResponse_1_list) - x.Groups = *clv.list - case "cosmos.group.v1.QueryGroupsByAdminResponse.pagination": - x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsByAdminResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsByAdminResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupsByAdminResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupsByAdminResponse.groups": - if x.Groups == nil { - x.Groups = []*GroupInfo{} - } - value := &_QueryGroupsByAdminResponse_1_list{list: &x.Groups} - return protoreflect.ValueOfList(value) - case "cosmos.group.v1.QueryGroupsByAdminResponse.pagination": - if x.Pagination == nil { - x.Pagination = new(v1beta1.PageResponse) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsByAdminResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsByAdminResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGroupsByAdminResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupsByAdminResponse.groups": - list := []*GroupInfo{} - return protoreflect.ValueOfList(&_QueryGroupsByAdminResponse_1_list{list: &list}) - case "cosmos.group.v1.QueryGroupsByAdminResponse.pagination": - m := new(v1beta1.PageResponse) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsByAdminResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsByAdminResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGroupsByAdminResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.QueryGroupsByAdminResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGroupsByAdminResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupsByAdminResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryGroupsByAdminResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGroupsByAdminResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGroupsByAdminResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.Groups) > 0 { - for _, e := range x.Groups { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGroupsByAdminResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Groups) > 0 { - for iNdEx := len(x.Groups) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Groups[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGroupsByAdminResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupsByAdminResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupsByAdminResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Groups = append(x.Groups, &GroupInfo{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Groups[len(x.Groups)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &v1beta1.PageResponse{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryGroupPoliciesByGroupRequest protoreflect.MessageDescriptor - fd_QueryGroupPoliciesByGroupRequest_group_id protoreflect.FieldDescriptor - fd_QueryGroupPoliciesByGroupRequest_pagination protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_query_proto_init() - md_QueryGroupPoliciesByGroupRequest = File_cosmos_group_v1_query_proto.Messages().ByName("QueryGroupPoliciesByGroupRequest") - fd_QueryGroupPoliciesByGroupRequest_group_id = md_QueryGroupPoliciesByGroupRequest.Fields().ByName("group_id") - fd_QueryGroupPoliciesByGroupRequest_pagination = md_QueryGroupPoliciesByGroupRequest.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryGroupPoliciesByGroupRequest)(nil) - -type fastReflection_QueryGroupPoliciesByGroupRequest QueryGroupPoliciesByGroupRequest - -func (x *QueryGroupPoliciesByGroupRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGroupPoliciesByGroupRequest)(x) -} - -func (x *QueryGroupPoliciesByGroupRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_query_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryGroupPoliciesByGroupRequest_messageType fastReflection_QueryGroupPoliciesByGroupRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryGroupPoliciesByGroupRequest_messageType{} - -type fastReflection_QueryGroupPoliciesByGroupRequest_messageType struct{} - -func (x fastReflection_QueryGroupPoliciesByGroupRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGroupPoliciesByGroupRequest)(nil) -} -func (x fastReflection_QueryGroupPoliciesByGroupRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGroupPoliciesByGroupRequest) -} -func (x fastReflection_QueryGroupPoliciesByGroupRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGroupPoliciesByGroupRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryGroupPoliciesByGroupRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGroupPoliciesByGroupRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGroupPoliciesByGroupRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryGroupPoliciesByGroupRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGroupPoliciesByGroupRequest) New() protoreflect.Message { - return new(fastReflection_QueryGroupPoliciesByGroupRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGroupPoliciesByGroupRequest) Interface() protoreflect.ProtoMessage { - return (*QueryGroupPoliciesByGroupRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryGroupPoliciesByGroupRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.GroupId != uint64(0) { - value := protoreflect.ValueOfUint64(x.GroupId) - if !f(fd_QueryGroupPoliciesByGroupRequest_group_id, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryGroupPoliciesByGroupRequest_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGroupPoliciesByGroupRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupPoliciesByGroupRequest.group_id": - return x.GroupId != uint64(0) - case "cosmos.group.v1.QueryGroupPoliciesByGroupRequest.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPoliciesByGroupRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPoliciesByGroupRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupPoliciesByGroupRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupPoliciesByGroupRequest.group_id": - x.GroupId = uint64(0) - case "cosmos.group.v1.QueryGroupPoliciesByGroupRequest.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPoliciesByGroupRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPoliciesByGroupRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGroupPoliciesByGroupRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.QueryGroupPoliciesByGroupRequest.group_id": - value := x.GroupId - return protoreflect.ValueOfUint64(value) - case "cosmos.group.v1.QueryGroupPoliciesByGroupRequest.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPoliciesByGroupRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPoliciesByGroupRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupPoliciesByGroupRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupPoliciesByGroupRequest.group_id": - x.GroupId = value.Uint() - case "cosmos.group.v1.QueryGroupPoliciesByGroupRequest.pagination": - x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPoliciesByGroupRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPoliciesByGroupRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupPoliciesByGroupRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupPoliciesByGroupRequest.pagination": - if x.Pagination == nil { - x.Pagination = new(v1beta1.PageRequest) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - case "cosmos.group.v1.QueryGroupPoliciesByGroupRequest.group_id": - panic(fmt.Errorf("field group_id of message cosmos.group.v1.QueryGroupPoliciesByGroupRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPoliciesByGroupRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPoliciesByGroupRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGroupPoliciesByGroupRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupPoliciesByGroupRequest.group_id": - return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.group.v1.QueryGroupPoliciesByGroupRequest.pagination": - m := new(v1beta1.PageRequest) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPoliciesByGroupRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPoliciesByGroupRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGroupPoliciesByGroupRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.QueryGroupPoliciesByGroupRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGroupPoliciesByGroupRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupPoliciesByGroupRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryGroupPoliciesByGroupRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGroupPoliciesByGroupRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGroupPoliciesByGroupRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.GroupId != 0 { - n += 1 + runtime.Sov(uint64(x.GroupId)) - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGroupPoliciesByGroupRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if x.GroupId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.GroupId)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGroupPoliciesByGroupRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupPoliciesByGroupRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupPoliciesByGroupRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - x.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.GroupId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &v1beta1.PageRequest{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_QueryGroupPoliciesByGroupResponse_1_list)(nil) - -type _QueryGroupPoliciesByGroupResponse_1_list struct { - list *[]*GroupPolicyInfo -} - -func (x *_QueryGroupPoliciesByGroupResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryGroupPoliciesByGroupResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_QueryGroupPoliciesByGroupResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*GroupPolicyInfo) - (*x.list)[i] = concreteValue -} - -func (x *_QueryGroupPoliciesByGroupResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*GroupPolicyInfo) - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryGroupPoliciesByGroupResponse_1_list) AppendMutable() protoreflect.Value { - v := new(GroupPolicyInfo) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryGroupPoliciesByGroupResponse_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_QueryGroupPoliciesByGroupResponse_1_list) NewElement() protoreflect.Value { - v := new(GroupPolicyInfo) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryGroupPoliciesByGroupResponse_1_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QueryGroupPoliciesByGroupResponse protoreflect.MessageDescriptor - fd_QueryGroupPoliciesByGroupResponse_group_policies protoreflect.FieldDescriptor - fd_QueryGroupPoliciesByGroupResponse_pagination protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_query_proto_init() - md_QueryGroupPoliciesByGroupResponse = File_cosmos_group_v1_query_proto.Messages().ByName("QueryGroupPoliciesByGroupResponse") - fd_QueryGroupPoliciesByGroupResponse_group_policies = md_QueryGroupPoliciesByGroupResponse.Fields().ByName("group_policies") - fd_QueryGroupPoliciesByGroupResponse_pagination = md_QueryGroupPoliciesByGroupResponse.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryGroupPoliciesByGroupResponse)(nil) - -type fastReflection_QueryGroupPoliciesByGroupResponse QueryGroupPoliciesByGroupResponse - -func (x *QueryGroupPoliciesByGroupResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGroupPoliciesByGroupResponse)(x) -} - -func (x *QueryGroupPoliciesByGroupResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_query_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryGroupPoliciesByGroupResponse_messageType fastReflection_QueryGroupPoliciesByGroupResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryGroupPoliciesByGroupResponse_messageType{} - -type fastReflection_QueryGroupPoliciesByGroupResponse_messageType struct{} - -func (x fastReflection_QueryGroupPoliciesByGroupResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGroupPoliciesByGroupResponse)(nil) -} -func (x fastReflection_QueryGroupPoliciesByGroupResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGroupPoliciesByGroupResponse) -} -func (x fastReflection_QueryGroupPoliciesByGroupResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGroupPoliciesByGroupResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryGroupPoliciesByGroupResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGroupPoliciesByGroupResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGroupPoliciesByGroupResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryGroupPoliciesByGroupResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGroupPoliciesByGroupResponse) New() protoreflect.Message { - return new(fastReflection_QueryGroupPoliciesByGroupResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGroupPoliciesByGroupResponse) Interface() protoreflect.ProtoMessage { - return (*QueryGroupPoliciesByGroupResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryGroupPoliciesByGroupResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.GroupPolicies) != 0 { - value := protoreflect.ValueOfList(&_QueryGroupPoliciesByGroupResponse_1_list{list: &x.GroupPolicies}) - if !f(fd_QueryGroupPoliciesByGroupResponse_group_policies, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryGroupPoliciesByGroupResponse_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGroupPoliciesByGroupResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupPoliciesByGroupResponse.group_policies": - return len(x.GroupPolicies) != 0 - case "cosmos.group.v1.QueryGroupPoliciesByGroupResponse.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPoliciesByGroupResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPoliciesByGroupResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupPoliciesByGroupResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupPoliciesByGroupResponse.group_policies": - x.GroupPolicies = nil - case "cosmos.group.v1.QueryGroupPoliciesByGroupResponse.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPoliciesByGroupResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPoliciesByGroupResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGroupPoliciesByGroupResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.QueryGroupPoliciesByGroupResponse.group_policies": - if len(x.GroupPolicies) == 0 { - return protoreflect.ValueOfList(&_QueryGroupPoliciesByGroupResponse_1_list{}) - } - listValue := &_QueryGroupPoliciesByGroupResponse_1_list{list: &x.GroupPolicies} - return protoreflect.ValueOfList(listValue) - case "cosmos.group.v1.QueryGroupPoliciesByGroupResponse.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPoliciesByGroupResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPoliciesByGroupResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupPoliciesByGroupResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupPoliciesByGroupResponse.group_policies": - lv := value.List() - clv := lv.(*_QueryGroupPoliciesByGroupResponse_1_list) - x.GroupPolicies = *clv.list - case "cosmos.group.v1.QueryGroupPoliciesByGroupResponse.pagination": - x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPoliciesByGroupResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPoliciesByGroupResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupPoliciesByGroupResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupPoliciesByGroupResponse.group_policies": - if x.GroupPolicies == nil { - x.GroupPolicies = []*GroupPolicyInfo{} - } - value := &_QueryGroupPoliciesByGroupResponse_1_list{list: &x.GroupPolicies} - return protoreflect.ValueOfList(value) - case "cosmos.group.v1.QueryGroupPoliciesByGroupResponse.pagination": - if x.Pagination == nil { - x.Pagination = new(v1beta1.PageResponse) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPoliciesByGroupResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPoliciesByGroupResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGroupPoliciesByGroupResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupPoliciesByGroupResponse.group_policies": - list := []*GroupPolicyInfo{} - return protoreflect.ValueOfList(&_QueryGroupPoliciesByGroupResponse_1_list{list: &list}) - case "cosmos.group.v1.QueryGroupPoliciesByGroupResponse.pagination": - m := new(v1beta1.PageResponse) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPoliciesByGroupResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPoliciesByGroupResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGroupPoliciesByGroupResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.QueryGroupPoliciesByGroupResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGroupPoliciesByGroupResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupPoliciesByGroupResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryGroupPoliciesByGroupResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGroupPoliciesByGroupResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGroupPoliciesByGroupResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.GroupPolicies) > 0 { - for _, e := range x.GroupPolicies { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGroupPoliciesByGroupResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.GroupPolicies) > 0 { - for iNdEx := len(x.GroupPolicies) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.GroupPolicies[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGroupPoliciesByGroupResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupPoliciesByGroupResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupPoliciesByGroupResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupPolicies", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.GroupPolicies = append(x.GroupPolicies, &GroupPolicyInfo{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.GroupPolicies[len(x.GroupPolicies)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &v1beta1.PageResponse{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryGroupPoliciesByAdminRequest protoreflect.MessageDescriptor - fd_QueryGroupPoliciesByAdminRequest_admin protoreflect.FieldDescriptor - fd_QueryGroupPoliciesByAdminRequest_pagination protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_query_proto_init() - md_QueryGroupPoliciesByAdminRequest = File_cosmos_group_v1_query_proto.Messages().ByName("QueryGroupPoliciesByAdminRequest") - fd_QueryGroupPoliciesByAdminRequest_admin = md_QueryGroupPoliciesByAdminRequest.Fields().ByName("admin") - fd_QueryGroupPoliciesByAdminRequest_pagination = md_QueryGroupPoliciesByAdminRequest.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryGroupPoliciesByAdminRequest)(nil) - -type fastReflection_QueryGroupPoliciesByAdminRequest QueryGroupPoliciesByAdminRequest - -func (x *QueryGroupPoliciesByAdminRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGroupPoliciesByAdminRequest)(x) -} - -func (x *QueryGroupPoliciesByAdminRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_query_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryGroupPoliciesByAdminRequest_messageType fastReflection_QueryGroupPoliciesByAdminRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryGroupPoliciesByAdminRequest_messageType{} - -type fastReflection_QueryGroupPoliciesByAdminRequest_messageType struct{} - -func (x fastReflection_QueryGroupPoliciesByAdminRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGroupPoliciesByAdminRequest)(nil) -} -func (x fastReflection_QueryGroupPoliciesByAdminRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGroupPoliciesByAdminRequest) -} -func (x fastReflection_QueryGroupPoliciesByAdminRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGroupPoliciesByAdminRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryGroupPoliciesByAdminRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGroupPoliciesByAdminRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGroupPoliciesByAdminRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryGroupPoliciesByAdminRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGroupPoliciesByAdminRequest) New() protoreflect.Message { - return new(fastReflection_QueryGroupPoliciesByAdminRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGroupPoliciesByAdminRequest) Interface() protoreflect.ProtoMessage { - return (*QueryGroupPoliciesByAdminRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryGroupPoliciesByAdminRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Admin != "" { - value := protoreflect.ValueOfString(x.Admin) - if !f(fd_QueryGroupPoliciesByAdminRequest_admin, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryGroupPoliciesByAdminRequest_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGroupPoliciesByAdminRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupPoliciesByAdminRequest.admin": - return x.Admin != "" - case "cosmos.group.v1.QueryGroupPoliciesByAdminRequest.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPoliciesByAdminRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPoliciesByAdminRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupPoliciesByAdminRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupPoliciesByAdminRequest.admin": - x.Admin = "" - case "cosmos.group.v1.QueryGroupPoliciesByAdminRequest.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPoliciesByAdminRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPoliciesByAdminRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGroupPoliciesByAdminRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.QueryGroupPoliciesByAdminRequest.admin": - value := x.Admin - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.QueryGroupPoliciesByAdminRequest.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPoliciesByAdminRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPoliciesByAdminRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupPoliciesByAdminRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupPoliciesByAdminRequest.admin": - x.Admin = value.Interface().(string) - case "cosmos.group.v1.QueryGroupPoliciesByAdminRequest.pagination": - x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPoliciesByAdminRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPoliciesByAdminRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupPoliciesByAdminRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupPoliciesByAdminRequest.pagination": - if x.Pagination == nil { - x.Pagination = new(v1beta1.PageRequest) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - case "cosmos.group.v1.QueryGroupPoliciesByAdminRequest.admin": - panic(fmt.Errorf("field admin of message cosmos.group.v1.QueryGroupPoliciesByAdminRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPoliciesByAdminRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPoliciesByAdminRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGroupPoliciesByAdminRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupPoliciesByAdminRequest.admin": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.QueryGroupPoliciesByAdminRequest.pagination": - m := new(v1beta1.PageRequest) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPoliciesByAdminRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPoliciesByAdminRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGroupPoliciesByAdminRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.QueryGroupPoliciesByAdminRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGroupPoliciesByAdminRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupPoliciesByAdminRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryGroupPoliciesByAdminRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGroupPoliciesByAdminRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGroupPoliciesByAdminRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Admin) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGroupPoliciesByAdminRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Admin) > 0 { - i -= len(x.Admin) - copy(dAtA[i:], x.Admin) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Admin))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGroupPoliciesByAdminRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupPoliciesByAdminRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupPoliciesByAdminRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Admin = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &v1beta1.PageRequest{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_QueryGroupPoliciesByAdminResponse_1_list)(nil) - -type _QueryGroupPoliciesByAdminResponse_1_list struct { - list *[]*GroupPolicyInfo -} - -func (x *_QueryGroupPoliciesByAdminResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryGroupPoliciesByAdminResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_QueryGroupPoliciesByAdminResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*GroupPolicyInfo) - (*x.list)[i] = concreteValue -} - -func (x *_QueryGroupPoliciesByAdminResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*GroupPolicyInfo) - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryGroupPoliciesByAdminResponse_1_list) AppendMutable() protoreflect.Value { - v := new(GroupPolicyInfo) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryGroupPoliciesByAdminResponse_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_QueryGroupPoliciesByAdminResponse_1_list) NewElement() protoreflect.Value { - v := new(GroupPolicyInfo) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryGroupPoliciesByAdminResponse_1_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QueryGroupPoliciesByAdminResponse protoreflect.MessageDescriptor - fd_QueryGroupPoliciesByAdminResponse_group_policies protoreflect.FieldDescriptor - fd_QueryGroupPoliciesByAdminResponse_pagination protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_query_proto_init() - md_QueryGroupPoliciesByAdminResponse = File_cosmos_group_v1_query_proto.Messages().ByName("QueryGroupPoliciesByAdminResponse") - fd_QueryGroupPoliciesByAdminResponse_group_policies = md_QueryGroupPoliciesByAdminResponse.Fields().ByName("group_policies") - fd_QueryGroupPoliciesByAdminResponse_pagination = md_QueryGroupPoliciesByAdminResponse.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryGroupPoliciesByAdminResponse)(nil) - -type fastReflection_QueryGroupPoliciesByAdminResponse QueryGroupPoliciesByAdminResponse - -func (x *QueryGroupPoliciesByAdminResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGroupPoliciesByAdminResponse)(x) -} - -func (x *QueryGroupPoliciesByAdminResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_query_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryGroupPoliciesByAdminResponse_messageType fastReflection_QueryGroupPoliciesByAdminResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryGroupPoliciesByAdminResponse_messageType{} - -type fastReflection_QueryGroupPoliciesByAdminResponse_messageType struct{} - -func (x fastReflection_QueryGroupPoliciesByAdminResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGroupPoliciesByAdminResponse)(nil) -} -func (x fastReflection_QueryGroupPoliciesByAdminResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGroupPoliciesByAdminResponse) -} -func (x fastReflection_QueryGroupPoliciesByAdminResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGroupPoliciesByAdminResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryGroupPoliciesByAdminResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGroupPoliciesByAdminResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGroupPoliciesByAdminResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryGroupPoliciesByAdminResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGroupPoliciesByAdminResponse) New() protoreflect.Message { - return new(fastReflection_QueryGroupPoliciesByAdminResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGroupPoliciesByAdminResponse) Interface() protoreflect.ProtoMessage { - return (*QueryGroupPoliciesByAdminResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryGroupPoliciesByAdminResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.GroupPolicies) != 0 { - value := protoreflect.ValueOfList(&_QueryGroupPoliciesByAdminResponse_1_list{list: &x.GroupPolicies}) - if !f(fd_QueryGroupPoliciesByAdminResponse_group_policies, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryGroupPoliciesByAdminResponse_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGroupPoliciesByAdminResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupPoliciesByAdminResponse.group_policies": - return len(x.GroupPolicies) != 0 - case "cosmos.group.v1.QueryGroupPoliciesByAdminResponse.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPoliciesByAdminResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPoliciesByAdminResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupPoliciesByAdminResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupPoliciesByAdminResponse.group_policies": - x.GroupPolicies = nil - case "cosmos.group.v1.QueryGroupPoliciesByAdminResponse.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPoliciesByAdminResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPoliciesByAdminResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGroupPoliciesByAdminResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.QueryGroupPoliciesByAdminResponse.group_policies": - if len(x.GroupPolicies) == 0 { - return protoreflect.ValueOfList(&_QueryGroupPoliciesByAdminResponse_1_list{}) - } - listValue := &_QueryGroupPoliciesByAdminResponse_1_list{list: &x.GroupPolicies} - return protoreflect.ValueOfList(listValue) - case "cosmos.group.v1.QueryGroupPoliciesByAdminResponse.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPoliciesByAdminResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPoliciesByAdminResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupPoliciesByAdminResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupPoliciesByAdminResponse.group_policies": - lv := value.List() - clv := lv.(*_QueryGroupPoliciesByAdminResponse_1_list) - x.GroupPolicies = *clv.list - case "cosmos.group.v1.QueryGroupPoliciesByAdminResponse.pagination": - x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPoliciesByAdminResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPoliciesByAdminResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupPoliciesByAdminResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupPoliciesByAdminResponse.group_policies": - if x.GroupPolicies == nil { - x.GroupPolicies = []*GroupPolicyInfo{} - } - value := &_QueryGroupPoliciesByAdminResponse_1_list{list: &x.GroupPolicies} - return protoreflect.ValueOfList(value) - case "cosmos.group.v1.QueryGroupPoliciesByAdminResponse.pagination": - if x.Pagination == nil { - x.Pagination = new(v1beta1.PageResponse) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPoliciesByAdminResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPoliciesByAdminResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGroupPoliciesByAdminResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupPoliciesByAdminResponse.group_policies": - list := []*GroupPolicyInfo{} - return protoreflect.ValueOfList(&_QueryGroupPoliciesByAdminResponse_1_list{list: &list}) - case "cosmos.group.v1.QueryGroupPoliciesByAdminResponse.pagination": - m := new(v1beta1.PageResponse) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupPoliciesByAdminResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupPoliciesByAdminResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGroupPoliciesByAdminResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.QueryGroupPoliciesByAdminResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGroupPoliciesByAdminResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupPoliciesByAdminResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryGroupPoliciesByAdminResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGroupPoliciesByAdminResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGroupPoliciesByAdminResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.GroupPolicies) > 0 { - for _, e := range x.GroupPolicies { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGroupPoliciesByAdminResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.GroupPolicies) > 0 { - for iNdEx := len(x.GroupPolicies) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.GroupPolicies[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGroupPoliciesByAdminResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupPoliciesByAdminResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupPoliciesByAdminResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupPolicies", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.GroupPolicies = append(x.GroupPolicies, &GroupPolicyInfo{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.GroupPolicies[len(x.GroupPolicies)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &v1beta1.PageResponse{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryProposalRequest protoreflect.MessageDescriptor - fd_QueryProposalRequest_proposal_id protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_query_proto_init() - md_QueryProposalRequest = File_cosmos_group_v1_query_proto.Messages().ByName("QueryProposalRequest") - fd_QueryProposalRequest_proposal_id = md_QueryProposalRequest.Fields().ByName("proposal_id") -} - -var _ protoreflect.Message = (*fastReflection_QueryProposalRequest)(nil) - -type fastReflection_QueryProposalRequest QueryProposalRequest - -func (x *QueryProposalRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryProposalRequest)(x) -} - -func (x *QueryProposalRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_query_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryProposalRequest_messageType fastReflection_QueryProposalRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryProposalRequest_messageType{} - -type fastReflection_QueryProposalRequest_messageType struct{} - -func (x fastReflection_QueryProposalRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryProposalRequest)(nil) -} -func (x fastReflection_QueryProposalRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryProposalRequest) -} -func (x fastReflection_QueryProposalRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryProposalRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryProposalRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryProposalRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryProposalRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryProposalRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryProposalRequest) New() protoreflect.Message { - return new(fastReflection_QueryProposalRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryProposalRequest) Interface() protoreflect.ProtoMessage { - return (*QueryProposalRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryProposalRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ProposalId != uint64(0) { - value := protoreflect.ValueOfUint64(x.ProposalId) - if !f(fd_QueryProposalRequest_proposal_id, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryProposalRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.QueryProposalRequest.proposal_id": - return x.ProposalId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryProposalRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryProposalRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryProposalRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.QueryProposalRequest.proposal_id": - x.ProposalId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryProposalRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryProposalRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryProposalRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.QueryProposalRequest.proposal_id": - value := x.ProposalId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryProposalRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryProposalRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryProposalRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.QueryProposalRequest.proposal_id": - x.ProposalId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryProposalRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryProposalRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryProposalRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryProposalRequest.proposal_id": - panic(fmt.Errorf("field proposal_id of message cosmos.group.v1.QueryProposalRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryProposalRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryProposalRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryProposalRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryProposalRequest.proposal_id": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryProposalRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryProposalRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryProposalRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.QueryProposalRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryProposalRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryProposalRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryProposalRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryProposalRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryProposalRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.ProposalId != 0 { - n += 1 + runtime.Sov(uint64(x.ProposalId)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryProposalRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.ProposalId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ProposalId)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryProposalRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) - } - x.ProposalId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.ProposalId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryProposalResponse protoreflect.MessageDescriptor - fd_QueryProposalResponse_proposal protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_query_proto_init() - md_QueryProposalResponse = File_cosmos_group_v1_query_proto.Messages().ByName("QueryProposalResponse") - fd_QueryProposalResponse_proposal = md_QueryProposalResponse.Fields().ByName("proposal") -} - -var _ protoreflect.Message = (*fastReflection_QueryProposalResponse)(nil) - -type fastReflection_QueryProposalResponse QueryProposalResponse - -func (x *QueryProposalResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryProposalResponse)(x) -} - -func (x *QueryProposalResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_query_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryProposalResponse_messageType fastReflection_QueryProposalResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryProposalResponse_messageType{} - -type fastReflection_QueryProposalResponse_messageType struct{} - -func (x fastReflection_QueryProposalResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryProposalResponse)(nil) -} -func (x fastReflection_QueryProposalResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryProposalResponse) -} -func (x fastReflection_QueryProposalResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryProposalResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryProposalResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryProposalResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryProposalResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryProposalResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryProposalResponse) New() protoreflect.Message { - return new(fastReflection_QueryProposalResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryProposalResponse) Interface() protoreflect.ProtoMessage { - return (*QueryProposalResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryProposalResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Proposal != nil { - value := protoreflect.ValueOfMessage(x.Proposal.ProtoReflect()) - if !f(fd_QueryProposalResponse_proposal, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryProposalResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.QueryProposalResponse.proposal": - return x.Proposal != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryProposalResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryProposalResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryProposalResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.QueryProposalResponse.proposal": - x.Proposal = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryProposalResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryProposalResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryProposalResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.QueryProposalResponse.proposal": - value := x.Proposal - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryProposalResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryProposalResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryProposalResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.QueryProposalResponse.proposal": - x.Proposal = value.Message().Interface().(*Proposal) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryProposalResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryProposalResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryProposalResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryProposalResponse.proposal": - if x.Proposal == nil { - x.Proposal = new(Proposal) - } - return protoreflect.ValueOfMessage(x.Proposal.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryProposalResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryProposalResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryProposalResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryProposalResponse.proposal": - m := new(Proposal) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryProposalResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryProposalResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryProposalResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.QueryProposalResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryProposalResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryProposalResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryProposalResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryProposalResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryProposalResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Proposal != nil { - l = options.Size(x.Proposal) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryProposalResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Proposal != nil { - encoded, err := options.Marshal(x.Proposal) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryProposalResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Proposal == nil { - x.Proposal = &Proposal{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Proposal); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryProposalsByGroupPolicyRequest protoreflect.MessageDescriptor - fd_QueryProposalsByGroupPolicyRequest_address protoreflect.FieldDescriptor - fd_QueryProposalsByGroupPolicyRequest_pagination protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_query_proto_init() - md_QueryProposalsByGroupPolicyRequest = File_cosmos_group_v1_query_proto.Messages().ByName("QueryProposalsByGroupPolicyRequest") - fd_QueryProposalsByGroupPolicyRequest_address = md_QueryProposalsByGroupPolicyRequest.Fields().ByName("address") - fd_QueryProposalsByGroupPolicyRequest_pagination = md_QueryProposalsByGroupPolicyRequest.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryProposalsByGroupPolicyRequest)(nil) - -type fastReflection_QueryProposalsByGroupPolicyRequest QueryProposalsByGroupPolicyRequest - -func (x *QueryProposalsByGroupPolicyRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryProposalsByGroupPolicyRequest)(x) -} - -func (x *QueryProposalsByGroupPolicyRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_query_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryProposalsByGroupPolicyRequest_messageType fastReflection_QueryProposalsByGroupPolicyRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryProposalsByGroupPolicyRequest_messageType{} - -type fastReflection_QueryProposalsByGroupPolicyRequest_messageType struct{} - -func (x fastReflection_QueryProposalsByGroupPolicyRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryProposalsByGroupPolicyRequest)(nil) -} -func (x fastReflection_QueryProposalsByGroupPolicyRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryProposalsByGroupPolicyRequest) -} -func (x fastReflection_QueryProposalsByGroupPolicyRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryProposalsByGroupPolicyRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryProposalsByGroupPolicyRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryProposalsByGroupPolicyRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryProposalsByGroupPolicyRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryProposalsByGroupPolicyRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryProposalsByGroupPolicyRequest) New() protoreflect.Message { - return new(fastReflection_QueryProposalsByGroupPolicyRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryProposalsByGroupPolicyRequest) Interface() protoreflect.ProtoMessage { - return (*QueryProposalsByGroupPolicyRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryProposalsByGroupPolicyRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Address != "" { - value := protoreflect.ValueOfString(x.Address) - if !f(fd_QueryProposalsByGroupPolicyRequest_address, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryProposalsByGroupPolicyRequest_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryProposalsByGroupPolicyRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.QueryProposalsByGroupPolicyRequest.address": - return x.Address != "" - case "cosmos.group.v1.QueryProposalsByGroupPolicyRequest.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryProposalsByGroupPolicyRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryProposalsByGroupPolicyRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryProposalsByGroupPolicyRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.QueryProposalsByGroupPolicyRequest.address": - x.Address = "" - case "cosmos.group.v1.QueryProposalsByGroupPolicyRequest.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryProposalsByGroupPolicyRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryProposalsByGroupPolicyRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryProposalsByGroupPolicyRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.QueryProposalsByGroupPolicyRequest.address": - value := x.Address - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.QueryProposalsByGroupPolicyRequest.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryProposalsByGroupPolicyRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryProposalsByGroupPolicyRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryProposalsByGroupPolicyRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.QueryProposalsByGroupPolicyRequest.address": - x.Address = value.Interface().(string) - case "cosmos.group.v1.QueryProposalsByGroupPolicyRequest.pagination": - x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryProposalsByGroupPolicyRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryProposalsByGroupPolicyRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryProposalsByGroupPolicyRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryProposalsByGroupPolicyRequest.pagination": - if x.Pagination == nil { - x.Pagination = new(v1beta1.PageRequest) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - case "cosmos.group.v1.QueryProposalsByGroupPolicyRequest.address": - panic(fmt.Errorf("field address of message cosmos.group.v1.QueryProposalsByGroupPolicyRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryProposalsByGroupPolicyRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryProposalsByGroupPolicyRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryProposalsByGroupPolicyRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryProposalsByGroupPolicyRequest.address": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.QueryProposalsByGroupPolicyRequest.pagination": - m := new(v1beta1.PageRequest) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryProposalsByGroupPolicyRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryProposalsByGroupPolicyRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryProposalsByGroupPolicyRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.QueryProposalsByGroupPolicyRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryProposalsByGroupPolicyRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryProposalsByGroupPolicyRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryProposalsByGroupPolicyRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryProposalsByGroupPolicyRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryProposalsByGroupPolicyRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Address) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryProposalsByGroupPolicyRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Address) > 0 { - i -= len(x.Address) - copy(dAtA[i:], x.Address) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryProposalsByGroupPolicyRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalsByGroupPolicyRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalsByGroupPolicyRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &v1beta1.PageRequest{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_QueryProposalsByGroupPolicyResponse_1_list)(nil) - -type _QueryProposalsByGroupPolicyResponse_1_list struct { - list *[]*Proposal -} - -func (x *_QueryProposalsByGroupPolicyResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryProposalsByGroupPolicyResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_QueryProposalsByGroupPolicyResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Proposal) - (*x.list)[i] = concreteValue -} - -func (x *_QueryProposalsByGroupPolicyResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Proposal) - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryProposalsByGroupPolicyResponse_1_list) AppendMutable() protoreflect.Value { - v := new(Proposal) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryProposalsByGroupPolicyResponse_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_QueryProposalsByGroupPolicyResponse_1_list) NewElement() protoreflect.Value { - v := new(Proposal) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryProposalsByGroupPolicyResponse_1_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QueryProposalsByGroupPolicyResponse protoreflect.MessageDescriptor - fd_QueryProposalsByGroupPolicyResponse_proposals protoreflect.FieldDescriptor - fd_QueryProposalsByGroupPolicyResponse_pagination protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_query_proto_init() - md_QueryProposalsByGroupPolicyResponse = File_cosmos_group_v1_query_proto.Messages().ByName("QueryProposalsByGroupPolicyResponse") - fd_QueryProposalsByGroupPolicyResponse_proposals = md_QueryProposalsByGroupPolicyResponse.Fields().ByName("proposals") - fd_QueryProposalsByGroupPolicyResponse_pagination = md_QueryProposalsByGroupPolicyResponse.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryProposalsByGroupPolicyResponse)(nil) - -type fastReflection_QueryProposalsByGroupPolicyResponse QueryProposalsByGroupPolicyResponse - -func (x *QueryProposalsByGroupPolicyResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryProposalsByGroupPolicyResponse)(x) -} - -func (x *QueryProposalsByGroupPolicyResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_query_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryProposalsByGroupPolicyResponse_messageType fastReflection_QueryProposalsByGroupPolicyResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryProposalsByGroupPolicyResponse_messageType{} - -type fastReflection_QueryProposalsByGroupPolicyResponse_messageType struct{} - -func (x fastReflection_QueryProposalsByGroupPolicyResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryProposalsByGroupPolicyResponse)(nil) -} -func (x fastReflection_QueryProposalsByGroupPolicyResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryProposalsByGroupPolicyResponse) -} -func (x fastReflection_QueryProposalsByGroupPolicyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryProposalsByGroupPolicyResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryProposalsByGroupPolicyResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryProposalsByGroupPolicyResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryProposalsByGroupPolicyResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryProposalsByGroupPolicyResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryProposalsByGroupPolicyResponse) New() protoreflect.Message { - return new(fastReflection_QueryProposalsByGroupPolicyResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryProposalsByGroupPolicyResponse) Interface() protoreflect.ProtoMessage { - return (*QueryProposalsByGroupPolicyResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryProposalsByGroupPolicyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Proposals) != 0 { - value := protoreflect.ValueOfList(&_QueryProposalsByGroupPolicyResponse_1_list{list: &x.Proposals}) - if !f(fd_QueryProposalsByGroupPolicyResponse_proposals, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryProposalsByGroupPolicyResponse_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryProposalsByGroupPolicyResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.QueryProposalsByGroupPolicyResponse.proposals": - return len(x.Proposals) != 0 - case "cosmos.group.v1.QueryProposalsByGroupPolicyResponse.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryProposalsByGroupPolicyResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryProposalsByGroupPolicyResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryProposalsByGroupPolicyResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.QueryProposalsByGroupPolicyResponse.proposals": - x.Proposals = nil - case "cosmos.group.v1.QueryProposalsByGroupPolicyResponse.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryProposalsByGroupPolicyResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryProposalsByGroupPolicyResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryProposalsByGroupPolicyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.QueryProposalsByGroupPolicyResponse.proposals": - if len(x.Proposals) == 0 { - return protoreflect.ValueOfList(&_QueryProposalsByGroupPolicyResponse_1_list{}) - } - listValue := &_QueryProposalsByGroupPolicyResponse_1_list{list: &x.Proposals} - return protoreflect.ValueOfList(listValue) - case "cosmos.group.v1.QueryProposalsByGroupPolicyResponse.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryProposalsByGroupPolicyResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryProposalsByGroupPolicyResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryProposalsByGroupPolicyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.QueryProposalsByGroupPolicyResponse.proposals": - lv := value.List() - clv := lv.(*_QueryProposalsByGroupPolicyResponse_1_list) - x.Proposals = *clv.list - case "cosmos.group.v1.QueryProposalsByGroupPolicyResponse.pagination": - x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryProposalsByGroupPolicyResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryProposalsByGroupPolicyResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryProposalsByGroupPolicyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryProposalsByGroupPolicyResponse.proposals": - if x.Proposals == nil { - x.Proposals = []*Proposal{} - } - value := &_QueryProposalsByGroupPolicyResponse_1_list{list: &x.Proposals} - return protoreflect.ValueOfList(value) - case "cosmos.group.v1.QueryProposalsByGroupPolicyResponse.pagination": - if x.Pagination == nil { - x.Pagination = new(v1beta1.PageResponse) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryProposalsByGroupPolicyResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryProposalsByGroupPolicyResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryProposalsByGroupPolicyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryProposalsByGroupPolicyResponse.proposals": - list := []*Proposal{} - return protoreflect.ValueOfList(&_QueryProposalsByGroupPolicyResponse_1_list{list: &list}) - case "cosmos.group.v1.QueryProposalsByGroupPolicyResponse.pagination": - m := new(v1beta1.PageResponse) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryProposalsByGroupPolicyResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryProposalsByGroupPolicyResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryProposalsByGroupPolicyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.QueryProposalsByGroupPolicyResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryProposalsByGroupPolicyResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryProposalsByGroupPolicyResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryProposalsByGroupPolicyResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryProposalsByGroupPolicyResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryProposalsByGroupPolicyResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.Proposals) > 0 { - for _, e := range x.Proposals { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryProposalsByGroupPolicyResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Proposals) > 0 { - for iNdEx := len(x.Proposals) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Proposals[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryProposalsByGroupPolicyResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalsByGroupPolicyResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalsByGroupPolicyResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposals", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Proposals = append(x.Proposals, &Proposal{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Proposals[len(x.Proposals)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &v1beta1.PageResponse{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryVoteByProposalVoterRequest protoreflect.MessageDescriptor - fd_QueryVoteByProposalVoterRequest_proposal_id protoreflect.FieldDescriptor - fd_QueryVoteByProposalVoterRequest_voter protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_query_proto_init() - md_QueryVoteByProposalVoterRequest = File_cosmos_group_v1_query_proto.Messages().ByName("QueryVoteByProposalVoterRequest") - fd_QueryVoteByProposalVoterRequest_proposal_id = md_QueryVoteByProposalVoterRequest.Fields().ByName("proposal_id") - fd_QueryVoteByProposalVoterRequest_voter = md_QueryVoteByProposalVoterRequest.Fields().ByName("voter") -} - -var _ protoreflect.Message = (*fastReflection_QueryVoteByProposalVoterRequest)(nil) - -type fastReflection_QueryVoteByProposalVoterRequest QueryVoteByProposalVoterRequest - -func (x *QueryVoteByProposalVoterRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryVoteByProposalVoterRequest)(x) -} - -func (x *QueryVoteByProposalVoterRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_query_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryVoteByProposalVoterRequest_messageType fastReflection_QueryVoteByProposalVoterRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryVoteByProposalVoterRequest_messageType{} - -type fastReflection_QueryVoteByProposalVoterRequest_messageType struct{} - -func (x fastReflection_QueryVoteByProposalVoterRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryVoteByProposalVoterRequest)(nil) -} -func (x fastReflection_QueryVoteByProposalVoterRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryVoteByProposalVoterRequest) -} -func (x fastReflection_QueryVoteByProposalVoterRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryVoteByProposalVoterRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryVoteByProposalVoterRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryVoteByProposalVoterRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryVoteByProposalVoterRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryVoteByProposalVoterRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryVoteByProposalVoterRequest) New() protoreflect.Message { - return new(fastReflection_QueryVoteByProposalVoterRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryVoteByProposalVoterRequest) Interface() protoreflect.ProtoMessage { - return (*QueryVoteByProposalVoterRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryVoteByProposalVoterRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ProposalId != uint64(0) { - value := protoreflect.ValueOfUint64(x.ProposalId) - if !f(fd_QueryVoteByProposalVoterRequest_proposal_id, value) { - return - } - } - if x.Voter != "" { - value := protoreflect.ValueOfString(x.Voter) - if !f(fd_QueryVoteByProposalVoterRequest_voter, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryVoteByProposalVoterRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.QueryVoteByProposalVoterRequest.proposal_id": - return x.ProposalId != uint64(0) - case "cosmos.group.v1.QueryVoteByProposalVoterRequest.voter": - return x.Voter != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVoteByProposalVoterRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVoteByProposalVoterRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryVoteByProposalVoterRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.QueryVoteByProposalVoterRequest.proposal_id": - x.ProposalId = uint64(0) - case "cosmos.group.v1.QueryVoteByProposalVoterRequest.voter": - x.Voter = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVoteByProposalVoterRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVoteByProposalVoterRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryVoteByProposalVoterRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.QueryVoteByProposalVoterRequest.proposal_id": - value := x.ProposalId - return protoreflect.ValueOfUint64(value) - case "cosmos.group.v1.QueryVoteByProposalVoterRequest.voter": - value := x.Voter - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVoteByProposalVoterRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVoteByProposalVoterRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryVoteByProposalVoterRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.QueryVoteByProposalVoterRequest.proposal_id": - x.ProposalId = value.Uint() - case "cosmos.group.v1.QueryVoteByProposalVoterRequest.voter": - x.Voter = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVoteByProposalVoterRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVoteByProposalVoterRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryVoteByProposalVoterRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryVoteByProposalVoterRequest.proposal_id": - panic(fmt.Errorf("field proposal_id of message cosmos.group.v1.QueryVoteByProposalVoterRequest is not mutable")) - case "cosmos.group.v1.QueryVoteByProposalVoterRequest.voter": - panic(fmt.Errorf("field voter of message cosmos.group.v1.QueryVoteByProposalVoterRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVoteByProposalVoterRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVoteByProposalVoterRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryVoteByProposalVoterRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryVoteByProposalVoterRequest.proposal_id": - return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.group.v1.QueryVoteByProposalVoterRequest.voter": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVoteByProposalVoterRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVoteByProposalVoterRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryVoteByProposalVoterRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.QueryVoteByProposalVoterRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryVoteByProposalVoterRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryVoteByProposalVoterRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryVoteByProposalVoterRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryVoteByProposalVoterRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryVoteByProposalVoterRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.ProposalId != 0 { - n += 1 + runtime.Sov(uint64(x.ProposalId)) - } - l = len(x.Voter) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryVoteByProposalVoterRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Voter) > 0 { - i -= len(x.Voter) - copy(dAtA[i:], x.Voter) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Voter))) - i-- - dAtA[i] = 0x12 - } - if x.ProposalId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ProposalId)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryVoteByProposalVoterRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryVoteByProposalVoterRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryVoteByProposalVoterRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) - } - x.ProposalId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.ProposalId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Voter", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Voter = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryVoteByProposalVoterResponse protoreflect.MessageDescriptor - fd_QueryVoteByProposalVoterResponse_vote protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_query_proto_init() - md_QueryVoteByProposalVoterResponse = File_cosmos_group_v1_query_proto.Messages().ByName("QueryVoteByProposalVoterResponse") - fd_QueryVoteByProposalVoterResponse_vote = md_QueryVoteByProposalVoterResponse.Fields().ByName("vote") -} - -var _ protoreflect.Message = (*fastReflection_QueryVoteByProposalVoterResponse)(nil) - -type fastReflection_QueryVoteByProposalVoterResponse QueryVoteByProposalVoterResponse - -func (x *QueryVoteByProposalVoterResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryVoteByProposalVoterResponse)(x) -} - -func (x *QueryVoteByProposalVoterResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_query_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryVoteByProposalVoterResponse_messageType fastReflection_QueryVoteByProposalVoterResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryVoteByProposalVoterResponse_messageType{} - -type fastReflection_QueryVoteByProposalVoterResponse_messageType struct{} - -func (x fastReflection_QueryVoteByProposalVoterResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryVoteByProposalVoterResponse)(nil) -} -func (x fastReflection_QueryVoteByProposalVoterResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryVoteByProposalVoterResponse) -} -func (x fastReflection_QueryVoteByProposalVoterResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryVoteByProposalVoterResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryVoteByProposalVoterResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryVoteByProposalVoterResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryVoteByProposalVoterResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryVoteByProposalVoterResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryVoteByProposalVoterResponse) New() protoreflect.Message { - return new(fastReflection_QueryVoteByProposalVoterResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryVoteByProposalVoterResponse) Interface() protoreflect.ProtoMessage { - return (*QueryVoteByProposalVoterResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryVoteByProposalVoterResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Vote != nil { - value := protoreflect.ValueOfMessage(x.Vote.ProtoReflect()) - if !f(fd_QueryVoteByProposalVoterResponse_vote, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryVoteByProposalVoterResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.QueryVoteByProposalVoterResponse.vote": - return x.Vote != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVoteByProposalVoterResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVoteByProposalVoterResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryVoteByProposalVoterResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.QueryVoteByProposalVoterResponse.vote": - x.Vote = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVoteByProposalVoterResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVoteByProposalVoterResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryVoteByProposalVoterResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.QueryVoteByProposalVoterResponse.vote": - value := x.Vote - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVoteByProposalVoterResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVoteByProposalVoterResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryVoteByProposalVoterResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.QueryVoteByProposalVoterResponse.vote": - x.Vote = value.Message().Interface().(*Vote) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVoteByProposalVoterResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVoteByProposalVoterResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryVoteByProposalVoterResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryVoteByProposalVoterResponse.vote": - if x.Vote == nil { - x.Vote = new(Vote) - } - return protoreflect.ValueOfMessage(x.Vote.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVoteByProposalVoterResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVoteByProposalVoterResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryVoteByProposalVoterResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryVoteByProposalVoterResponse.vote": - m := new(Vote) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVoteByProposalVoterResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVoteByProposalVoterResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryVoteByProposalVoterResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.QueryVoteByProposalVoterResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryVoteByProposalVoterResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryVoteByProposalVoterResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryVoteByProposalVoterResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryVoteByProposalVoterResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryVoteByProposalVoterResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Vote != nil { - l = options.Size(x.Vote) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryVoteByProposalVoterResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Vote != nil { - encoded, err := options.Marshal(x.Vote) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryVoteByProposalVoterResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryVoteByProposalVoterResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryVoteByProposalVoterResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Vote", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Vote == nil { - x.Vote = &Vote{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Vote); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryVotesByProposalRequest protoreflect.MessageDescriptor - fd_QueryVotesByProposalRequest_proposal_id protoreflect.FieldDescriptor - fd_QueryVotesByProposalRequest_pagination protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_query_proto_init() - md_QueryVotesByProposalRequest = File_cosmos_group_v1_query_proto.Messages().ByName("QueryVotesByProposalRequest") - fd_QueryVotesByProposalRequest_proposal_id = md_QueryVotesByProposalRequest.Fields().ByName("proposal_id") - fd_QueryVotesByProposalRequest_pagination = md_QueryVotesByProposalRequest.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryVotesByProposalRequest)(nil) - -type fastReflection_QueryVotesByProposalRequest QueryVotesByProposalRequest - -func (x *QueryVotesByProposalRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryVotesByProposalRequest)(x) -} - -func (x *QueryVotesByProposalRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_query_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryVotesByProposalRequest_messageType fastReflection_QueryVotesByProposalRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryVotesByProposalRequest_messageType{} - -type fastReflection_QueryVotesByProposalRequest_messageType struct{} - -func (x fastReflection_QueryVotesByProposalRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryVotesByProposalRequest)(nil) -} -func (x fastReflection_QueryVotesByProposalRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryVotesByProposalRequest) -} -func (x fastReflection_QueryVotesByProposalRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryVotesByProposalRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryVotesByProposalRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryVotesByProposalRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryVotesByProposalRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryVotesByProposalRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryVotesByProposalRequest) New() protoreflect.Message { - return new(fastReflection_QueryVotesByProposalRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryVotesByProposalRequest) Interface() protoreflect.ProtoMessage { - return (*QueryVotesByProposalRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryVotesByProposalRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ProposalId != uint64(0) { - value := protoreflect.ValueOfUint64(x.ProposalId) - if !f(fd_QueryVotesByProposalRequest_proposal_id, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryVotesByProposalRequest_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryVotesByProposalRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.QueryVotesByProposalRequest.proposal_id": - return x.ProposalId != uint64(0) - case "cosmos.group.v1.QueryVotesByProposalRequest.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVotesByProposalRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVotesByProposalRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryVotesByProposalRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.QueryVotesByProposalRequest.proposal_id": - x.ProposalId = uint64(0) - case "cosmos.group.v1.QueryVotesByProposalRequest.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVotesByProposalRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVotesByProposalRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryVotesByProposalRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.QueryVotesByProposalRequest.proposal_id": - value := x.ProposalId - return protoreflect.ValueOfUint64(value) - case "cosmos.group.v1.QueryVotesByProposalRequest.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVotesByProposalRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVotesByProposalRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryVotesByProposalRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.QueryVotesByProposalRequest.proposal_id": - x.ProposalId = value.Uint() - case "cosmos.group.v1.QueryVotesByProposalRequest.pagination": - x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVotesByProposalRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVotesByProposalRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryVotesByProposalRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryVotesByProposalRequest.pagination": - if x.Pagination == nil { - x.Pagination = new(v1beta1.PageRequest) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - case "cosmos.group.v1.QueryVotesByProposalRequest.proposal_id": - panic(fmt.Errorf("field proposal_id of message cosmos.group.v1.QueryVotesByProposalRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVotesByProposalRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVotesByProposalRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryVotesByProposalRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryVotesByProposalRequest.proposal_id": - return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.group.v1.QueryVotesByProposalRequest.pagination": - m := new(v1beta1.PageRequest) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVotesByProposalRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVotesByProposalRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryVotesByProposalRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.QueryVotesByProposalRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryVotesByProposalRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryVotesByProposalRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryVotesByProposalRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryVotesByProposalRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryVotesByProposalRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.ProposalId != 0 { - n += 1 + runtime.Sov(uint64(x.ProposalId)) - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryVotesByProposalRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if x.ProposalId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ProposalId)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryVotesByProposalRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryVotesByProposalRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryVotesByProposalRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) - } - x.ProposalId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.ProposalId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &v1beta1.PageRequest{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_QueryVotesByProposalResponse_1_list)(nil) - -type _QueryVotesByProposalResponse_1_list struct { - list *[]*Vote -} - -func (x *_QueryVotesByProposalResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryVotesByProposalResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_QueryVotesByProposalResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Vote) - (*x.list)[i] = concreteValue -} - -func (x *_QueryVotesByProposalResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Vote) - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryVotesByProposalResponse_1_list) AppendMutable() protoreflect.Value { - v := new(Vote) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryVotesByProposalResponse_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_QueryVotesByProposalResponse_1_list) NewElement() protoreflect.Value { - v := new(Vote) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryVotesByProposalResponse_1_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QueryVotesByProposalResponse protoreflect.MessageDescriptor - fd_QueryVotesByProposalResponse_votes protoreflect.FieldDescriptor - fd_QueryVotesByProposalResponse_pagination protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_query_proto_init() - md_QueryVotesByProposalResponse = File_cosmos_group_v1_query_proto.Messages().ByName("QueryVotesByProposalResponse") - fd_QueryVotesByProposalResponse_votes = md_QueryVotesByProposalResponse.Fields().ByName("votes") - fd_QueryVotesByProposalResponse_pagination = md_QueryVotesByProposalResponse.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryVotesByProposalResponse)(nil) - -type fastReflection_QueryVotesByProposalResponse QueryVotesByProposalResponse - -func (x *QueryVotesByProposalResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryVotesByProposalResponse)(x) -} - -func (x *QueryVotesByProposalResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_query_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryVotesByProposalResponse_messageType fastReflection_QueryVotesByProposalResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryVotesByProposalResponse_messageType{} - -type fastReflection_QueryVotesByProposalResponse_messageType struct{} - -func (x fastReflection_QueryVotesByProposalResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryVotesByProposalResponse)(nil) -} -func (x fastReflection_QueryVotesByProposalResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryVotesByProposalResponse) -} -func (x fastReflection_QueryVotesByProposalResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryVotesByProposalResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryVotesByProposalResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryVotesByProposalResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryVotesByProposalResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryVotesByProposalResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryVotesByProposalResponse) New() protoreflect.Message { - return new(fastReflection_QueryVotesByProposalResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryVotesByProposalResponse) Interface() protoreflect.ProtoMessage { - return (*QueryVotesByProposalResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryVotesByProposalResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Votes) != 0 { - value := protoreflect.ValueOfList(&_QueryVotesByProposalResponse_1_list{list: &x.Votes}) - if !f(fd_QueryVotesByProposalResponse_votes, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryVotesByProposalResponse_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryVotesByProposalResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.QueryVotesByProposalResponse.votes": - return len(x.Votes) != 0 - case "cosmos.group.v1.QueryVotesByProposalResponse.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVotesByProposalResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVotesByProposalResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryVotesByProposalResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.QueryVotesByProposalResponse.votes": - x.Votes = nil - case "cosmos.group.v1.QueryVotesByProposalResponse.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVotesByProposalResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVotesByProposalResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryVotesByProposalResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.QueryVotesByProposalResponse.votes": - if len(x.Votes) == 0 { - return protoreflect.ValueOfList(&_QueryVotesByProposalResponse_1_list{}) - } - listValue := &_QueryVotesByProposalResponse_1_list{list: &x.Votes} - return protoreflect.ValueOfList(listValue) - case "cosmos.group.v1.QueryVotesByProposalResponse.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVotesByProposalResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVotesByProposalResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryVotesByProposalResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.QueryVotesByProposalResponse.votes": - lv := value.List() - clv := lv.(*_QueryVotesByProposalResponse_1_list) - x.Votes = *clv.list - case "cosmos.group.v1.QueryVotesByProposalResponse.pagination": - x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVotesByProposalResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVotesByProposalResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryVotesByProposalResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryVotesByProposalResponse.votes": - if x.Votes == nil { - x.Votes = []*Vote{} - } - value := &_QueryVotesByProposalResponse_1_list{list: &x.Votes} - return protoreflect.ValueOfList(value) - case "cosmos.group.v1.QueryVotesByProposalResponse.pagination": - if x.Pagination == nil { - x.Pagination = new(v1beta1.PageResponse) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVotesByProposalResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVotesByProposalResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryVotesByProposalResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryVotesByProposalResponse.votes": - list := []*Vote{} - return protoreflect.ValueOfList(&_QueryVotesByProposalResponse_1_list{list: &list}) - case "cosmos.group.v1.QueryVotesByProposalResponse.pagination": - m := new(v1beta1.PageResponse) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVotesByProposalResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVotesByProposalResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryVotesByProposalResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.QueryVotesByProposalResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryVotesByProposalResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryVotesByProposalResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryVotesByProposalResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryVotesByProposalResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryVotesByProposalResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.Votes) > 0 { - for _, e := range x.Votes { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryVotesByProposalResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Votes) > 0 { - for iNdEx := len(x.Votes) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Votes[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryVotesByProposalResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryVotesByProposalResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryVotesByProposalResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Votes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Votes = append(x.Votes, &Vote{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Votes[len(x.Votes)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &v1beta1.PageResponse{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryVotesByVoterRequest protoreflect.MessageDescriptor - fd_QueryVotesByVoterRequest_voter protoreflect.FieldDescriptor - fd_QueryVotesByVoterRequest_pagination protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_query_proto_init() - md_QueryVotesByVoterRequest = File_cosmos_group_v1_query_proto.Messages().ByName("QueryVotesByVoterRequest") - fd_QueryVotesByVoterRequest_voter = md_QueryVotesByVoterRequest.Fields().ByName("voter") - fd_QueryVotesByVoterRequest_pagination = md_QueryVotesByVoterRequest.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryVotesByVoterRequest)(nil) - -type fastReflection_QueryVotesByVoterRequest QueryVotesByVoterRequest - -func (x *QueryVotesByVoterRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryVotesByVoterRequest)(x) -} - -func (x *QueryVotesByVoterRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_query_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryVotesByVoterRequest_messageType fastReflection_QueryVotesByVoterRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryVotesByVoterRequest_messageType{} - -type fastReflection_QueryVotesByVoterRequest_messageType struct{} - -func (x fastReflection_QueryVotesByVoterRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryVotesByVoterRequest)(nil) -} -func (x fastReflection_QueryVotesByVoterRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryVotesByVoterRequest) -} -func (x fastReflection_QueryVotesByVoterRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryVotesByVoterRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryVotesByVoterRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryVotesByVoterRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryVotesByVoterRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryVotesByVoterRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryVotesByVoterRequest) New() protoreflect.Message { - return new(fastReflection_QueryVotesByVoterRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryVotesByVoterRequest) Interface() protoreflect.ProtoMessage { - return (*QueryVotesByVoterRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryVotesByVoterRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Voter != "" { - value := protoreflect.ValueOfString(x.Voter) - if !f(fd_QueryVotesByVoterRequest_voter, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryVotesByVoterRequest_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryVotesByVoterRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.QueryVotesByVoterRequest.voter": - return x.Voter != "" - case "cosmos.group.v1.QueryVotesByVoterRequest.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVotesByVoterRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVotesByVoterRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryVotesByVoterRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.QueryVotesByVoterRequest.voter": - x.Voter = "" - case "cosmos.group.v1.QueryVotesByVoterRequest.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVotesByVoterRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVotesByVoterRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryVotesByVoterRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.QueryVotesByVoterRequest.voter": - value := x.Voter - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.QueryVotesByVoterRequest.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVotesByVoterRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVotesByVoterRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryVotesByVoterRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.QueryVotesByVoterRequest.voter": - x.Voter = value.Interface().(string) - case "cosmos.group.v1.QueryVotesByVoterRequest.pagination": - x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVotesByVoterRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVotesByVoterRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryVotesByVoterRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryVotesByVoterRequest.pagination": - if x.Pagination == nil { - x.Pagination = new(v1beta1.PageRequest) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - case "cosmos.group.v1.QueryVotesByVoterRequest.voter": - panic(fmt.Errorf("field voter of message cosmos.group.v1.QueryVotesByVoterRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVotesByVoterRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVotesByVoterRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryVotesByVoterRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryVotesByVoterRequest.voter": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.QueryVotesByVoterRequest.pagination": - m := new(v1beta1.PageRequest) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVotesByVoterRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVotesByVoterRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryVotesByVoterRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.QueryVotesByVoterRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryVotesByVoterRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryVotesByVoterRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryVotesByVoterRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryVotesByVoterRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryVotesByVoterRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Voter) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryVotesByVoterRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Voter) > 0 { - i -= len(x.Voter) - copy(dAtA[i:], x.Voter) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Voter))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryVotesByVoterRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryVotesByVoterRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryVotesByVoterRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Voter", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Voter = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &v1beta1.PageRequest{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_QueryVotesByVoterResponse_1_list)(nil) - -type _QueryVotesByVoterResponse_1_list struct { - list *[]*Vote -} - -func (x *_QueryVotesByVoterResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryVotesByVoterResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_QueryVotesByVoterResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Vote) - (*x.list)[i] = concreteValue -} - -func (x *_QueryVotesByVoterResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Vote) - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryVotesByVoterResponse_1_list) AppendMutable() protoreflect.Value { - v := new(Vote) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryVotesByVoterResponse_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_QueryVotesByVoterResponse_1_list) NewElement() protoreflect.Value { - v := new(Vote) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryVotesByVoterResponse_1_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QueryVotesByVoterResponse protoreflect.MessageDescriptor - fd_QueryVotesByVoterResponse_votes protoreflect.FieldDescriptor - fd_QueryVotesByVoterResponse_pagination protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_query_proto_init() - md_QueryVotesByVoterResponse = File_cosmos_group_v1_query_proto.Messages().ByName("QueryVotesByVoterResponse") - fd_QueryVotesByVoterResponse_votes = md_QueryVotesByVoterResponse.Fields().ByName("votes") - fd_QueryVotesByVoterResponse_pagination = md_QueryVotesByVoterResponse.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryVotesByVoterResponse)(nil) - -type fastReflection_QueryVotesByVoterResponse QueryVotesByVoterResponse - -func (x *QueryVotesByVoterResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryVotesByVoterResponse)(x) -} - -func (x *QueryVotesByVoterResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_query_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryVotesByVoterResponse_messageType fastReflection_QueryVotesByVoterResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryVotesByVoterResponse_messageType{} - -type fastReflection_QueryVotesByVoterResponse_messageType struct{} - -func (x fastReflection_QueryVotesByVoterResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryVotesByVoterResponse)(nil) -} -func (x fastReflection_QueryVotesByVoterResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryVotesByVoterResponse) -} -func (x fastReflection_QueryVotesByVoterResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryVotesByVoterResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryVotesByVoterResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryVotesByVoterResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryVotesByVoterResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryVotesByVoterResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryVotesByVoterResponse) New() protoreflect.Message { - return new(fastReflection_QueryVotesByVoterResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryVotesByVoterResponse) Interface() protoreflect.ProtoMessage { - return (*QueryVotesByVoterResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryVotesByVoterResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Votes) != 0 { - value := protoreflect.ValueOfList(&_QueryVotesByVoterResponse_1_list{list: &x.Votes}) - if !f(fd_QueryVotesByVoterResponse_votes, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryVotesByVoterResponse_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryVotesByVoterResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.QueryVotesByVoterResponse.votes": - return len(x.Votes) != 0 - case "cosmos.group.v1.QueryVotesByVoterResponse.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVotesByVoterResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVotesByVoterResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryVotesByVoterResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.QueryVotesByVoterResponse.votes": - x.Votes = nil - case "cosmos.group.v1.QueryVotesByVoterResponse.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVotesByVoterResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVotesByVoterResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryVotesByVoterResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.QueryVotesByVoterResponse.votes": - if len(x.Votes) == 0 { - return protoreflect.ValueOfList(&_QueryVotesByVoterResponse_1_list{}) - } - listValue := &_QueryVotesByVoterResponse_1_list{list: &x.Votes} - return protoreflect.ValueOfList(listValue) - case "cosmos.group.v1.QueryVotesByVoterResponse.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVotesByVoterResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVotesByVoterResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryVotesByVoterResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.QueryVotesByVoterResponse.votes": - lv := value.List() - clv := lv.(*_QueryVotesByVoterResponse_1_list) - x.Votes = *clv.list - case "cosmos.group.v1.QueryVotesByVoterResponse.pagination": - x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVotesByVoterResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVotesByVoterResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryVotesByVoterResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryVotesByVoterResponse.votes": - if x.Votes == nil { - x.Votes = []*Vote{} - } - value := &_QueryVotesByVoterResponse_1_list{list: &x.Votes} - return protoreflect.ValueOfList(value) - case "cosmos.group.v1.QueryVotesByVoterResponse.pagination": - if x.Pagination == nil { - x.Pagination = new(v1beta1.PageResponse) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVotesByVoterResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVotesByVoterResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryVotesByVoterResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryVotesByVoterResponse.votes": - list := []*Vote{} - return protoreflect.ValueOfList(&_QueryVotesByVoterResponse_1_list{list: &list}) - case "cosmos.group.v1.QueryVotesByVoterResponse.pagination": - m := new(v1beta1.PageResponse) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryVotesByVoterResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryVotesByVoterResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryVotesByVoterResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.QueryVotesByVoterResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryVotesByVoterResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryVotesByVoterResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryVotesByVoterResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryVotesByVoterResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryVotesByVoterResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.Votes) > 0 { - for _, e := range x.Votes { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryVotesByVoterResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Votes) > 0 { - for iNdEx := len(x.Votes) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Votes[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryVotesByVoterResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryVotesByVoterResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryVotesByVoterResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Votes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Votes = append(x.Votes, &Vote{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Votes[len(x.Votes)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &v1beta1.PageResponse{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryGroupsByMemberRequest protoreflect.MessageDescriptor - fd_QueryGroupsByMemberRequest_address protoreflect.FieldDescriptor - fd_QueryGroupsByMemberRequest_pagination protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_query_proto_init() - md_QueryGroupsByMemberRequest = File_cosmos_group_v1_query_proto.Messages().ByName("QueryGroupsByMemberRequest") - fd_QueryGroupsByMemberRequest_address = md_QueryGroupsByMemberRequest.Fields().ByName("address") - fd_QueryGroupsByMemberRequest_pagination = md_QueryGroupsByMemberRequest.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryGroupsByMemberRequest)(nil) - -type fastReflection_QueryGroupsByMemberRequest QueryGroupsByMemberRequest - -func (x *QueryGroupsByMemberRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGroupsByMemberRequest)(x) -} - -func (x *QueryGroupsByMemberRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_query_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryGroupsByMemberRequest_messageType fastReflection_QueryGroupsByMemberRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryGroupsByMemberRequest_messageType{} - -type fastReflection_QueryGroupsByMemberRequest_messageType struct{} - -func (x fastReflection_QueryGroupsByMemberRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGroupsByMemberRequest)(nil) -} -func (x fastReflection_QueryGroupsByMemberRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGroupsByMemberRequest) -} -func (x fastReflection_QueryGroupsByMemberRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGroupsByMemberRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryGroupsByMemberRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGroupsByMemberRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGroupsByMemberRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryGroupsByMemberRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGroupsByMemberRequest) New() protoreflect.Message { - return new(fastReflection_QueryGroupsByMemberRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGroupsByMemberRequest) Interface() protoreflect.ProtoMessage { - return (*QueryGroupsByMemberRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryGroupsByMemberRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Address != "" { - value := protoreflect.ValueOfString(x.Address) - if !f(fd_QueryGroupsByMemberRequest_address, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryGroupsByMemberRequest_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGroupsByMemberRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupsByMemberRequest.address": - return x.Address != "" - case "cosmos.group.v1.QueryGroupsByMemberRequest.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsByMemberRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsByMemberRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupsByMemberRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupsByMemberRequest.address": - x.Address = "" - case "cosmos.group.v1.QueryGroupsByMemberRequest.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsByMemberRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsByMemberRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGroupsByMemberRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.QueryGroupsByMemberRequest.address": - value := x.Address - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.QueryGroupsByMemberRequest.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsByMemberRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsByMemberRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupsByMemberRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupsByMemberRequest.address": - x.Address = value.Interface().(string) - case "cosmos.group.v1.QueryGroupsByMemberRequest.pagination": - x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsByMemberRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsByMemberRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupsByMemberRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupsByMemberRequest.pagination": - if x.Pagination == nil { - x.Pagination = new(v1beta1.PageRequest) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - case "cosmos.group.v1.QueryGroupsByMemberRequest.address": - panic(fmt.Errorf("field address of message cosmos.group.v1.QueryGroupsByMemberRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsByMemberRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsByMemberRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGroupsByMemberRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupsByMemberRequest.address": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.QueryGroupsByMemberRequest.pagination": - m := new(v1beta1.PageRequest) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsByMemberRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsByMemberRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGroupsByMemberRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.QueryGroupsByMemberRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGroupsByMemberRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupsByMemberRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryGroupsByMemberRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGroupsByMemberRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGroupsByMemberRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Address) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGroupsByMemberRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Address) > 0 { - i -= len(x.Address) - copy(dAtA[i:], x.Address) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGroupsByMemberRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupsByMemberRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupsByMemberRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &v1beta1.PageRequest{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_QueryGroupsByMemberResponse_1_list)(nil) - -type _QueryGroupsByMemberResponse_1_list struct { - list *[]*GroupInfo -} - -func (x *_QueryGroupsByMemberResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryGroupsByMemberResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_QueryGroupsByMemberResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*GroupInfo) - (*x.list)[i] = concreteValue -} - -func (x *_QueryGroupsByMemberResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*GroupInfo) - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryGroupsByMemberResponse_1_list) AppendMutable() protoreflect.Value { - v := new(GroupInfo) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryGroupsByMemberResponse_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_QueryGroupsByMemberResponse_1_list) NewElement() protoreflect.Value { - v := new(GroupInfo) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryGroupsByMemberResponse_1_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QueryGroupsByMemberResponse protoreflect.MessageDescriptor - fd_QueryGroupsByMemberResponse_groups protoreflect.FieldDescriptor - fd_QueryGroupsByMemberResponse_pagination protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_query_proto_init() - md_QueryGroupsByMemberResponse = File_cosmos_group_v1_query_proto.Messages().ByName("QueryGroupsByMemberResponse") - fd_QueryGroupsByMemberResponse_groups = md_QueryGroupsByMemberResponse.Fields().ByName("groups") - fd_QueryGroupsByMemberResponse_pagination = md_QueryGroupsByMemberResponse.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryGroupsByMemberResponse)(nil) - -type fastReflection_QueryGroupsByMemberResponse QueryGroupsByMemberResponse - -func (x *QueryGroupsByMemberResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGroupsByMemberResponse)(x) -} - -func (x *QueryGroupsByMemberResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_query_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryGroupsByMemberResponse_messageType fastReflection_QueryGroupsByMemberResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryGroupsByMemberResponse_messageType{} - -type fastReflection_QueryGroupsByMemberResponse_messageType struct{} - -func (x fastReflection_QueryGroupsByMemberResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGroupsByMemberResponse)(nil) -} -func (x fastReflection_QueryGroupsByMemberResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGroupsByMemberResponse) -} -func (x fastReflection_QueryGroupsByMemberResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGroupsByMemberResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryGroupsByMemberResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGroupsByMemberResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGroupsByMemberResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryGroupsByMemberResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGroupsByMemberResponse) New() protoreflect.Message { - return new(fastReflection_QueryGroupsByMemberResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGroupsByMemberResponse) Interface() protoreflect.ProtoMessage { - return (*QueryGroupsByMemberResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryGroupsByMemberResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Groups) != 0 { - value := protoreflect.ValueOfList(&_QueryGroupsByMemberResponse_1_list{list: &x.Groups}) - if !f(fd_QueryGroupsByMemberResponse_groups, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryGroupsByMemberResponse_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGroupsByMemberResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupsByMemberResponse.groups": - return len(x.Groups) != 0 - case "cosmos.group.v1.QueryGroupsByMemberResponse.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsByMemberResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsByMemberResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupsByMemberResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupsByMemberResponse.groups": - x.Groups = nil - case "cosmos.group.v1.QueryGroupsByMemberResponse.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsByMemberResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsByMemberResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGroupsByMemberResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.QueryGroupsByMemberResponse.groups": - if len(x.Groups) == 0 { - return protoreflect.ValueOfList(&_QueryGroupsByMemberResponse_1_list{}) - } - listValue := &_QueryGroupsByMemberResponse_1_list{list: &x.Groups} - return protoreflect.ValueOfList(listValue) - case "cosmos.group.v1.QueryGroupsByMemberResponse.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsByMemberResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsByMemberResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupsByMemberResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupsByMemberResponse.groups": - lv := value.List() - clv := lv.(*_QueryGroupsByMemberResponse_1_list) - x.Groups = *clv.list - case "cosmos.group.v1.QueryGroupsByMemberResponse.pagination": - x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsByMemberResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsByMemberResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupsByMemberResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupsByMemberResponse.groups": - if x.Groups == nil { - x.Groups = []*GroupInfo{} - } - value := &_QueryGroupsByMemberResponse_1_list{list: &x.Groups} - return protoreflect.ValueOfList(value) - case "cosmos.group.v1.QueryGroupsByMemberResponse.pagination": - if x.Pagination == nil { - x.Pagination = new(v1beta1.PageResponse) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsByMemberResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsByMemberResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGroupsByMemberResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupsByMemberResponse.groups": - list := []*GroupInfo{} - return protoreflect.ValueOfList(&_QueryGroupsByMemberResponse_1_list{list: &list}) - case "cosmos.group.v1.QueryGroupsByMemberResponse.pagination": - m := new(v1beta1.PageResponse) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsByMemberResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsByMemberResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGroupsByMemberResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.QueryGroupsByMemberResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGroupsByMemberResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupsByMemberResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryGroupsByMemberResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGroupsByMemberResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGroupsByMemberResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.Groups) > 0 { - for _, e := range x.Groups { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGroupsByMemberResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Groups) > 0 { - for iNdEx := len(x.Groups) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Groups[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGroupsByMemberResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupsByMemberResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupsByMemberResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Groups = append(x.Groups, &GroupInfo{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Groups[len(x.Groups)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &v1beta1.PageResponse{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryTallyResultRequest protoreflect.MessageDescriptor - fd_QueryTallyResultRequest_proposal_id protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_query_proto_init() - md_QueryTallyResultRequest = File_cosmos_group_v1_query_proto.Messages().ByName("QueryTallyResultRequest") - fd_QueryTallyResultRequest_proposal_id = md_QueryTallyResultRequest.Fields().ByName("proposal_id") -} - -var _ protoreflect.Message = (*fastReflection_QueryTallyResultRequest)(nil) - -type fastReflection_QueryTallyResultRequest QueryTallyResultRequest - -func (x *QueryTallyResultRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryTallyResultRequest)(x) -} - -func (x *QueryTallyResultRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_query_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryTallyResultRequest_messageType fastReflection_QueryTallyResultRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryTallyResultRequest_messageType{} - -type fastReflection_QueryTallyResultRequest_messageType struct{} - -func (x fastReflection_QueryTallyResultRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryTallyResultRequest)(nil) -} -func (x fastReflection_QueryTallyResultRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryTallyResultRequest) -} -func (x fastReflection_QueryTallyResultRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTallyResultRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryTallyResultRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTallyResultRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryTallyResultRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryTallyResultRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryTallyResultRequest) New() protoreflect.Message { - return new(fastReflection_QueryTallyResultRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryTallyResultRequest) Interface() protoreflect.ProtoMessage { - return (*QueryTallyResultRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryTallyResultRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ProposalId != uint64(0) { - value := protoreflect.ValueOfUint64(x.ProposalId) - if !f(fd_QueryTallyResultRequest_proposal_id, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryTallyResultRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.QueryTallyResultRequest.proposal_id": - return x.ProposalId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryTallyResultRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryTallyResultRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTallyResultRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.QueryTallyResultRequest.proposal_id": - x.ProposalId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryTallyResultRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryTallyResultRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryTallyResultRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.QueryTallyResultRequest.proposal_id": - value := x.ProposalId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryTallyResultRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryTallyResultRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTallyResultRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.QueryTallyResultRequest.proposal_id": - x.ProposalId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryTallyResultRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryTallyResultRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTallyResultRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryTallyResultRequest.proposal_id": - panic(fmt.Errorf("field proposal_id of message cosmos.group.v1.QueryTallyResultRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryTallyResultRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryTallyResultRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryTallyResultRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryTallyResultRequest.proposal_id": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryTallyResultRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryTallyResultRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryTallyResultRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.QueryTallyResultRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryTallyResultRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTallyResultRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryTallyResultRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryTallyResultRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryTallyResultRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.ProposalId != 0 { - n += 1 + runtime.Sov(uint64(x.ProposalId)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryTallyResultRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.ProposalId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ProposalId)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryTallyResultRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTallyResultRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTallyResultRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) - } - x.ProposalId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.ProposalId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryTallyResultResponse protoreflect.MessageDescriptor - fd_QueryTallyResultResponse_tally protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_query_proto_init() - md_QueryTallyResultResponse = File_cosmos_group_v1_query_proto.Messages().ByName("QueryTallyResultResponse") - fd_QueryTallyResultResponse_tally = md_QueryTallyResultResponse.Fields().ByName("tally") -} - -var _ protoreflect.Message = (*fastReflection_QueryTallyResultResponse)(nil) - -type fastReflection_QueryTallyResultResponse QueryTallyResultResponse - -func (x *QueryTallyResultResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryTallyResultResponse)(x) -} - -func (x *QueryTallyResultResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_query_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryTallyResultResponse_messageType fastReflection_QueryTallyResultResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryTallyResultResponse_messageType{} - -type fastReflection_QueryTallyResultResponse_messageType struct{} - -func (x fastReflection_QueryTallyResultResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryTallyResultResponse)(nil) -} -func (x fastReflection_QueryTallyResultResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryTallyResultResponse) -} -func (x fastReflection_QueryTallyResultResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTallyResultResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryTallyResultResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTallyResultResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryTallyResultResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryTallyResultResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryTallyResultResponse) New() protoreflect.Message { - return new(fastReflection_QueryTallyResultResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryTallyResultResponse) Interface() protoreflect.ProtoMessage { - return (*QueryTallyResultResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryTallyResultResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Tally != nil { - value := protoreflect.ValueOfMessage(x.Tally.ProtoReflect()) - if !f(fd_QueryTallyResultResponse_tally, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryTallyResultResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.QueryTallyResultResponse.tally": - return x.Tally != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryTallyResultResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryTallyResultResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTallyResultResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.QueryTallyResultResponse.tally": - x.Tally = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryTallyResultResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryTallyResultResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryTallyResultResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.QueryTallyResultResponse.tally": - value := x.Tally - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryTallyResultResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryTallyResultResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTallyResultResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.QueryTallyResultResponse.tally": - x.Tally = value.Message().Interface().(*TallyResult) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryTallyResultResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryTallyResultResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTallyResultResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryTallyResultResponse.tally": - if x.Tally == nil { - x.Tally = new(TallyResult) - } - return protoreflect.ValueOfMessage(x.Tally.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryTallyResultResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryTallyResultResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryTallyResultResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryTallyResultResponse.tally": - m := new(TallyResult) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryTallyResultResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryTallyResultResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryTallyResultResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.QueryTallyResultResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryTallyResultResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTallyResultResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryTallyResultResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryTallyResultResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryTallyResultResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Tally != nil { - l = options.Size(x.Tally) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryTallyResultResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Tally != nil { - encoded, err := options.Marshal(x.Tally) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryTallyResultResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTallyResultResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTallyResultResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Tally", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Tally == nil { - x.Tally = &TallyResult{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Tally); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryGroupsRequest protoreflect.MessageDescriptor - fd_QueryGroupsRequest_pagination protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_query_proto_init() - md_QueryGroupsRequest = File_cosmos_group_v1_query_proto.Messages().ByName("QueryGroupsRequest") - fd_QueryGroupsRequest_pagination = md_QueryGroupsRequest.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryGroupsRequest)(nil) - -type fastReflection_QueryGroupsRequest QueryGroupsRequest - -func (x *QueryGroupsRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGroupsRequest)(x) -} - -func (x *QueryGroupsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_query_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryGroupsRequest_messageType fastReflection_QueryGroupsRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryGroupsRequest_messageType{} - -type fastReflection_QueryGroupsRequest_messageType struct{} - -func (x fastReflection_QueryGroupsRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGroupsRequest)(nil) -} -func (x fastReflection_QueryGroupsRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGroupsRequest) -} -func (x fastReflection_QueryGroupsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGroupsRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryGroupsRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGroupsRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGroupsRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryGroupsRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGroupsRequest) New() protoreflect.Message { - return new(fastReflection_QueryGroupsRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGroupsRequest) Interface() protoreflect.ProtoMessage { - return (*QueryGroupsRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryGroupsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryGroupsRequest_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGroupsRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupsRequest.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupsRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupsRequest.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGroupsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.QueryGroupsRequest.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupsRequest.pagination": - x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupsRequest.pagination": - if x.Pagination == nil { - x.Pagination = new(v1beta1.PageRequest) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGroupsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupsRequest.pagination": - m := new(v1beta1.PageRequest) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGroupsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.QueryGroupsRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGroupsRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupsRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryGroupsRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGroupsRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGroupsRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGroupsRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGroupsRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &v1beta1.PageRequest{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_QueryGroupsResponse_1_list)(nil) - -type _QueryGroupsResponse_1_list struct { - list *[]*GroupInfo -} - -func (x *_QueryGroupsResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryGroupsResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_QueryGroupsResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*GroupInfo) - (*x.list)[i] = concreteValue -} - -func (x *_QueryGroupsResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*GroupInfo) - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryGroupsResponse_1_list) AppendMutable() protoreflect.Value { - v := new(GroupInfo) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryGroupsResponse_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_QueryGroupsResponse_1_list) NewElement() protoreflect.Value { - v := new(GroupInfo) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryGroupsResponse_1_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QueryGroupsResponse protoreflect.MessageDescriptor - fd_QueryGroupsResponse_groups protoreflect.FieldDescriptor - fd_QueryGroupsResponse_pagination protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_query_proto_init() - md_QueryGroupsResponse = File_cosmos_group_v1_query_proto.Messages().ByName("QueryGroupsResponse") - fd_QueryGroupsResponse_groups = md_QueryGroupsResponse.Fields().ByName("groups") - fd_QueryGroupsResponse_pagination = md_QueryGroupsResponse.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryGroupsResponse)(nil) - -type fastReflection_QueryGroupsResponse QueryGroupsResponse - -func (x *QueryGroupsResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGroupsResponse)(x) -} - -func (x *QueryGroupsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_query_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryGroupsResponse_messageType fastReflection_QueryGroupsResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryGroupsResponse_messageType{} - -type fastReflection_QueryGroupsResponse_messageType struct{} - -func (x fastReflection_QueryGroupsResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGroupsResponse)(nil) -} -func (x fastReflection_QueryGroupsResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGroupsResponse) -} -func (x fastReflection_QueryGroupsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGroupsResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryGroupsResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGroupsResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGroupsResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryGroupsResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGroupsResponse) New() protoreflect.Message { - return new(fastReflection_QueryGroupsResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGroupsResponse) Interface() protoreflect.ProtoMessage { - return (*QueryGroupsResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryGroupsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Groups) != 0 { - value := protoreflect.ValueOfList(&_QueryGroupsResponse_1_list{list: &x.Groups}) - if !f(fd_QueryGroupsResponse_groups, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryGroupsResponse_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGroupsResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupsResponse.groups": - return len(x.Groups) != 0 - case "cosmos.group.v1.QueryGroupsResponse.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupsResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupsResponse.groups": - x.Groups = nil - case "cosmos.group.v1.QueryGroupsResponse.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGroupsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.QueryGroupsResponse.groups": - if len(x.Groups) == 0 { - return protoreflect.ValueOfList(&_QueryGroupsResponse_1_list{}) - } - listValue := &_QueryGroupsResponse_1_list{list: &x.Groups} - return protoreflect.ValueOfList(listValue) - case "cosmos.group.v1.QueryGroupsResponse.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupsResponse.groups": - lv := value.List() - clv := lv.(*_QueryGroupsResponse_1_list) - x.Groups = *clv.list - case "cosmos.group.v1.QueryGroupsResponse.pagination": - x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupsResponse.groups": - if x.Groups == nil { - x.Groups = []*GroupInfo{} - } - value := &_QueryGroupsResponse_1_list{list: &x.Groups} - return protoreflect.ValueOfList(value) - case "cosmos.group.v1.QueryGroupsResponse.pagination": - if x.Pagination == nil { - x.Pagination = new(v1beta1.PageResponse) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGroupsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.QueryGroupsResponse.groups": - list := []*GroupInfo{} - return protoreflect.ValueOfList(&_QueryGroupsResponse_1_list{list: &list}) - case "cosmos.group.v1.QueryGroupsResponse.pagination": - m := new(v1beta1.PageResponse) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.QueryGroupsResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.QueryGroupsResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGroupsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.QueryGroupsResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGroupsResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGroupsResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryGroupsResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGroupsResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGroupsResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.Groups) > 0 { - for _, e := range x.Groups { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGroupsResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Groups) > 0 { - for iNdEx := len(x.Groups) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Groups[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGroupsResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Groups = append(x.Groups, &GroupInfo{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Groups[len(x.Groups)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &v1beta1.PageResponse{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cosmos/group/v1/query.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// QueryGroupInfoRequest is the Query/GroupInfo request type. -type QueryGroupInfoRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // group_id is the unique ID of the group. - GroupId uint64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` -} - -func (x *QueryGroupInfoRequest) Reset() { - *x = QueryGroupInfoRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_query_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryGroupInfoRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryGroupInfoRequest) ProtoMessage() {} - -// Deprecated: Use QueryGroupInfoRequest.ProtoReflect.Descriptor instead. -func (*QueryGroupInfoRequest) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_query_proto_rawDescGZIP(), []int{0} -} - -func (x *QueryGroupInfoRequest) GetGroupId() uint64 { - if x != nil { - return x.GroupId - } - return 0 -} - -// QueryGroupInfoResponse is the Query/GroupInfo response type. -type QueryGroupInfoResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // info is the GroupInfo of the group. - Info *GroupInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` -} - -func (x *QueryGroupInfoResponse) Reset() { - *x = QueryGroupInfoResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_query_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryGroupInfoResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryGroupInfoResponse) ProtoMessage() {} - -// Deprecated: Use QueryGroupInfoResponse.ProtoReflect.Descriptor instead. -func (*QueryGroupInfoResponse) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_query_proto_rawDescGZIP(), []int{1} -} - -func (x *QueryGroupInfoResponse) GetInfo() *GroupInfo { - if x != nil { - return x.Info - } - return nil -} - -// QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type. -type QueryGroupPolicyInfoRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // address is the account address of the group policy. - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` -} - -func (x *QueryGroupPolicyInfoRequest) Reset() { - *x = QueryGroupPolicyInfoRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_query_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryGroupPolicyInfoRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryGroupPolicyInfoRequest) ProtoMessage() {} - -// Deprecated: Use QueryGroupPolicyInfoRequest.ProtoReflect.Descriptor instead. -func (*QueryGroupPolicyInfoRequest) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_query_proto_rawDescGZIP(), []int{2} -} - -func (x *QueryGroupPolicyInfoRequest) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -// QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type. -type QueryGroupPolicyInfoResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // info is the GroupPolicyInfo of the group policy. - Info *GroupPolicyInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` -} - -func (x *QueryGroupPolicyInfoResponse) Reset() { - *x = QueryGroupPolicyInfoResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_query_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryGroupPolicyInfoResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryGroupPolicyInfoResponse) ProtoMessage() {} - -// Deprecated: Use QueryGroupPolicyInfoResponse.ProtoReflect.Descriptor instead. -func (*QueryGroupPolicyInfoResponse) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_query_proto_rawDescGZIP(), []int{3} -} - -func (x *QueryGroupPolicyInfoResponse) GetInfo() *GroupPolicyInfo { - if x != nil { - return x.Info - } - return nil -} - -// QueryGroupMembersRequest is the Query/GroupMembers request type. -type QueryGroupMembersRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // group_id is the unique ID of the group. - GroupId uint64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` - // pagination defines an optional pagination for the request. - Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *QueryGroupMembersRequest) Reset() { - *x = QueryGroupMembersRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_query_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryGroupMembersRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryGroupMembersRequest) ProtoMessage() {} - -// Deprecated: Use QueryGroupMembersRequest.ProtoReflect.Descriptor instead. -func (*QueryGroupMembersRequest) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_query_proto_rawDescGZIP(), []int{4} -} - -func (x *QueryGroupMembersRequest) GetGroupId() uint64 { - if x != nil { - return x.GroupId - } - return 0 -} - -func (x *QueryGroupMembersRequest) GetPagination() *v1beta1.PageRequest { - if x != nil { - return x.Pagination - } - return nil -} - -// QueryGroupMembersResponse is the Query/GroupMembersResponse response type. -type QueryGroupMembersResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // members are the members of the group with given group_id. - Members []*GroupMember `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"` - // pagination defines the pagination in the response. - Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *QueryGroupMembersResponse) Reset() { - *x = QueryGroupMembersResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_query_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryGroupMembersResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryGroupMembersResponse) ProtoMessage() {} - -// Deprecated: Use QueryGroupMembersResponse.ProtoReflect.Descriptor instead. -func (*QueryGroupMembersResponse) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_query_proto_rawDescGZIP(), []int{5} -} - -func (x *QueryGroupMembersResponse) GetMembers() []*GroupMember { - if x != nil { - return x.Members - } - return nil -} - -func (x *QueryGroupMembersResponse) GetPagination() *v1beta1.PageResponse { - if x != nil { - return x.Pagination - } - return nil -} - -// QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type. -type QueryGroupsByAdminRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // admin is the account address of a group's admin. - Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` - // pagination defines an optional pagination for the request. - Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *QueryGroupsByAdminRequest) Reset() { - *x = QueryGroupsByAdminRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_query_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryGroupsByAdminRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryGroupsByAdminRequest) ProtoMessage() {} - -// Deprecated: Use QueryGroupsByAdminRequest.ProtoReflect.Descriptor instead. -func (*QueryGroupsByAdminRequest) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_query_proto_rawDescGZIP(), []int{6} -} - -func (x *QueryGroupsByAdminRequest) GetAdmin() string { - if x != nil { - return x.Admin - } - return "" -} - -func (x *QueryGroupsByAdminRequest) GetPagination() *v1beta1.PageRequest { - if x != nil { - return x.Pagination - } - return nil -} - -// QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type. -type QueryGroupsByAdminResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // groups are the groups info with the provided admin. - Groups []*GroupInfo `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"` - // pagination defines the pagination in the response. - Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *QueryGroupsByAdminResponse) Reset() { - *x = QueryGroupsByAdminResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_query_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryGroupsByAdminResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryGroupsByAdminResponse) ProtoMessage() {} - -// Deprecated: Use QueryGroupsByAdminResponse.ProtoReflect.Descriptor instead. -func (*QueryGroupsByAdminResponse) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_query_proto_rawDescGZIP(), []int{7} -} - -func (x *QueryGroupsByAdminResponse) GetGroups() []*GroupInfo { - if x != nil { - return x.Groups - } - return nil -} - -func (x *QueryGroupsByAdminResponse) GetPagination() *v1beta1.PageResponse { - if x != nil { - return x.Pagination - } - return nil -} - -// QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type. -type QueryGroupPoliciesByGroupRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // group_id is the unique ID of the group policy's group. - GroupId uint64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` - // pagination defines an optional pagination for the request. - Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *QueryGroupPoliciesByGroupRequest) Reset() { - *x = QueryGroupPoliciesByGroupRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_query_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryGroupPoliciesByGroupRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryGroupPoliciesByGroupRequest) ProtoMessage() {} - -// Deprecated: Use QueryGroupPoliciesByGroupRequest.ProtoReflect.Descriptor instead. -func (*QueryGroupPoliciesByGroupRequest) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_query_proto_rawDescGZIP(), []int{8} -} - -func (x *QueryGroupPoliciesByGroupRequest) GetGroupId() uint64 { - if x != nil { - return x.GroupId - } - return 0 -} - -func (x *QueryGroupPoliciesByGroupRequest) GetPagination() *v1beta1.PageRequest { - if x != nil { - return x.Pagination - } - return nil -} - -// QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type. -type QueryGroupPoliciesByGroupResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // group_policies are the group policies info associated with the provided group. - GroupPolicies []*GroupPolicyInfo `protobuf:"bytes,1,rep,name=group_policies,json=groupPolicies,proto3" json:"group_policies,omitempty"` - // pagination defines the pagination in the response. - Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *QueryGroupPoliciesByGroupResponse) Reset() { - *x = QueryGroupPoliciesByGroupResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_query_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryGroupPoliciesByGroupResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryGroupPoliciesByGroupResponse) ProtoMessage() {} - -// Deprecated: Use QueryGroupPoliciesByGroupResponse.ProtoReflect.Descriptor instead. -func (*QueryGroupPoliciesByGroupResponse) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_query_proto_rawDescGZIP(), []int{9} -} - -func (x *QueryGroupPoliciesByGroupResponse) GetGroupPolicies() []*GroupPolicyInfo { - if x != nil { - return x.GroupPolicies - } - return nil -} - -func (x *QueryGroupPoliciesByGroupResponse) GetPagination() *v1beta1.PageResponse { - if x != nil { - return x.Pagination - } - return nil -} - -// QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type. -type QueryGroupPoliciesByAdminRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // admin is the admin address of the group policy. - Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` - // pagination defines an optional pagination for the request. - Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *QueryGroupPoliciesByAdminRequest) Reset() { - *x = QueryGroupPoliciesByAdminRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_query_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryGroupPoliciesByAdminRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryGroupPoliciesByAdminRequest) ProtoMessage() {} - -// Deprecated: Use QueryGroupPoliciesByAdminRequest.ProtoReflect.Descriptor instead. -func (*QueryGroupPoliciesByAdminRequest) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_query_proto_rawDescGZIP(), []int{10} -} - -func (x *QueryGroupPoliciesByAdminRequest) GetAdmin() string { - if x != nil { - return x.Admin - } - return "" -} - -func (x *QueryGroupPoliciesByAdminRequest) GetPagination() *v1beta1.PageRequest { - if x != nil { - return x.Pagination - } - return nil -} - -// QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type. -type QueryGroupPoliciesByAdminResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // group_policies are the group policies info with provided admin. - GroupPolicies []*GroupPolicyInfo `protobuf:"bytes,1,rep,name=group_policies,json=groupPolicies,proto3" json:"group_policies,omitempty"` - // pagination defines the pagination in the response. - Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *QueryGroupPoliciesByAdminResponse) Reset() { - *x = QueryGroupPoliciesByAdminResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_query_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryGroupPoliciesByAdminResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryGroupPoliciesByAdminResponse) ProtoMessage() {} - -// Deprecated: Use QueryGroupPoliciesByAdminResponse.ProtoReflect.Descriptor instead. -func (*QueryGroupPoliciesByAdminResponse) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_query_proto_rawDescGZIP(), []int{11} -} - -func (x *QueryGroupPoliciesByAdminResponse) GetGroupPolicies() []*GroupPolicyInfo { - if x != nil { - return x.GroupPolicies - } - return nil -} - -func (x *QueryGroupPoliciesByAdminResponse) GetPagination() *v1beta1.PageResponse { - if x != nil { - return x.Pagination - } - return nil -} - -// QueryProposalRequest is the Query/Proposal request type. -type QueryProposalRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // proposal_id is the unique ID of a proposal. - ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` -} - -func (x *QueryProposalRequest) Reset() { - *x = QueryProposalRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_query_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryProposalRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryProposalRequest) ProtoMessage() {} - -// Deprecated: Use QueryProposalRequest.ProtoReflect.Descriptor instead. -func (*QueryProposalRequest) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_query_proto_rawDescGZIP(), []int{12} -} - -func (x *QueryProposalRequest) GetProposalId() uint64 { - if x != nil { - return x.ProposalId - } - return 0 -} - -// QueryProposalResponse is the Query/Proposal response type. -type QueryProposalResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // proposal is the proposal info. - Proposal *Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"` -} - -func (x *QueryProposalResponse) Reset() { - *x = QueryProposalResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_query_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryProposalResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryProposalResponse) ProtoMessage() {} - -// Deprecated: Use QueryProposalResponse.ProtoReflect.Descriptor instead. -func (*QueryProposalResponse) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_query_proto_rawDescGZIP(), []int{13} -} - -func (x *QueryProposalResponse) GetProposal() *Proposal { - if x != nil { - return x.Proposal - } - return nil -} - -// QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type. -type QueryProposalsByGroupPolicyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // address is the account address of the group policy related to proposals. - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - // pagination defines an optional pagination for the request. - Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *QueryProposalsByGroupPolicyRequest) Reset() { - *x = QueryProposalsByGroupPolicyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_query_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryProposalsByGroupPolicyRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryProposalsByGroupPolicyRequest) ProtoMessage() {} - -// Deprecated: Use QueryProposalsByGroupPolicyRequest.ProtoReflect.Descriptor instead. -func (*QueryProposalsByGroupPolicyRequest) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_query_proto_rawDescGZIP(), []int{14} -} - -func (x *QueryProposalsByGroupPolicyRequest) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -func (x *QueryProposalsByGroupPolicyRequest) GetPagination() *v1beta1.PageRequest { - if x != nil { - return x.Pagination - } - return nil -} - -// QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type. -type QueryProposalsByGroupPolicyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // proposals are the proposals with given group policy. - Proposals []*Proposal `protobuf:"bytes,1,rep,name=proposals,proto3" json:"proposals,omitempty"` - // pagination defines the pagination in the response. - Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *QueryProposalsByGroupPolicyResponse) Reset() { - *x = QueryProposalsByGroupPolicyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_query_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryProposalsByGroupPolicyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryProposalsByGroupPolicyResponse) ProtoMessage() {} - -// Deprecated: Use QueryProposalsByGroupPolicyResponse.ProtoReflect.Descriptor instead. -func (*QueryProposalsByGroupPolicyResponse) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_query_proto_rawDescGZIP(), []int{15} -} - -func (x *QueryProposalsByGroupPolicyResponse) GetProposals() []*Proposal { - if x != nil { - return x.Proposals - } - return nil -} - -func (x *QueryProposalsByGroupPolicyResponse) GetPagination() *v1beta1.PageResponse { - if x != nil { - return x.Pagination - } - return nil -} - -// QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type. -type QueryVoteByProposalVoterRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // proposal_id is the unique ID of a proposal. - ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` - // voter is a proposal voter account address. - Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"` -} - -func (x *QueryVoteByProposalVoterRequest) Reset() { - *x = QueryVoteByProposalVoterRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_query_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryVoteByProposalVoterRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryVoteByProposalVoterRequest) ProtoMessage() {} - -// Deprecated: Use QueryVoteByProposalVoterRequest.ProtoReflect.Descriptor instead. -func (*QueryVoteByProposalVoterRequest) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_query_proto_rawDescGZIP(), []int{16} -} - -func (x *QueryVoteByProposalVoterRequest) GetProposalId() uint64 { - if x != nil { - return x.ProposalId - } - return 0 -} - -func (x *QueryVoteByProposalVoterRequest) GetVoter() string { - if x != nil { - return x.Voter - } - return "" -} - -// QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type. -type QueryVoteByProposalVoterResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // vote is the vote with given proposal_id and voter. - Vote *Vote `protobuf:"bytes,1,opt,name=vote,proto3" json:"vote,omitempty"` -} - -func (x *QueryVoteByProposalVoterResponse) Reset() { - *x = QueryVoteByProposalVoterResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_query_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryVoteByProposalVoterResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryVoteByProposalVoterResponse) ProtoMessage() {} - -// Deprecated: Use QueryVoteByProposalVoterResponse.ProtoReflect.Descriptor instead. -func (*QueryVoteByProposalVoterResponse) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_query_proto_rawDescGZIP(), []int{17} -} - -func (x *QueryVoteByProposalVoterResponse) GetVote() *Vote { - if x != nil { - return x.Vote - } - return nil -} - -// QueryVotesByProposalRequest is the Query/VotesByProposal request type. -type QueryVotesByProposalRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // proposal_id is the unique ID of a proposal. - ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` - // pagination defines an optional pagination for the request. - Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *QueryVotesByProposalRequest) Reset() { - *x = QueryVotesByProposalRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_query_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryVotesByProposalRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryVotesByProposalRequest) ProtoMessage() {} - -// Deprecated: Use QueryVotesByProposalRequest.ProtoReflect.Descriptor instead. -func (*QueryVotesByProposalRequest) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_query_proto_rawDescGZIP(), []int{18} -} - -func (x *QueryVotesByProposalRequest) GetProposalId() uint64 { - if x != nil { - return x.ProposalId - } - return 0 -} - -func (x *QueryVotesByProposalRequest) GetPagination() *v1beta1.PageRequest { - if x != nil { - return x.Pagination - } - return nil -} - -// QueryVotesByProposalResponse is the Query/VotesByProposal response type. -type QueryVotesByProposalResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // votes are the list of votes for given proposal_id. - Votes []*Vote `protobuf:"bytes,1,rep,name=votes,proto3" json:"votes,omitempty"` - // pagination defines the pagination in the response. - Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *QueryVotesByProposalResponse) Reset() { - *x = QueryVotesByProposalResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_query_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryVotesByProposalResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryVotesByProposalResponse) ProtoMessage() {} - -// Deprecated: Use QueryVotesByProposalResponse.ProtoReflect.Descriptor instead. -func (*QueryVotesByProposalResponse) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_query_proto_rawDescGZIP(), []int{19} -} - -func (x *QueryVotesByProposalResponse) GetVotes() []*Vote { - if x != nil { - return x.Votes - } - return nil -} - -func (x *QueryVotesByProposalResponse) GetPagination() *v1beta1.PageResponse { - if x != nil { - return x.Pagination - } - return nil -} - -// QueryVotesByVoterRequest is the Query/VotesByVoter request type. -type QueryVotesByVoterRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // voter is a proposal voter account address. - Voter string `protobuf:"bytes,1,opt,name=voter,proto3" json:"voter,omitempty"` - // pagination defines an optional pagination for the request. - Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *QueryVotesByVoterRequest) Reset() { - *x = QueryVotesByVoterRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_query_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryVotesByVoterRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryVotesByVoterRequest) ProtoMessage() {} - -// Deprecated: Use QueryVotesByVoterRequest.ProtoReflect.Descriptor instead. -func (*QueryVotesByVoterRequest) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_query_proto_rawDescGZIP(), []int{20} -} - -func (x *QueryVotesByVoterRequest) GetVoter() string { - if x != nil { - return x.Voter - } - return "" -} - -func (x *QueryVotesByVoterRequest) GetPagination() *v1beta1.PageRequest { - if x != nil { - return x.Pagination - } - return nil -} - -// QueryVotesByVoterResponse is the Query/VotesByVoter response type. -type QueryVotesByVoterResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // votes are the list of votes by given voter. - Votes []*Vote `protobuf:"bytes,1,rep,name=votes,proto3" json:"votes,omitempty"` - // pagination defines the pagination in the response. - Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *QueryVotesByVoterResponse) Reset() { - *x = QueryVotesByVoterResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_query_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryVotesByVoterResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryVotesByVoterResponse) ProtoMessage() {} - -// Deprecated: Use QueryVotesByVoterResponse.ProtoReflect.Descriptor instead. -func (*QueryVotesByVoterResponse) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_query_proto_rawDescGZIP(), []int{21} -} - -func (x *QueryVotesByVoterResponse) GetVotes() []*Vote { - if x != nil { - return x.Votes - } - return nil -} - -func (x *QueryVotesByVoterResponse) GetPagination() *v1beta1.PageResponse { - if x != nil { - return x.Pagination - } - return nil -} - -// QueryGroupsByMemberRequest is the Query/GroupsByMember request type. -type QueryGroupsByMemberRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // address is the group member address. - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - // pagination defines an optional pagination for the request. - Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *QueryGroupsByMemberRequest) Reset() { - *x = QueryGroupsByMemberRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_query_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryGroupsByMemberRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryGroupsByMemberRequest) ProtoMessage() {} - -// Deprecated: Use QueryGroupsByMemberRequest.ProtoReflect.Descriptor instead. -func (*QueryGroupsByMemberRequest) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_query_proto_rawDescGZIP(), []int{22} -} - -func (x *QueryGroupsByMemberRequest) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -func (x *QueryGroupsByMemberRequest) GetPagination() *v1beta1.PageRequest { - if x != nil { - return x.Pagination - } - return nil -} - -// QueryGroupsByMemberResponse is the Query/GroupsByMember response type. -type QueryGroupsByMemberResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // groups are the groups info with the provided group member. - Groups []*GroupInfo `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"` - // pagination defines the pagination in the response. - Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *QueryGroupsByMemberResponse) Reset() { - *x = QueryGroupsByMemberResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_query_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryGroupsByMemberResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryGroupsByMemberResponse) ProtoMessage() {} - -// Deprecated: Use QueryGroupsByMemberResponse.ProtoReflect.Descriptor instead. -func (*QueryGroupsByMemberResponse) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_query_proto_rawDescGZIP(), []int{23} -} - -func (x *QueryGroupsByMemberResponse) GetGroups() []*GroupInfo { - if x != nil { - return x.Groups - } - return nil -} - -func (x *QueryGroupsByMemberResponse) GetPagination() *v1beta1.PageResponse { - if x != nil { - return x.Pagination - } - return nil -} - -// QueryTallyResultRequest is the Query/TallyResult request type. -type QueryTallyResultRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // proposal_id is the unique id of a proposal. - ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` -} - -func (x *QueryTallyResultRequest) Reset() { - *x = QueryTallyResultRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_query_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryTallyResultRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryTallyResultRequest) ProtoMessage() {} - -// Deprecated: Use QueryTallyResultRequest.ProtoReflect.Descriptor instead. -func (*QueryTallyResultRequest) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_query_proto_rawDescGZIP(), []int{24} -} - -func (x *QueryTallyResultRequest) GetProposalId() uint64 { - if x != nil { - return x.ProposalId - } - return 0 -} - -// QueryTallyResultResponse is the Query/TallyResult response type. -type QueryTallyResultResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // tally defines the requested tally. - Tally *TallyResult `protobuf:"bytes,1,opt,name=tally,proto3" json:"tally,omitempty"` -} - -func (x *QueryTallyResultResponse) Reset() { - *x = QueryTallyResultResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_query_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryTallyResultResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryTallyResultResponse) ProtoMessage() {} - -// Deprecated: Use QueryTallyResultResponse.ProtoReflect.Descriptor instead. -func (*QueryTallyResultResponse) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_query_proto_rawDescGZIP(), []int{25} -} - -func (x *QueryTallyResultResponse) GetTally() *TallyResult { - if x != nil { - return x.Tally - } - return nil -} - -// QueryGroupsRequest is the Query/Groups request type. -type QueryGroupsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // pagination defines an optional pagination for the request. - Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *QueryGroupsRequest) Reset() { - *x = QueryGroupsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_query_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryGroupsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryGroupsRequest) ProtoMessage() {} - -// Deprecated: Use QueryGroupsRequest.ProtoReflect.Descriptor instead. -func (*QueryGroupsRequest) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_query_proto_rawDescGZIP(), []int{26} -} - -func (x *QueryGroupsRequest) GetPagination() *v1beta1.PageRequest { - if x != nil { - return x.Pagination - } - return nil -} - -// QueryGroupsResponse is the Query/Groups response type. -type QueryGroupsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // `groups` is all the groups present in state. - Groups []*GroupInfo `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"` - // pagination defines the pagination in the response. - Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *QueryGroupsResponse) Reset() { - *x = QueryGroupsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_query_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryGroupsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryGroupsResponse) ProtoMessage() {} - -// Deprecated: Use QueryGroupsResponse.ProtoReflect.Descriptor instead. -func (*QueryGroupsResponse) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_query_proto_rawDescGZIP(), []int{27} -} - -func (x *QueryGroupsResponse) GetGroups() []*GroupInfo { - if x != nil { - return x.Groups - } - return nil -} - -func (x *QueryGroupsResponse) GetPagination() *v1beta1.PageResponse { - if x != nil { - return x.Pagination - } - return nil -} - -var File_cosmos_group_v1_query_proto protoreflect.FileDescriptor - -var file_cosmos_group_v1_query_proto_rawDesc = []byte{ - 0x0a, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, - 0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x1a, 0x14, - 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, - 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, - 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, - 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x32, 0x0a, 0x15, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x22, 0x48, 0x0a, - 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, - 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x66, - 0x6f, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x51, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x54, 0x0a, 0x1c, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x6e, - 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x04, 0x69, 0x6e, - 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, - 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, - 0x22, 0x7d, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, - 0x6d, 0x62, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, - 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, - 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, - 0x9c, 0x01, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, - 0x6d, 0x62, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, - 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, - 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, - 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x07, 0x6d, 0x65, - 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x93, - 0x01, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x42, 0x79, - 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x05, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, - 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x46, 0x0a, 0x0a, - 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, - 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x99, 0x01, 0x0a, 0x1a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, - 0x6f, 0x75, 0x70, 0x73, 0x42, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, - 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, - 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x22, 0x85, 0x01, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, - 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x42, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, - 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, - 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, - 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xb5, 0x01, 0x0a, 0x21, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x42, - 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, - 0x0a, 0x0e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0d, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x50, - 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x22, 0x9a, 0x01, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, - 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x42, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xb5, 0x01, - 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, - 0x63, 0x69, 0x65, 0x73, 0x42, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6f, 0x6c, - 0x69, 0x63, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, - 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0d, 0x67, - 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x0a, - 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, - 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x37, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, - 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, - 0x0b, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x49, 0x64, 0x22, 0x4e, - 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, - 0x73, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x70, - 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x22, 0xa0, - 0x01, 0x0a, 0x22, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, - 0x73, 0x42, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, - 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, - 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x22, 0xa7, 0x01, 0x0a, 0x23, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, - 0x73, 0x61, 0x6c, 0x73, 0x42, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x09, 0x70, 0x72, 0x6f, - 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x50, - 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, - 0x6c, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, - 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x72, 0x0a, 0x1f, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x42, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, - 0x61, 0x6c, 0x56, 0x6f, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, - 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x49, 0x64, 0x12, - 0x2e, 0x0a, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, - 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x72, 0x22, - 0x4d, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x42, 0x79, 0x50, 0x72, - 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x56, 0x6f, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x04, 0x76, 0x6f, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, - 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x6f, 0x74, 0x65, 0x52, 0x04, 0x76, 0x6f, 0x74, 0x65, 0x22, 0x86, - 0x01, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x42, 0x79, 0x50, - 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, - 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x49, 0x64, 0x12, - 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, - 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, - 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x94, 0x01, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x42, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x05, 0x76, 0x6f, 0x74, 0x65, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x6f, 0x74, 0x65, 0x52, 0x05, - 0x76, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x92, - 0x01, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x42, 0x79, 0x56, - 0x6f, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x05, 0x76, - 0x6f, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x72, 0x12, 0x46, 0x0a, 0x0a, 0x70, - 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, - 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x22, 0x91, 0x01, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x6f, 0x74, - 0x65, 0x73, 0x42, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x2b, 0x0a, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x15, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, - 0x76, 0x31, 0x2e, 0x56, 0x6f, 0x74, 0x65, 0x52, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x47, - 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, - 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, - 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, - 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x98, 0x01, 0x0a, 0x1a, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x42, 0x79, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, - 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, - 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, - 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x22, 0x9a, 0x01, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, - 0x70, 0x73, 0x42, 0x79, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x32, 0x0a, 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, - 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, - 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, - 0x3a, 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x61, 0x6c, 0x6c, 0x79, 0x52, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, - 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x49, 0x64, 0x22, 0x59, 0x0a, 0x18, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x54, 0x61, 0x6c, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x05, 0x74, 0x61, 0x6c, 0x6c, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x6c, 0x6c, 0x79, 0x52, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, - 0x05, 0x74, 0x61, 0x6c, 0x6c, 0x79, 0x22, 0x73, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, - 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, - 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, - 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x15, 0xd2, 0xb4, 0x2d, 0x11, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x37, 0x2e, 0x31, 0x22, 0xa9, 0x01, 0x0a, 0x13, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, - 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, - 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x3a, 0x15, 0xd2, 0xb4, 0x2d, 0x11, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, - 0x20, 0x30, 0x2e, 0x34, 0x37, 0x2e, 0x31, 0x32, 0x91, 0x12, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x12, 0x8c, 0x01, 0x0a, 0x09, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x12, - 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x66, 0x6f, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, - 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, - 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x2f, 0x7b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x7d, - 0x12, 0xa4, 0x01, 0x0a, 0x0f, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2c, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, - 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, - 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, - 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, - 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x34, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x12, 0x2c, 0x2f, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x72, 0x6f, 0x75, - 0x70, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x2f, 0x7b, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0x98, 0x01, 0x0a, 0x0c, 0x47, 0x72, 0x6f, 0x75, - 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x29, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, - 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, - 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, - 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, - 0x64, 0x7d, 0x12, 0x9a, 0x01, 0x0a, 0x0d, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x42, 0x79, 0x41, - 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x2a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, - 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, - 0x70, 0x73, 0x42, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x2b, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, - 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x42, 0x79, - 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x30, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x12, 0x28, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, - 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x5f, 0x62, - 0x79, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x7b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x7d, 0x12, - 0xba, 0x01, 0x0a, 0x14, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, - 0x73, 0x42, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x31, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x42, 0x79, 0x47, - 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, - 0x42, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x3b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x35, 0x12, 0x33, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, - 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5f, 0x62, 0x79, 0x5f, 0x67, 0x72, 0x6f, 0x75, - 0x70, 0x2f, 0x7b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xb7, 0x01, 0x0a, - 0x14, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x42, 0x79, - 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x31, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, - 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, - 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x42, 0x79, 0x41, 0x64, 0x6d, 0x69, - 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x42, 0x79, 0x41, - 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x38, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x32, 0x12, 0x30, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x72, - 0x6f, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6f, 0x6c, - 0x69, 0x63, 0x69, 0x65, 0x73, 0x5f, 0x62, 0x79, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x7b, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x7d, 0x12, 0x8a, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, - 0x73, 0x61, 0x6c, 0x12, 0x25, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, - 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, - 0x73, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x12, 0x27, 0x2f, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, - 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, - 0x69, 0x64, 0x7d, 0x12, 0xc1, 0x01, 0x0a, 0x16, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, - 0x73, 0x42, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x33, - 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x42, - 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, - 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, - 0x73, 0x61, 0x6c, 0x73, 0x42, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3c, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x36, 0x12, 0x34, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, - 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x5f, 0x62, 0x79, - 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2f, 0x7b, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0xc1, 0x01, 0x0a, 0x13, 0x56, 0x6f, 0x74, 0x65, - 0x42, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x56, 0x6f, 0x74, 0x65, 0x72, 0x12, - 0x30, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x42, 0x79, 0x50, 0x72, 0x6f, - 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x56, 0x6f, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x31, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, - 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x42, 0x79, 0x50, - 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x56, 0x6f, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x45, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3f, 0x12, 0x3d, 0x2f, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x76, - 0x6f, 0x74, 0x65, 0x5f, 0x62, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, - 0x76, 0x6f, 0x74, 0x65, 0x72, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, - 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x76, 0x6f, 0x74, 0x65, 0x72, 0x7d, 0x12, 0xa8, 0x01, 0x0a, 0x0f, - 0x56, 0x6f, 0x74, 0x65, 0x73, 0x42, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, - 0x2c, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x42, 0x79, 0x50, 0x72, - 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x42, 0x79, 0x50, 0x72, 0x6f, 0x70, - 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x38, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x32, 0x12, 0x30, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x72, - 0x6f, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x6f, 0x74, 0x65, 0x73, 0x5f, 0x62, 0x79, 0x5f, - 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, - 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x96, 0x01, 0x0a, 0x0c, 0x56, 0x6f, 0x74, 0x65, 0x73, - 0x42, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x72, 0x12, 0x29, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, - 0x6f, 0x74, 0x65, 0x73, 0x42, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, - 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x42, - 0x79, 0x56, 0x6f, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2f, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x12, 0x27, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, - 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x6f, 0x74, 0x65, 0x73, 0x5f, 0x62, - 0x79, 0x5f, 0x76, 0x6f, 0x74, 0x65, 0x72, 0x2f, 0x7b, 0x76, 0x6f, 0x74, 0x65, 0x72, 0x7d, 0x12, - 0xa0, 0x01, 0x0a, 0x0e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x42, 0x79, 0x4d, 0x65, 0x6d, 0x62, - 0x65, 0x72, 0x12, 0x2b, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, - 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, - 0x42, 0x79, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x2c, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x42, 0x79, 0x4d, - 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, - 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x5f, 0x62, - 0x79, 0x5f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x7d, 0x12, 0x9a, 0x01, 0x0a, 0x0b, 0x54, 0x61, 0x6c, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x12, 0x28, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, - 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x61, 0x6c, 0x6c, 0x79, 0x52, - 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x54, 0x61, 0x6c, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x36, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x12, - 0x2e, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, - 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, - 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x74, 0x61, 0x6c, 0x6c, 0x79, 0x12, - 0x89, 0x01, 0x0a, 0x06, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x23, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x24, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x34, 0xca, 0xb4, 0x2d, 0x11, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x37, 0x2e, 0x31, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x19, 0x12, 0x17, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, - 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x42, 0xa9, 0x01, 0x0a, 0x13, - 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, - 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, - 0x01, 0x5a, 0x28, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, - 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, - 0x2f, 0x76, 0x31, 0x3b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x47, - 0x58, 0xaa, 0x02, 0x0f, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, - 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0f, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x47, 0x72, 0x6f, - 0x75, 0x70, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1b, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x47, - 0x72, 0x6f, 0x75, 0x70, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x47, 0x72, - 0x6f, 0x75, 0x70, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cosmos_group_v1_query_proto_rawDescOnce sync.Once - file_cosmos_group_v1_query_proto_rawDescData = file_cosmos_group_v1_query_proto_rawDesc -) - -func file_cosmos_group_v1_query_proto_rawDescGZIP() []byte { - file_cosmos_group_v1_query_proto_rawDescOnce.Do(func() { - file_cosmos_group_v1_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_group_v1_query_proto_rawDescData) - }) - return file_cosmos_group_v1_query_proto_rawDescData -} - -var file_cosmos_group_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 28) -var file_cosmos_group_v1_query_proto_goTypes = []interface{}{ - (*QueryGroupInfoRequest)(nil), // 0: cosmos.group.v1.QueryGroupInfoRequest - (*QueryGroupInfoResponse)(nil), // 1: cosmos.group.v1.QueryGroupInfoResponse - (*QueryGroupPolicyInfoRequest)(nil), // 2: cosmos.group.v1.QueryGroupPolicyInfoRequest - (*QueryGroupPolicyInfoResponse)(nil), // 3: cosmos.group.v1.QueryGroupPolicyInfoResponse - (*QueryGroupMembersRequest)(nil), // 4: cosmos.group.v1.QueryGroupMembersRequest - (*QueryGroupMembersResponse)(nil), // 5: cosmos.group.v1.QueryGroupMembersResponse - (*QueryGroupsByAdminRequest)(nil), // 6: cosmos.group.v1.QueryGroupsByAdminRequest - (*QueryGroupsByAdminResponse)(nil), // 7: cosmos.group.v1.QueryGroupsByAdminResponse - (*QueryGroupPoliciesByGroupRequest)(nil), // 8: cosmos.group.v1.QueryGroupPoliciesByGroupRequest - (*QueryGroupPoliciesByGroupResponse)(nil), // 9: cosmos.group.v1.QueryGroupPoliciesByGroupResponse - (*QueryGroupPoliciesByAdminRequest)(nil), // 10: cosmos.group.v1.QueryGroupPoliciesByAdminRequest - (*QueryGroupPoliciesByAdminResponse)(nil), // 11: cosmos.group.v1.QueryGroupPoliciesByAdminResponse - (*QueryProposalRequest)(nil), // 12: cosmos.group.v1.QueryProposalRequest - (*QueryProposalResponse)(nil), // 13: cosmos.group.v1.QueryProposalResponse - (*QueryProposalsByGroupPolicyRequest)(nil), // 14: cosmos.group.v1.QueryProposalsByGroupPolicyRequest - (*QueryProposalsByGroupPolicyResponse)(nil), // 15: cosmos.group.v1.QueryProposalsByGroupPolicyResponse - (*QueryVoteByProposalVoterRequest)(nil), // 16: cosmos.group.v1.QueryVoteByProposalVoterRequest - (*QueryVoteByProposalVoterResponse)(nil), // 17: cosmos.group.v1.QueryVoteByProposalVoterResponse - (*QueryVotesByProposalRequest)(nil), // 18: cosmos.group.v1.QueryVotesByProposalRequest - (*QueryVotesByProposalResponse)(nil), // 19: cosmos.group.v1.QueryVotesByProposalResponse - (*QueryVotesByVoterRequest)(nil), // 20: cosmos.group.v1.QueryVotesByVoterRequest - (*QueryVotesByVoterResponse)(nil), // 21: cosmos.group.v1.QueryVotesByVoterResponse - (*QueryGroupsByMemberRequest)(nil), // 22: cosmos.group.v1.QueryGroupsByMemberRequest - (*QueryGroupsByMemberResponse)(nil), // 23: cosmos.group.v1.QueryGroupsByMemberResponse - (*QueryTallyResultRequest)(nil), // 24: cosmos.group.v1.QueryTallyResultRequest - (*QueryTallyResultResponse)(nil), // 25: cosmos.group.v1.QueryTallyResultResponse - (*QueryGroupsRequest)(nil), // 26: cosmos.group.v1.QueryGroupsRequest - (*QueryGroupsResponse)(nil), // 27: cosmos.group.v1.QueryGroupsResponse - (*GroupInfo)(nil), // 28: cosmos.group.v1.GroupInfo - (*GroupPolicyInfo)(nil), // 29: cosmos.group.v1.GroupPolicyInfo - (*v1beta1.PageRequest)(nil), // 30: cosmos.base.query.v1beta1.PageRequest - (*GroupMember)(nil), // 31: cosmos.group.v1.GroupMember - (*v1beta1.PageResponse)(nil), // 32: cosmos.base.query.v1beta1.PageResponse - (*Proposal)(nil), // 33: cosmos.group.v1.Proposal - (*Vote)(nil), // 34: cosmos.group.v1.Vote - (*TallyResult)(nil), // 35: cosmos.group.v1.TallyResult -} -var file_cosmos_group_v1_query_proto_depIdxs = []int32{ - 28, // 0: cosmos.group.v1.QueryGroupInfoResponse.info:type_name -> cosmos.group.v1.GroupInfo - 29, // 1: cosmos.group.v1.QueryGroupPolicyInfoResponse.info:type_name -> cosmos.group.v1.GroupPolicyInfo - 30, // 2: cosmos.group.v1.QueryGroupMembersRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 31, // 3: cosmos.group.v1.QueryGroupMembersResponse.members:type_name -> cosmos.group.v1.GroupMember - 32, // 4: cosmos.group.v1.QueryGroupMembersResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 30, // 5: cosmos.group.v1.QueryGroupsByAdminRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 28, // 6: cosmos.group.v1.QueryGroupsByAdminResponse.groups:type_name -> cosmos.group.v1.GroupInfo - 32, // 7: cosmos.group.v1.QueryGroupsByAdminResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 30, // 8: cosmos.group.v1.QueryGroupPoliciesByGroupRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 29, // 9: cosmos.group.v1.QueryGroupPoliciesByGroupResponse.group_policies:type_name -> cosmos.group.v1.GroupPolicyInfo - 32, // 10: cosmos.group.v1.QueryGroupPoliciesByGroupResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 30, // 11: cosmos.group.v1.QueryGroupPoliciesByAdminRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 29, // 12: cosmos.group.v1.QueryGroupPoliciesByAdminResponse.group_policies:type_name -> cosmos.group.v1.GroupPolicyInfo - 32, // 13: cosmos.group.v1.QueryGroupPoliciesByAdminResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 33, // 14: cosmos.group.v1.QueryProposalResponse.proposal:type_name -> cosmos.group.v1.Proposal - 30, // 15: cosmos.group.v1.QueryProposalsByGroupPolicyRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 33, // 16: cosmos.group.v1.QueryProposalsByGroupPolicyResponse.proposals:type_name -> cosmos.group.v1.Proposal - 32, // 17: cosmos.group.v1.QueryProposalsByGroupPolicyResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 34, // 18: cosmos.group.v1.QueryVoteByProposalVoterResponse.vote:type_name -> cosmos.group.v1.Vote - 30, // 19: cosmos.group.v1.QueryVotesByProposalRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 34, // 20: cosmos.group.v1.QueryVotesByProposalResponse.votes:type_name -> cosmos.group.v1.Vote - 32, // 21: cosmos.group.v1.QueryVotesByProposalResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 30, // 22: cosmos.group.v1.QueryVotesByVoterRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 34, // 23: cosmos.group.v1.QueryVotesByVoterResponse.votes:type_name -> cosmos.group.v1.Vote - 32, // 24: cosmos.group.v1.QueryVotesByVoterResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 30, // 25: cosmos.group.v1.QueryGroupsByMemberRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 28, // 26: cosmos.group.v1.QueryGroupsByMemberResponse.groups:type_name -> cosmos.group.v1.GroupInfo - 32, // 27: cosmos.group.v1.QueryGroupsByMemberResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 35, // 28: cosmos.group.v1.QueryTallyResultResponse.tally:type_name -> cosmos.group.v1.TallyResult - 30, // 29: cosmos.group.v1.QueryGroupsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 28, // 30: cosmos.group.v1.QueryGroupsResponse.groups:type_name -> cosmos.group.v1.GroupInfo - 32, // 31: cosmos.group.v1.QueryGroupsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 0, // 32: cosmos.group.v1.Query.GroupInfo:input_type -> cosmos.group.v1.QueryGroupInfoRequest - 2, // 33: cosmos.group.v1.Query.GroupPolicyInfo:input_type -> cosmos.group.v1.QueryGroupPolicyInfoRequest - 4, // 34: cosmos.group.v1.Query.GroupMembers:input_type -> cosmos.group.v1.QueryGroupMembersRequest - 6, // 35: cosmos.group.v1.Query.GroupsByAdmin:input_type -> cosmos.group.v1.QueryGroupsByAdminRequest - 8, // 36: cosmos.group.v1.Query.GroupPoliciesByGroup:input_type -> cosmos.group.v1.QueryGroupPoliciesByGroupRequest - 10, // 37: cosmos.group.v1.Query.GroupPoliciesByAdmin:input_type -> cosmos.group.v1.QueryGroupPoliciesByAdminRequest - 12, // 38: cosmos.group.v1.Query.Proposal:input_type -> cosmos.group.v1.QueryProposalRequest - 14, // 39: cosmos.group.v1.Query.ProposalsByGroupPolicy:input_type -> cosmos.group.v1.QueryProposalsByGroupPolicyRequest - 16, // 40: cosmos.group.v1.Query.VoteByProposalVoter:input_type -> cosmos.group.v1.QueryVoteByProposalVoterRequest - 18, // 41: cosmos.group.v1.Query.VotesByProposal:input_type -> cosmos.group.v1.QueryVotesByProposalRequest - 20, // 42: cosmos.group.v1.Query.VotesByVoter:input_type -> cosmos.group.v1.QueryVotesByVoterRequest - 22, // 43: cosmos.group.v1.Query.GroupsByMember:input_type -> cosmos.group.v1.QueryGroupsByMemberRequest - 24, // 44: cosmos.group.v1.Query.TallyResult:input_type -> cosmos.group.v1.QueryTallyResultRequest - 26, // 45: cosmos.group.v1.Query.Groups:input_type -> cosmos.group.v1.QueryGroupsRequest - 1, // 46: cosmos.group.v1.Query.GroupInfo:output_type -> cosmos.group.v1.QueryGroupInfoResponse - 3, // 47: cosmos.group.v1.Query.GroupPolicyInfo:output_type -> cosmos.group.v1.QueryGroupPolicyInfoResponse - 5, // 48: cosmos.group.v1.Query.GroupMembers:output_type -> cosmos.group.v1.QueryGroupMembersResponse - 7, // 49: cosmos.group.v1.Query.GroupsByAdmin:output_type -> cosmos.group.v1.QueryGroupsByAdminResponse - 9, // 50: cosmos.group.v1.Query.GroupPoliciesByGroup:output_type -> cosmos.group.v1.QueryGroupPoliciesByGroupResponse - 11, // 51: cosmos.group.v1.Query.GroupPoliciesByAdmin:output_type -> cosmos.group.v1.QueryGroupPoliciesByAdminResponse - 13, // 52: cosmos.group.v1.Query.Proposal:output_type -> cosmos.group.v1.QueryProposalResponse - 15, // 53: cosmos.group.v1.Query.ProposalsByGroupPolicy:output_type -> cosmos.group.v1.QueryProposalsByGroupPolicyResponse - 17, // 54: cosmos.group.v1.Query.VoteByProposalVoter:output_type -> cosmos.group.v1.QueryVoteByProposalVoterResponse - 19, // 55: cosmos.group.v1.Query.VotesByProposal:output_type -> cosmos.group.v1.QueryVotesByProposalResponse - 21, // 56: cosmos.group.v1.Query.VotesByVoter:output_type -> cosmos.group.v1.QueryVotesByVoterResponse - 23, // 57: cosmos.group.v1.Query.GroupsByMember:output_type -> cosmos.group.v1.QueryGroupsByMemberResponse - 25, // 58: cosmos.group.v1.Query.TallyResult:output_type -> cosmos.group.v1.QueryTallyResultResponse - 27, // 59: cosmos.group.v1.Query.Groups:output_type -> cosmos.group.v1.QueryGroupsResponse - 46, // [46:60] is the sub-list for method output_type - 32, // [32:46] is the sub-list for method input_type - 32, // [32:32] is the sub-list for extension type_name - 32, // [32:32] is the sub-list for extension extendee - 0, // [0:32] is the sub-list for field type_name -} - -func init() { file_cosmos_group_v1_query_proto_init() } -func file_cosmos_group_v1_query_proto_init() { - if File_cosmos_group_v1_query_proto != nil { - return - } - file_cosmos_group_v1_types_proto_init() - if !protoimpl.UnsafeEnabled { - file_cosmos_group_v1_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGroupInfoRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGroupInfoResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGroupPolicyInfoRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGroupPolicyInfoResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGroupMembersRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGroupMembersResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGroupsByAdminRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGroupsByAdminResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_query_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGroupPoliciesByGroupRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_query_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGroupPoliciesByGroupResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_query_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGroupPoliciesByAdminRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_query_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGroupPoliciesByAdminResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_query_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryProposalRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_query_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryProposalResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_query_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryProposalsByGroupPolicyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_query_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryProposalsByGroupPolicyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_query_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryVoteByProposalVoterRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_query_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryVoteByProposalVoterResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_query_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryVotesByProposalRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_query_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryVotesByProposalResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_query_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryVotesByVoterRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_query_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryVotesByVoterResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_query_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGroupsByMemberRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_query_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGroupsByMemberResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_query_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryTallyResultRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_query_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryTallyResultResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_query_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGroupsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_query_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGroupsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cosmos_group_v1_query_proto_rawDesc, - NumEnums: 0, - NumMessages: 28, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_cosmos_group_v1_query_proto_goTypes, - DependencyIndexes: file_cosmos_group_v1_query_proto_depIdxs, - MessageInfos: file_cosmos_group_v1_query_proto_msgTypes, - }.Build() - File_cosmos_group_v1_query_proto = out.File - file_cosmos_group_v1_query_proto_rawDesc = nil - file_cosmos_group_v1_query_proto_goTypes = nil - file_cosmos_group_v1_query_proto_depIdxs = nil -} diff --git a/api/cosmos/group/v1/query_grpc.pb.go b/api/cosmos/group/v1/query_grpc.pb.go deleted file mode 100644 index 4996f0d331..0000000000 --- a/api/cosmos/group/v1/query_grpc.pb.go +++ /dev/null @@ -1,655 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.5.1 -// - protoc (unknown) -// source: cosmos/group/v1/query.proto - -package groupv1 - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.64.0 or later. -const _ = grpc.SupportPackageIsVersion9 - -const ( - Query_GroupInfo_FullMethodName = "/cosmos.group.v1.Query/GroupInfo" - Query_GroupPolicyInfo_FullMethodName = "/cosmos.group.v1.Query/GroupPolicyInfo" - Query_GroupMembers_FullMethodName = "/cosmos.group.v1.Query/GroupMembers" - Query_GroupsByAdmin_FullMethodName = "/cosmos.group.v1.Query/GroupsByAdmin" - Query_GroupPoliciesByGroup_FullMethodName = "/cosmos.group.v1.Query/GroupPoliciesByGroup" - Query_GroupPoliciesByAdmin_FullMethodName = "/cosmos.group.v1.Query/GroupPoliciesByAdmin" - Query_Proposal_FullMethodName = "/cosmos.group.v1.Query/Proposal" - Query_ProposalsByGroupPolicy_FullMethodName = "/cosmos.group.v1.Query/ProposalsByGroupPolicy" - Query_VoteByProposalVoter_FullMethodName = "/cosmos.group.v1.Query/VoteByProposalVoter" - Query_VotesByProposal_FullMethodName = "/cosmos.group.v1.Query/VotesByProposal" - Query_VotesByVoter_FullMethodName = "/cosmos.group.v1.Query/VotesByVoter" - Query_GroupsByMember_FullMethodName = "/cosmos.group.v1.Query/GroupsByMember" - Query_TallyResult_FullMethodName = "/cosmos.group.v1.Query/TallyResult" - Query_Groups_FullMethodName = "/cosmos.group.v1.Query/Groups" -) - -// QueryClient is the client API for Query service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -// -// Query is the cosmos.group.v1 Query service. -type QueryClient interface { - // GroupInfo queries group info based on group id. - GroupInfo(ctx context.Context, in *QueryGroupInfoRequest, opts ...grpc.CallOption) (*QueryGroupInfoResponse, error) - // GroupPolicyInfo queries group policy info based on account address of group policy. - GroupPolicyInfo(ctx context.Context, in *QueryGroupPolicyInfoRequest, opts ...grpc.CallOption) (*QueryGroupPolicyInfoResponse, error) - // GroupMembers queries members of a group by group id. - GroupMembers(ctx context.Context, in *QueryGroupMembersRequest, opts ...grpc.CallOption) (*QueryGroupMembersResponse, error) - // GroupsByAdmin queries groups by admin address. - GroupsByAdmin(ctx context.Context, in *QueryGroupsByAdminRequest, opts ...grpc.CallOption) (*QueryGroupsByAdminResponse, error) - // GroupPoliciesByGroup queries group policies by group id. - GroupPoliciesByGroup(ctx context.Context, in *QueryGroupPoliciesByGroupRequest, opts ...grpc.CallOption) (*QueryGroupPoliciesByGroupResponse, error) - // GroupPoliciesByAdmin queries group policies by admin address. - GroupPoliciesByAdmin(ctx context.Context, in *QueryGroupPoliciesByAdminRequest, opts ...grpc.CallOption) (*QueryGroupPoliciesByAdminResponse, error) - // Proposal queries a proposal based on proposal id. - Proposal(ctx context.Context, in *QueryProposalRequest, opts ...grpc.CallOption) (*QueryProposalResponse, error) - // ProposalsByGroupPolicy queries proposals based on account address of group policy. - ProposalsByGroupPolicy(ctx context.Context, in *QueryProposalsByGroupPolicyRequest, opts ...grpc.CallOption) (*QueryProposalsByGroupPolicyResponse, error) - // VoteByProposalVoter queries a vote by proposal id and voter. - VoteByProposalVoter(ctx context.Context, in *QueryVoteByProposalVoterRequest, opts ...grpc.CallOption) (*QueryVoteByProposalVoterResponse, error) - // VotesByProposal queries a vote by proposal id. - VotesByProposal(ctx context.Context, in *QueryVotesByProposalRequest, opts ...grpc.CallOption) (*QueryVotesByProposalResponse, error) - // VotesByVoter queries a vote by voter. - VotesByVoter(ctx context.Context, in *QueryVotesByVoterRequest, opts ...grpc.CallOption) (*QueryVotesByVoterResponse, error) - // GroupsByMember queries groups by member address. - GroupsByMember(ctx context.Context, in *QueryGroupsByMemberRequest, opts ...grpc.CallOption) (*QueryGroupsByMemberResponse, error) - // 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. - TallyResult(ctx context.Context, in *QueryTallyResultRequest, opts ...grpc.CallOption) (*QueryTallyResultResponse, error) - // Groups queries all groups in state. - Groups(ctx context.Context, in *QueryGroupsRequest, opts ...grpc.CallOption) (*QueryGroupsResponse, error) -} - -type queryClient struct { - cc grpc.ClientConnInterface -} - -func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { - return &queryClient{cc} -} - -func (c *queryClient) GroupInfo(ctx context.Context, in *QueryGroupInfoRequest, opts ...grpc.CallOption) (*QueryGroupInfoResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(QueryGroupInfoResponse) - err := c.cc.Invoke(ctx, Query_GroupInfo_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) GroupPolicyInfo(ctx context.Context, in *QueryGroupPolicyInfoRequest, opts ...grpc.CallOption) (*QueryGroupPolicyInfoResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(QueryGroupPolicyInfoResponse) - err := c.cc.Invoke(ctx, Query_GroupPolicyInfo_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) GroupMembers(ctx context.Context, in *QueryGroupMembersRequest, opts ...grpc.CallOption) (*QueryGroupMembersResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(QueryGroupMembersResponse) - err := c.cc.Invoke(ctx, Query_GroupMembers_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) GroupsByAdmin(ctx context.Context, in *QueryGroupsByAdminRequest, opts ...grpc.CallOption) (*QueryGroupsByAdminResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(QueryGroupsByAdminResponse) - err := c.cc.Invoke(ctx, Query_GroupsByAdmin_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) GroupPoliciesByGroup(ctx context.Context, in *QueryGroupPoliciesByGroupRequest, opts ...grpc.CallOption) (*QueryGroupPoliciesByGroupResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(QueryGroupPoliciesByGroupResponse) - err := c.cc.Invoke(ctx, Query_GroupPoliciesByGroup_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) GroupPoliciesByAdmin(ctx context.Context, in *QueryGroupPoliciesByAdminRequest, opts ...grpc.CallOption) (*QueryGroupPoliciesByAdminResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(QueryGroupPoliciesByAdminResponse) - err := c.cc.Invoke(ctx, Query_GroupPoliciesByAdmin_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Proposal(ctx context.Context, in *QueryProposalRequest, opts ...grpc.CallOption) (*QueryProposalResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(QueryProposalResponse) - err := c.cc.Invoke(ctx, Query_Proposal_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) ProposalsByGroupPolicy(ctx context.Context, in *QueryProposalsByGroupPolicyRequest, opts ...grpc.CallOption) (*QueryProposalsByGroupPolicyResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(QueryProposalsByGroupPolicyResponse) - err := c.cc.Invoke(ctx, Query_ProposalsByGroupPolicy_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) VoteByProposalVoter(ctx context.Context, in *QueryVoteByProposalVoterRequest, opts ...grpc.CallOption) (*QueryVoteByProposalVoterResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(QueryVoteByProposalVoterResponse) - err := c.cc.Invoke(ctx, Query_VoteByProposalVoter_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) VotesByProposal(ctx context.Context, in *QueryVotesByProposalRequest, opts ...grpc.CallOption) (*QueryVotesByProposalResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(QueryVotesByProposalResponse) - err := c.cc.Invoke(ctx, Query_VotesByProposal_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) VotesByVoter(ctx context.Context, in *QueryVotesByVoterRequest, opts ...grpc.CallOption) (*QueryVotesByVoterResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(QueryVotesByVoterResponse) - err := c.cc.Invoke(ctx, Query_VotesByVoter_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) GroupsByMember(ctx context.Context, in *QueryGroupsByMemberRequest, opts ...grpc.CallOption) (*QueryGroupsByMemberResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(QueryGroupsByMemberResponse) - err := c.cc.Invoke(ctx, Query_GroupsByMember_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) TallyResult(ctx context.Context, in *QueryTallyResultRequest, opts ...grpc.CallOption) (*QueryTallyResultResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(QueryTallyResultResponse) - err := c.cc.Invoke(ctx, Query_TallyResult_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Groups(ctx context.Context, in *QueryGroupsRequest, opts ...grpc.CallOption) (*QueryGroupsResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(QueryGroupsResponse) - err := c.cc.Invoke(ctx, Query_Groups_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -// QueryServer is the server API for Query service. -// All implementations must embed UnimplementedQueryServer -// for forward compatibility. -// -// Query is the cosmos.group.v1 Query service. -type QueryServer interface { - // GroupInfo queries group info based on group id. - GroupInfo(context.Context, *QueryGroupInfoRequest) (*QueryGroupInfoResponse, error) - // GroupPolicyInfo queries group policy info based on account address of group policy. - GroupPolicyInfo(context.Context, *QueryGroupPolicyInfoRequest) (*QueryGroupPolicyInfoResponse, error) - // GroupMembers queries members of a group by group id. - GroupMembers(context.Context, *QueryGroupMembersRequest) (*QueryGroupMembersResponse, error) - // GroupsByAdmin queries groups by admin address. - GroupsByAdmin(context.Context, *QueryGroupsByAdminRequest) (*QueryGroupsByAdminResponse, error) - // GroupPoliciesByGroup queries group policies by group id. - GroupPoliciesByGroup(context.Context, *QueryGroupPoliciesByGroupRequest) (*QueryGroupPoliciesByGroupResponse, error) - // GroupPoliciesByAdmin queries group policies by admin address. - GroupPoliciesByAdmin(context.Context, *QueryGroupPoliciesByAdminRequest) (*QueryGroupPoliciesByAdminResponse, error) - // Proposal queries a proposal based on proposal id. - Proposal(context.Context, *QueryProposalRequest) (*QueryProposalResponse, error) - // ProposalsByGroupPolicy queries proposals based on account address of group policy. - ProposalsByGroupPolicy(context.Context, *QueryProposalsByGroupPolicyRequest) (*QueryProposalsByGroupPolicyResponse, error) - // VoteByProposalVoter queries a vote by proposal id and voter. - VoteByProposalVoter(context.Context, *QueryVoteByProposalVoterRequest) (*QueryVoteByProposalVoterResponse, error) - // VotesByProposal queries a vote by proposal id. - VotesByProposal(context.Context, *QueryVotesByProposalRequest) (*QueryVotesByProposalResponse, error) - // VotesByVoter queries a vote by voter. - VotesByVoter(context.Context, *QueryVotesByVoterRequest) (*QueryVotesByVoterResponse, error) - // GroupsByMember queries groups by member address. - GroupsByMember(context.Context, *QueryGroupsByMemberRequest) (*QueryGroupsByMemberResponse, error) - // 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. - TallyResult(context.Context, *QueryTallyResultRequest) (*QueryTallyResultResponse, error) - // Groups queries all groups in state. - Groups(context.Context, *QueryGroupsRequest) (*QueryGroupsResponse, error) - mustEmbedUnimplementedQueryServer() -} - -// UnimplementedQueryServer must be embedded to have -// forward compatible implementations. -// -// NOTE: this should be embedded by value instead of pointer to avoid a nil -// pointer dereference when methods are called. -type UnimplementedQueryServer struct{} - -func (UnimplementedQueryServer) GroupInfo(context.Context, *QueryGroupInfoRequest) (*QueryGroupInfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GroupInfo not implemented") -} -func (UnimplementedQueryServer) GroupPolicyInfo(context.Context, *QueryGroupPolicyInfoRequest) (*QueryGroupPolicyInfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GroupPolicyInfo not implemented") -} -func (UnimplementedQueryServer) GroupMembers(context.Context, *QueryGroupMembersRequest) (*QueryGroupMembersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GroupMembers not implemented") -} -func (UnimplementedQueryServer) GroupsByAdmin(context.Context, *QueryGroupsByAdminRequest) (*QueryGroupsByAdminResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GroupsByAdmin not implemented") -} -func (UnimplementedQueryServer) GroupPoliciesByGroup(context.Context, *QueryGroupPoliciesByGroupRequest) (*QueryGroupPoliciesByGroupResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GroupPoliciesByGroup not implemented") -} -func (UnimplementedQueryServer) GroupPoliciesByAdmin(context.Context, *QueryGroupPoliciesByAdminRequest) (*QueryGroupPoliciesByAdminResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GroupPoliciesByAdmin not implemented") -} -func (UnimplementedQueryServer) Proposal(context.Context, *QueryProposalRequest) (*QueryProposalResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Proposal not implemented") -} -func (UnimplementedQueryServer) ProposalsByGroupPolicy(context.Context, *QueryProposalsByGroupPolicyRequest) (*QueryProposalsByGroupPolicyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ProposalsByGroupPolicy not implemented") -} -func (UnimplementedQueryServer) VoteByProposalVoter(context.Context, *QueryVoteByProposalVoterRequest) (*QueryVoteByProposalVoterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method VoteByProposalVoter not implemented") -} -func (UnimplementedQueryServer) VotesByProposal(context.Context, *QueryVotesByProposalRequest) (*QueryVotesByProposalResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method VotesByProposal not implemented") -} -func (UnimplementedQueryServer) VotesByVoter(context.Context, *QueryVotesByVoterRequest) (*QueryVotesByVoterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method VotesByVoter not implemented") -} -func (UnimplementedQueryServer) GroupsByMember(context.Context, *QueryGroupsByMemberRequest) (*QueryGroupsByMemberResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GroupsByMember not implemented") -} -func (UnimplementedQueryServer) TallyResult(context.Context, *QueryTallyResultRequest) (*QueryTallyResultResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TallyResult not implemented") -} -func (UnimplementedQueryServer) Groups(context.Context, *QueryGroupsRequest) (*QueryGroupsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Groups not implemented") -} -func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} -func (UnimplementedQueryServer) testEmbeddedByValue() {} - -// UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to QueryServer will -// result in compilation errors. -type UnsafeQueryServer interface { - mustEmbedUnimplementedQueryServer() -} - -func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) { - // If the following call pancis, it indicates UnimplementedQueryServer was - // embedded by pointer and is nil. This will cause panics if an - // unimplemented method is ever invoked, so we test this at initialization - // time to prevent it from happening at runtime later due to I/O. - if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { - t.testEmbeddedByValue() - } - s.RegisterService(&Query_ServiceDesc, srv) -} - -func _Query_GroupInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGroupInfoRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).GroupInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_GroupInfo_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GroupInfo(ctx, req.(*QueryGroupInfoRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_GroupPolicyInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGroupPolicyInfoRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).GroupPolicyInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_GroupPolicyInfo_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GroupPolicyInfo(ctx, req.(*QueryGroupPolicyInfoRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_GroupMembers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGroupMembersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).GroupMembers(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_GroupMembers_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GroupMembers(ctx, req.(*QueryGroupMembersRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_GroupsByAdmin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGroupsByAdminRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).GroupsByAdmin(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_GroupsByAdmin_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GroupsByAdmin(ctx, req.(*QueryGroupsByAdminRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_GroupPoliciesByGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGroupPoliciesByGroupRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).GroupPoliciesByGroup(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_GroupPoliciesByGroup_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GroupPoliciesByGroup(ctx, req.(*QueryGroupPoliciesByGroupRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_GroupPoliciesByAdmin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGroupPoliciesByAdminRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).GroupPoliciesByAdmin(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_GroupPoliciesByAdmin_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GroupPoliciesByAdmin(ctx, req.(*QueryGroupPoliciesByAdminRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Proposal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryProposalRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Proposal(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_Proposal_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Proposal(ctx, req.(*QueryProposalRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_ProposalsByGroupPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryProposalsByGroupPolicyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).ProposalsByGroupPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_ProposalsByGroupPolicy_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).ProposalsByGroupPolicy(ctx, req.(*QueryProposalsByGroupPolicyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_VoteByProposalVoter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryVoteByProposalVoterRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).VoteByProposalVoter(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_VoteByProposalVoter_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).VoteByProposalVoter(ctx, req.(*QueryVoteByProposalVoterRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_VotesByProposal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryVotesByProposalRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).VotesByProposal(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_VotesByProposal_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).VotesByProposal(ctx, req.(*QueryVotesByProposalRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_VotesByVoter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryVotesByVoterRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).VotesByVoter(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_VotesByVoter_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).VotesByVoter(ctx, req.(*QueryVotesByVoterRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_GroupsByMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGroupsByMemberRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).GroupsByMember(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_GroupsByMember_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GroupsByMember(ctx, req.(*QueryGroupsByMemberRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_TallyResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryTallyResultRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).TallyResult(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_TallyResult_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).TallyResult(ctx, req.(*QueryTallyResultRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Groups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGroupsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Groups(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_Groups_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Groups(ctx, req.(*QueryGroupsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// Query_ServiceDesc is the grpc.ServiceDesc for Query service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var Query_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "cosmos.group.v1.Query", - HandlerType: (*QueryServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "GroupInfo", - Handler: _Query_GroupInfo_Handler, - }, - { - MethodName: "GroupPolicyInfo", - Handler: _Query_GroupPolicyInfo_Handler, - }, - { - MethodName: "GroupMembers", - Handler: _Query_GroupMembers_Handler, - }, - { - MethodName: "GroupsByAdmin", - Handler: _Query_GroupsByAdmin_Handler, - }, - { - MethodName: "GroupPoliciesByGroup", - Handler: _Query_GroupPoliciesByGroup_Handler, - }, - { - MethodName: "GroupPoliciesByAdmin", - Handler: _Query_GroupPoliciesByAdmin_Handler, - }, - { - MethodName: "Proposal", - Handler: _Query_Proposal_Handler, - }, - { - MethodName: "ProposalsByGroupPolicy", - Handler: _Query_ProposalsByGroupPolicy_Handler, - }, - { - MethodName: "VoteByProposalVoter", - Handler: _Query_VoteByProposalVoter_Handler, - }, - { - MethodName: "VotesByProposal", - Handler: _Query_VotesByProposal_Handler, - }, - { - MethodName: "VotesByVoter", - Handler: _Query_VotesByVoter_Handler, - }, - { - MethodName: "GroupsByMember", - Handler: _Query_GroupsByMember_Handler, - }, - { - MethodName: "TallyResult", - Handler: _Query_TallyResult_Handler, - }, - { - MethodName: "Groups", - Handler: _Query_Groups_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "cosmos/group/v1/query.proto", -} diff --git a/api/cosmos/group/v1/tx.pulsar.go b/api/cosmos/group/v1/tx.pulsar.go deleted file mode 100644 index 6f7a53f6ee..0000000000 --- a/api/cosmos/group/v1/tx.pulsar.go +++ /dev/null @@ -1,15846 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package groupv1 - -import ( - _ "cosmossdk.io/api/amino" - _ "cosmossdk.io/api/cosmos/msg/v1" - fmt "fmt" - _ "github.com/cosmos/cosmos-proto" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - anypb "google.golang.org/protobuf/types/known/anypb" - io "io" - reflect "reflect" - sync "sync" -) - -var _ protoreflect.List = (*_MsgCreateGroup_2_list)(nil) - -type _MsgCreateGroup_2_list struct { - list *[]*MemberRequest -} - -func (x *_MsgCreateGroup_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgCreateGroup_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_MsgCreateGroup_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*MemberRequest) - (*x.list)[i] = concreteValue -} - -func (x *_MsgCreateGroup_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*MemberRequest) - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgCreateGroup_2_list) AppendMutable() protoreflect.Value { - v := new(MemberRequest) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgCreateGroup_2_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_MsgCreateGroup_2_list) NewElement() protoreflect.Value { - v := new(MemberRequest) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgCreateGroup_2_list) IsValid() bool { - return x.list != nil -} - -var ( - md_MsgCreateGroup protoreflect.MessageDescriptor - fd_MsgCreateGroup_admin protoreflect.FieldDescriptor - fd_MsgCreateGroup_members protoreflect.FieldDescriptor - fd_MsgCreateGroup_metadata protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_tx_proto_init() - md_MsgCreateGroup = File_cosmos_group_v1_tx_proto.Messages().ByName("MsgCreateGroup") - fd_MsgCreateGroup_admin = md_MsgCreateGroup.Fields().ByName("admin") - fd_MsgCreateGroup_members = md_MsgCreateGroup.Fields().ByName("members") - fd_MsgCreateGroup_metadata = md_MsgCreateGroup.Fields().ByName("metadata") -} - -var _ protoreflect.Message = (*fastReflection_MsgCreateGroup)(nil) - -type fastReflection_MsgCreateGroup MsgCreateGroup - -func (x *MsgCreateGroup) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCreateGroup)(x) -} - -func (x *MsgCreateGroup) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgCreateGroup_messageType fastReflection_MsgCreateGroup_messageType -var _ protoreflect.MessageType = fastReflection_MsgCreateGroup_messageType{} - -type fastReflection_MsgCreateGroup_messageType struct{} - -func (x fastReflection_MsgCreateGroup_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCreateGroup)(nil) -} -func (x fastReflection_MsgCreateGroup_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCreateGroup) -} -func (x fastReflection_MsgCreateGroup_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateGroup -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCreateGroup) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateGroup -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgCreateGroup) Type() protoreflect.MessageType { - return _fastReflection_MsgCreateGroup_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCreateGroup) New() protoreflect.Message { - return new(fastReflection_MsgCreateGroup) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCreateGroup) Interface() protoreflect.ProtoMessage { - return (*MsgCreateGroup)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgCreateGroup) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Admin != "" { - value := protoreflect.ValueOfString(x.Admin) - if !f(fd_MsgCreateGroup_admin, value) { - return - } - } - if len(x.Members) != 0 { - value := protoreflect.ValueOfList(&_MsgCreateGroup_2_list{list: &x.Members}) - if !f(fd_MsgCreateGroup_members, value) { - return - } - } - if x.Metadata != "" { - value := protoreflect.ValueOfString(x.Metadata) - if !f(fd_MsgCreateGroup_metadata, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgCreateGroup) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.MsgCreateGroup.admin": - return x.Admin != "" - case "cosmos.group.v1.MsgCreateGroup.members": - return len(x.Members) != 0 - case "cosmos.group.v1.MsgCreateGroup.metadata": - return x.Metadata != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroup")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroup does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateGroup) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.MsgCreateGroup.admin": - x.Admin = "" - case "cosmos.group.v1.MsgCreateGroup.members": - x.Members = nil - case "cosmos.group.v1.MsgCreateGroup.metadata": - x.Metadata = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroup")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroup does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgCreateGroup) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.MsgCreateGroup.admin": - value := x.Admin - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.MsgCreateGroup.members": - if len(x.Members) == 0 { - return protoreflect.ValueOfList(&_MsgCreateGroup_2_list{}) - } - listValue := &_MsgCreateGroup_2_list{list: &x.Members} - return protoreflect.ValueOfList(listValue) - case "cosmos.group.v1.MsgCreateGroup.metadata": - value := x.Metadata - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroup")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroup does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateGroup) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.MsgCreateGroup.admin": - x.Admin = value.Interface().(string) - case "cosmos.group.v1.MsgCreateGroup.members": - lv := value.List() - clv := lv.(*_MsgCreateGroup_2_list) - x.Members = *clv.list - case "cosmos.group.v1.MsgCreateGroup.metadata": - x.Metadata = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroup")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroup does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateGroup) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgCreateGroup.members": - if x.Members == nil { - x.Members = []*MemberRequest{} - } - value := &_MsgCreateGroup_2_list{list: &x.Members} - return protoreflect.ValueOfList(value) - case "cosmos.group.v1.MsgCreateGroup.admin": - panic(fmt.Errorf("field admin of message cosmos.group.v1.MsgCreateGroup is not mutable")) - case "cosmos.group.v1.MsgCreateGroup.metadata": - panic(fmt.Errorf("field metadata of message cosmos.group.v1.MsgCreateGroup is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroup")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroup does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgCreateGroup) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgCreateGroup.admin": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.MsgCreateGroup.members": - list := []*MemberRequest{} - return protoreflect.ValueOfList(&_MsgCreateGroup_2_list{list: &list}) - case "cosmos.group.v1.MsgCreateGroup.metadata": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroup")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroup does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgCreateGroup) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.MsgCreateGroup", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgCreateGroup) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateGroup) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgCreateGroup) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgCreateGroup) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCreateGroup) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Admin) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.Members) > 0 { - for _, e := range x.Members { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - l = len(x.Metadata) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateGroup) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Metadata) > 0 { - i -= len(x.Metadata) - copy(dAtA[i:], x.Metadata) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) - i-- - dAtA[i] = 0x1a - } - if len(x.Members) > 0 { - for iNdEx := len(x.Members) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Members[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - } - if len(x.Admin) > 0 { - i -= len(x.Admin) - copy(dAtA[i:], x.Admin) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Admin))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateGroup) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateGroup: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateGroup: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Admin = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Members", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Members = append(x.Members, &MemberRequest{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Members[len(x.Members)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Metadata = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCreateGroupResponse protoreflect.MessageDescriptor - fd_MsgCreateGroupResponse_group_id protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_tx_proto_init() - md_MsgCreateGroupResponse = File_cosmos_group_v1_tx_proto.Messages().ByName("MsgCreateGroupResponse") - fd_MsgCreateGroupResponse_group_id = md_MsgCreateGroupResponse.Fields().ByName("group_id") -} - -var _ protoreflect.Message = (*fastReflection_MsgCreateGroupResponse)(nil) - -type fastReflection_MsgCreateGroupResponse MsgCreateGroupResponse - -func (x *MsgCreateGroupResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCreateGroupResponse)(x) -} - -func (x *MsgCreateGroupResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgCreateGroupResponse_messageType fastReflection_MsgCreateGroupResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgCreateGroupResponse_messageType{} - -type fastReflection_MsgCreateGroupResponse_messageType struct{} - -func (x fastReflection_MsgCreateGroupResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCreateGroupResponse)(nil) -} -func (x fastReflection_MsgCreateGroupResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCreateGroupResponse) -} -func (x fastReflection_MsgCreateGroupResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateGroupResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCreateGroupResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateGroupResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgCreateGroupResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgCreateGroupResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCreateGroupResponse) New() protoreflect.Message { - return new(fastReflection_MsgCreateGroupResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCreateGroupResponse) Interface() protoreflect.ProtoMessage { - return (*MsgCreateGroupResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgCreateGroupResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.GroupId != uint64(0) { - value := protoreflect.ValueOfUint64(x.GroupId) - if !f(fd_MsgCreateGroupResponse_group_id, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgCreateGroupResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.MsgCreateGroupResponse.group_id": - return x.GroupId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroupResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroupResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateGroupResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.MsgCreateGroupResponse.group_id": - x.GroupId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroupResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroupResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgCreateGroupResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.MsgCreateGroupResponse.group_id": - value := x.GroupId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroupResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroupResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateGroupResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.MsgCreateGroupResponse.group_id": - x.GroupId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroupResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroupResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateGroupResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgCreateGroupResponse.group_id": - panic(fmt.Errorf("field group_id of message cosmos.group.v1.MsgCreateGroupResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroupResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroupResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgCreateGroupResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgCreateGroupResponse.group_id": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroupResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroupResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgCreateGroupResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.MsgCreateGroupResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgCreateGroupResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateGroupResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgCreateGroupResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgCreateGroupResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCreateGroupResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.GroupId != 0 { - n += 1 + runtime.Sov(uint64(x.GroupId)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateGroupResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.GroupId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.GroupId)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateGroupResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateGroupResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateGroupResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - x.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.GroupId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_MsgUpdateGroupMembers_3_list)(nil) - -type _MsgUpdateGroupMembers_3_list struct { - list *[]*MemberRequest -} - -func (x *_MsgUpdateGroupMembers_3_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgUpdateGroupMembers_3_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_MsgUpdateGroupMembers_3_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*MemberRequest) - (*x.list)[i] = concreteValue -} - -func (x *_MsgUpdateGroupMembers_3_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*MemberRequest) - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgUpdateGroupMembers_3_list) AppendMutable() protoreflect.Value { - v := new(MemberRequest) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgUpdateGroupMembers_3_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_MsgUpdateGroupMembers_3_list) NewElement() protoreflect.Value { - v := new(MemberRequest) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgUpdateGroupMembers_3_list) IsValid() bool { - return x.list != nil -} - -var ( - md_MsgUpdateGroupMembers protoreflect.MessageDescriptor - fd_MsgUpdateGroupMembers_admin protoreflect.FieldDescriptor - fd_MsgUpdateGroupMembers_group_id protoreflect.FieldDescriptor - fd_MsgUpdateGroupMembers_member_updates protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_tx_proto_init() - md_MsgUpdateGroupMembers = File_cosmos_group_v1_tx_proto.Messages().ByName("MsgUpdateGroupMembers") - fd_MsgUpdateGroupMembers_admin = md_MsgUpdateGroupMembers.Fields().ByName("admin") - fd_MsgUpdateGroupMembers_group_id = md_MsgUpdateGroupMembers.Fields().ByName("group_id") - fd_MsgUpdateGroupMembers_member_updates = md_MsgUpdateGroupMembers.Fields().ByName("member_updates") -} - -var _ protoreflect.Message = (*fastReflection_MsgUpdateGroupMembers)(nil) - -type fastReflection_MsgUpdateGroupMembers MsgUpdateGroupMembers - -func (x *MsgUpdateGroupMembers) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateGroupMembers)(x) -} - -func (x *MsgUpdateGroupMembers) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgUpdateGroupMembers_messageType fastReflection_MsgUpdateGroupMembers_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateGroupMembers_messageType{} - -type fastReflection_MsgUpdateGroupMembers_messageType struct{} - -func (x fastReflection_MsgUpdateGroupMembers_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateGroupMembers)(nil) -} -func (x fastReflection_MsgUpdateGroupMembers_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateGroupMembers) -} -func (x fastReflection_MsgUpdateGroupMembers_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateGroupMembers -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgUpdateGroupMembers) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateGroupMembers -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgUpdateGroupMembers) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateGroupMembers_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateGroupMembers) New() protoreflect.Message { - return new(fastReflection_MsgUpdateGroupMembers) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateGroupMembers) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateGroupMembers)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgUpdateGroupMembers) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Admin != "" { - value := protoreflect.ValueOfString(x.Admin) - if !f(fd_MsgUpdateGroupMembers_admin, value) { - return - } - } - if x.GroupId != uint64(0) { - value := protoreflect.ValueOfUint64(x.GroupId) - if !f(fd_MsgUpdateGroupMembers_group_id, value) { - return - } - } - if len(x.MemberUpdates) != 0 { - value := protoreflect.ValueOfList(&_MsgUpdateGroupMembers_3_list{list: &x.MemberUpdates}) - if !f(fd_MsgUpdateGroupMembers_member_updates, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgUpdateGroupMembers) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.MsgUpdateGroupMembers.admin": - return x.Admin != "" - case "cosmos.group.v1.MsgUpdateGroupMembers.group_id": - return x.GroupId != uint64(0) - case "cosmos.group.v1.MsgUpdateGroupMembers.member_updates": - return len(x.MemberUpdates) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupMembers")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupMembers does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupMembers) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.MsgUpdateGroupMembers.admin": - x.Admin = "" - case "cosmos.group.v1.MsgUpdateGroupMembers.group_id": - x.GroupId = uint64(0) - case "cosmos.group.v1.MsgUpdateGroupMembers.member_updates": - x.MemberUpdates = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupMembers")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupMembers does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgUpdateGroupMembers) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.MsgUpdateGroupMembers.admin": - value := x.Admin - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.MsgUpdateGroupMembers.group_id": - value := x.GroupId - return protoreflect.ValueOfUint64(value) - case "cosmos.group.v1.MsgUpdateGroupMembers.member_updates": - if len(x.MemberUpdates) == 0 { - return protoreflect.ValueOfList(&_MsgUpdateGroupMembers_3_list{}) - } - listValue := &_MsgUpdateGroupMembers_3_list{list: &x.MemberUpdates} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupMembers")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupMembers does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupMembers) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.MsgUpdateGroupMembers.admin": - x.Admin = value.Interface().(string) - case "cosmos.group.v1.MsgUpdateGroupMembers.group_id": - x.GroupId = value.Uint() - case "cosmos.group.v1.MsgUpdateGroupMembers.member_updates": - lv := value.List() - clv := lv.(*_MsgUpdateGroupMembers_3_list) - x.MemberUpdates = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupMembers")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupMembers does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupMembers) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgUpdateGroupMembers.member_updates": - if x.MemberUpdates == nil { - x.MemberUpdates = []*MemberRequest{} - } - value := &_MsgUpdateGroupMembers_3_list{list: &x.MemberUpdates} - return protoreflect.ValueOfList(value) - case "cosmos.group.v1.MsgUpdateGroupMembers.admin": - panic(fmt.Errorf("field admin of message cosmos.group.v1.MsgUpdateGroupMembers is not mutable")) - case "cosmos.group.v1.MsgUpdateGroupMembers.group_id": - panic(fmt.Errorf("field group_id of message cosmos.group.v1.MsgUpdateGroupMembers is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupMembers")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupMembers does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgUpdateGroupMembers) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgUpdateGroupMembers.admin": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.MsgUpdateGroupMembers.group_id": - return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.group.v1.MsgUpdateGroupMembers.member_updates": - list := []*MemberRequest{} - return protoreflect.ValueOfList(&_MsgUpdateGroupMembers_3_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupMembers")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupMembers does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgUpdateGroupMembers) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.MsgUpdateGroupMembers", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgUpdateGroupMembers) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupMembers) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgUpdateGroupMembers) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateGroupMembers) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateGroupMembers) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Admin) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.GroupId != 0 { - n += 1 + runtime.Sov(uint64(x.GroupId)) - } - if len(x.MemberUpdates) > 0 { - for _, e := range x.MemberUpdates { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateGroupMembers) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.MemberUpdates) > 0 { - for iNdEx := len(x.MemberUpdates) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.MemberUpdates[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x1a - } - } - if x.GroupId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.GroupId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Admin) > 0 { - i -= len(x.Admin) - copy(dAtA[i:], x.Admin) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Admin))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateGroupMembers) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateGroupMembers: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateGroupMembers: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Admin = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - x.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.GroupId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MemberUpdates", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.MemberUpdates = append(x.MemberUpdates, &MemberRequest{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.MemberUpdates[len(x.MemberUpdates)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgUpdateGroupMembersResponse protoreflect.MessageDescriptor -) - -func init() { - file_cosmos_group_v1_tx_proto_init() - md_MsgUpdateGroupMembersResponse = File_cosmos_group_v1_tx_proto.Messages().ByName("MsgUpdateGroupMembersResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgUpdateGroupMembersResponse)(nil) - -type fastReflection_MsgUpdateGroupMembersResponse MsgUpdateGroupMembersResponse - -func (x *MsgUpdateGroupMembersResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateGroupMembersResponse)(x) -} - -func (x *MsgUpdateGroupMembersResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgUpdateGroupMembersResponse_messageType fastReflection_MsgUpdateGroupMembersResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateGroupMembersResponse_messageType{} - -type fastReflection_MsgUpdateGroupMembersResponse_messageType struct{} - -func (x fastReflection_MsgUpdateGroupMembersResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateGroupMembersResponse)(nil) -} -func (x fastReflection_MsgUpdateGroupMembersResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateGroupMembersResponse) -} -func (x fastReflection_MsgUpdateGroupMembersResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateGroupMembersResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgUpdateGroupMembersResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateGroupMembersResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgUpdateGroupMembersResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateGroupMembersResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateGroupMembersResponse) New() protoreflect.Message { - return new(fastReflection_MsgUpdateGroupMembersResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateGroupMembersResponse) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateGroupMembersResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgUpdateGroupMembersResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgUpdateGroupMembersResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupMembersResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupMembersResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupMembersResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupMembersResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupMembersResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgUpdateGroupMembersResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupMembersResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupMembersResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupMembersResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupMembersResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupMembersResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupMembersResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupMembersResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupMembersResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgUpdateGroupMembersResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupMembersResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupMembersResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgUpdateGroupMembersResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.MsgUpdateGroupMembersResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgUpdateGroupMembersResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupMembersResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgUpdateGroupMembersResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateGroupMembersResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateGroupMembersResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateGroupMembersResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateGroupMembersResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateGroupMembersResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateGroupMembersResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgUpdateGroupAdmin protoreflect.MessageDescriptor - fd_MsgUpdateGroupAdmin_admin protoreflect.FieldDescriptor - fd_MsgUpdateGroupAdmin_group_id protoreflect.FieldDescriptor - fd_MsgUpdateGroupAdmin_new_admin protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_tx_proto_init() - md_MsgUpdateGroupAdmin = File_cosmos_group_v1_tx_proto.Messages().ByName("MsgUpdateGroupAdmin") - fd_MsgUpdateGroupAdmin_admin = md_MsgUpdateGroupAdmin.Fields().ByName("admin") - fd_MsgUpdateGroupAdmin_group_id = md_MsgUpdateGroupAdmin.Fields().ByName("group_id") - fd_MsgUpdateGroupAdmin_new_admin = md_MsgUpdateGroupAdmin.Fields().ByName("new_admin") -} - -var _ protoreflect.Message = (*fastReflection_MsgUpdateGroupAdmin)(nil) - -type fastReflection_MsgUpdateGroupAdmin MsgUpdateGroupAdmin - -func (x *MsgUpdateGroupAdmin) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateGroupAdmin)(x) -} - -func (x *MsgUpdateGroupAdmin) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgUpdateGroupAdmin_messageType fastReflection_MsgUpdateGroupAdmin_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateGroupAdmin_messageType{} - -type fastReflection_MsgUpdateGroupAdmin_messageType struct{} - -func (x fastReflection_MsgUpdateGroupAdmin_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateGroupAdmin)(nil) -} -func (x fastReflection_MsgUpdateGroupAdmin_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateGroupAdmin) -} -func (x fastReflection_MsgUpdateGroupAdmin_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateGroupAdmin -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgUpdateGroupAdmin) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateGroupAdmin -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgUpdateGroupAdmin) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateGroupAdmin_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateGroupAdmin) New() protoreflect.Message { - return new(fastReflection_MsgUpdateGroupAdmin) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateGroupAdmin) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateGroupAdmin)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgUpdateGroupAdmin) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Admin != "" { - value := protoreflect.ValueOfString(x.Admin) - if !f(fd_MsgUpdateGroupAdmin_admin, value) { - return - } - } - if x.GroupId != uint64(0) { - value := protoreflect.ValueOfUint64(x.GroupId) - if !f(fd_MsgUpdateGroupAdmin_group_id, value) { - return - } - } - if x.NewAdmin != "" { - value := protoreflect.ValueOfString(x.NewAdmin) - if !f(fd_MsgUpdateGroupAdmin_new_admin, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgUpdateGroupAdmin) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.MsgUpdateGroupAdmin.admin": - return x.Admin != "" - case "cosmos.group.v1.MsgUpdateGroupAdmin.group_id": - return x.GroupId != uint64(0) - case "cosmos.group.v1.MsgUpdateGroupAdmin.new_admin": - return x.NewAdmin != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupAdmin")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupAdmin does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupAdmin) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.MsgUpdateGroupAdmin.admin": - x.Admin = "" - case "cosmos.group.v1.MsgUpdateGroupAdmin.group_id": - x.GroupId = uint64(0) - case "cosmos.group.v1.MsgUpdateGroupAdmin.new_admin": - x.NewAdmin = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupAdmin")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupAdmin does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgUpdateGroupAdmin) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.MsgUpdateGroupAdmin.admin": - value := x.Admin - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.MsgUpdateGroupAdmin.group_id": - value := x.GroupId - return protoreflect.ValueOfUint64(value) - case "cosmos.group.v1.MsgUpdateGroupAdmin.new_admin": - value := x.NewAdmin - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupAdmin")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupAdmin does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupAdmin) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.MsgUpdateGroupAdmin.admin": - x.Admin = value.Interface().(string) - case "cosmos.group.v1.MsgUpdateGroupAdmin.group_id": - x.GroupId = value.Uint() - case "cosmos.group.v1.MsgUpdateGroupAdmin.new_admin": - x.NewAdmin = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupAdmin")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupAdmin does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupAdmin) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgUpdateGroupAdmin.admin": - panic(fmt.Errorf("field admin of message cosmos.group.v1.MsgUpdateGroupAdmin is not mutable")) - case "cosmos.group.v1.MsgUpdateGroupAdmin.group_id": - panic(fmt.Errorf("field group_id of message cosmos.group.v1.MsgUpdateGroupAdmin is not mutable")) - case "cosmos.group.v1.MsgUpdateGroupAdmin.new_admin": - panic(fmt.Errorf("field new_admin of message cosmos.group.v1.MsgUpdateGroupAdmin is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupAdmin")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupAdmin does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgUpdateGroupAdmin) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgUpdateGroupAdmin.admin": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.MsgUpdateGroupAdmin.group_id": - return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.group.v1.MsgUpdateGroupAdmin.new_admin": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupAdmin")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupAdmin does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgUpdateGroupAdmin) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.MsgUpdateGroupAdmin", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgUpdateGroupAdmin) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupAdmin) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgUpdateGroupAdmin) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateGroupAdmin) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateGroupAdmin) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Admin) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.GroupId != 0 { - n += 1 + runtime.Sov(uint64(x.GroupId)) - } - l = len(x.NewAdmin) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateGroupAdmin) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.NewAdmin) > 0 { - i -= len(x.NewAdmin) - copy(dAtA[i:], x.NewAdmin) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewAdmin))) - i-- - dAtA[i] = 0x1a - } - if x.GroupId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.GroupId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Admin) > 0 { - i -= len(x.Admin) - copy(dAtA[i:], x.Admin) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Admin))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateGroupAdmin) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateGroupAdmin: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateGroupAdmin: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Admin = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - x.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.GroupId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NewAdmin", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.NewAdmin = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgUpdateGroupAdminResponse protoreflect.MessageDescriptor -) - -func init() { - file_cosmos_group_v1_tx_proto_init() - md_MsgUpdateGroupAdminResponse = File_cosmos_group_v1_tx_proto.Messages().ByName("MsgUpdateGroupAdminResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgUpdateGroupAdminResponse)(nil) - -type fastReflection_MsgUpdateGroupAdminResponse MsgUpdateGroupAdminResponse - -func (x *MsgUpdateGroupAdminResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateGroupAdminResponse)(x) -} - -func (x *MsgUpdateGroupAdminResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgUpdateGroupAdminResponse_messageType fastReflection_MsgUpdateGroupAdminResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateGroupAdminResponse_messageType{} - -type fastReflection_MsgUpdateGroupAdminResponse_messageType struct{} - -func (x fastReflection_MsgUpdateGroupAdminResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateGroupAdminResponse)(nil) -} -func (x fastReflection_MsgUpdateGroupAdminResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateGroupAdminResponse) -} -func (x fastReflection_MsgUpdateGroupAdminResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateGroupAdminResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgUpdateGroupAdminResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateGroupAdminResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgUpdateGroupAdminResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateGroupAdminResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateGroupAdminResponse) New() protoreflect.Message { - return new(fastReflection_MsgUpdateGroupAdminResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateGroupAdminResponse) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateGroupAdminResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgUpdateGroupAdminResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgUpdateGroupAdminResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupAdminResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupAdminResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupAdminResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupAdminResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupAdminResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgUpdateGroupAdminResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupAdminResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupAdminResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupAdminResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupAdminResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupAdminResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupAdminResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupAdminResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupAdminResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgUpdateGroupAdminResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupAdminResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupAdminResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgUpdateGroupAdminResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.MsgUpdateGroupAdminResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgUpdateGroupAdminResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupAdminResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgUpdateGroupAdminResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateGroupAdminResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateGroupAdminResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateGroupAdminResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateGroupAdminResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateGroupAdminResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateGroupAdminResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgUpdateGroupMetadata protoreflect.MessageDescriptor - fd_MsgUpdateGroupMetadata_admin protoreflect.FieldDescriptor - fd_MsgUpdateGroupMetadata_group_id protoreflect.FieldDescriptor - fd_MsgUpdateGroupMetadata_metadata protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_tx_proto_init() - md_MsgUpdateGroupMetadata = File_cosmos_group_v1_tx_proto.Messages().ByName("MsgUpdateGroupMetadata") - fd_MsgUpdateGroupMetadata_admin = md_MsgUpdateGroupMetadata.Fields().ByName("admin") - fd_MsgUpdateGroupMetadata_group_id = md_MsgUpdateGroupMetadata.Fields().ByName("group_id") - fd_MsgUpdateGroupMetadata_metadata = md_MsgUpdateGroupMetadata.Fields().ByName("metadata") -} - -var _ protoreflect.Message = (*fastReflection_MsgUpdateGroupMetadata)(nil) - -type fastReflection_MsgUpdateGroupMetadata MsgUpdateGroupMetadata - -func (x *MsgUpdateGroupMetadata) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateGroupMetadata)(x) -} - -func (x *MsgUpdateGroupMetadata) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgUpdateGroupMetadata_messageType fastReflection_MsgUpdateGroupMetadata_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateGroupMetadata_messageType{} - -type fastReflection_MsgUpdateGroupMetadata_messageType struct{} - -func (x fastReflection_MsgUpdateGroupMetadata_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateGroupMetadata)(nil) -} -func (x fastReflection_MsgUpdateGroupMetadata_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateGroupMetadata) -} -func (x fastReflection_MsgUpdateGroupMetadata_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateGroupMetadata -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgUpdateGroupMetadata) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateGroupMetadata -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgUpdateGroupMetadata) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateGroupMetadata_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateGroupMetadata) New() protoreflect.Message { - return new(fastReflection_MsgUpdateGroupMetadata) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateGroupMetadata) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateGroupMetadata)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgUpdateGroupMetadata) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Admin != "" { - value := protoreflect.ValueOfString(x.Admin) - if !f(fd_MsgUpdateGroupMetadata_admin, value) { - return - } - } - if x.GroupId != uint64(0) { - value := protoreflect.ValueOfUint64(x.GroupId) - if !f(fd_MsgUpdateGroupMetadata_group_id, value) { - return - } - } - if x.Metadata != "" { - value := protoreflect.ValueOfString(x.Metadata) - if !f(fd_MsgUpdateGroupMetadata_metadata, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgUpdateGroupMetadata) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.MsgUpdateGroupMetadata.admin": - return x.Admin != "" - case "cosmos.group.v1.MsgUpdateGroupMetadata.group_id": - return x.GroupId != uint64(0) - case "cosmos.group.v1.MsgUpdateGroupMetadata.metadata": - return x.Metadata != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupMetadata")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupMetadata does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupMetadata) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.MsgUpdateGroupMetadata.admin": - x.Admin = "" - case "cosmos.group.v1.MsgUpdateGroupMetadata.group_id": - x.GroupId = uint64(0) - case "cosmos.group.v1.MsgUpdateGroupMetadata.metadata": - x.Metadata = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupMetadata")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupMetadata does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgUpdateGroupMetadata) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.MsgUpdateGroupMetadata.admin": - value := x.Admin - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.MsgUpdateGroupMetadata.group_id": - value := x.GroupId - return protoreflect.ValueOfUint64(value) - case "cosmos.group.v1.MsgUpdateGroupMetadata.metadata": - value := x.Metadata - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupMetadata")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupMetadata does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupMetadata) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.MsgUpdateGroupMetadata.admin": - x.Admin = value.Interface().(string) - case "cosmos.group.v1.MsgUpdateGroupMetadata.group_id": - x.GroupId = value.Uint() - case "cosmos.group.v1.MsgUpdateGroupMetadata.metadata": - x.Metadata = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupMetadata")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupMetadata does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupMetadata) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgUpdateGroupMetadata.admin": - panic(fmt.Errorf("field admin of message cosmos.group.v1.MsgUpdateGroupMetadata is not mutable")) - case "cosmos.group.v1.MsgUpdateGroupMetadata.group_id": - panic(fmt.Errorf("field group_id of message cosmos.group.v1.MsgUpdateGroupMetadata is not mutable")) - case "cosmos.group.v1.MsgUpdateGroupMetadata.metadata": - panic(fmt.Errorf("field metadata of message cosmos.group.v1.MsgUpdateGroupMetadata is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupMetadata")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupMetadata does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgUpdateGroupMetadata) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgUpdateGroupMetadata.admin": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.MsgUpdateGroupMetadata.group_id": - return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.group.v1.MsgUpdateGroupMetadata.metadata": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupMetadata")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupMetadata does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgUpdateGroupMetadata) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.MsgUpdateGroupMetadata", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgUpdateGroupMetadata) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupMetadata) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgUpdateGroupMetadata) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateGroupMetadata) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateGroupMetadata) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Admin) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.GroupId != 0 { - n += 1 + runtime.Sov(uint64(x.GroupId)) - } - l = len(x.Metadata) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateGroupMetadata) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Metadata) > 0 { - i -= len(x.Metadata) - copy(dAtA[i:], x.Metadata) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) - i-- - dAtA[i] = 0x1a - } - if x.GroupId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.GroupId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Admin) > 0 { - i -= len(x.Admin) - copy(dAtA[i:], x.Admin) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Admin))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateGroupMetadata) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateGroupMetadata: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateGroupMetadata: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Admin = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - x.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.GroupId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Metadata = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgUpdateGroupMetadataResponse protoreflect.MessageDescriptor -) - -func init() { - file_cosmos_group_v1_tx_proto_init() - md_MsgUpdateGroupMetadataResponse = File_cosmos_group_v1_tx_proto.Messages().ByName("MsgUpdateGroupMetadataResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgUpdateGroupMetadataResponse)(nil) - -type fastReflection_MsgUpdateGroupMetadataResponse MsgUpdateGroupMetadataResponse - -func (x *MsgUpdateGroupMetadataResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateGroupMetadataResponse)(x) -} - -func (x *MsgUpdateGroupMetadataResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgUpdateGroupMetadataResponse_messageType fastReflection_MsgUpdateGroupMetadataResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateGroupMetadataResponse_messageType{} - -type fastReflection_MsgUpdateGroupMetadataResponse_messageType struct{} - -func (x fastReflection_MsgUpdateGroupMetadataResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateGroupMetadataResponse)(nil) -} -func (x fastReflection_MsgUpdateGroupMetadataResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateGroupMetadataResponse) -} -func (x fastReflection_MsgUpdateGroupMetadataResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateGroupMetadataResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgUpdateGroupMetadataResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateGroupMetadataResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgUpdateGroupMetadataResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateGroupMetadataResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateGroupMetadataResponse) New() protoreflect.Message { - return new(fastReflection_MsgUpdateGroupMetadataResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateGroupMetadataResponse) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateGroupMetadataResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgUpdateGroupMetadataResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgUpdateGroupMetadataResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupMetadataResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupMetadataResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupMetadataResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupMetadataResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupMetadataResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgUpdateGroupMetadataResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupMetadataResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupMetadataResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupMetadataResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupMetadataResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupMetadataResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupMetadataResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupMetadataResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupMetadataResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgUpdateGroupMetadataResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupMetadataResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupMetadataResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgUpdateGroupMetadataResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.MsgUpdateGroupMetadataResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgUpdateGroupMetadataResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupMetadataResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgUpdateGroupMetadataResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateGroupMetadataResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateGroupMetadataResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateGroupMetadataResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateGroupMetadataResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateGroupMetadataResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateGroupMetadataResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCreateGroupPolicy protoreflect.MessageDescriptor - fd_MsgCreateGroupPolicy_admin protoreflect.FieldDescriptor - fd_MsgCreateGroupPolicy_group_id protoreflect.FieldDescriptor - fd_MsgCreateGroupPolicy_metadata protoreflect.FieldDescriptor - fd_MsgCreateGroupPolicy_decision_policy protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_tx_proto_init() - md_MsgCreateGroupPolicy = File_cosmos_group_v1_tx_proto.Messages().ByName("MsgCreateGroupPolicy") - fd_MsgCreateGroupPolicy_admin = md_MsgCreateGroupPolicy.Fields().ByName("admin") - fd_MsgCreateGroupPolicy_group_id = md_MsgCreateGroupPolicy.Fields().ByName("group_id") - fd_MsgCreateGroupPolicy_metadata = md_MsgCreateGroupPolicy.Fields().ByName("metadata") - fd_MsgCreateGroupPolicy_decision_policy = md_MsgCreateGroupPolicy.Fields().ByName("decision_policy") -} - -var _ protoreflect.Message = (*fastReflection_MsgCreateGroupPolicy)(nil) - -type fastReflection_MsgCreateGroupPolicy MsgCreateGroupPolicy - -func (x *MsgCreateGroupPolicy) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCreateGroupPolicy)(x) -} - -func (x *MsgCreateGroupPolicy) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgCreateGroupPolicy_messageType fastReflection_MsgCreateGroupPolicy_messageType -var _ protoreflect.MessageType = fastReflection_MsgCreateGroupPolicy_messageType{} - -type fastReflection_MsgCreateGroupPolicy_messageType struct{} - -func (x fastReflection_MsgCreateGroupPolicy_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCreateGroupPolicy)(nil) -} -func (x fastReflection_MsgCreateGroupPolicy_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCreateGroupPolicy) -} -func (x fastReflection_MsgCreateGroupPolicy_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateGroupPolicy -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCreateGroupPolicy) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateGroupPolicy -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgCreateGroupPolicy) Type() protoreflect.MessageType { - return _fastReflection_MsgCreateGroupPolicy_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCreateGroupPolicy) New() protoreflect.Message { - return new(fastReflection_MsgCreateGroupPolicy) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCreateGroupPolicy) Interface() protoreflect.ProtoMessage { - return (*MsgCreateGroupPolicy)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgCreateGroupPolicy) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Admin != "" { - value := protoreflect.ValueOfString(x.Admin) - if !f(fd_MsgCreateGroupPolicy_admin, value) { - return - } - } - if x.GroupId != uint64(0) { - value := protoreflect.ValueOfUint64(x.GroupId) - if !f(fd_MsgCreateGroupPolicy_group_id, value) { - return - } - } - if x.Metadata != "" { - value := protoreflect.ValueOfString(x.Metadata) - if !f(fd_MsgCreateGroupPolicy_metadata, value) { - return - } - } - if x.DecisionPolicy != nil { - value := protoreflect.ValueOfMessage(x.DecisionPolicy.ProtoReflect()) - if !f(fd_MsgCreateGroupPolicy_decision_policy, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgCreateGroupPolicy) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.MsgCreateGroupPolicy.admin": - return x.Admin != "" - case "cosmos.group.v1.MsgCreateGroupPolicy.group_id": - return x.GroupId != uint64(0) - case "cosmos.group.v1.MsgCreateGroupPolicy.metadata": - return x.Metadata != "" - case "cosmos.group.v1.MsgCreateGroupPolicy.decision_policy": - return x.DecisionPolicy != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroupPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroupPolicy does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateGroupPolicy) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.MsgCreateGroupPolicy.admin": - x.Admin = "" - case "cosmos.group.v1.MsgCreateGroupPolicy.group_id": - x.GroupId = uint64(0) - case "cosmos.group.v1.MsgCreateGroupPolicy.metadata": - x.Metadata = "" - case "cosmos.group.v1.MsgCreateGroupPolicy.decision_policy": - x.DecisionPolicy = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroupPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroupPolicy does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgCreateGroupPolicy) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.MsgCreateGroupPolicy.admin": - value := x.Admin - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.MsgCreateGroupPolicy.group_id": - value := x.GroupId - return protoreflect.ValueOfUint64(value) - case "cosmos.group.v1.MsgCreateGroupPolicy.metadata": - value := x.Metadata - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.MsgCreateGroupPolicy.decision_policy": - value := x.DecisionPolicy - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroupPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroupPolicy does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateGroupPolicy) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.MsgCreateGroupPolicy.admin": - x.Admin = value.Interface().(string) - case "cosmos.group.v1.MsgCreateGroupPolicy.group_id": - x.GroupId = value.Uint() - case "cosmos.group.v1.MsgCreateGroupPolicy.metadata": - x.Metadata = value.Interface().(string) - case "cosmos.group.v1.MsgCreateGroupPolicy.decision_policy": - x.DecisionPolicy = value.Message().Interface().(*anypb.Any) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroupPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroupPolicy does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateGroupPolicy) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgCreateGroupPolicy.decision_policy": - if x.DecisionPolicy == nil { - x.DecisionPolicy = new(anypb.Any) - } - return protoreflect.ValueOfMessage(x.DecisionPolicy.ProtoReflect()) - case "cosmos.group.v1.MsgCreateGroupPolicy.admin": - panic(fmt.Errorf("field admin of message cosmos.group.v1.MsgCreateGroupPolicy is not mutable")) - case "cosmos.group.v1.MsgCreateGroupPolicy.group_id": - panic(fmt.Errorf("field group_id of message cosmos.group.v1.MsgCreateGroupPolicy is not mutable")) - case "cosmos.group.v1.MsgCreateGroupPolicy.metadata": - panic(fmt.Errorf("field metadata of message cosmos.group.v1.MsgCreateGroupPolicy is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroupPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroupPolicy does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgCreateGroupPolicy) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgCreateGroupPolicy.admin": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.MsgCreateGroupPolicy.group_id": - return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.group.v1.MsgCreateGroupPolicy.metadata": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.MsgCreateGroupPolicy.decision_policy": - m := new(anypb.Any) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroupPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroupPolicy does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgCreateGroupPolicy) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.MsgCreateGroupPolicy", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgCreateGroupPolicy) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateGroupPolicy) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgCreateGroupPolicy) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgCreateGroupPolicy) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCreateGroupPolicy) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Admin) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.GroupId != 0 { - n += 1 + runtime.Sov(uint64(x.GroupId)) - } - l = len(x.Metadata) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.DecisionPolicy != nil { - l = options.Size(x.DecisionPolicy) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateGroupPolicy) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.DecisionPolicy != nil { - encoded, err := options.Marshal(x.DecisionPolicy) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x22 - } - if len(x.Metadata) > 0 { - i -= len(x.Metadata) - copy(dAtA[i:], x.Metadata) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) - i-- - dAtA[i] = 0x1a - } - if x.GroupId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.GroupId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Admin) > 0 { - i -= len(x.Admin) - copy(dAtA[i:], x.Admin) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Admin))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateGroupPolicy) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateGroupPolicy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateGroupPolicy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Admin = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - x.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.GroupId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Metadata = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DecisionPolicy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.DecisionPolicy == nil { - x.DecisionPolicy = &anypb.Any{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DecisionPolicy); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCreateGroupPolicyResponse protoreflect.MessageDescriptor - fd_MsgCreateGroupPolicyResponse_address protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_tx_proto_init() - md_MsgCreateGroupPolicyResponse = File_cosmos_group_v1_tx_proto.Messages().ByName("MsgCreateGroupPolicyResponse") - fd_MsgCreateGroupPolicyResponse_address = md_MsgCreateGroupPolicyResponse.Fields().ByName("address") -} - -var _ protoreflect.Message = (*fastReflection_MsgCreateGroupPolicyResponse)(nil) - -type fastReflection_MsgCreateGroupPolicyResponse MsgCreateGroupPolicyResponse - -func (x *MsgCreateGroupPolicyResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCreateGroupPolicyResponse)(x) -} - -func (x *MsgCreateGroupPolicyResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgCreateGroupPolicyResponse_messageType fastReflection_MsgCreateGroupPolicyResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgCreateGroupPolicyResponse_messageType{} - -type fastReflection_MsgCreateGroupPolicyResponse_messageType struct{} - -func (x fastReflection_MsgCreateGroupPolicyResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCreateGroupPolicyResponse)(nil) -} -func (x fastReflection_MsgCreateGroupPolicyResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCreateGroupPolicyResponse) -} -func (x fastReflection_MsgCreateGroupPolicyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateGroupPolicyResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCreateGroupPolicyResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateGroupPolicyResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgCreateGroupPolicyResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgCreateGroupPolicyResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCreateGroupPolicyResponse) New() protoreflect.Message { - return new(fastReflection_MsgCreateGroupPolicyResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCreateGroupPolicyResponse) Interface() protoreflect.ProtoMessage { - return (*MsgCreateGroupPolicyResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgCreateGroupPolicyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Address != "" { - value := protoreflect.ValueOfString(x.Address) - if !f(fd_MsgCreateGroupPolicyResponse_address, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgCreateGroupPolicyResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.MsgCreateGroupPolicyResponse.address": - return x.Address != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroupPolicyResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroupPolicyResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateGroupPolicyResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.MsgCreateGroupPolicyResponse.address": - x.Address = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroupPolicyResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroupPolicyResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgCreateGroupPolicyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.MsgCreateGroupPolicyResponse.address": - value := x.Address - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroupPolicyResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroupPolicyResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateGroupPolicyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.MsgCreateGroupPolicyResponse.address": - x.Address = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroupPolicyResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroupPolicyResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateGroupPolicyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgCreateGroupPolicyResponse.address": - panic(fmt.Errorf("field address of message cosmos.group.v1.MsgCreateGroupPolicyResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroupPolicyResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroupPolicyResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgCreateGroupPolicyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgCreateGroupPolicyResponse.address": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroupPolicyResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroupPolicyResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgCreateGroupPolicyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.MsgCreateGroupPolicyResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgCreateGroupPolicyResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateGroupPolicyResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgCreateGroupPolicyResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgCreateGroupPolicyResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCreateGroupPolicyResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Address) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateGroupPolicyResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Address) > 0 { - i -= len(x.Address) - copy(dAtA[i:], x.Address) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateGroupPolicyResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateGroupPolicyResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateGroupPolicyResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgUpdateGroupPolicyAdmin protoreflect.MessageDescriptor - fd_MsgUpdateGroupPolicyAdmin_admin protoreflect.FieldDescriptor - fd_MsgUpdateGroupPolicyAdmin_group_policy_address protoreflect.FieldDescriptor - fd_MsgUpdateGroupPolicyAdmin_new_admin protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_tx_proto_init() - md_MsgUpdateGroupPolicyAdmin = File_cosmos_group_v1_tx_proto.Messages().ByName("MsgUpdateGroupPolicyAdmin") - fd_MsgUpdateGroupPolicyAdmin_admin = md_MsgUpdateGroupPolicyAdmin.Fields().ByName("admin") - fd_MsgUpdateGroupPolicyAdmin_group_policy_address = md_MsgUpdateGroupPolicyAdmin.Fields().ByName("group_policy_address") - fd_MsgUpdateGroupPolicyAdmin_new_admin = md_MsgUpdateGroupPolicyAdmin.Fields().ByName("new_admin") -} - -var _ protoreflect.Message = (*fastReflection_MsgUpdateGroupPolicyAdmin)(nil) - -type fastReflection_MsgUpdateGroupPolicyAdmin MsgUpdateGroupPolicyAdmin - -func (x *MsgUpdateGroupPolicyAdmin) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateGroupPolicyAdmin)(x) -} - -func (x *MsgUpdateGroupPolicyAdmin) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgUpdateGroupPolicyAdmin_messageType fastReflection_MsgUpdateGroupPolicyAdmin_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateGroupPolicyAdmin_messageType{} - -type fastReflection_MsgUpdateGroupPolicyAdmin_messageType struct{} - -func (x fastReflection_MsgUpdateGroupPolicyAdmin_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateGroupPolicyAdmin)(nil) -} -func (x fastReflection_MsgUpdateGroupPolicyAdmin_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateGroupPolicyAdmin) -} -func (x fastReflection_MsgUpdateGroupPolicyAdmin_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateGroupPolicyAdmin -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgUpdateGroupPolicyAdmin) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateGroupPolicyAdmin -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgUpdateGroupPolicyAdmin) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateGroupPolicyAdmin_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateGroupPolicyAdmin) New() protoreflect.Message { - return new(fastReflection_MsgUpdateGroupPolicyAdmin) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateGroupPolicyAdmin) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateGroupPolicyAdmin)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgUpdateGroupPolicyAdmin) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Admin != "" { - value := protoreflect.ValueOfString(x.Admin) - if !f(fd_MsgUpdateGroupPolicyAdmin_admin, value) { - return - } - } - if x.GroupPolicyAddress != "" { - value := protoreflect.ValueOfString(x.GroupPolicyAddress) - if !f(fd_MsgUpdateGroupPolicyAdmin_group_policy_address, value) { - return - } - } - if x.NewAdmin != "" { - value := protoreflect.ValueOfString(x.NewAdmin) - if !f(fd_MsgUpdateGroupPolicyAdmin_new_admin, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgUpdateGroupPolicyAdmin) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.MsgUpdateGroupPolicyAdmin.admin": - return x.Admin != "" - case "cosmos.group.v1.MsgUpdateGroupPolicyAdmin.group_policy_address": - return x.GroupPolicyAddress != "" - case "cosmos.group.v1.MsgUpdateGroupPolicyAdmin.new_admin": - return x.NewAdmin != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyAdmin")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyAdmin does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupPolicyAdmin) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.MsgUpdateGroupPolicyAdmin.admin": - x.Admin = "" - case "cosmos.group.v1.MsgUpdateGroupPolicyAdmin.group_policy_address": - x.GroupPolicyAddress = "" - case "cosmos.group.v1.MsgUpdateGroupPolicyAdmin.new_admin": - x.NewAdmin = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyAdmin")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyAdmin does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgUpdateGroupPolicyAdmin) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.MsgUpdateGroupPolicyAdmin.admin": - value := x.Admin - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.MsgUpdateGroupPolicyAdmin.group_policy_address": - value := x.GroupPolicyAddress - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.MsgUpdateGroupPolicyAdmin.new_admin": - value := x.NewAdmin - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyAdmin")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyAdmin does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupPolicyAdmin) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.MsgUpdateGroupPolicyAdmin.admin": - x.Admin = value.Interface().(string) - case "cosmos.group.v1.MsgUpdateGroupPolicyAdmin.group_policy_address": - x.GroupPolicyAddress = value.Interface().(string) - case "cosmos.group.v1.MsgUpdateGroupPolicyAdmin.new_admin": - x.NewAdmin = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyAdmin")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyAdmin does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupPolicyAdmin) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgUpdateGroupPolicyAdmin.admin": - panic(fmt.Errorf("field admin of message cosmos.group.v1.MsgUpdateGroupPolicyAdmin is not mutable")) - case "cosmos.group.v1.MsgUpdateGroupPolicyAdmin.group_policy_address": - panic(fmt.Errorf("field group_policy_address of message cosmos.group.v1.MsgUpdateGroupPolicyAdmin is not mutable")) - case "cosmos.group.v1.MsgUpdateGroupPolicyAdmin.new_admin": - panic(fmt.Errorf("field new_admin of message cosmos.group.v1.MsgUpdateGroupPolicyAdmin is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyAdmin")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyAdmin does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgUpdateGroupPolicyAdmin) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgUpdateGroupPolicyAdmin.admin": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.MsgUpdateGroupPolicyAdmin.group_policy_address": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.MsgUpdateGroupPolicyAdmin.new_admin": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyAdmin")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyAdmin does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgUpdateGroupPolicyAdmin) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.MsgUpdateGroupPolicyAdmin", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgUpdateGroupPolicyAdmin) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupPolicyAdmin) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgUpdateGroupPolicyAdmin) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateGroupPolicyAdmin) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateGroupPolicyAdmin) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Admin) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.GroupPolicyAddress) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.NewAdmin) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateGroupPolicyAdmin) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.NewAdmin) > 0 { - i -= len(x.NewAdmin) - copy(dAtA[i:], x.NewAdmin) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewAdmin))) - i-- - dAtA[i] = 0x1a - } - if len(x.GroupPolicyAddress) > 0 { - i -= len(x.GroupPolicyAddress) - copy(dAtA[i:], x.GroupPolicyAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.GroupPolicyAddress))) - i-- - dAtA[i] = 0x12 - } - if len(x.Admin) > 0 { - i -= len(x.Admin) - copy(dAtA[i:], x.Admin) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Admin))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateGroupPolicyAdmin) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateGroupPolicyAdmin: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateGroupPolicyAdmin: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Admin = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupPolicyAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.GroupPolicyAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NewAdmin", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.NewAdmin = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgUpdateGroupPolicyAdminResponse protoreflect.MessageDescriptor -) - -func init() { - file_cosmos_group_v1_tx_proto_init() - md_MsgUpdateGroupPolicyAdminResponse = File_cosmos_group_v1_tx_proto.Messages().ByName("MsgUpdateGroupPolicyAdminResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgUpdateGroupPolicyAdminResponse)(nil) - -type fastReflection_MsgUpdateGroupPolicyAdminResponse MsgUpdateGroupPolicyAdminResponse - -func (x *MsgUpdateGroupPolicyAdminResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateGroupPolicyAdminResponse)(x) -} - -func (x *MsgUpdateGroupPolicyAdminResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgUpdateGroupPolicyAdminResponse_messageType fastReflection_MsgUpdateGroupPolicyAdminResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateGroupPolicyAdminResponse_messageType{} - -type fastReflection_MsgUpdateGroupPolicyAdminResponse_messageType struct{} - -func (x fastReflection_MsgUpdateGroupPolicyAdminResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateGroupPolicyAdminResponse)(nil) -} -func (x fastReflection_MsgUpdateGroupPolicyAdminResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateGroupPolicyAdminResponse) -} -func (x fastReflection_MsgUpdateGroupPolicyAdminResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateGroupPolicyAdminResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgUpdateGroupPolicyAdminResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateGroupPolicyAdminResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgUpdateGroupPolicyAdminResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateGroupPolicyAdminResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateGroupPolicyAdminResponse) New() protoreflect.Message { - return new(fastReflection_MsgUpdateGroupPolicyAdminResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateGroupPolicyAdminResponse) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateGroupPolicyAdminResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgUpdateGroupPolicyAdminResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgUpdateGroupPolicyAdminResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupPolicyAdminResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgUpdateGroupPolicyAdminResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupPolicyAdminResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupPolicyAdminResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgUpdateGroupPolicyAdminResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgUpdateGroupPolicyAdminResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgUpdateGroupPolicyAdminResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupPolicyAdminResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgUpdateGroupPolicyAdminResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateGroupPolicyAdminResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateGroupPolicyAdminResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateGroupPolicyAdminResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateGroupPolicyAdminResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateGroupPolicyAdminResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateGroupPolicyAdminResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_MsgCreateGroupWithPolicy_2_list)(nil) - -type _MsgCreateGroupWithPolicy_2_list struct { - list *[]*MemberRequest -} - -func (x *_MsgCreateGroupWithPolicy_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgCreateGroupWithPolicy_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_MsgCreateGroupWithPolicy_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*MemberRequest) - (*x.list)[i] = concreteValue -} - -func (x *_MsgCreateGroupWithPolicy_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*MemberRequest) - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgCreateGroupWithPolicy_2_list) AppendMutable() protoreflect.Value { - v := new(MemberRequest) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgCreateGroupWithPolicy_2_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_MsgCreateGroupWithPolicy_2_list) NewElement() protoreflect.Value { - v := new(MemberRequest) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgCreateGroupWithPolicy_2_list) IsValid() bool { - return x.list != nil -} - -var ( - md_MsgCreateGroupWithPolicy protoreflect.MessageDescriptor - fd_MsgCreateGroupWithPolicy_admin protoreflect.FieldDescriptor - fd_MsgCreateGroupWithPolicy_members protoreflect.FieldDescriptor - fd_MsgCreateGroupWithPolicy_group_metadata protoreflect.FieldDescriptor - fd_MsgCreateGroupWithPolicy_group_policy_metadata protoreflect.FieldDescriptor - fd_MsgCreateGroupWithPolicy_group_policy_as_admin protoreflect.FieldDescriptor - fd_MsgCreateGroupWithPolicy_decision_policy protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_tx_proto_init() - md_MsgCreateGroupWithPolicy = File_cosmos_group_v1_tx_proto.Messages().ByName("MsgCreateGroupWithPolicy") - fd_MsgCreateGroupWithPolicy_admin = md_MsgCreateGroupWithPolicy.Fields().ByName("admin") - fd_MsgCreateGroupWithPolicy_members = md_MsgCreateGroupWithPolicy.Fields().ByName("members") - fd_MsgCreateGroupWithPolicy_group_metadata = md_MsgCreateGroupWithPolicy.Fields().ByName("group_metadata") - fd_MsgCreateGroupWithPolicy_group_policy_metadata = md_MsgCreateGroupWithPolicy.Fields().ByName("group_policy_metadata") - fd_MsgCreateGroupWithPolicy_group_policy_as_admin = md_MsgCreateGroupWithPolicy.Fields().ByName("group_policy_as_admin") - fd_MsgCreateGroupWithPolicy_decision_policy = md_MsgCreateGroupWithPolicy.Fields().ByName("decision_policy") -} - -var _ protoreflect.Message = (*fastReflection_MsgCreateGroupWithPolicy)(nil) - -type fastReflection_MsgCreateGroupWithPolicy MsgCreateGroupWithPolicy - -func (x *MsgCreateGroupWithPolicy) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCreateGroupWithPolicy)(x) -} - -func (x *MsgCreateGroupWithPolicy) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgCreateGroupWithPolicy_messageType fastReflection_MsgCreateGroupWithPolicy_messageType -var _ protoreflect.MessageType = fastReflection_MsgCreateGroupWithPolicy_messageType{} - -type fastReflection_MsgCreateGroupWithPolicy_messageType struct{} - -func (x fastReflection_MsgCreateGroupWithPolicy_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCreateGroupWithPolicy)(nil) -} -func (x fastReflection_MsgCreateGroupWithPolicy_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCreateGroupWithPolicy) -} -func (x fastReflection_MsgCreateGroupWithPolicy_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateGroupWithPolicy -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCreateGroupWithPolicy) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateGroupWithPolicy -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgCreateGroupWithPolicy) Type() protoreflect.MessageType { - return _fastReflection_MsgCreateGroupWithPolicy_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCreateGroupWithPolicy) New() protoreflect.Message { - return new(fastReflection_MsgCreateGroupWithPolicy) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCreateGroupWithPolicy) Interface() protoreflect.ProtoMessage { - return (*MsgCreateGroupWithPolicy)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgCreateGroupWithPolicy) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Admin != "" { - value := protoreflect.ValueOfString(x.Admin) - if !f(fd_MsgCreateGroupWithPolicy_admin, value) { - return - } - } - if len(x.Members) != 0 { - value := protoreflect.ValueOfList(&_MsgCreateGroupWithPolicy_2_list{list: &x.Members}) - if !f(fd_MsgCreateGroupWithPolicy_members, value) { - return - } - } - if x.GroupMetadata != "" { - value := protoreflect.ValueOfString(x.GroupMetadata) - if !f(fd_MsgCreateGroupWithPolicy_group_metadata, value) { - return - } - } - if x.GroupPolicyMetadata != "" { - value := protoreflect.ValueOfString(x.GroupPolicyMetadata) - if !f(fd_MsgCreateGroupWithPolicy_group_policy_metadata, value) { - return - } - } - if x.GroupPolicyAsAdmin != false { - value := protoreflect.ValueOfBool(x.GroupPolicyAsAdmin) - if !f(fd_MsgCreateGroupWithPolicy_group_policy_as_admin, value) { - return - } - } - if x.DecisionPolicy != nil { - value := protoreflect.ValueOfMessage(x.DecisionPolicy.ProtoReflect()) - if !f(fd_MsgCreateGroupWithPolicy_decision_policy, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgCreateGroupWithPolicy) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.MsgCreateGroupWithPolicy.admin": - return x.Admin != "" - case "cosmos.group.v1.MsgCreateGroupWithPolicy.members": - return len(x.Members) != 0 - case "cosmos.group.v1.MsgCreateGroupWithPolicy.group_metadata": - return x.GroupMetadata != "" - case "cosmos.group.v1.MsgCreateGroupWithPolicy.group_policy_metadata": - return x.GroupPolicyMetadata != "" - case "cosmos.group.v1.MsgCreateGroupWithPolicy.group_policy_as_admin": - return x.GroupPolicyAsAdmin != false - case "cosmos.group.v1.MsgCreateGroupWithPolicy.decision_policy": - return x.DecisionPolicy != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroupWithPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroupWithPolicy does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateGroupWithPolicy) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.MsgCreateGroupWithPolicy.admin": - x.Admin = "" - case "cosmos.group.v1.MsgCreateGroupWithPolicy.members": - x.Members = nil - case "cosmos.group.v1.MsgCreateGroupWithPolicy.group_metadata": - x.GroupMetadata = "" - case "cosmos.group.v1.MsgCreateGroupWithPolicy.group_policy_metadata": - x.GroupPolicyMetadata = "" - case "cosmos.group.v1.MsgCreateGroupWithPolicy.group_policy_as_admin": - x.GroupPolicyAsAdmin = false - case "cosmos.group.v1.MsgCreateGroupWithPolicy.decision_policy": - x.DecisionPolicy = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroupWithPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroupWithPolicy does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgCreateGroupWithPolicy) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.MsgCreateGroupWithPolicy.admin": - value := x.Admin - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.MsgCreateGroupWithPolicy.members": - if len(x.Members) == 0 { - return protoreflect.ValueOfList(&_MsgCreateGroupWithPolicy_2_list{}) - } - listValue := &_MsgCreateGroupWithPolicy_2_list{list: &x.Members} - return protoreflect.ValueOfList(listValue) - case "cosmos.group.v1.MsgCreateGroupWithPolicy.group_metadata": - value := x.GroupMetadata - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.MsgCreateGroupWithPolicy.group_policy_metadata": - value := x.GroupPolicyMetadata - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.MsgCreateGroupWithPolicy.group_policy_as_admin": - value := x.GroupPolicyAsAdmin - return protoreflect.ValueOfBool(value) - case "cosmos.group.v1.MsgCreateGroupWithPolicy.decision_policy": - value := x.DecisionPolicy - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroupWithPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroupWithPolicy does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateGroupWithPolicy) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.MsgCreateGroupWithPolicy.admin": - x.Admin = value.Interface().(string) - case "cosmos.group.v1.MsgCreateGroupWithPolicy.members": - lv := value.List() - clv := lv.(*_MsgCreateGroupWithPolicy_2_list) - x.Members = *clv.list - case "cosmos.group.v1.MsgCreateGroupWithPolicy.group_metadata": - x.GroupMetadata = value.Interface().(string) - case "cosmos.group.v1.MsgCreateGroupWithPolicy.group_policy_metadata": - x.GroupPolicyMetadata = value.Interface().(string) - case "cosmos.group.v1.MsgCreateGroupWithPolicy.group_policy_as_admin": - x.GroupPolicyAsAdmin = value.Bool() - case "cosmos.group.v1.MsgCreateGroupWithPolicy.decision_policy": - x.DecisionPolicy = value.Message().Interface().(*anypb.Any) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroupWithPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroupWithPolicy does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateGroupWithPolicy) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgCreateGroupWithPolicy.members": - if x.Members == nil { - x.Members = []*MemberRequest{} - } - value := &_MsgCreateGroupWithPolicy_2_list{list: &x.Members} - return protoreflect.ValueOfList(value) - case "cosmos.group.v1.MsgCreateGroupWithPolicy.decision_policy": - if x.DecisionPolicy == nil { - x.DecisionPolicy = new(anypb.Any) - } - return protoreflect.ValueOfMessage(x.DecisionPolicy.ProtoReflect()) - case "cosmos.group.v1.MsgCreateGroupWithPolicy.admin": - panic(fmt.Errorf("field admin of message cosmos.group.v1.MsgCreateGroupWithPolicy is not mutable")) - case "cosmos.group.v1.MsgCreateGroupWithPolicy.group_metadata": - panic(fmt.Errorf("field group_metadata of message cosmos.group.v1.MsgCreateGroupWithPolicy is not mutable")) - case "cosmos.group.v1.MsgCreateGroupWithPolicy.group_policy_metadata": - panic(fmt.Errorf("field group_policy_metadata of message cosmos.group.v1.MsgCreateGroupWithPolicy is not mutable")) - case "cosmos.group.v1.MsgCreateGroupWithPolicy.group_policy_as_admin": - panic(fmt.Errorf("field group_policy_as_admin of message cosmos.group.v1.MsgCreateGroupWithPolicy is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroupWithPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroupWithPolicy does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgCreateGroupWithPolicy) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgCreateGroupWithPolicy.admin": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.MsgCreateGroupWithPolicy.members": - list := []*MemberRequest{} - return protoreflect.ValueOfList(&_MsgCreateGroupWithPolicy_2_list{list: &list}) - case "cosmos.group.v1.MsgCreateGroupWithPolicy.group_metadata": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.MsgCreateGroupWithPolicy.group_policy_metadata": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.MsgCreateGroupWithPolicy.group_policy_as_admin": - return protoreflect.ValueOfBool(false) - case "cosmos.group.v1.MsgCreateGroupWithPolicy.decision_policy": - m := new(anypb.Any) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroupWithPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroupWithPolicy does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgCreateGroupWithPolicy) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.MsgCreateGroupWithPolicy", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgCreateGroupWithPolicy) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateGroupWithPolicy) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgCreateGroupWithPolicy) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgCreateGroupWithPolicy) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCreateGroupWithPolicy) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Admin) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.Members) > 0 { - for _, e := range x.Members { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - l = len(x.GroupMetadata) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.GroupPolicyMetadata) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.GroupPolicyAsAdmin { - n += 2 - } - if x.DecisionPolicy != nil { - l = options.Size(x.DecisionPolicy) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateGroupWithPolicy) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.DecisionPolicy != nil { - encoded, err := options.Marshal(x.DecisionPolicy) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x32 - } - if x.GroupPolicyAsAdmin { - i-- - if x.GroupPolicyAsAdmin { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - if len(x.GroupPolicyMetadata) > 0 { - i -= len(x.GroupPolicyMetadata) - copy(dAtA[i:], x.GroupPolicyMetadata) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.GroupPolicyMetadata))) - i-- - dAtA[i] = 0x22 - } - if len(x.GroupMetadata) > 0 { - i -= len(x.GroupMetadata) - copy(dAtA[i:], x.GroupMetadata) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.GroupMetadata))) - i-- - dAtA[i] = 0x1a - } - if len(x.Members) > 0 { - for iNdEx := len(x.Members) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Members[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - } - if len(x.Admin) > 0 { - i -= len(x.Admin) - copy(dAtA[i:], x.Admin) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Admin))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateGroupWithPolicy) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateGroupWithPolicy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateGroupWithPolicy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Admin = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Members", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Members = append(x.Members, &MemberRequest{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Members[len(x.Members)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupMetadata", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.GroupMetadata = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupPolicyMetadata", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.GroupPolicyMetadata = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupPolicyAsAdmin", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.GroupPolicyAsAdmin = bool(v != 0) - case 6: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DecisionPolicy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.DecisionPolicy == nil { - x.DecisionPolicy = &anypb.Any{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DecisionPolicy); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCreateGroupWithPolicyResponse protoreflect.MessageDescriptor - fd_MsgCreateGroupWithPolicyResponse_group_id protoreflect.FieldDescriptor - fd_MsgCreateGroupWithPolicyResponse_group_policy_address protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_tx_proto_init() - md_MsgCreateGroupWithPolicyResponse = File_cosmos_group_v1_tx_proto.Messages().ByName("MsgCreateGroupWithPolicyResponse") - fd_MsgCreateGroupWithPolicyResponse_group_id = md_MsgCreateGroupWithPolicyResponse.Fields().ByName("group_id") - fd_MsgCreateGroupWithPolicyResponse_group_policy_address = md_MsgCreateGroupWithPolicyResponse.Fields().ByName("group_policy_address") -} - -var _ protoreflect.Message = (*fastReflection_MsgCreateGroupWithPolicyResponse)(nil) - -type fastReflection_MsgCreateGroupWithPolicyResponse MsgCreateGroupWithPolicyResponse - -func (x *MsgCreateGroupWithPolicyResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCreateGroupWithPolicyResponse)(x) -} - -func (x *MsgCreateGroupWithPolicyResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgCreateGroupWithPolicyResponse_messageType fastReflection_MsgCreateGroupWithPolicyResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgCreateGroupWithPolicyResponse_messageType{} - -type fastReflection_MsgCreateGroupWithPolicyResponse_messageType struct{} - -func (x fastReflection_MsgCreateGroupWithPolicyResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCreateGroupWithPolicyResponse)(nil) -} -func (x fastReflection_MsgCreateGroupWithPolicyResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCreateGroupWithPolicyResponse) -} -func (x fastReflection_MsgCreateGroupWithPolicyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateGroupWithPolicyResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCreateGroupWithPolicyResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateGroupWithPolicyResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgCreateGroupWithPolicyResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgCreateGroupWithPolicyResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCreateGroupWithPolicyResponse) New() protoreflect.Message { - return new(fastReflection_MsgCreateGroupWithPolicyResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCreateGroupWithPolicyResponse) Interface() protoreflect.ProtoMessage { - return (*MsgCreateGroupWithPolicyResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgCreateGroupWithPolicyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.GroupId != uint64(0) { - value := protoreflect.ValueOfUint64(x.GroupId) - if !f(fd_MsgCreateGroupWithPolicyResponse_group_id, value) { - return - } - } - if x.GroupPolicyAddress != "" { - value := protoreflect.ValueOfString(x.GroupPolicyAddress) - if !f(fd_MsgCreateGroupWithPolicyResponse_group_policy_address, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgCreateGroupWithPolicyResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.MsgCreateGroupWithPolicyResponse.group_id": - return x.GroupId != uint64(0) - case "cosmos.group.v1.MsgCreateGroupWithPolicyResponse.group_policy_address": - return x.GroupPolicyAddress != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroupWithPolicyResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroupWithPolicyResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateGroupWithPolicyResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.MsgCreateGroupWithPolicyResponse.group_id": - x.GroupId = uint64(0) - case "cosmos.group.v1.MsgCreateGroupWithPolicyResponse.group_policy_address": - x.GroupPolicyAddress = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroupWithPolicyResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroupWithPolicyResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgCreateGroupWithPolicyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.MsgCreateGroupWithPolicyResponse.group_id": - value := x.GroupId - return protoreflect.ValueOfUint64(value) - case "cosmos.group.v1.MsgCreateGroupWithPolicyResponse.group_policy_address": - value := x.GroupPolicyAddress - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroupWithPolicyResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroupWithPolicyResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateGroupWithPolicyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.MsgCreateGroupWithPolicyResponse.group_id": - x.GroupId = value.Uint() - case "cosmos.group.v1.MsgCreateGroupWithPolicyResponse.group_policy_address": - x.GroupPolicyAddress = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroupWithPolicyResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroupWithPolicyResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateGroupWithPolicyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgCreateGroupWithPolicyResponse.group_id": - panic(fmt.Errorf("field group_id of message cosmos.group.v1.MsgCreateGroupWithPolicyResponse is not mutable")) - case "cosmos.group.v1.MsgCreateGroupWithPolicyResponse.group_policy_address": - panic(fmt.Errorf("field group_policy_address of message cosmos.group.v1.MsgCreateGroupWithPolicyResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroupWithPolicyResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroupWithPolicyResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgCreateGroupWithPolicyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgCreateGroupWithPolicyResponse.group_id": - return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.group.v1.MsgCreateGroupWithPolicyResponse.group_policy_address": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgCreateGroupWithPolicyResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgCreateGroupWithPolicyResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgCreateGroupWithPolicyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.MsgCreateGroupWithPolicyResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgCreateGroupWithPolicyResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateGroupWithPolicyResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgCreateGroupWithPolicyResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgCreateGroupWithPolicyResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCreateGroupWithPolicyResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.GroupId != 0 { - n += 1 + runtime.Sov(uint64(x.GroupId)) - } - l = len(x.GroupPolicyAddress) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateGroupWithPolicyResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.GroupPolicyAddress) > 0 { - i -= len(x.GroupPolicyAddress) - copy(dAtA[i:], x.GroupPolicyAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.GroupPolicyAddress))) - i-- - dAtA[i] = 0x12 - } - if x.GroupId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.GroupId)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateGroupWithPolicyResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateGroupWithPolicyResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateGroupWithPolicyResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - x.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.GroupId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupPolicyAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.GroupPolicyAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgUpdateGroupPolicyDecisionPolicy protoreflect.MessageDescriptor - fd_MsgUpdateGroupPolicyDecisionPolicy_admin protoreflect.FieldDescriptor - fd_MsgUpdateGroupPolicyDecisionPolicy_group_policy_address protoreflect.FieldDescriptor - fd_MsgUpdateGroupPolicyDecisionPolicy_decision_policy protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_tx_proto_init() - md_MsgUpdateGroupPolicyDecisionPolicy = File_cosmos_group_v1_tx_proto.Messages().ByName("MsgUpdateGroupPolicyDecisionPolicy") - fd_MsgUpdateGroupPolicyDecisionPolicy_admin = md_MsgUpdateGroupPolicyDecisionPolicy.Fields().ByName("admin") - fd_MsgUpdateGroupPolicyDecisionPolicy_group_policy_address = md_MsgUpdateGroupPolicyDecisionPolicy.Fields().ByName("group_policy_address") - fd_MsgUpdateGroupPolicyDecisionPolicy_decision_policy = md_MsgUpdateGroupPolicyDecisionPolicy.Fields().ByName("decision_policy") -} - -var _ protoreflect.Message = (*fastReflection_MsgUpdateGroupPolicyDecisionPolicy)(nil) - -type fastReflection_MsgUpdateGroupPolicyDecisionPolicy MsgUpdateGroupPolicyDecisionPolicy - -func (x *MsgUpdateGroupPolicyDecisionPolicy) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateGroupPolicyDecisionPolicy)(x) -} - -func (x *MsgUpdateGroupPolicyDecisionPolicy) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgUpdateGroupPolicyDecisionPolicy_messageType fastReflection_MsgUpdateGroupPolicyDecisionPolicy_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateGroupPolicyDecisionPolicy_messageType{} - -type fastReflection_MsgUpdateGroupPolicyDecisionPolicy_messageType struct{} - -func (x fastReflection_MsgUpdateGroupPolicyDecisionPolicy_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateGroupPolicyDecisionPolicy)(nil) -} -func (x fastReflection_MsgUpdateGroupPolicyDecisionPolicy_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateGroupPolicyDecisionPolicy) -} -func (x fastReflection_MsgUpdateGroupPolicyDecisionPolicy_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateGroupPolicyDecisionPolicy -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgUpdateGroupPolicyDecisionPolicy) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateGroupPolicyDecisionPolicy -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgUpdateGroupPolicyDecisionPolicy) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateGroupPolicyDecisionPolicy_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateGroupPolicyDecisionPolicy) New() protoreflect.Message { - return new(fastReflection_MsgUpdateGroupPolicyDecisionPolicy) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateGroupPolicyDecisionPolicy) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateGroupPolicyDecisionPolicy)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgUpdateGroupPolicyDecisionPolicy) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Admin != "" { - value := protoreflect.ValueOfString(x.Admin) - if !f(fd_MsgUpdateGroupPolicyDecisionPolicy_admin, value) { - return - } - } - if x.GroupPolicyAddress != "" { - value := protoreflect.ValueOfString(x.GroupPolicyAddress) - if !f(fd_MsgUpdateGroupPolicyDecisionPolicy_group_policy_address, value) { - return - } - } - if x.DecisionPolicy != nil { - value := protoreflect.ValueOfMessage(x.DecisionPolicy.ProtoReflect()) - if !f(fd_MsgUpdateGroupPolicyDecisionPolicy_decision_policy, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgUpdateGroupPolicyDecisionPolicy) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy.admin": - return x.Admin != "" - case "cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy.group_policy_address": - return x.GroupPolicyAddress != "" - case "cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy.decision_policy": - return x.DecisionPolicy != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupPolicyDecisionPolicy) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy.admin": - x.Admin = "" - case "cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy.group_policy_address": - x.GroupPolicyAddress = "" - case "cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy.decision_policy": - x.DecisionPolicy = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgUpdateGroupPolicyDecisionPolicy) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy.admin": - value := x.Admin - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy.group_policy_address": - value := x.GroupPolicyAddress - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy.decision_policy": - value := x.DecisionPolicy - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupPolicyDecisionPolicy) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy.admin": - x.Admin = value.Interface().(string) - case "cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy.group_policy_address": - x.GroupPolicyAddress = value.Interface().(string) - case "cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy.decision_policy": - x.DecisionPolicy = value.Message().Interface().(*anypb.Any) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupPolicyDecisionPolicy) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy.decision_policy": - if x.DecisionPolicy == nil { - x.DecisionPolicy = new(anypb.Any) - } - return protoreflect.ValueOfMessage(x.DecisionPolicy.ProtoReflect()) - case "cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy.admin": - panic(fmt.Errorf("field admin of message cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy is not mutable")) - case "cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy.group_policy_address": - panic(fmt.Errorf("field group_policy_address of message cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgUpdateGroupPolicyDecisionPolicy) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy.admin": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy.group_policy_address": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy.decision_policy": - m := new(anypb.Any) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgUpdateGroupPolicyDecisionPolicy) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgUpdateGroupPolicyDecisionPolicy) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupPolicyDecisionPolicy) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgUpdateGroupPolicyDecisionPolicy) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateGroupPolicyDecisionPolicy) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateGroupPolicyDecisionPolicy) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Admin) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.GroupPolicyAddress) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.DecisionPolicy != nil { - l = options.Size(x.DecisionPolicy) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateGroupPolicyDecisionPolicy) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.DecisionPolicy != nil { - encoded, err := options.Marshal(x.DecisionPolicy) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x1a - } - if len(x.GroupPolicyAddress) > 0 { - i -= len(x.GroupPolicyAddress) - copy(dAtA[i:], x.GroupPolicyAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.GroupPolicyAddress))) - i-- - dAtA[i] = 0x12 - } - if len(x.Admin) > 0 { - i -= len(x.Admin) - copy(dAtA[i:], x.Admin) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Admin))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateGroupPolicyDecisionPolicy) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateGroupPolicyDecisionPolicy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateGroupPolicyDecisionPolicy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Admin = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupPolicyAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.GroupPolicyAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DecisionPolicy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.DecisionPolicy == nil { - x.DecisionPolicy = &anypb.Any{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DecisionPolicy); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgUpdateGroupPolicyDecisionPolicyResponse protoreflect.MessageDescriptor -) - -func init() { - file_cosmos_group_v1_tx_proto_init() - md_MsgUpdateGroupPolicyDecisionPolicyResponse = File_cosmos_group_v1_tx_proto.Messages().ByName("MsgUpdateGroupPolicyDecisionPolicyResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgUpdateGroupPolicyDecisionPolicyResponse)(nil) - -type fastReflection_MsgUpdateGroupPolicyDecisionPolicyResponse MsgUpdateGroupPolicyDecisionPolicyResponse - -func (x *MsgUpdateGroupPolicyDecisionPolicyResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateGroupPolicyDecisionPolicyResponse)(x) -} - -func (x *MsgUpdateGroupPolicyDecisionPolicyResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgUpdateGroupPolicyDecisionPolicyResponse_messageType fastReflection_MsgUpdateGroupPolicyDecisionPolicyResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateGroupPolicyDecisionPolicyResponse_messageType{} - -type fastReflection_MsgUpdateGroupPolicyDecisionPolicyResponse_messageType struct{} - -func (x fastReflection_MsgUpdateGroupPolicyDecisionPolicyResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateGroupPolicyDecisionPolicyResponse)(nil) -} -func (x fastReflection_MsgUpdateGroupPolicyDecisionPolicyResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateGroupPolicyDecisionPolicyResponse) -} -func (x fastReflection_MsgUpdateGroupPolicyDecisionPolicyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateGroupPolicyDecisionPolicyResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgUpdateGroupPolicyDecisionPolicyResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateGroupPolicyDecisionPolicyResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgUpdateGroupPolicyDecisionPolicyResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateGroupPolicyDecisionPolicyResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateGroupPolicyDecisionPolicyResponse) New() protoreflect.Message { - return new(fastReflection_MsgUpdateGroupPolicyDecisionPolicyResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateGroupPolicyDecisionPolicyResponse) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateGroupPolicyDecisionPolicyResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgUpdateGroupPolicyDecisionPolicyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgUpdateGroupPolicyDecisionPolicyResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupPolicyDecisionPolicyResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgUpdateGroupPolicyDecisionPolicyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupPolicyDecisionPolicyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupPolicyDecisionPolicyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgUpdateGroupPolicyDecisionPolicyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgUpdateGroupPolicyDecisionPolicyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgUpdateGroupPolicyDecisionPolicyResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupPolicyDecisionPolicyResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgUpdateGroupPolicyDecisionPolicyResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateGroupPolicyDecisionPolicyResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateGroupPolicyDecisionPolicyResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateGroupPolicyDecisionPolicyResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateGroupPolicyDecisionPolicyResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateGroupPolicyDecisionPolicyResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateGroupPolicyDecisionPolicyResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgUpdateGroupPolicyMetadata protoreflect.MessageDescriptor - fd_MsgUpdateGroupPolicyMetadata_admin protoreflect.FieldDescriptor - fd_MsgUpdateGroupPolicyMetadata_group_policy_address protoreflect.FieldDescriptor - fd_MsgUpdateGroupPolicyMetadata_metadata protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_tx_proto_init() - md_MsgUpdateGroupPolicyMetadata = File_cosmos_group_v1_tx_proto.Messages().ByName("MsgUpdateGroupPolicyMetadata") - fd_MsgUpdateGroupPolicyMetadata_admin = md_MsgUpdateGroupPolicyMetadata.Fields().ByName("admin") - fd_MsgUpdateGroupPolicyMetadata_group_policy_address = md_MsgUpdateGroupPolicyMetadata.Fields().ByName("group_policy_address") - fd_MsgUpdateGroupPolicyMetadata_metadata = md_MsgUpdateGroupPolicyMetadata.Fields().ByName("metadata") -} - -var _ protoreflect.Message = (*fastReflection_MsgUpdateGroupPolicyMetadata)(nil) - -type fastReflection_MsgUpdateGroupPolicyMetadata MsgUpdateGroupPolicyMetadata - -func (x *MsgUpdateGroupPolicyMetadata) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateGroupPolicyMetadata)(x) -} - -func (x *MsgUpdateGroupPolicyMetadata) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgUpdateGroupPolicyMetadata_messageType fastReflection_MsgUpdateGroupPolicyMetadata_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateGroupPolicyMetadata_messageType{} - -type fastReflection_MsgUpdateGroupPolicyMetadata_messageType struct{} - -func (x fastReflection_MsgUpdateGroupPolicyMetadata_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateGroupPolicyMetadata)(nil) -} -func (x fastReflection_MsgUpdateGroupPolicyMetadata_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateGroupPolicyMetadata) -} -func (x fastReflection_MsgUpdateGroupPolicyMetadata_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateGroupPolicyMetadata -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgUpdateGroupPolicyMetadata) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateGroupPolicyMetadata -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgUpdateGroupPolicyMetadata) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateGroupPolicyMetadata_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateGroupPolicyMetadata) New() protoreflect.Message { - return new(fastReflection_MsgUpdateGroupPolicyMetadata) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateGroupPolicyMetadata) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateGroupPolicyMetadata)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgUpdateGroupPolicyMetadata) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Admin != "" { - value := protoreflect.ValueOfString(x.Admin) - if !f(fd_MsgUpdateGroupPolicyMetadata_admin, value) { - return - } - } - if x.GroupPolicyAddress != "" { - value := protoreflect.ValueOfString(x.GroupPolicyAddress) - if !f(fd_MsgUpdateGroupPolicyMetadata_group_policy_address, value) { - return - } - } - if x.Metadata != "" { - value := protoreflect.ValueOfString(x.Metadata) - if !f(fd_MsgUpdateGroupPolicyMetadata_metadata, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgUpdateGroupPolicyMetadata) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.MsgUpdateGroupPolicyMetadata.admin": - return x.Admin != "" - case "cosmos.group.v1.MsgUpdateGroupPolicyMetadata.group_policy_address": - return x.GroupPolicyAddress != "" - case "cosmos.group.v1.MsgUpdateGroupPolicyMetadata.metadata": - return x.Metadata != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyMetadata")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyMetadata does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupPolicyMetadata) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.MsgUpdateGroupPolicyMetadata.admin": - x.Admin = "" - case "cosmos.group.v1.MsgUpdateGroupPolicyMetadata.group_policy_address": - x.GroupPolicyAddress = "" - case "cosmos.group.v1.MsgUpdateGroupPolicyMetadata.metadata": - x.Metadata = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyMetadata")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyMetadata does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgUpdateGroupPolicyMetadata) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.MsgUpdateGroupPolicyMetadata.admin": - value := x.Admin - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.MsgUpdateGroupPolicyMetadata.group_policy_address": - value := x.GroupPolicyAddress - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.MsgUpdateGroupPolicyMetadata.metadata": - value := x.Metadata - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyMetadata")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyMetadata does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupPolicyMetadata) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.MsgUpdateGroupPolicyMetadata.admin": - x.Admin = value.Interface().(string) - case "cosmos.group.v1.MsgUpdateGroupPolicyMetadata.group_policy_address": - x.GroupPolicyAddress = value.Interface().(string) - case "cosmos.group.v1.MsgUpdateGroupPolicyMetadata.metadata": - x.Metadata = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyMetadata")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyMetadata does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupPolicyMetadata) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgUpdateGroupPolicyMetadata.admin": - panic(fmt.Errorf("field admin of message cosmos.group.v1.MsgUpdateGroupPolicyMetadata is not mutable")) - case "cosmos.group.v1.MsgUpdateGroupPolicyMetadata.group_policy_address": - panic(fmt.Errorf("field group_policy_address of message cosmos.group.v1.MsgUpdateGroupPolicyMetadata is not mutable")) - case "cosmos.group.v1.MsgUpdateGroupPolicyMetadata.metadata": - panic(fmt.Errorf("field metadata of message cosmos.group.v1.MsgUpdateGroupPolicyMetadata is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyMetadata")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyMetadata does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgUpdateGroupPolicyMetadata) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgUpdateGroupPolicyMetadata.admin": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.MsgUpdateGroupPolicyMetadata.group_policy_address": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.MsgUpdateGroupPolicyMetadata.metadata": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyMetadata")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyMetadata does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgUpdateGroupPolicyMetadata) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.MsgUpdateGroupPolicyMetadata", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgUpdateGroupPolicyMetadata) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupPolicyMetadata) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgUpdateGroupPolicyMetadata) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateGroupPolicyMetadata) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateGroupPolicyMetadata) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Admin) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.GroupPolicyAddress) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Metadata) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateGroupPolicyMetadata) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Metadata) > 0 { - i -= len(x.Metadata) - copy(dAtA[i:], x.Metadata) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) - i-- - dAtA[i] = 0x1a - } - if len(x.GroupPolicyAddress) > 0 { - i -= len(x.GroupPolicyAddress) - copy(dAtA[i:], x.GroupPolicyAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.GroupPolicyAddress))) - i-- - dAtA[i] = 0x12 - } - if len(x.Admin) > 0 { - i -= len(x.Admin) - copy(dAtA[i:], x.Admin) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Admin))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateGroupPolicyMetadata) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateGroupPolicyMetadata: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateGroupPolicyMetadata: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Admin = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupPolicyAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.GroupPolicyAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Metadata = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgUpdateGroupPolicyMetadataResponse protoreflect.MessageDescriptor -) - -func init() { - file_cosmos_group_v1_tx_proto_init() - md_MsgUpdateGroupPolicyMetadataResponse = File_cosmos_group_v1_tx_proto.Messages().ByName("MsgUpdateGroupPolicyMetadataResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgUpdateGroupPolicyMetadataResponse)(nil) - -type fastReflection_MsgUpdateGroupPolicyMetadataResponse MsgUpdateGroupPolicyMetadataResponse - -func (x *MsgUpdateGroupPolicyMetadataResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateGroupPolicyMetadataResponse)(x) -} - -func (x *MsgUpdateGroupPolicyMetadataResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgUpdateGroupPolicyMetadataResponse_messageType fastReflection_MsgUpdateGroupPolicyMetadataResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateGroupPolicyMetadataResponse_messageType{} - -type fastReflection_MsgUpdateGroupPolicyMetadataResponse_messageType struct{} - -func (x fastReflection_MsgUpdateGroupPolicyMetadataResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateGroupPolicyMetadataResponse)(nil) -} -func (x fastReflection_MsgUpdateGroupPolicyMetadataResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateGroupPolicyMetadataResponse) -} -func (x fastReflection_MsgUpdateGroupPolicyMetadataResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateGroupPolicyMetadataResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgUpdateGroupPolicyMetadataResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateGroupPolicyMetadataResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgUpdateGroupPolicyMetadataResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateGroupPolicyMetadataResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateGroupPolicyMetadataResponse) New() protoreflect.Message { - return new(fastReflection_MsgUpdateGroupPolicyMetadataResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateGroupPolicyMetadataResponse) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateGroupPolicyMetadataResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgUpdateGroupPolicyMetadataResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgUpdateGroupPolicyMetadataResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupPolicyMetadataResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgUpdateGroupPolicyMetadataResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupPolicyMetadataResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupPolicyMetadataResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgUpdateGroupPolicyMetadataResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgUpdateGroupPolicyMetadataResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgUpdateGroupPolicyMetadataResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateGroupPolicyMetadataResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgUpdateGroupPolicyMetadataResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateGroupPolicyMetadataResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateGroupPolicyMetadataResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateGroupPolicyMetadataResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateGroupPolicyMetadataResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateGroupPolicyMetadataResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateGroupPolicyMetadataResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_MsgSubmitProposal_2_list)(nil) - -type _MsgSubmitProposal_2_list struct { - list *[]string -} - -func (x *_MsgSubmitProposal_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgSubmitProposal_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_MsgSubmitProposal_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_MsgSubmitProposal_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgSubmitProposal_2_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message MsgSubmitProposal at list field Proposers as it is not of Message kind")) -} - -func (x *_MsgSubmitProposal_2_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_MsgSubmitProposal_2_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_MsgSubmitProposal_2_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_MsgSubmitProposal_4_list)(nil) - -type _MsgSubmitProposal_4_list struct { - list *[]*anypb.Any -} - -func (x *_MsgSubmitProposal_4_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgSubmitProposal_4_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_MsgSubmitProposal_4_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*anypb.Any) - (*x.list)[i] = concreteValue -} - -func (x *_MsgSubmitProposal_4_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*anypb.Any) - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgSubmitProposal_4_list) AppendMutable() protoreflect.Value { - v := new(anypb.Any) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgSubmitProposal_4_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_MsgSubmitProposal_4_list) NewElement() protoreflect.Value { - v := new(anypb.Any) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgSubmitProposal_4_list) IsValid() bool { - return x.list != nil -} - -var ( - md_MsgSubmitProposal protoreflect.MessageDescriptor - fd_MsgSubmitProposal_group_policy_address protoreflect.FieldDescriptor - fd_MsgSubmitProposal_proposers protoreflect.FieldDescriptor - fd_MsgSubmitProposal_metadata protoreflect.FieldDescriptor - fd_MsgSubmitProposal_messages protoreflect.FieldDescriptor - fd_MsgSubmitProposal_exec protoreflect.FieldDescriptor - fd_MsgSubmitProposal_title protoreflect.FieldDescriptor - fd_MsgSubmitProposal_summary protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_tx_proto_init() - md_MsgSubmitProposal = File_cosmos_group_v1_tx_proto.Messages().ByName("MsgSubmitProposal") - fd_MsgSubmitProposal_group_policy_address = md_MsgSubmitProposal.Fields().ByName("group_policy_address") - fd_MsgSubmitProposal_proposers = md_MsgSubmitProposal.Fields().ByName("proposers") - fd_MsgSubmitProposal_metadata = md_MsgSubmitProposal.Fields().ByName("metadata") - fd_MsgSubmitProposal_messages = md_MsgSubmitProposal.Fields().ByName("messages") - fd_MsgSubmitProposal_exec = md_MsgSubmitProposal.Fields().ByName("exec") - fd_MsgSubmitProposal_title = md_MsgSubmitProposal.Fields().ByName("title") - fd_MsgSubmitProposal_summary = md_MsgSubmitProposal.Fields().ByName("summary") -} - -var _ protoreflect.Message = (*fastReflection_MsgSubmitProposal)(nil) - -type fastReflection_MsgSubmitProposal MsgSubmitProposal - -func (x *MsgSubmitProposal) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSubmitProposal)(x) -} - -func (x *MsgSubmitProposal) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgSubmitProposal_messageType fastReflection_MsgSubmitProposal_messageType -var _ protoreflect.MessageType = fastReflection_MsgSubmitProposal_messageType{} - -type fastReflection_MsgSubmitProposal_messageType struct{} - -func (x fastReflection_MsgSubmitProposal_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSubmitProposal)(nil) -} -func (x fastReflection_MsgSubmitProposal_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSubmitProposal) -} -func (x fastReflection_MsgSubmitProposal_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSubmitProposal -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSubmitProposal) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSubmitProposal -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgSubmitProposal) Type() protoreflect.MessageType { - return _fastReflection_MsgSubmitProposal_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSubmitProposal) New() protoreflect.Message { - return new(fastReflection_MsgSubmitProposal) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSubmitProposal) Interface() protoreflect.ProtoMessage { - return (*MsgSubmitProposal)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgSubmitProposal) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.GroupPolicyAddress != "" { - value := protoreflect.ValueOfString(x.GroupPolicyAddress) - if !f(fd_MsgSubmitProposal_group_policy_address, value) { - return - } - } - if len(x.Proposers) != 0 { - value := protoreflect.ValueOfList(&_MsgSubmitProposal_2_list{list: &x.Proposers}) - if !f(fd_MsgSubmitProposal_proposers, value) { - return - } - } - if x.Metadata != "" { - value := protoreflect.ValueOfString(x.Metadata) - if !f(fd_MsgSubmitProposal_metadata, value) { - return - } - } - if len(x.Messages) != 0 { - value := protoreflect.ValueOfList(&_MsgSubmitProposal_4_list{list: &x.Messages}) - if !f(fd_MsgSubmitProposal_messages, value) { - return - } - } - if x.Exec != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Exec)) - if !f(fd_MsgSubmitProposal_exec, value) { - return - } - } - if x.Title != "" { - value := protoreflect.ValueOfString(x.Title) - if !f(fd_MsgSubmitProposal_title, value) { - return - } - } - if x.Summary != "" { - value := protoreflect.ValueOfString(x.Summary) - if !f(fd_MsgSubmitProposal_summary, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgSubmitProposal) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.MsgSubmitProposal.group_policy_address": - return x.GroupPolicyAddress != "" - case "cosmos.group.v1.MsgSubmitProposal.proposers": - return len(x.Proposers) != 0 - case "cosmos.group.v1.MsgSubmitProposal.metadata": - return x.Metadata != "" - case "cosmos.group.v1.MsgSubmitProposal.messages": - return len(x.Messages) != 0 - case "cosmos.group.v1.MsgSubmitProposal.exec": - return x.Exec != 0 - case "cosmos.group.v1.MsgSubmitProposal.title": - return x.Title != "" - case "cosmos.group.v1.MsgSubmitProposal.summary": - return x.Summary != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgSubmitProposal")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgSubmitProposal does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSubmitProposal) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.MsgSubmitProposal.group_policy_address": - x.GroupPolicyAddress = "" - case "cosmos.group.v1.MsgSubmitProposal.proposers": - x.Proposers = nil - case "cosmos.group.v1.MsgSubmitProposal.metadata": - x.Metadata = "" - case "cosmos.group.v1.MsgSubmitProposal.messages": - x.Messages = nil - case "cosmos.group.v1.MsgSubmitProposal.exec": - x.Exec = 0 - case "cosmos.group.v1.MsgSubmitProposal.title": - x.Title = "" - case "cosmos.group.v1.MsgSubmitProposal.summary": - x.Summary = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgSubmitProposal")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgSubmitProposal does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgSubmitProposal) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.MsgSubmitProposal.group_policy_address": - value := x.GroupPolicyAddress - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.MsgSubmitProposal.proposers": - if len(x.Proposers) == 0 { - return protoreflect.ValueOfList(&_MsgSubmitProposal_2_list{}) - } - listValue := &_MsgSubmitProposal_2_list{list: &x.Proposers} - return protoreflect.ValueOfList(listValue) - case "cosmos.group.v1.MsgSubmitProposal.metadata": - value := x.Metadata - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.MsgSubmitProposal.messages": - if len(x.Messages) == 0 { - return protoreflect.ValueOfList(&_MsgSubmitProposal_4_list{}) - } - listValue := &_MsgSubmitProposal_4_list{list: &x.Messages} - return protoreflect.ValueOfList(listValue) - case "cosmos.group.v1.MsgSubmitProposal.exec": - value := x.Exec - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "cosmos.group.v1.MsgSubmitProposal.title": - value := x.Title - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.MsgSubmitProposal.summary": - value := x.Summary - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgSubmitProposal")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgSubmitProposal does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSubmitProposal) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.MsgSubmitProposal.group_policy_address": - x.GroupPolicyAddress = value.Interface().(string) - case "cosmos.group.v1.MsgSubmitProposal.proposers": - lv := value.List() - clv := lv.(*_MsgSubmitProposal_2_list) - x.Proposers = *clv.list - case "cosmos.group.v1.MsgSubmitProposal.metadata": - x.Metadata = value.Interface().(string) - case "cosmos.group.v1.MsgSubmitProposal.messages": - lv := value.List() - clv := lv.(*_MsgSubmitProposal_4_list) - x.Messages = *clv.list - case "cosmos.group.v1.MsgSubmitProposal.exec": - x.Exec = (Exec)(value.Enum()) - case "cosmos.group.v1.MsgSubmitProposal.title": - x.Title = value.Interface().(string) - case "cosmos.group.v1.MsgSubmitProposal.summary": - x.Summary = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgSubmitProposal")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgSubmitProposal does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSubmitProposal) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgSubmitProposal.proposers": - if x.Proposers == nil { - x.Proposers = []string{} - } - value := &_MsgSubmitProposal_2_list{list: &x.Proposers} - return protoreflect.ValueOfList(value) - case "cosmos.group.v1.MsgSubmitProposal.messages": - if x.Messages == nil { - x.Messages = []*anypb.Any{} - } - value := &_MsgSubmitProposal_4_list{list: &x.Messages} - return protoreflect.ValueOfList(value) - case "cosmos.group.v1.MsgSubmitProposal.group_policy_address": - panic(fmt.Errorf("field group_policy_address of message cosmos.group.v1.MsgSubmitProposal is not mutable")) - case "cosmos.group.v1.MsgSubmitProposal.metadata": - panic(fmt.Errorf("field metadata of message cosmos.group.v1.MsgSubmitProposal is not mutable")) - case "cosmos.group.v1.MsgSubmitProposal.exec": - panic(fmt.Errorf("field exec of message cosmos.group.v1.MsgSubmitProposal is not mutable")) - case "cosmos.group.v1.MsgSubmitProposal.title": - panic(fmt.Errorf("field title of message cosmos.group.v1.MsgSubmitProposal is not mutable")) - case "cosmos.group.v1.MsgSubmitProposal.summary": - panic(fmt.Errorf("field summary of message cosmos.group.v1.MsgSubmitProposal is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgSubmitProposal")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgSubmitProposal does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgSubmitProposal) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgSubmitProposal.group_policy_address": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.MsgSubmitProposal.proposers": - list := []string{} - return protoreflect.ValueOfList(&_MsgSubmitProposal_2_list{list: &list}) - case "cosmos.group.v1.MsgSubmitProposal.metadata": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.MsgSubmitProposal.messages": - list := []*anypb.Any{} - return protoreflect.ValueOfList(&_MsgSubmitProposal_4_list{list: &list}) - case "cosmos.group.v1.MsgSubmitProposal.exec": - return protoreflect.ValueOfEnum(0) - case "cosmos.group.v1.MsgSubmitProposal.title": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.MsgSubmitProposal.summary": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgSubmitProposal")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgSubmitProposal does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgSubmitProposal) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.MsgSubmitProposal", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgSubmitProposal) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSubmitProposal) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgSubmitProposal) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgSubmitProposal) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSubmitProposal) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.GroupPolicyAddress) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.Proposers) > 0 { - for _, s := range x.Proposers { - l = len(s) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - l = len(x.Metadata) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.Messages) > 0 { - for _, e := range x.Messages { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.Exec != 0 { - n += 1 + runtime.Sov(uint64(x.Exec)) - } - l = len(x.Title) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Summary) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgSubmitProposal) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Summary) > 0 { - i -= len(x.Summary) - copy(dAtA[i:], x.Summary) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Summary))) - i-- - dAtA[i] = 0x3a - } - if len(x.Title) > 0 { - i -= len(x.Title) - copy(dAtA[i:], x.Title) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Title))) - i-- - dAtA[i] = 0x32 - } - if x.Exec != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Exec)) - i-- - dAtA[i] = 0x28 - } - if len(x.Messages) > 0 { - for iNdEx := len(x.Messages) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Messages[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x22 - } - } - if len(x.Metadata) > 0 { - i -= len(x.Metadata) - copy(dAtA[i:], x.Metadata) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) - i-- - dAtA[i] = 0x1a - } - if len(x.Proposers) > 0 { - for iNdEx := len(x.Proposers) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.Proposers[iNdEx]) - copy(dAtA[i:], x.Proposers[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Proposers[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(x.GroupPolicyAddress) > 0 { - i -= len(x.GroupPolicyAddress) - copy(dAtA[i:], x.GroupPolicyAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.GroupPolicyAddress))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgSubmitProposal) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSubmitProposal: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSubmitProposal: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupPolicyAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.GroupPolicyAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposers", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Proposers = append(x.Proposers, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Metadata = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Messages", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Messages = append(x.Messages, &anypb.Any{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Messages[len(x.Messages)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Exec", wireType) - } - x.Exec = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Exec |= Exec(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Title", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Title = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Summary", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Summary = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgSubmitProposalResponse protoreflect.MessageDescriptor - fd_MsgSubmitProposalResponse_proposal_id protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_tx_proto_init() - md_MsgSubmitProposalResponse = File_cosmos_group_v1_tx_proto.Messages().ByName("MsgSubmitProposalResponse") - fd_MsgSubmitProposalResponse_proposal_id = md_MsgSubmitProposalResponse.Fields().ByName("proposal_id") -} - -var _ protoreflect.Message = (*fastReflection_MsgSubmitProposalResponse)(nil) - -type fastReflection_MsgSubmitProposalResponse MsgSubmitProposalResponse - -func (x *MsgSubmitProposalResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSubmitProposalResponse)(x) -} - -func (x *MsgSubmitProposalResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgSubmitProposalResponse_messageType fastReflection_MsgSubmitProposalResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgSubmitProposalResponse_messageType{} - -type fastReflection_MsgSubmitProposalResponse_messageType struct{} - -func (x fastReflection_MsgSubmitProposalResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSubmitProposalResponse)(nil) -} -func (x fastReflection_MsgSubmitProposalResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSubmitProposalResponse) -} -func (x fastReflection_MsgSubmitProposalResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSubmitProposalResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSubmitProposalResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSubmitProposalResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgSubmitProposalResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgSubmitProposalResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSubmitProposalResponse) New() protoreflect.Message { - return new(fastReflection_MsgSubmitProposalResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSubmitProposalResponse) Interface() protoreflect.ProtoMessage { - return (*MsgSubmitProposalResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgSubmitProposalResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ProposalId != uint64(0) { - value := protoreflect.ValueOfUint64(x.ProposalId) - if !f(fd_MsgSubmitProposalResponse_proposal_id, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgSubmitProposalResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.MsgSubmitProposalResponse.proposal_id": - return x.ProposalId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgSubmitProposalResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgSubmitProposalResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSubmitProposalResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.MsgSubmitProposalResponse.proposal_id": - x.ProposalId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgSubmitProposalResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgSubmitProposalResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgSubmitProposalResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.MsgSubmitProposalResponse.proposal_id": - value := x.ProposalId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgSubmitProposalResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgSubmitProposalResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSubmitProposalResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.MsgSubmitProposalResponse.proposal_id": - x.ProposalId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgSubmitProposalResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgSubmitProposalResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSubmitProposalResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgSubmitProposalResponse.proposal_id": - panic(fmt.Errorf("field proposal_id of message cosmos.group.v1.MsgSubmitProposalResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgSubmitProposalResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgSubmitProposalResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgSubmitProposalResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgSubmitProposalResponse.proposal_id": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgSubmitProposalResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgSubmitProposalResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgSubmitProposalResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.MsgSubmitProposalResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgSubmitProposalResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSubmitProposalResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgSubmitProposalResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgSubmitProposalResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSubmitProposalResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.ProposalId != 0 { - n += 1 + runtime.Sov(uint64(x.ProposalId)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgSubmitProposalResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.ProposalId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ProposalId)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgSubmitProposalResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSubmitProposalResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSubmitProposalResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) - } - x.ProposalId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.ProposalId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgWithdrawProposal protoreflect.MessageDescriptor - fd_MsgWithdrawProposal_proposal_id protoreflect.FieldDescriptor - fd_MsgWithdrawProposal_address protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_tx_proto_init() - md_MsgWithdrawProposal = File_cosmos_group_v1_tx_proto.Messages().ByName("MsgWithdrawProposal") - fd_MsgWithdrawProposal_proposal_id = md_MsgWithdrawProposal.Fields().ByName("proposal_id") - fd_MsgWithdrawProposal_address = md_MsgWithdrawProposal.Fields().ByName("address") -} - -var _ protoreflect.Message = (*fastReflection_MsgWithdrawProposal)(nil) - -type fastReflection_MsgWithdrawProposal MsgWithdrawProposal - -func (x *MsgWithdrawProposal) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgWithdrawProposal)(x) -} - -func (x *MsgWithdrawProposal) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgWithdrawProposal_messageType fastReflection_MsgWithdrawProposal_messageType -var _ protoreflect.MessageType = fastReflection_MsgWithdrawProposal_messageType{} - -type fastReflection_MsgWithdrawProposal_messageType struct{} - -func (x fastReflection_MsgWithdrawProposal_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgWithdrawProposal)(nil) -} -func (x fastReflection_MsgWithdrawProposal_messageType) New() protoreflect.Message { - return new(fastReflection_MsgWithdrawProposal) -} -func (x fastReflection_MsgWithdrawProposal_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgWithdrawProposal -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgWithdrawProposal) Descriptor() protoreflect.MessageDescriptor { - return md_MsgWithdrawProposal -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgWithdrawProposal) Type() protoreflect.MessageType { - return _fastReflection_MsgWithdrawProposal_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgWithdrawProposal) New() protoreflect.Message { - return new(fastReflection_MsgWithdrawProposal) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgWithdrawProposal) Interface() protoreflect.ProtoMessage { - return (*MsgWithdrawProposal)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgWithdrawProposal) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ProposalId != uint64(0) { - value := protoreflect.ValueOfUint64(x.ProposalId) - if !f(fd_MsgWithdrawProposal_proposal_id, value) { - return - } - } - if x.Address != "" { - value := protoreflect.ValueOfString(x.Address) - if !f(fd_MsgWithdrawProposal_address, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgWithdrawProposal) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.MsgWithdrawProposal.proposal_id": - return x.ProposalId != uint64(0) - case "cosmos.group.v1.MsgWithdrawProposal.address": - return x.Address != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgWithdrawProposal")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgWithdrawProposal does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgWithdrawProposal) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.MsgWithdrawProposal.proposal_id": - x.ProposalId = uint64(0) - case "cosmos.group.v1.MsgWithdrawProposal.address": - x.Address = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgWithdrawProposal")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgWithdrawProposal does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgWithdrawProposal) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.MsgWithdrawProposal.proposal_id": - value := x.ProposalId - return protoreflect.ValueOfUint64(value) - case "cosmos.group.v1.MsgWithdrawProposal.address": - value := x.Address - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgWithdrawProposal")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgWithdrawProposal does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgWithdrawProposal) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.MsgWithdrawProposal.proposal_id": - x.ProposalId = value.Uint() - case "cosmos.group.v1.MsgWithdrawProposal.address": - x.Address = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgWithdrawProposal")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgWithdrawProposal does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgWithdrawProposal) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgWithdrawProposal.proposal_id": - panic(fmt.Errorf("field proposal_id of message cosmos.group.v1.MsgWithdrawProposal is not mutable")) - case "cosmos.group.v1.MsgWithdrawProposal.address": - panic(fmt.Errorf("field address of message cosmos.group.v1.MsgWithdrawProposal is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgWithdrawProposal")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgWithdrawProposal does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgWithdrawProposal) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgWithdrawProposal.proposal_id": - return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.group.v1.MsgWithdrawProposal.address": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgWithdrawProposal")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgWithdrawProposal does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgWithdrawProposal) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.MsgWithdrawProposal", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgWithdrawProposal) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgWithdrawProposal) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgWithdrawProposal) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgWithdrawProposal) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgWithdrawProposal) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.ProposalId != 0 { - n += 1 + runtime.Sov(uint64(x.ProposalId)) - } - l = len(x.Address) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgWithdrawProposal) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Address) > 0 { - i -= len(x.Address) - copy(dAtA[i:], x.Address) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) - i-- - dAtA[i] = 0x12 - } - if x.ProposalId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ProposalId)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgWithdrawProposal) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgWithdrawProposal: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgWithdrawProposal: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) - } - x.ProposalId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.ProposalId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgWithdrawProposalResponse protoreflect.MessageDescriptor -) - -func init() { - file_cosmos_group_v1_tx_proto_init() - md_MsgWithdrawProposalResponse = File_cosmos_group_v1_tx_proto.Messages().ByName("MsgWithdrawProposalResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgWithdrawProposalResponse)(nil) - -type fastReflection_MsgWithdrawProposalResponse MsgWithdrawProposalResponse - -func (x *MsgWithdrawProposalResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgWithdrawProposalResponse)(x) -} - -func (x *MsgWithdrawProposalResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgWithdrawProposalResponse_messageType fastReflection_MsgWithdrawProposalResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgWithdrawProposalResponse_messageType{} - -type fastReflection_MsgWithdrawProposalResponse_messageType struct{} - -func (x fastReflection_MsgWithdrawProposalResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgWithdrawProposalResponse)(nil) -} -func (x fastReflection_MsgWithdrawProposalResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgWithdrawProposalResponse) -} -func (x fastReflection_MsgWithdrawProposalResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgWithdrawProposalResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgWithdrawProposalResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgWithdrawProposalResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgWithdrawProposalResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgWithdrawProposalResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgWithdrawProposalResponse) New() protoreflect.Message { - return new(fastReflection_MsgWithdrawProposalResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgWithdrawProposalResponse) Interface() protoreflect.ProtoMessage { - return (*MsgWithdrawProposalResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgWithdrawProposalResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgWithdrawProposalResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgWithdrawProposalResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgWithdrawProposalResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgWithdrawProposalResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgWithdrawProposalResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgWithdrawProposalResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgWithdrawProposalResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgWithdrawProposalResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgWithdrawProposalResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgWithdrawProposalResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgWithdrawProposalResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgWithdrawProposalResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgWithdrawProposalResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgWithdrawProposalResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgWithdrawProposalResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgWithdrawProposalResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgWithdrawProposalResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgWithdrawProposalResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgWithdrawProposalResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.MsgWithdrawProposalResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgWithdrawProposalResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgWithdrawProposalResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgWithdrawProposalResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgWithdrawProposalResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgWithdrawProposalResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgWithdrawProposalResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgWithdrawProposalResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgWithdrawProposalResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgWithdrawProposalResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgVote protoreflect.MessageDescriptor - fd_MsgVote_proposal_id protoreflect.FieldDescriptor - fd_MsgVote_voter protoreflect.FieldDescriptor - fd_MsgVote_option protoreflect.FieldDescriptor - fd_MsgVote_metadata protoreflect.FieldDescriptor - fd_MsgVote_exec protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_tx_proto_init() - md_MsgVote = File_cosmos_group_v1_tx_proto.Messages().ByName("MsgVote") - fd_MsgVote_proposal_id = md_MsgVote.Fields().ByName("proposal_id") - fd_MsgVote_voter = md_MsgVote.Fields().ByName("voter") - fd_MsgVote_option = md_MsgVote.Fields().ByName("option") - fd_MsgVote_metadata = md_MsgVote.Fields().ByName("metadata") - fd_MsgVote_exec = md_MsgVote.Fields().ByName("exec") -} - -var _ protoreflect.Message = (*fastReflection_MsgVote)(nil) - -type fastReflection_MsgVote MsgVote - -func (x *MsgVote) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgVote)(x) -} - -func (x *MsgVote) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgVote_messageType fastReflection_MsgVote_messageType -var _ protoreflect.MessageType = fastReflection_MsgVote_messageType{} - -type fastReflection_MsgVote_messageType struct{} - -func (x fastReflection_MsgVote_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgVote)(nil) -} -func (x fastReflection_MsgVote_messageType) New() protoreflect.Message { - return new(fastReflection_MsgVote) -} -func (x fastReflection_MsgVote_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgVote -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgVote) Descriptor() protoreflect.MessageDescriptor { - return md_MsgVote -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgVote) Type() protoreflect.MessageType { - return _fastReflection_MsgVote_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgVote) New() protoreflect.Message { - return new(fastReflection_MsgVote) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgVote) Interface() protoreflect.ProtoMessage { - return (*MsgVote)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgVote) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ProposalId != uint64(0) { - value := protoreflect.ValueOfUint64(x.ProposalId) - if !f(fd_MsgVote_proposal_id, value) { - return - } - } - if x.Voter != "" { - value := protoreflect.ValueOfString(x.Voter) - if !f(fd_MsgVote_voter, value) { - return - } - } - if x.Option != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Option)) - if !f(fd_MsgVote_option, value) { - return - } - } - if x.Metadata != "" { - value := protoreflect.ValueOfString(x.Metadata) - if !f(fd_MsgVote_metadata, value) { - return - } - } - if x.Exec != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Exec)) - if !f(fd_MsgVote_exec, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgVote) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.MsgVote.proposal_id": - return x.ProposalId != uint64(0) - case "cosmos.group.v1.MsgVote.voter": - return x.Voter != "" - case "cosmos.group.v1.MsgVote.option": - return x.Option != 0 - case "cosmos.group.v1.MsgVote.metadata": - return x.Metadata != "" - case "cosmos.group.v1.MsgVote.exec": - return x.Exec != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgVote")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgVote does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgVote) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.MsgVote.proposal_id": - x.ProposalId = uint64(0) - case "cosmos.group.v1.MsgVote.voter": - x.Voter = "" - case "cosmos.group.v1.MsgVote.option": - x.Option = 0 - case "cosmos.group.v1.MsgVote.metadata": - x.Metadata = "" - case "cosmos.group.v1.MsgVote.exec": - x.Exec = 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgVote")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgVote does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgVote) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.MsgVote.proposal_id": - value := x.ProposalId - return protoreflect.ValueOfUint64(value) - case "cosmos.group.v1.MsgVote.voter": - value := x.Voter - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.MsgVote.option": - value := x.Option - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "cosmos.group.v1.MsgVote.metadata": - value := x.Metadata - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.MsgVote.exec": - value := x.Exec - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgVote")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgVote does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgVote) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.MsgVote.proposal_id": - x.ProposalId = value.Uint() - case "cosmos.group.v1.MsgVote.voter": - x.Voter = value.Interface().(string) - case "cosmos.group.v1.MsgVote.option": - x.Option = (VoteOption)(value.Enum()) - case "cosmos.group.v1.MsgVote.metadata": - x.Metadata = value.Interface().(string) - case "cosmos.group.v1.MsgVote.exec": - x.Exec = (Exec)(value.Enum()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgVote")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgVote does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgVote) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgVote.proposal_id": - panic(fmt.Errorf("field proposal_id of message cosmos.group.v1.MsgVote is not mutable")) - case "cosmos.group.v1.MsgVote.voter": - panic(fmt.Errorf("field voter of message cosmos.group.v1.MsgVote is not mutable")) - case "cosmos.group.v1.MsgVote.option": - panic(fmt.Errorf("field option of message cosmos.group.v1.MsgVote is not mutable")) - case "cosmos.group.v1.MsgVote.metadata": - panic(fmt.Errorf("field metadata of message cosmos.group.v1.MsgVote is not mutable")) - case "cosmos.group.v1.MsgVote.exec": - panic(fmt.Errorf("field exec of message cosmos.group.v1.MsgVote is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgVote")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgVote does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgVote) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgVote.proposal_id": - return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.group.v1.MsgVote.voter": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.MsgVote.option": - return protoreflect.ValueOfEnum(0) - case "cosmos.group.v1.MsgVote.metadata": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.MsgVote.exec": - return protoreflect.ValueOfEnum(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgVote")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgVote does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgVote) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.MsgVote", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgVote) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgVote) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgVote) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgVote) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgVote) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.ProposalId != 0 { - n += 1 + runtime.Sov(uint64(x.ProposalId)) - } - l = len(x.Voter) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Option != 0 { - n += 1 + runtime.Sov(uint64(x.Option)) - } - l = len(x.Metadata) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Exec != 0 { - n += 1 + runtime.Sov(uint64(x.Exec)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgVote) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Exec != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Exec)) - i-- - dAtA[i] = 0x28 - } - if len(x.Metadata) > 0 { - i -= len(x.Metadata) - copy(dAtA[i:], x.Metadata) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) - i-- - dAtA[i] = 0x22 - } - if x.Option != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Option)) - i-- - dAtA[i] = 0x18 - } - if len(x.Voter) > 0 { - i -= len(x.Voter) - copy(dAtA[i:], x.Voter) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Voter))) - i-- - dAtA[i] = 0x12 - } - if x.ProposalId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ProposalId)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgVote) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgVote: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgVote: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) - } - x.ProposalId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.ProposalId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Voter", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Voter = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Option", wireType) - } - x.Option = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Option |= VoteOption(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Metadata = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Exec", wireType) - } - x.Exec = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Exec |= Exec(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgVoteResponse protoreflect.MessageDescriptor -) - -func init() { - file_cosmos_group_v1_tx_proto_init() - md_MsgVoteResponse = File_cosmos_group_v1_tx_proto.Messages().ByName("MsgVoteResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgVoteResponse)(nil) - -type fastReflection_MsgVoteResponse MsgVoteResponse - -func (x *MsgVoteResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgVoteResponse)(x) -} - -func (x *MsgVoteResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgVoteResponse_messageType fastReflection_MsgVoteResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgVoteResponse_messageType{} - -type fastReflection_MsgVoteResponse_messageType struct{} - -func (x fastReflection_MsgVoteResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgVoteResponse)(nil) -} -func (x fastReflection_MsgVoteResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgVoteResponse) -} -func (x fastReflection_MsgVoteResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgVoteResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgVoteResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgVoteResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgVoteResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgVoteResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgVoteResponse) New() protoreflect.Message { - return new(fastReflection_MsgVoteResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgVoteResponse) Interface() protoreflect.ProtoMessage { - return (*MsgVoteResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgVoteResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgVoteResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgVoteResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgVoteResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgVoteResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgVoteResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgVoteResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgVoteResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgVoteResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgVoteResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgVoteResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgVoteResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgVoteResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgVoteResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgVoteResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgVoteResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgVoteResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgVoteResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgVoteResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgVoteResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.MsgVoteResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgVoteResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgVoteResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgVoteResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgVoteResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgVoteResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgVoteResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgVoteResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgVoteResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgVoteResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgExec protoreflect.MessageDescriptor - fd_MsgExec_proposal_id protoreflect.FieldDescriptor - fd_MsgExec_executor protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_tx_proto_init() - md_MsgExec = File_cosmos_group_v1_tx_proto.Messages().ByName("MsgExec") - fd_MsgExec_proposal_id = md_MsgExec.Fields().ByName("proposal_id") - fd_MsgExec_executor = md_MsgExec.Fields().ByName("executor") -} - -var _ protoreflect.Message = (*fastReflection_MsgExec)(nil) - -type fastReflection_MsgExec MsgExec - -func (x *MsgExec) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgExec)(x) -} - -func (x *MsgExec) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgExec_messageType fastReflection_MsgExec_messageType -var _ protoreflect.MessageType = fastReflection_MsgExec_messageType{} - -type fastReflection_MsgExec_messageType struct{} - -func (x fastReflection_MsgExec_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgExec)(nil) -} -func (x fastReflection_MsgExec_messageType) New() protoreflect.Message { - return new(fastReflection_MsgExec) -} -func (x fastReflection_MsgExec_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgExec -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgExec) Descriptor() protoreflect.MessageDescriptor { - return md_MsgExec -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgExec) Type() protoreflect.MessageType { - return _fastReflection_MsgExec_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgExec) New() protoreflect.Message { - return new(fastReflection_MsgExec) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgExec) Interface() protoreflect.ProtoMessage { - return (*MsgExec)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgExec) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ProposalId != uint64(0) { - value := protoreflect.ValueOfUint64(x.ProposalId) - if !f(fd_MsgExec_proposal_id, value) { - return - } - } - if x.Executor != "" { - value := protoreflect.ValueOfString(x.Executor) - if !f(fd_MsgExec_executor, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgExec) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.MsgExec.proposal_id": - return x.ProposalId != uint64(0) - case "cosmos.group.v1.MsgExec.executor": - return x.Executor != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgExec")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgExec does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgExec) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.MsgExec.proposal_id": - x.ProposalId = uint64(0) - case "cosmos.group.v1.MsgExec.executor": - x.Executor = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgExec")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgExec does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgExec) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.MsgExec.proposal_id": - value := x.ProposalId - return protoreflect.ValueOfUint64(value) - case "cosmos.group.v1.MsgExec.executor": - value := x.Executor - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgExec")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgExec does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgExec) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.MsgExec.proposal_id": - x.ProposalId = value.Uint() - case "cosmos.group.v1.MsgExec.executor": - x.Executor = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgExec")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgExec does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgExec) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgExec.proposal_id": - panic(fmt.Errorf("field proposal_id of message cosmos.group.v1.MsgExec is not mutable")) - case "cosmos.group.v1.MsgExec.executor": - panic(fmt.Errorf("field executor of message cosmos.group.v1.MsgExec is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgExec")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgExec does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgExec) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgExec.proposal_id": - return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.group.v1.MsgExec.executor": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgExec")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgExec does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgExec) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.MsgExec", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgExec) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgExec) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgExec) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgExec) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgExec) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.ProposalId != 0 { - n += 1 + runtime.Sov(uint64(x.ProposalId)) - } - l = len(x.Executor) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgExec) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Executor) > 0 { - i -= len(x.Executor) - copy(dAtA[i:], x.Executor) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Executor))) - i-- - dAtA[i] = 0x12 - } - if x.ProposalId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ProposalId)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgExec) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgExec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgExec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) - } - x.ProposalId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.ProposalId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Executor", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Executor = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgExecResponse protoreflect.MessageDescriptor - fd_MsgExecResponse_result protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_tx_proto_init() - md_MsgExecResponse = File_cosmos_group_v1_tx_proto.Messages().ByName("MsgExecResponse") - fd_MsgExecResponse_result = md_MsgExecResponse.Fields().ByName("result") -} - -var _ protoreflect.Message = (*fastReflection_MsgExecResponse)(nil) - -type fastReflection_MsgExecResponse MsgExecResponse - -func (x *MsgExecResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgExecResponse)(x) -} - -func (x *MsgExecResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgExecResponse_messageType fastReflection_MsgExecResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgExecResponse_messageType{} - -type fastReflection_MsgExecResponse_messageType struct{} - -func (x fastReflection_MsgExecResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgExecResponse)(nil) -} -func (x fastReflection_MsgExecResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgExecResponse) -} -func (x fastReflection_MsgExecResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgExecResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgExecResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgExecResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgExecResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgExecResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgExecResponse) New() protoreflect.Message { - return new(fastReflection_MsgExecResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgExecResponse) Interface() protoreflect.ProtoMessage { - return (*MsgExecResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgExecResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Result != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Result)) - if !f(fd_MsgExecResponse_result, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgExecResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.MsgExecResponse.result": - return x.Result != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgExecResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgExecResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgExecResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.MsgExecResponse.result": - x.Result = 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgExecResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgExecResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgExecResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.MsgExecResponse.result": - value := x.Result - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgExecResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgExecResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgExecResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.MsgExecResponse.result": - x.Result = (ProposalExecutorResult)(value.Enum()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgExecResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgExecResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgExecResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgExecResponse.result": - panic(fmt.Errorf("field result of message cosmos.group.v1.MsgExecResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgExecResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgExecResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgExecResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgExecResponse.result": - return protoreflect.ValueOfEnum(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgExecResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgExecResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgExecResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.MsgExecResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgExecResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgExecResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgExecResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgExecResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgExecResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Result != 0 { - n += 1 + runtime.Sov(uint64(x.Result)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgExecResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Result != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Result)) - i-- - dAtA[i] = 0x10 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgExecResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgExecResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgExecResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) - } - x.Result = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Result |= ProposalExecutorResult(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgLeaveGroup protoreflect.MessageDescriptor - fd_MsgLeaveGroup_address protoreflect.FieldDescriptor - fd_MsgLeaveGroup_group_id protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_tx_proto_init() - md_MsgLeaveGroup = File_cosmos_group_v1_tx_proto.Messages().ByName("MsgLeaveGroup") - fd_MsgLeaveGroup_address = md_MsgLeaveGroup.Fields().ByName("address") - fd_MsgLeaveGroup_group_id = md_MsgLeaveGroup.Fields().ByName("group_id") -} - -var _ protoreflect.Message = (*fastReflection_MsgLeaveGroup)(nil) - -type fastReflection_MsgLeaveGroup MsgLeaveGroup - -func (x *MsgLeaveGroup) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgLeaveGroup)(x) -} - -func (x *MsgLeaveGroup) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgLeaveGroup_messageType fastReflection_MsgLeaveGroup_messageType -var _ protoreflect.MessageType = fastReflection_MsgLeaveGroup_messageType{} - -type fastReflection_MsgLeaveGroup_messageType struct{} - -func (x fastReflection_MsgLeaveGroup_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgLeaveGroup)(nil) -} -func (x fastReflection_MsgLeaveGroup_messageType) New() protoreflect.Message { - return new(fastReflection_MsgLeaveGroup) -} -func (x fastReflection_MsgLeaveGroup_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgLeaveGroup -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgLeaveGroup) Descriptor() protoreflect.MessageDescriptor { - return md_MsgLeaveGroup -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgLeaveGroup) Type() protoreflect.MessageType { - return _fastReflection_MsgLeaveGroup_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgLeaveGroup) New() protoreflect.Message { - return new(fastReflection_MsgLeaveGroup) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgLeaveGroup) Interface() protoreflect.ProtoMessage { - return (*MsgLeaveGroup)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgLeaveGroup) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Address != "" { - value := protoreflect.ValueOfString(x.Address) - if !f(fd_MsgLeaveGroup_address, value) { - return - } - } - if x.GroupId != uint64(0) { - value := protoreflect.ValueOfUint64(x.GroupId) - if !f(fd_MsgLeaveGroup_group_id, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgLeaveGroup) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.MsgLeaveGroup.address": - return x.Address != "" - case "cosmos.group.v1.MsgLeaveGroup.group_id": - return x.GroupId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgLeaveGroup")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgLeaveGroup does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgLeaveGroup) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.MsgLeaveGroup.address": - x.Address = "" - case "cosmos.group.v1.MsgLeaveGroup.group_id": - x.GroupId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgLeaveGroup")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgLeaveGroup does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgLeaveGroup) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.MsgLeaveGroup.address": - value := x.Address - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.MsgLeaveGroup.group_id": - value := x.GroupId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgLeaveGroup")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgLeaveGroup does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgLeaveGroup) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.MsgLeaveGroup.address": - x.Address = value.Interface().(string) - case "cosmos.group.v1.MsgLeaveGroup.group_id": - x.GroupId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgLeaveGroup")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgLeaveGroup does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgLeaveGroup) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgLeaveGroup.address": - panic(fmt.Errorf("field address of message cosmos.group.v1.MsgLeaveGroup is not mutable")) - case "cosmos.group.v1.MsgLeaveGroup.group_id": - panic(fmt.Errorf("field group_id of message cosmos.group.v1.MsgLeaveGroup is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgLeaveGroup")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgLeaveGroup does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgLeaveGroup) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MsgLeaveGroup.address": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.MsgLeaveGroup.group_id": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgLeaveGroup")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgLeaveGroup does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgLeaveGroup) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.MsgLeaveGroup", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgLeaveGroup) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgLeaveGroup) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgLeaveGroup) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgLeaveGroup) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgLeaveGroup) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Address) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.GroupId != 0 { - n += 1 + runtime.Sov(uint64(x.GroupId)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgLeaveGroup) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.GroupId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.GroupId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Address) > 0 { - i -= len(x.Address) - copy(dAtA[i:], x.Address) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgLeaveGroup) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgLeaveGroup: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgLeaveGroup: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - x.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.GroupId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgLeaveGroupResponse protoreflect.MessageDescriptor -) - -func init() { - file_cosmos_group_v1_tx_proto_init() - md_MsgLeaveGroupResponse = File_cosmos_group_v1_tx_proto.Messages().ByName("MsgLeaveGroupResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgLeaveGroupResponse)(nil) - -type fastReflection_MsgLeaveGroupResponse MsgLeaveGroupResponse - -func (x *MsgLeaveGroupResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgLeaveGroupResponse)(x) -} - -func (x *MsgLeaveGroupResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgLeaveGroupResponse_messageType fastReflection_MsgLeaveGroupResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgLeaveGroupResponse_messageType{} - -type fastReflection_MsgLeaveGroupResponse_messageType struct{} - -func (x fastReflection_MsgLeaveGroupResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgLeaveGroupResponse)(nil) -} -func (x fastReflection_MsgLeaveGroupResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgLeaveGroupResponse) -} -func (x fastReflection_MsgLeaveGroupResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgLeaveGroupResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgLeaveGroupResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgLeaveGroupResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgLeaveGroupResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgLeaveGroupResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgLeaveGroupResponse) New() protoreflect.Message { - return new(fastReflection_MsgLeaveGroupResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgLeaveGroupResponse) Interface() protoreflect.ProtoMessage { - return (*MsgLeaveGroupResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgLeaveGroupResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgLeaveGroupResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgLeaveGroupResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgLeaveGroupResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgLeaveGroupResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgLeaveGroupResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgLeaveGroupResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgLeaveGroupResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgLeaveGroupResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgLeaveGroupResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgLeaveGroupResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgLeaveGroupResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgLeaveGroupResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgLeaveGroupResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgLeaveGroupResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgLeaveGroupResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgLeaveGroupResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MsgLeaveGroupResponse")) - } - panic(fmt.Errorf("message cosmos.group.v1.MsgLeaveGroupResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgLeaveGroupResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.MsgLeaveGroupResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgLeaveGroupResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgLeaveGroupResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgLeaveGroupResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgLeaveGroupResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgLeaveGroupResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgLeaveGroupResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgLeaveGroupResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgLeaveGroupResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgLeaveGroupResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cosmos/group/v1/tx.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Exec defines modes of execution of a proposal on creation or on new vote. -type Exec int32 - -const ( - // An empty value means that there should be a separate - // MsgExec request for the proposal to execute. - Exec_EXEC_UNSPECIFIED Exec = 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. - Exec_EXEC_TRY Exec = 1 -) - -// Enum value maps for Exec. -var ( - Exec_name = map[int32]string{ - 0: "EXEC_UNSPECIFIED", - 1: "EXEC_TRY", - } - Exec_value = map[string]int32{ - "EXEC_UNSPECIFIED": 0, - "EXEC_TRY": 1, - } -) - -func (x Exec) Enum() *Exec { - p := new(Exec) - *p = x - return p -} - -func (x Exec) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (Exec) Descriptor() protoreflect.EnumDescriptor { - return file_cosmos_group_v1_tx_proto_enumTypes[0].Descriptor() -} - -func (Exec) Type() protoreflect.EnumType { - return &file_cosmos_group_v1_tx_proto_enumTypes[0] -} - -func (x Exec) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use Exec.Descriptor instead. -func (Exec) EnumDescriptor() ([]byte, []int) { - return file_cosmos_group_v1_tx_proto_rawDescGZIP(), []int{0} -} - -// MsgCreateGroup is the Msg/CreateGroup request type. -type MsgCreateGroup struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // admin is the account address of the group admin. - Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` - // members defines the group members. - Members []*MemberRequest `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"` - // metadata is any arbitrary metadata to attached to the group. - Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` -} - -func (x *MsgCreateGroup) Reset() { - *x = MsgCreateGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCreateGroup) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCreateGroup) ProtoMessage() {} - -// Deprecated: Use MsgCreateGroup.ProtoReflect.Descriptor instead. -func (*MsgCreateGroup) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_tx_proto_rawDescGZIP(), []int{0} -} - -func (x *MsgCreateGroup) GetAdmin() string { - if x != nil { - return x.Admin - } - return "" -} - -func (x *MsgCreateGroup) GetMembers() []*MemberRequest { - if x != nil { - return x.Members - } - return nil -} - -func (x *MsgCreateGroup) GetMetadata() string { - if x != nil { - return x.Metadata - } - return "" -} - -// MsgCreateGroupResponse is the Msg/CreateGroup response type. -type MsgCreateGroupResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // group_id is the unique ID of the newly created group. - GroupId uint64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` -} - -func (x *MsgCreateGroupResponse) Reset() { - *x = MsgCreateGroupResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCreateGroupResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCreateGroupResponse) ProtoMessage() {} - -// Deprecated: Use MsgCreateGroupResponse.ProtoReflect.Descriptor instead. -func (*MsgCreateGroupResponse) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_tx_proto_rawDescGZIP(), []int{1} -} - -func (x *MsgCreateGroupResponse) GetGroupId() uint64 { - if x != nil { - return x.GroupId - } - return 0 -} - -// MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. -type MsgUpdateGroupMembers struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // admin is the account address of the group admin. - Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` - // group_id is the unique ID of the group. - GroupId uint64 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` - // member_updates is the list of members to update, - // set weight to 0 to remove a member. - MemberUpdates []*MemberRequest `protobuf:"bytes,3,rep,name=member_updates,json=memberUpdates,proto3" json:"member_updates,omitempty"` -} - -func (x *MsgUpdateGroupMembers) Reset() { - *x = MsgUpdateGroupMembers{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgUpdateGroupMembers) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgUpdateGroupMembers) ProtoMessage() {} - -// Deprecated: Use MsgUpdateGroupMembers.ProtoReflect.Descriptor instead. -func (*MsgUpdateGroupMembers) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_tx_proto_rawDescGZIP(), []int{2} -} - -func (x *MsgUpdateGroupMembers) GetAdmin() string { - if x != nil { - return x.Admin - } - return "" -} - -func (x *MsgUpdateGroupMembers) GetGroupId() uint64 { - if x != nil { - return x.GroupId - } - return 0 -} - -func (x *MsgUpdateGroupMembers) GetMemberUpdates() []*MemberRequest { - if x != nil { - return x.MemberUpdates - } - return nil -} - -// MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. -type MsgUpdateGroupMembersResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgUpdateGroupMembersResponse) Reset() { - *x = MsgUpdateGroupMembersResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgUpdateGroupMembersResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgUpdateGroupMembersResponse) ProtoMessage() {} - -// Deprecated: Use MsgUpdateGroupMembersResponse.ProtoReflect.Descriptor instead. -func (*MsgUpdateGroupMembersResponse) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_tx_proto_rawDescGZIP(), []int{3} -} - -// MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. -type MsgUpdateGroupAdmin struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // admin is the current account address of the group admin. - Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` - // group_id is the unique ID of the group. - GroupId uint64 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` - // new_admin is the group new admin account address. - NewAdmin string `protobuf:"bytes,3,opt,name=new_admin,json=newAdmin,proto3" json:"new_admin,omitempty"` -} - -func (x *MsgUpdateGroupAdmin) Reset() { - *x = MsgUpdateGroupAdmin{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgUpdateGroupAdmin) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgUpdateGroupAdmin) ProtoMessage() {} - -// Deprecated: Use MsgUpdateGroupAdmin.ProtoReflect.Descriptor instead. -func (*MsgUpdateGroupAdmin) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_tx_proto_rawDescGZIP(), []int{4} -} - -func (x *MsgUpdateGroupAdmin) GetAdmin() string { - if x != nil { - return x.Admin - } - return "" -} - -func (x *MsgUpdateGroupAdmin) GetGroupId() uint64 { - if x != nil { - return x.GroupId - } - return 0 -} - -func (x *MsgUpdateGroupAdmin) GetNewAdmin() string { - if x != nil { - return x.NewAdmin - } - return "" -} - -// MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. -type MsgUpdateGroupAdminResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgUpdateGroupAdminResponse) Reset() { - *x = MsgUpdateGroupAdminResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgUpdateGroupAdminResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgUpdateGroupAdminResponse) ProtoMessage() {} - -// Deprecated: Use MsgUpdateGroupAdminResponse.ProtoReflect.Descriptor instead. -func (*MsgUpdateGroupAdminResponse) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_tx_proto_rawDescGZIP(), []int{5} -} - -// MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. -type MsgUpdateGroupMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // admin is the account address of the group admin. - Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` - // group_id is the unique ID of the group. - GroupId uint64 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` - // metadata is the updated group's metadata. - Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` -} - -func (x *MsgUpdateGroupMetadata) Reset() { - *x = MsgUpdateGroupMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgUpdateGroupMetadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgUpdateGroupMetadata) ProtoMessage() {} - -// Deprecated: Use MsgUpdateGroupMetadata.ProtoReflect.Descriptor instead. -func (*MsgUpdateGroupMetadata) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_tx_proto_rawDescGZIP(), []int{6} -} - -func (x *MsgUpdateGroupMetadata) GetAdmin() string { - if x != nil { - return x.Admin - } - return "" -} - -func (x *MsgUpdateGroupMetadata) GetGroupId() uint64 { - if x != nil { - return x.GroupId - } - return 0 -} - -func (x *MsgUpdateGroupMetadata) GetMetadata() string { - if x != nil { - return x.Metadata - } - return "" -} - -// MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. -type MsgUpdateGroupMetadataResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgUpdateGroupMetadataResponse) Reset() { - *x = MsgUpdateGroupMetadataResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgUpdateGroupMetadataResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgUpdateGroupMetadataResponse) ProtoMessage() {} - -// Deprecated: Use MsgUpdateGroupMetadataResponse.ProtoReflect.Descriptor instead. -func (*MsgUpdateGroupMetadataResponse) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_tx_proto_rawDescGZIP(), []int{7} -} - -// MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. -type MsgCreateGroupPolicy struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // admin is the account address of the group admin. - Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` - // group_id is the unique ID of the group. - GroupId uint64 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` - // metadata is any arbitrary metadata attached to the group policy. - Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` - // decision_policy specifies the group policy's decision policy. - DecisionPolicy *anypb.Any `protobuf:"bytes,4,opt,name=decision_policy,json=decisionPolicy,proto3" json:"decision_policy,omitempty"` -} - -func (x *MsgCreateGroupPolicy) Reset() { - *x = MsgCreateGroupPolicy{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCreateGroupPolicy) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCreateGroupPolicy) ProtoMessage() {} - -// Deprecated: Use MsgCreateGroupPolicy.ProtoReflect.Descriptor instead. -func (*MsgCreateGroupPolicy) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_tx_proto_rawDescGZIP(), []int{8} -} - -func (x *MsgCreateGroupPolicy) GetAdmin() string { - if x != nil { - return x.Admin - } - return "" -} - -func (x *MsgCreateGroupPolicy) GetGroupId() uint64 { - if x != nil { - return x.GroupId - } - return 0 -} - -func (x *MsgCreateGroupPolicy) GetMetadata() string { - if x != nil { - return x.Metadata - } - return "" -} - -func (x *MsgCreateGroupPolicy) GetDecisionPolicy() *anypb.Any { - if x != nil { - return x.DecisionPolicy - } - return nil -} - -// MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. -type MsgCreateGroupPolicyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // address is the account address of the newly created group policy. - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` -} - -func (x *MsgCreateGroupPolicyResponse) Reset() { - *x = MsgCreateGroupPolicyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCreateGroupPolicyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCreateGroupPolicyResponse) ProtoMessage() {} - -// Deprecated: Use MsgCreateGroupPolicyResponse.ProtoReflect.Descriptor instead. -func (*MsgCreateGroupPolicyResponse) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_tx_proto_rawDescGZIP(), []int{9} -} - -func (x *MsgCreateGroupPolicyResponse) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -// MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. -type MsgUpdateGroupPolicyAdmin struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // admin is the account address of the group admin. - Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` - // group_policy_address is the account address of the group policy. - GroupPolicyAddress string `protobuf:"bytes,2,opt,name=group_policy_address,json=groupPolicyAddress,proto3" json:"group_policy_address,omitempty"` - // new_admin is the new group policy admin. - NewAdmin string `protobuf:"bytes,3,opt,name=new_admin,json=newAdmin,proto3" json:"new_admin,omitempty"` -} - -func (x *MsgUpdateGroupPolicyAdmin) Reset() { - *x = MsgUpdateGroupPolicyAdmin{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgUpdateGroupPolicyAdmin) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgUpdateGroupPolicyAdmin) ProtoMessage() {} - -// Deprecated: Use MsgUpdateGroupPolicyAdmin.ProtoReflect.Descriptor instead. -func (*MsgUpdateGroupPolicyAdmin) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_tx_proto_rawDescGZIP(), []int{10} -} - -func (x *MsgUpdateGroupPolicyAdmin) GetAdmin() string { - if x != nil { - return x.Admin - } - return "" -} - -func (x *MsgUpdateGroupPolicyAdmin) GetGroupPolicyAddress() string { - if x != nil { - return x.GroupPolicyAddress - } - return "" -} - -func (x *MsgUpdateGroupPolicyAdmin) GetNewAdmin() string { - if x != nil { - return x.NewAdmin - } - return "" -} - -// MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. -type MsgUpdateGroupPolicyAdminResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgUpdateGroupPolicyAdminResponse) Reset() { - *x = MsgUpdateGroupPolicyAdminResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgUpdateGroupPolicyAdminResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgUpdateGroupPolicyAdminResponse) ProtoMessage() {} - -// Deprecated: Use MsgUpdateGroupPolicyAdminResponse.ProtoReflect.Descriptor instead. -func (*MsgUpdateGroupPolicyAdminResponse) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_tx_proto_rawDescGZIP(), []int{11} -} - -// MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. -type MsgCreateGroupWithPolicy struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // admin is the account address of the group and group policy admin. - Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` - // members defines the group members. - Members []*MemberRequest `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"` - // group_metadata is any arbitrary metadata attached to the group. - GroupMetadata string `protobuf:"bytes,3,opt,name=group_metadata,json=groupMetadata,proto3" json:"group_metadata,omitempty"` - // group_policy_metadata is any arbitrary metadata attached to the group policy. - GroupPolicyMetadata string `protobuf:"bytes,4,opt,name=group_policy_metadata,json=groupPolicyMetadata,proto3" json:"group_policy_metadata,omitempty"` - // 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. - GroupPolicyAsAdmin bool `protobuf:"varint,5,opt,name=group_policy_as_admin,json=groupPolicyAsAdmin,proto3" json:"group_policy_as_admin,omitempty"` - // decision_policy specifies the group policy's decision policy. - DecisionPolicy *anypb.Any `protobuf:"bytes,6,opt,name=decision_policy,json=decisionPolicy,proto3" json:"decision_policy,omitempty"` -} - -func (x *MsgCreateGroupWithPolicy) Reset() { - *x = MsgCreateGroupWithPolicy{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCreateGroupWithPolicy) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCreateGroupWithPolicy) ProtoMessage() {} - -// Deprecated: Use MsgCreateGroupWithPolicy.ProtoReflect.Descriptor instead. -func (*MsgCreateGroupWithPolicy) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_tx_proto_rawDescGZIP(), []int{12} -} - -func (x *MsgCreateGroupWithPolicy) GetAdmin() string { - if x != nil { - return x.Admin - } - return "" -} - -func (x *MsgCreateGroupWithPolicy) GetMembers() []*MemberRequest { - if x != nil { - return x.Members - } - return nil -} - -func (x *MsgCreateGroupWithPolicy) GetGroupMetadata() string { - if x != nil { - return x.GroupMetadata - } - return "" -} - -func (x *MsgCreateGroupWithPolicy) GetGroupPolicyMetadata() string { - if x != nil { - return x.GroupPolicyMetadata - } - return "" -} - -func (x *MsgCreateGroupWithPolicy) GetGroupPolicyAsAdmin() bool { - if x != nil { - return x.GroupPolicyAsAdmin - } - return false -} - -func (x *MsgCreateGroupWithPolicy) GetDecisionPolicy() *anypb.Any { - if x != nil { - return x.DecisionPolicy - } - return nil -} - -// MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. -type MsgCreateGroupWithPolicyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // group_id is the unique ID of the newly created group with policy. - GroupId uint64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` - // group_policy_address is the account address of the newly created group policy. - GroupPolicyAddress string `protobuf:"bytes,2,opt,name=group_policy_address,json=groupPolicyAddress,proto3" json:"group_policy_address,omitempty"` -} - -func (x *MsgCreateGroupWithPolicyResponse) Reset() { - *x = MsgCreateGroupWithPolicyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCreateGroupWithPolicyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCreateGroupWithPolicyResponse) ProtoMessage() {} - -// Deprecated: Use MsgCreateGroupWithPolicyResponse.ProtoReflect.Descriptor instead. -func (*MsgCreateGroupWithPolicyResponse) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_tx_proto_rawDescGZIP(), []int{13} -} - -func (x *MsgCreateGroupWithPolicyResponse) GetGroupId() uint64 { - if x != nil { - return x.GroupId - } - return 0 -} - -func (x *MsgCreateGroupWithPolicyResponse) GetGroupPolicyAddress() string { - if x != nil { - return x.GroupPolicyAddress - } - return "" -} - -// MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. -type MsgUpdateGroupPolicyDecisionPolicy struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // admin is the account address of the group admin. - Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` - // group_policy_address is the account address of group policy. - GroupPolicyAddress string `protobuf:"bytes,2,opt,name=group_policy_address,json=groupPolicyAddress,proto3" json:"group_policy_address,omitempty"` - // decision_policy is the updated group policy's decision policy. - DecisionPolicy *anypb.Any `protobuf:"bytes,3,opt,name=decision_policy,json=decisionPolicy,proto3" json:"decision_policy,omitempty"` -} - -func (x *MsgUpdateGroupPolicyDecisionPolicy) Reset() { - *x = MsgUpdateGroupPolicyDecisionPolicy{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgUpdateGroupPolicyDecisionPolicy) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgUpdateGroupPolicyDecisionPolicy) ProtoMessage() {} - -// Deprecated: Use MsgUpdateGroupPolicyDecisionPolicy.ProtoReflect.Descriptor instead. -func (*MsgUpdateGroupPolicyDecisionPolicy) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_tx_proto_rawDescGZIP(), []int{14} -} - -func (x *MsgUpdateGroupPolicyDecisionPolicy) GetAdmin() string { - if x != nil { - return x.Admin - } - return "" -} - -func (x *MsgUpdateGroupPolicyDecisionPolicy) GetGroupPolicyAddress() string { - if x != nil { - return x.GroupPolicyAddress - } - return "" -} - -func (x *MsgUpdateGroupPolicyDecisionPolicy) GetDecisionPolicy() *anypb.Any { - if x != nil { - return x.DecisionPolicy - } - return nil -} - -// MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. -type MsgUpdateGroupPolicyDecisionPolicyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgUpdateGroupPolicyDecisionPolicyResponse) Reset() { - *x = MsgUpdateGroupPolicyDecisionPolicyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgUpdateGroupPolicyDecisionPolicyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgUpdateGroupPolicyDecisionPolicyResponse) ProtoMessage() {} - -// Deprecated: Use MsgUpdateGroupPolicyDecisionPolicyResponse.ProtoReflect.Descriptor instead. -func (*MsgUpdateGroupPolicyDecisionPolicyResponse) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_tx_proto_rawDescGZIP(), []int{15} -} - -// MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. -type MsgUpdateGroupPolicyMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // admin is the account address of the group admin. - Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` - // group_policy_address is the account address of group policy. - GroupPolicyAddress string `protobuf:"bytes,2,opt,name=group_policy_address,json=groupPolicyAddress,proto3" json:"group_policy_address,omitempty"` - // metadata is the group policy metadata to be updated. - Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` -} - -func (x *MsgUpdateGroupPolicyMetadata) Reset() { - *x = MsgUpdateGroupPolicyMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgUpdateGroupPolicyMetadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgUpdateGroupPolicyMetadata) ProtoMessage() {} - -// Deprecated: Use MsgUpdateGroupPolicyMetadata.ProtoReflect.Descriptor instead. -func (*MsgUpdateGroupPolicyMetadata) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_tx_proto_rawDescGZIP(), []int{16} -} - -func (x *MsgUpdateGroupPolicyMetadata) GetAdmin() string { - if x != nil { - return x.Admin - } - return "" -} - -func (x *MsgUpdateGroupPolicyMetadata) GetGroupPolicyAddress() string { - if x != nil { - return x.GroupPolicyAddress - } - return "" -} - -func (x *MsgUpdateGroupPolicyMetadata) GetMetadata() string { - if x != nil { - return x.Metadata - } - return "" -} - -// MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. -type MsgUpdateGroupPolicyMetadataResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgUpdateGroupPolicyMetadataResponse) Reset() { - *x = MsgUpdateGroupPolicyMetadataResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgUpdateGroupPolicyMetadataResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgUpdateGroupPolicyMetadataResponse) ProtoMessage() {} - -// Deprecated: Use MsgUpdateGroupPolicyMetadataResponse.ProtoReflect.Descriptor instead. -func (*MsgUpdateGroupPolicyMetadataResponse) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_tx_proto_rawDescGZIP(), []int{17} -} - -// MsgSubmitProposal is the Msg/SubmitProposal request type. -type MsgSubmitProposal struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // group_policy_address is the account address of group policy. - GroupPolicyAddress string `protobuf:"bytes,1,opt,name=group_policy_address,json=groupPolicyAddress,proto3" json:"group_policy_address,omitempty"` - // proposers are the account addresses of the proposers. - // Proposers signatures will be counted as yes votes. - Proposers []string `protobuf:"bytes,2,rep,name=proposers,proto3" json:"proposers,omitempty"` - // metadata is any arbitrary metadata attached to the proposal. - Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` - // messages is a list of `sdk.Msg`s that will be executed if the proposal passes. - Messages []*anypb.Any `protobuf:"bytes,4,rep,name=messages,proto3" json:"messages,omitempty"` - // 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. - Exec Exec `protobuf:"varint,5,opt,name=exec,proto3,enum=cosmos.group.v1.Exec" json:"exec,omitempty"` - // title is the title of the proposal. - Title string `protobuf:"bytes,6,opt,name=title,proto3" json:"title,omitempty"` - // summary is the summary of the proposal. - Summary string `protobuf:"bytes,7,opt,name=summary,proto3" json:"summary,omitempty"` -} - -func (x *MsgSubmitProposal) Reset() { - *x = MsgSubmitProposal{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSubmitProposal) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSubmitProposal) ProtoMessage() {} - -// Deprecated: Use MsgSubmitProposal.ProtoReflect.Descriptor instead. -func (*MsgSubmitProposal) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_tx_proto_rawDescGZIP(), []int{18} -} - -func (x *MsgSubmitProposal) GetGroupPolicyAddress() string { - if x != nil { - return x.GroupPolicyAddress - } - return "" -} - -func (x *MsgSubmitProposal) GetProposers() []string { - if x != nil { - return x.Proposers - } - return nil -} - -func (x *MsgSubmitProposal) GetMetadata() string { - if x != nil { - return x.Metadata - } - return "" -} - -func (x *MsgSubmitProposal) GetMessages() []*anypb.Any { - if x != nil { - return x.Messages - } - return nil -} - -func (x *MsgSubmitProposal) GetExec() Exec { - if x != nil { - return x.Exec - } - return Exec_EXEC_UNSPECIFIED -} - -func (x *MsgSubmitProposal) GetTitle() string { - if x != nil { - return x.Title - } - return "" -} - -func (x *MsgSubmitProposal) GetSummary() string { - if x != nil { - return x.Summary - } - return "" -} - -// MsgSubmitProposalResponse is the Msg/SubmitProposal response type. -type MsgSubmitProposalResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // proposal is the unique ID of the proposal. - ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` -} - -func (x *MsgSubmitProposalResponse) Reset() { - *x = MsgSubmitProposalResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSubmitProposalResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSubmitProposalResponse) ProtoMessage() {} - -// Deprecated: Use MsgSubmitProposalResponse.ProtoReflect.Descriptor instead. -func (*MsgSubmitProposalResponse) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_tx_proto_rawDescGZIP(), []int{19} -} - -func (x *MsgSubmitProposalResponse) GetProposalId() uint64 { - if x != nil { - return x.ProposalId - } - return 0 -} - -// MsgWithdrawProposal is the Msg/WithdrawProposal request type. -type MsgWithdrawProposal struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // proposal is the unique ID of the proposal. - ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` - // address is the admin of the group policy or one of the proposer of the proposal. - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` -} - -func (x *MsgWithdrawProposal) Reset() { - *x = MsgWithdrawProposal{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgWithdrawProposal) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgWithdrawProposal) ProtoMessage() {} - -// Deprecated: Use MsgWithdrawProposal.ProtoReflect.Descriptor instead. -func (*MsgWithdrawProposal) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_tx_proto_rawDescGZIP(), []int{20} -} - -func (x *MsgWithdrawProposal) GetProposalId() uint64 { - if x != nil { - return x.ProposalId - } - return 0 -} - -func (x *MsgWithdrawProposal) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -// MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. -type MsgWithdrawProposalResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgWithdrawProposalResponse) Reset() { - *x = MsgWithdrawProposalResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgWithdrawProposalResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgWithdrawProposalResponse) ProtoMessage() {} - -// Deprecated: Use MsgWithdrawProposalResponse.ProtoReflect.Descriptor instead. -func (*MsgWithdrawProposalResponse) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_tx_proto_rawDescGZIP(), []int{21} -} - -// MsgVote is the Msg/Vote request type. -type MsgVote struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // proposal is the unique ID of the proposal. - ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` - // voter is the voter account address. - Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"` - // option is the voter's choice on the proposal. - Option VoteOption `protobuf:"varint,3,opt,name=option,proto3,enum=cosmos.group.v1.VoteOption" json:"option,omitempty"` - // metadata is any arbitrary metadata attached to the vote. - Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` - // exec defines whether the proposal should be executed - // immediately after voting or not. - Exec Exec `protobuf:"varint,5,opt,name=exec,proto3,enum=cosmos.group.v1.Exec" json:"exec,omitempty"` -} - -func (x *MsgVote) Reset() { - *x = MsgVote{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgVote) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgVote) ProtoMessage() {} - -// Deprecated: Use MsgVote.ProtoReflect.Descriptor instead. -func (*MsgVote) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_tx_proto_rawDescGZIP(), []int{22} -} - -func (x *MsgVote) GetProposalId() uint64 { - if x != nil { - return x.ProposalId - } - return 0 -} - -func (x *MsgVote) GetVoter() string { - if x != nil { - return x.Voter - } - return "" -} - -func (x *MsgVote) GetOption() VoteOption { - if x != nil { - return x.Option - } - return VoteOption_VOTE_OPTION_UNSPECIFIED -} - -func (x *MsgVote) GetMetadata() string { - if x != nil { - return x.Metadata - } - return "" -} - -func (x *MsgVote) GetExec() Exec { - if x != nil { - return x.Exec - } - return Exec_EXEC_UNSPECIFIED -} - -// MsgVoteResponse is the Msg/Vote response type. -type MsgVoteResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgVoteResponse) Reset() { - *x = MsgVoteResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgVoteResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgVoteResponse) ProtoMessage() {} - -// Deprecated: Use MsgVoteResponse.ProtoReflect.Descriptor instead. -func (*MsgVoteResponse) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_tx_proto_rawDescGZIP(), []int{23} -} - -// MsgExec is the Msg/Exec request type. -type MsgExec struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // proposal is the unique ID of the proposal. - ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` - // executor is the account address used to execute the proposal. - Executor string `protobuf:"bytes,2,opt,name=executor,proto3" json:"executor,omitempty"` -} - -func (x *MsgExec) Reset() { - *x = MsgExec{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgExec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgExec) ProtoMessage() {} - -// Deprecated: Use MsgExec.ProtoReflect.Descriptor instead. -func (*MsgExec) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_tx_proto_rawDescGZIP(), []int{24} -} - -func (x *MsgExec) GetProposalId() uint64 { - if x != nil { - return x.ProposalId - } - return 0 -} - -func (x *MsgExec) GetExecutor() string { - if x != nil { - return x.Executor - } - return "" -} - -// MsgExecResponse is the Msg/Exec request type. -type MsgExecResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // result is the final result of the proposal execution. - Result ProposalExecutorResult `protobuf:"varint,2,opt,name=result,proto3,enum=cosmos.group.v1.ProposalExecutorResult" json:"result,omitempty"` -} - -func (x *MsgExecResponse) Reset() { - *x = MsgExecResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgExecResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgExecResponse) ProtoMessage() {} - -// Deprecated: Use MsgExecResponse.ProtoReflect.Descriptor instead. -func (*MsgExecResponse) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_tx_proto_rawDescGZIP(), []int{25} -} - -func (x *MsgExecResponse) GetResult() ProposalExecutorResult { - if x != nil { - return x.Result - } - return ProposalExecutorResult_PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED -} - -// MsgLeaveGroup is the Msg/LeaveGroup request type. -type MsgLeaveGroup struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // address is the account address of the group member. - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - // group_id is the unique ID of the group. - GroupId uint64 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` -} - -func (x *MsgLeaveGroup) Reset() { - *x = MsgLeaveGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgLeaveGroup) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgLeaveGroup) ProtoMessage() {} - -// Deprecated: Use MsgLeaveGroup.ProtoReflect.Descriptor instead. -func (*MsgLeaveGroup) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_tx_proto_rawDescGZIP(), []int{26} -} - -func (x *MsgLeaveGroup) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -func (x *MsgLeaveGroup) GetGroupId() uint64 { - if x != nil { - return x.GroupId - } - return 0 -} - -// MsgLeaveGroupResponse is the Msg/LeaveGroup response type. -type MsgLeaveGroupResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgLeaveGroupResponse) Reset() { - *x = MsgLeaveGroupResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_tx_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgLeaveGroupResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgLeaveGroupResponse) ProtoMessage() {} - -// Deprecated: Use MsgLeaveGroupResponse.ProtoReflect.Descriptor instead. -func (*MsgLeaveGroupResponse) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_tx_proto_rawDescGZIP(), []int{27} -} - -var File_cosmos_group_v1_tx_proto protoreflect.FileDescriptor - -var file_cosmos_group_v1_tx_proto_rawDesc = []byte{ - 0x0a, 0x18, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, - 0x31, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x1a, 0x14, 0x67, 0x6f, 0x67, - 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, - 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, - 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x73, 0x67, - 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x61, - 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x22, 0xcb, 0x01, 0x0a, 0x0e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, - 0x6f, 0x75, 0x70, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x12, 0x43, 0x0a, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, 0x02, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, - 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, - 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x3a, 0x28, 0x82, 0xe7, 0xb0, 0x2a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x8a, 0xe7, 0xb0, 0x2a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, - 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x33, - 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, - 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, - 0x70, 0x49, 0x64, 0x22, 0xe5, 0x01, 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x2e, 0x0a, - 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, - 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x19, 0x0a, - 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x50, 0x0a, 0x0e, 0x6d, 0x65, 0x6d, 0x62, - 0x65, 0x72, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x1e, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, - 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0d, 0x6d, 0x65, 0x6d, - 0x62, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x3a, 0x2f, 0x82, 0xe7, 0xb0, 0x2a, - 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x8a, 0xe7, 0xb0, 0x2a, 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, - 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x22, 0x1f, 0x0a, 0x1d, 0x4d, - 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, - 0x62, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xc6, 0x01, 0x0a, - 0x13, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, - 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, - 0x35, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x6e, 0x65, - 0x77, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x3a, 0x2d, 0x82, 0xe7, 0xb0, 0x2a, 0x05, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x8a, 0xe7, 0xb0, 0x2a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, - 0x6b, 0x2f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, - 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x22, 0x1d, 0x0a, 0x1b, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb1, 0x01, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, - 0x2e, 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, - 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x12, - 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x3a, 0x30, 0x82, 0xe7, 0xb0, 0x2a, 0x05, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x8a, 0xe7, 0xb0, 0x2a, 0x21, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, - 0x6b, 0x2f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x20, 0x0a, 0x1e, 0x4d, 0x73, 0x67, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x94, 0x02, 0x0a, 0x14, 0x4d, - 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, - 0x69, 0x63, 0x79, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1a, - 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x61, 0x0a, 0x0f, 0x64, 0x65, - 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x42, 0x22, 0xca, 0xb4, 0x2d, 0x1e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x44, - 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x0e, 0x64, - 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x3a, 0x32, 0x88, - 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x8a, 0xe7, 0xb0, - 0x2a, 0x1f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x4d, 0x73, 0x67, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x22, 0x52, 0x0a, 0x1c, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, - 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x83, 0x02, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x41, 0x64, - 0x6d, 0x69, 0x6e, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x12, 0x4a, 0x0a, 0x14, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6f, 0x6c, - 0x69, 0x63, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x12, 0x67, 0x72, 0x6f, - 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, - 0x35, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x6e, 0x65, - 0x77, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x3a, 0x33, 0x82, 0xe7, 0xb0, 0x2a, 0x05, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x8a, 0xe7, 0xb0, 0x2a, 0x24, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, - 0x6b, 0x2f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, - 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x22, 0x23, 0x0a, 0x21, 0x4d, - 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, - 0x69, 0x63, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0xb8, 0x03, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, - 0x6f, 0x75, 0x70, 0x57, 0x69, 0x74, 0x68, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x2e, 0x0a, - 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, - 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x43, 0x0a, - 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, - 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, - 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x09, - 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, - 0x72, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x67, 0x72, 0x6f, 0x75, - 0x70, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x32, 0x0a, 0x15, 0x67, 0x72, 0x6f, - 0x75, 0x70, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x50, - 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x31, 0x0a, - 0x15, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x61, 0x73, - 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x67, 0x72, - 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x41, 0x73, 0x41, 0x64, 0x6d, 0x69, 0x6e, - 0x12, 0x61, 0x0a, 0x0f, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, - 0x69, 0x63, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x42, - 0x22, 0xca, 0xb4, 0x2d, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, - 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, - 0x69, 0x63, 0x79, 0x52, 0x0e, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, - 0x69, 0x63, 0x79, 0x3a, 0x36, 0x88, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x05, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x8a, 0xe7, 0xb0, 0x2a, 0x23, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, - 0x64, 0x6b, 0x2f, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, - 0x70, 0x57, 0x69, 0x74, 0x68, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x89, 0x01, 0x0a, 0x20, - 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x57, 0x69, - 0x74, 0x68, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x4a, 0x0a, 0x14, 0x67, - 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, - 0x69, 0x6e, 0x67, 0x52, 0x12, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xbf, 0x02, 0x0a, 0x22, 0x4d, 0x73, 0x67, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x2e, - 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, - 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x4a, - 0x0a, 0x14, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, - 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x12, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, - 0x69, 0x63, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x61, 0x0a, 0x0f, 0x64, 0x65, - 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x42, 0x22, 0xca, 0xb4, 0x2d, 0x1e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x44, - 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x0e, 0x64, - 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x3a, 0x3a, 0x88, - 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x8a, 0xe7, 0xb0, - 0x2a, 0x27, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x4d, 0x73, 0x67, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x44, 0x65, 0x63, 0x69, 0x73, - 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x2c, 0x0a, 0x2a, 0x4d, 0x73, 0x67, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xee, 0x01, 0x0a, 0x1c, 0x4d, 0x73, 0x67, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x52, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x4a, 0x0a, 0x14, 0x67, 0x72, 0x6f, 0x75, - 0x70, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x52, 0x12, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x3a, 0x36, 0x82, 0xe7, 0xb0, 0x2a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x8a, 0xe7, 0xb0, 0x2a, - 0x27, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x4d, 0x73, 0x67, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x26, 0x0a, 0x24, 0x4d, 0x73, 0x67, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x8b, 0x03, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, - 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x4a, 0x0a, 0x14, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, - 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x12, - 0x67, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x73, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x73, - 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x30, 0x0a, 0x08, - 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x29, - 0x0a, 0x04, 0x65, 0x78, 0x65, 0x63, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x45, - 0x78, 0x65, 0x63, 0x52, 0x04, 0x65, 0x78, 0x65, 0x63, 0x12, 0x29, 0x0a, 0x05, 0x74, 0x69, 0x74, - 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x13, 0xda, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x37, 0x52, 0x05, 0x74, - 0x69, 0x74, 0x6c, 0x65, 0x12, 0x2d, 0x0a, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x13, 0xda, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x37, 0x52, 0x07, 0x73, 0x75, 0x6d, 0x6d, - 0x61, 0x72, 0x79, 0x3a, 0x39, 0x88, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x70, 0x72, - 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x73, 0x8a, 0xe7, 0xb0, 0x2a, 0x22, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x4d, 0x73, 0x67, - 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x22, 0x3c, - 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, - 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, - 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x49, 0x64, 0x22, 0xa1, 0x01, 0x0a, - 0x13, 0x4d, 0x73, 0x67, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x50, 0x72, 0x6f, 0x70, - 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, - 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x6f, - 0x73, 0x61, 0x6c, 0x49, 0x64, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x35, 0x82, 0xe7, 0xb0, 0x2a, 0x07, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x8a, 0xe7, 0xb0, 0x2a, 0x24, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x4d, 0x73, 0x67, - 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, - 0x22, 0x1d, 0x0a, 0x1b, 0x4d, 0x73, 0x67, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x50, - 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0xff, 0x01, 0x0a, 0x07, 0x4d, 0x73, 0x67, 0x56, 0x6f, 0x74, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, - 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x05, - 0x76, 0x6f, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, - 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x72, 0x12, 0x33, 0x0a, 0x06, - 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x56, - 0x6f, 0x74, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x6f, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x29, 0x0a, - 0x04, 0x65, 0x78, 0x65, 0x63, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, - 0x65, 0x63, 0x52, 0x04, 0x65, 0x78, 0x65, 0x63, 0x3a, 0x27, 0x82, 0xe7, 0xb0, 0x2a, 0x05, 0x76, - 0x6f, 0x74, 0x65, 0x72, 0x8a, 0xe7, 0xb0, 0x2a, 0x18, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, - 0x73, 0x64, 0x6b, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x4d, 0x73, 0x67, 0x56, 0x6f, 0x74, - 0x65, 0x22, 0x11, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x56, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x8c, 0x01, 0x0a, 0x07, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, - 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x49, - 0x64, 0x12, 0x34, 0x0a, 0x08, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x65, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x3a, 0x2a, 0x82, 0xe7, 0xb0, 0x2a, 0x08, 0x65, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x8a, 0xe7, 0xb0, 0x2a, 0x18, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x4d, 0x73, 0x67, 0x45, - 0x78, 0x65, 0x63, 0x22, 0x52, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, - 0x6c, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, - 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x8f, 0x01, 0x0a, 0x0d, 0x4d, 0x73, 0x67, 0x4c, - 0x65, 0x61, 0x76, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x19, 0x0a, - 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x3a, 0x2f, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x8a, 0xe7, 0xb0, 0x2a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x4d, 0x73, 0x67, 0x4c, - 0x65, 0x61, 0x76, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x17, 0x0a, 0x15, 0x4d, 0x73, 0x67, - 0x4c, 0x65, 0x61, 0x76, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x2a, 0x2a, 0x0a, 0x04, 0x45, 0x78, 0x65, 0x63, 0x12, 0x14, 0x0a, 0x10, 0x45, 0x58, - 0x45, 0x43, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, - 0x12, 0x0c, 0x0a, 0x08, 0x45, 0x58, 0x45, 0x43, 0x5f, 0x54, 0x52, 0x59, 0x10, 0x01, 0x32, 0xca, - 0x0b, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x57, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1f, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, - 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x1a, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x6c, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, - 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, - 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x1a, 0x2e, 0x2e, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, - 0x6d, 0x62, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, - 0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 0x6d, 0x69, - 0x6e, 0x12, 0x24, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, - 0x75, 0x70, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x2c, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6f, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, - 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x27, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, - 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x2f, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, - 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x25, 0x2e, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, - 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x1a, 0x2d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, - 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, - 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x75, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, - 0x57, 0x69, 0x74, 0x68, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x29, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x57, 0x69, 0x74, 0x68, 0x50, - 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x1a, 0x31, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, - 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x57, 0x69, 0x74, 0x68, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x78, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x41, 0x64, 0x6d, - 0x69, 0x6e, 0x12, 0x2a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, - 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, - 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x32, - 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, - 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, - 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x93, 0x01, 0x0a, 0x1f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, - 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, - 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x33, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x44, 0x65, 0x63, - 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x1a, 0x3b, 0x2e, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, - 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x19, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x35, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, - 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x60, 0x0a, 0x0e, - 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x22, - 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, - 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, - 0x61, 0x6c, 0x1a, 0x2a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, - 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, - 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, - 0x0a, 0x10, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, - 0x61, 0x6c, 0x12, 0x24, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, - 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, - 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x1a, 0x2c, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x57, 0x69, - 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x04, 0x56, 0x6f, 0x74, 0x65, 0x12, 0x18, - 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, - 0x2e, 0x4d, 0x73, 0x67, 0x56, 0x6f, 0x74, 0x65, 0x1a, 0x20, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x56, 0x6f, - 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x04, 0x45, 0x78, - 0x65, 0x63, 0x12, 0x18, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, - 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x1a, 0x20, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, - 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, - 0x0a, 0x0a, 0x4c, 0x65, 0x61, 0x76, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1e, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, - 0x73, 0x67, 0x4c, 0x65, 0x61, 0x76, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x1a, 0x26, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, - 0x73, 0x67, 0x4c, 0x65, 0x61, 0x76, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xa6, 0x01, 0x0a, 0x13, - 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, - 0x2e, 0x76, 0x31, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x28, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, 0x31, - 0x3b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x47, 0x58, 0xaa, 0x02, - 0x0f, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x56, 0x31, - 0xca, 0x02, 0x0f, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x5c, - 0x56, 0x31, 0xe2, 0x02, 0x1b, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x47, 0x72, 0x6f, 0x75, - 0x70, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0xea, 0x02, 0x11, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x47, 0x72, 0x6f, 0x75, 0x70, - 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cosmos_group_v1_tx_proto_rawDescOnce sync.Once - file_cosmos_group_v1_tx_proto_rawDescData = file_cosmos_group_v1_tx_proto_rawDesc -) - -func file_cosmos_group_v1_tx_proto_rawDescGZIP() []byte { - file_cosmos_group_v1_tx_proto_rawDescOnce.Do(func() { - file_cosmos_group_v1_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_group_v1_tx_proto_rawDescData) - }) - return file_cosmos_group_v1_tx_proto_rawDescData -} - -var file_cosmos_group_v1_tx_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_cosmos_group_v1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 28) -var file_cosmos_group_v1_tx_proto_goTypes = []interface{}{ - (Exec)(0), // 0: cosmos.group.v1.Exec - (*MsgCreateGroup)(nil), // 1: cosmos.group.v1.MsgCreateGroup - (*MsgCreateGroupResponse)(nil), // 2: cosmos.group.v1.MsgCreateGroupResponse - (*MsgUpdateGroupMembers)(nil), // 3: cosmos.group.v1.MsgUpdateGroupMembers - (*MsgUpdateGroupMembersResponse)(nil), // 4: cosmos.group.v1.MsgUpdateGroupMembersResponse - (*MsgUpdateGroupAdmin)(nil), // 5: cosmos.group.v1.MsgUpdateGroupAdmin - (*MsgUpdateGroupAdminResponse)(nil), // 6: cosmos.group.v1.MsgUpdateGroupAdminResponse - (*MsgUpdateGroupMetadata)(nil), // 7: cosmos.group.v1.MsgUpdateGroupMetadata - (*MsgUpdateGroupMetadataResponse)(nil), // 8: cosmos.group.v1.MsgUpdateGroupMetadataResponse - (*MsgCreateGroupPolicy)(nil), // 9: cosmos.group.v1.MsgCreateGroupPolicy - (*MsgCreateGroupPolicyResponse)(nil), // 10: cosmos.group.v1.MsgCreateGroupPolicyResponse - (*MsgUpdateGroupPolicyAdmin)(nil), // 11: cosmos.group.v1.MsgUpdateGroupPolicyAdmin - (*MsgUpdateGroupPolicyAdminResponse)(nil), // 12: cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse - (*MsgCreateGroupWithPolicy)(nil), // 13: cosmos.group.v1.MsgCreateGroupWithPolicy - (*MsgCreateGroupWithPolicyResponse)(nil), // 14: cosmos.group.v1.MsgCreateGroupWithPolicyResponse - (*MsgUpdateGroupPolicyDecisionPolicy)(nil), // 15: cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy - (*MsgUpdateGroupPolicyDecisionPolicyResponse)(nil), // 16: cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse - (*MsgUpdateGroupPolicyMetadata)(nil), // 17: cosmos.group.v1.MsgUpdateGroupPolicyMetadata - (*MsgUpdateGroupPolicyMetadataResponse)(nil), // 18: cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse - (*MsgSubmitProposal)(nil), // 19: cosmos.group.v1.MsgSubmitProposal - (*MsgSubmitProposalResponse)(nil), // 20: cosmos.group.v1.MsgSubmitProposalResponse - (*MsgWithdrawProposal)(nil), // 21: cosmos.group.v1.MsgWithdrawProposal - (*MsgWithdrawProposalResponse)(nil), // 22: cosmos.group.v1.MsgWithdrawProposalResponse - (*MsgVote)(nil), // 23: cosmos.group.v1.MsgVote - (*MsgVoteResponse)(nil), // 24: cosmos.group.v1.MsgVoteResponse - (*MsgExec)(nil), // 25: cosmos.group.v1.MsgExec - (*MsgExecResponse)(nil), // 26: cosmos.group.v1.MsgExecResponse - (*MsgLeaveGroup)(nil), // 27: cosmos.group.v1.MsgLeaveGroup - (*MsgLeaveGroupResponse)(nil), // 28: cosmos.group.v1.MsgLeaveGroupResponse - (*MemberRequest)(nil), // 29: cosmos.group.v1.MemberRequest - (*anypb.Any)(nil), // 30: google.protobuf.Any - (VoteOption)(0), // 31: cosmos.group.v1.VoteOption - (ProposalExecutorResult)(0), // 32: cosmos.group.v1.ProposalExecutorResult -} -var file_cosmos_group_v1_tx_proto_depIdxs = []int32{ - 29, // 0: cosmos.group.v1.MsgCreateGroup.members:type_name -> cosmos.group.v1.MemberRequest - 29, // 1: cosmos.group.v1.MsgUpdateGroupMembers.member_updates:type_name -> cosmos.group.v1.MemberRequest - 30, // 2: cosmos.group.v1.MsgCreateGroupPolicy.decision_policy:type_name -> google.protobuf.Any - 29, // 3: cosmos.group.v1.MsgCreateGroupWithPolicy.members:type_name -> cosmos.group.v1.MemberRequest - 30, // 4: cosmos.group.v1.MsgCreateGroupWithPolicy.decision_policy:type_name -> google.protobuf.Any - 30, // 5: cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy.decision_policy:type_name -> google.protobuf.Any - 30, // 6: cosmos.group.v1.MsgSubmitProposal.messages:type_name -> google.protobuf.Any - 0, // 7: cosmos.group.v1.MsgSubmitProposal.exec:type_name -> cosmos.group.v1.Exec - 31, // 8: cosmos.group.v1.MsgVote.option:type_name -> cosmos.group.v1.VoteOption - 0, // 9: cosmos.group.v1.MsgVote.exec:type_name -> cosmos.group.v1.Exec - 32, // 10: cosmos.group.v1.MsgExecResponse.result:type_name -> cosmos.group.v1.ProposalExecutorResult - 1, // 11: cosmos.group.v1.Msg.CreateGroup:input_type -> cosmos.group.v1.MsgCreateGroup - 3, // 12: cosmos.group.v1.Msg.UpdateGroupMembers:input_type -> cosmos.group.v1.MsgUpdateGroupMembers - 5, // 13: cosmos.group.v1.Msg.UpdateGroupAdmin:input_type -> cosmos.group.v1.MsgUpdateGroupAdmin - 7, // 14: cosmos.group.v1.Msg.UpdateGroupMetadata:input_type -> cosmos.group.v1.MsgUpdateGroupMetadata - 9, // 15: cosmos.group.v1.Msg.CreateGroupPolicy:input_type -> cosmos.group.v1.MsgCreateGroupPolicy - 13, // 16: cosmos.group.v1.Msg.CreateGroupWithPolicy:input_type -> cosmos.group.v1.MsgCreateGroupWithPolicy - 11, // 17: cosmos.group.v1.Msg.UpdateGroupPolicyAdmin:input_type -> cosmos.group.v1.MsgUpdateGroupPolicyAdmin - 15, // 18: cosmos.group.v1.Msg.UpdateGroupPolicyDecisionPolicy:input_type -> cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy - 17, // 19: cosmos.group.v1.Msg.UpdateGroupPolicyMetadata:input_type -> cosmos.group.v1.MsgUpdateGroupPolicyMetadata - 19, // 20: cosmos.group.v1.Msg.SubmitProposal:input_type -> cosmos.group.v1.MsgSubmitProposal - 21, // 21: cosmos.group.v1.Msg.WithdrawProposal:input_type -> cosmos.group.v1.MsgWithdrawProposal - 23, // 22: cosmos.group.v1.Msg.Vote:input_type -> cosmos.group.v1.MsgVote - 25, // 23: cosmos.group.v1.Msg.Exec:input_type -> cosmos.group.v1.MsgExec - 27, // 24: cosmos.group.v1.Msg.LeaveGroup:input_type -> cosmos.group.v1.MsgLeaveGroup - 2, // 25: cosmos.group.v1.Msg.CreateGroup:output_type -> cosmos.group.v1.MsgCreateGroupResponse - 4, // 26: cosmos.group.v1.Msg.UpdateGroupMembers:output_type -> cosmos.group.v1.MsgUpdateGroupMembersResponse - 6, // 27: cosmos.group.v1.Msg.UpdateGroupAdmin:output_type -> cosmos.group.v1.MsgUpdateGroupAdminResponse - 8, // 28: cosmos.group.v1.Msg.UpdateGroupMetadata:output_type -> cosmos.group.v1.MsgUpdateGroupMetadataResponse - 10, // 29: cosmos.group.v1.Msg.CreateGroupPolicy:output_type -> cosmos.group.v1.MsgCreateGroupPolicyResponse - 14, // 30: cosmos.group.v1.Msg.CreateGroupWithPolicy:output_type -> cosmos.group.v1.MsgCreateGroupWithPolicyResponse - 12, // 31: cosmos.group.v1.Msg.UpdateGroupPolicyAdmin:output_type -> cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse - 16, // 32: cosmos.group.v1.Msg.UpdateGroupPolicyDecisionPolicy:output_type -> cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse - 18, // 33: cosmos.group.v1.Msg.UpdateGroupPolicyMetadata:output_type -> cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse - 20, // 34: cosmos.group.v1.Msg.SubmitProposal:output_type -> cosmos.group.v1.MsgSubmitProposalResponse - 22, // 35: cosmos.group.v1.Msg.WithdrawProposal:output_type -> cosmos.group.v1.MsgWithdrawProposalResponse - 24, // 36: cosmos.group.v1.Msg.Vote:output_type -> cosmos.group.v1.MsgVoteResponse - 26, // 37: cosmos.group.v1.Msg.Exec:output_type -> cosmos.group.v1.MsgExecResponse - 28, // 38: cosmos.group.v1.Msg.LeaveGroup:output_type -> cosmos.group.v1.MsgLeaveGroupResponse - 25, // [25:39] is the sub-list for method output_type - 11, // [11:25] is the sub-list for method input_type - 11, // [11:11] is the sub-list for extension type_name - 11, // [11:11] is the sub-list for extension extendee - 0, // [0:11] is the sub-list for field type_name -} - -func init() { file_cosmos_group_v1_tx_proto_init() } -func file_cosmos_group_v1_tx_proto_init() { - if File_cosmos_group_v1_tx_proto != nil { - return - } - file_cosmos_group_v1_types_proto_init() - if !protoimpl.UnsafeEnabled { - file_cosmos_group_v1_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCreateGroup); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCreateGroupResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateGroupMembers); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateGroupMembersResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateGroupAdmin); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateGroupAdminResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_tx_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateGroupMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_tx_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateGroupMetadataResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_tx_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCreateGroupPolicy); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_tx_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCreateGroupPolicyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_tx_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateGroupPolicyAdmin); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_tx_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateGroupPolicyAdminResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_tx_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCreateGroupWithPolicy); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_tx_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCreateGroupWithPolicyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_tx_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateGroupPolicyDecisionPolicy); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_tx_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateGroupPolicyDecisionPolicyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_tx_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateGroupPolicyMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_tx_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateGroupPolicyMetadataResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_tx_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSubmitProposal); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_tx_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSubmitProposalResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_tx_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgWithdrawProposal); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_tx_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgWithdrawProposalResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_tx_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgVote); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_tx_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgVoteResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_tx_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgExec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_tx_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgExecResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_tx_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgLeaveGroup); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_tx_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgLeaveGroupResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cosmos_group_v1_tx_proto_rawDesc, - NumEnums: 1, - NumMessages: 28, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_cosmos_group_v1_tx_proto_goTypes, - DependencyIndexes: file_cosmos_group_v1_tx_proto_depIdxs, - EnumInfos: file_cosmos_group_v1_tx_proto_enumTypes, - MessageInfos: file_cosmos_group_v1_tx_proto_msgTypes, - }.Build() - File_cosmos_group_v1_tx_proto = out.File - file_cosmos_group_v1_tx_proto_rawDesc = nil - file_cosmos_group_v1_tx_proto_goTypes = nil - file_cosmos_group_v1_tx_proto_depIdxs = nil -} diff --git a/api/cosmos/group/v1/tx_grpc.pb.go b/api/cosmos/group/v1/tx_grpc.pb.go deleted file mode 100644 index 0da6477764..0000000000 --- a/api/cosmos/group/v1/tx_grpc.pb.go +++ /dev/null @@ -1,647 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.5.1 -// - protoc (unknown) -// source: cosmos/group/v1/tx.proto - -package groupv1 - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.64.0 or later. -const _ = grpc.SupportPackageIsVersion9 - -const ( - Msg_CreateGroup_FullMethodName = "/cosmos.group.v1.Msg/CreateGroup" - Msg_UpdateGroupMembers_FullMethodName = "/cosmos.group.v1.Msg/UpdateGroupMembers" - Msg_UpdateGroupAdmin_FullMethodName = "/cosmos.group.v1.Msg/UpdateGroupAdmin" - Msg_UpdateGroupMetadata_FullMethodName = "/cosmos.group.v1.Msg/UpdateGroupMetadata" - Msg_CreateGroupPolicy_FullMethodName = "/cosmos.group.v1.Msg/CreateGroupPolicy" - Msg_CreateGroupWithPolicy_FullMethodName = "/cosmos.group.v1.Msg/CreateGroupWithPolicy" - Msg_UpdateGroupPolicyAdmin_FullMethodName = "/cosmos.group.v1.Msg/UpdateGroupPolicyAdmin" - Msg_UpdateGroupPolicyDecisionPolicy_FullMethodName = "/cosmos.group.v1.Msg/UpdateGroupPolicyDecisionPolicy" - Msg_UpdateGroupPolicyMetadata_FullMethodName = "/cosmos.group.v1.Msg/UpdateGroupPolicyMetadata" - Msg_SubmitProposal_FullMethodName = "/cosmos.group.v1.Msg/SubmitProposal" - Msg_WithdrawProposal_FullMethodName = "/cosmos.group.v1.Msg/WithdrawProposal" - Msg_Vote_FullMethodName = "/cosmos.group.v1.Msg/Vote" - Msg_Exec_FullMethodName = "/cosmos.group.v1.Msg/Exec" - Msg_LeaveGroup_FullMethodName = "/cosmos.group.v1.Msg/LeaveGroup" -) - -// MsgClient is the client API for Msg service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -// -// Msg is the cosmos.group.v1 Msg service. -type MsgClient interface { - // CreateGroup creates a new group with an admin account address, a list of members and some optional metadata. - CreateGroup(ctx context.Context, in *MsgCreateGroup, opts ...grpc.CallOption) (*MsgCreateGroupResponse, error) - // UpdateGroupMembers updates the group members with given group id and admin address. - UpdateGroupMembers(ctx context.Context, in *MsgUpdateGroupMembers, opts ...grpc.CallOption) (*MsgUpdateGroupMembersResponse, error) - // UpdateGroupAdmin updates the group admin with given group id and previous admin address. - UpdateGroupAdmin(ctx context.Context, in *MsgUpdateGroupAdmin, opts ...grpc.CallOption) (*MsgUpdateGroupAdminResponse, error) - // UpdateGroupMetadata updates the group metadata with given group id and admin address. - UpdateGroupMetadata(ctx context.Context, in *MsgUpdateGroupMetadata, opts ...grpc.CallOption) (*MsgUpdateGroupMetadataResponse, error) - // CreateGroupPolicy creates a new group policy using given DecisionPolicy. - CreateGroupPolicy(ctx context.Context, in *MsgCreateGroupPolicy, opts ...grpc.CallOption) (*MsgCreateGroupPolicyResponse, error) - // CreateGroupWithPolicy creates a new group with policy. - CreateGroupWithPolicy(ctx context.Context, in *MsgCreateGroupWithPolicy, opts ...grpc.CallOption) (*MsgCreateGroupWithPolicyResponse, error) - // UpdateGroupPolicyAdmin updates a group policy admin. - UpdateGroupPolicyAdmin(ctx context.Context, in *MsgUpdateGroupPolicyAdmin, opts ...grpc.CallOption) (*MsgUpdateGroupPolicyAdminResponse, error) - // UpdateGroupPolicyDecisionPolicy allows a group policy's decision policy to be updated. - UpdateGroupPolicyDecisionPolicy(ctx context.Context, in *MsgUpdateGroupPolicyDecisionPolicy, opts ...grpc.CallOption) (*MsgUpdateGroupPolicyDecisionPolicyResponse, error) - // UpdateGroupPolicyMetadata updates a group policy metadata. - UpdateGroupPolicyMetadata(ctx context.Context, in *MsgUpdateGroupPolicyMetadata, opts ...grpc.CallOption) (*MsgUpdateGroupPolicyMetadataResponse, error) - // SubmitProposal submits a new proposal. - SubmitProposal(ctx context.Context, in *MsgSubmitProposal, opts ...grpc.CallOption) (*MsgSubmitProposalResponse, error) - // WithdrawProposal withdraws a proposal. - WithdrawProposal(ctx context.Context, in *MsgWithdrawProposal, opts ...grpc.CallOption) (*MsgWithdrawProposalResponse, error) - // Vote allows a voter to vote on a proposal. - Vote(ctx context.Context, in *MsgVote, opts ...grpc.CallOption) (*MsgVoteResponse, error) - // Exec executes a proposal. - Exec(ctx context.Context, in *MsgExec, opts ...grpc.CallOption) (*MsgExecResponse, error) - // LeaveGroup allows a group member to leave the group. - LeaveGroup(ctx context.Context, in *MsgLeaveGroup, opts ...grpc.CallOption) (*MsgLeaveGroupResponse, error) -} - -type msgClient struct { - cc grpc.ClientConnInterface -} - -func NewMsgClient(cc grpc.ClientConnInterface) MsgClient { - return &msgClient{cc} -} - -func (c *msgClient) CreateGroup(ctx context.Context, in *MsgCreateGroup, opts ...grpc.CallOption) (*MsgCreateGroupResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(MsgCreateGroupResponse) - err := c.cc.Invoke(ctx, Msg_CreateGroup_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) UpdateGroupMembers(ctx context.Context, in *MsgUpdateGroupMembers, opts ...grpc.CallOption) (*MsgUpdateGroupMembersResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(MsgUpdateGroupMembersResponse) - err := c.cc.Invoke(ctx, Msg_UpdateGroupMembers_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) UpdateGroupAdmin(ctx context.Context, in *MsgUpdateGroupAdmin, opts ...grpc.CallOption) (*MsgUpdateGroupAdminResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(MsgUpdateGroupAdminResponse) - err := c.cc.Invoke(ctx, Msg_UpdateGroupAdmin_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) UpdateGroupMetadata(ctx context.Context, in *MsgUpdateGroupMetadata, opts ...grpc.CallOption) (*MsgUpdateGroupMetadataResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(MsgUpdateGroupMetadataResponse) - err := c.cc.Invoke(ctx, Msg_UpdateGroupMetadata_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) CreateGroupPolicy(ctx context.Context, in *MsgCreateGroupPolicy, opts ...grpc.CallOption) (*MsgCreateGroupPolicyResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(MsgCreateGroupPolicyResponse) - err := c.cc.Invoke(ctx, Msg_CreateGroupPolicy_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) CreateGroupWithPolicy(ctx context.Context, in *MsgCreateGroupWithPolicy, opts ...grpc.CallOption) (*MsgCreateGroupWithPolicyResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(MsgCreateGroupWithPolicyResponse) - err := c.cc.Invoke(ctx, Msg_CreateGroupWithPolicy_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) UpdateGroupPolicyAdmin(ctx context.Context, in *MsgUpdateGroupPolicyAdmin, opts ...grpc.CallOption) (*MsgUpdateGroupPolicyAdminResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(MsgUpdateGroupPolicyAdminResponse) - err := c.cc.Invoke(ctx, Msg_UpdateGroupPolicyAdmin_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) UpdateGroupPolicyDecisionPolicy(ctx context.Context, in *MsgUpdateGroupPolicyDecisionPolicy, opts ...grpc.CallOption) (*MsgUpdateGroupPolicyDecisionPolicyResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(MsgUpdateGroupPolicyDecisionPolicyResponse) - err := c.cc.Invoke(ctx, Msg_UpdateGroupPolicyDecisionPolicy_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) UpdateGroupPolicyMetadata(ctx context.Context, in *MsgUpdateGroupPolicyMetadata, opts ...grpc.CallOption) (*MsgUpdateGroupPolicyMetadataResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(MsgUpdateGroupPolicyMetadataResponse) - err := c.cc.Invoke(ctx, Msg_UpdateGroupPolicyMetadata_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) SubmitProposal(ctx context.Context, in *MsgSubmitProposal, opts ...grpc.CallOption) (*MsgSubmitProposalResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(MsgSubmitProposalResponse) - err := c.cc.Invoke(ctx, Msg_SubmitProposal_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) WithdrawProposal(ctx context.Context, in *MsgWithdrawProposal, opts ...grpc.CallOption) (*MsgWithdrawProposalResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(MsgWithdrawProposalResponse) - err := c.cc.Invoke(ctx, Msg_WithdrawProposal_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) Vote(ctx context.Context, in *MsgVote, opts ...grpc.CallOption) (*MsgVoteResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(MsgVoteResponse) - err := c.cc.Invoke(ctx, Msg_Vote_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) Exec(ctx context.Context, in *MsgExec, opts ...grpc.CallOption) (*MsgExecResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(MsgExecResponse) - err := c.cc.Invoke(ctx, Msg_Exec_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) LeaveGroup(ctx context.Context, in *MsgLeaveGroup, opts ...grpc.CallOption) (*MsgLeaveGroupResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(MsgLeaveGroupResponse) - err := c.cc.Invoke(ctx, Msg_LeaveGroup_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -// MsgServer is the server API for Msg service. -// All implementations must embed UnimplementedMsgServer -// for forward compatibility. -// -// Msg is the cosmos.group.v1 Msg service. -type MsgServer interface { - // CreateGroup creates a new group with an admin account address, a list of members and some optional metadata. - CreateGroup(context.Context, *MsgCreateGroup) (*MsgCreateGroupResponse, error) - // UpdateGroupMembers updates the group members with given group id and admin address. - UpdateGroupMembers(context.Context, *MsgUpdateGroupMembers) (*MsgUpdateGroupMembersResponse, error) - // UpdateGroupAdmin updates the group admin with given group id and previous admin address. - UpdateGroupAdmin(context.Context, *MsgUpdateGroupAdmin) (*MsgUpdateGroupAdminResponse, error) - // UpdateGroupMetadata updates the group metadata with given group id and admin address. - UpdateGroupMetadata(context.Context, *MsgUpdateGroupMetadata) (*MsgUpdateGroupMetadataResponse, error) - // CreateGroupPolicy creates a new group policy using given DecisionPolicy. - CreateGroupPolicy(context.Context, *MsgCreateGroupPolicy) (*MsgCreateGroupPolicyResponse, error) - // CreateGroupWithPolicy creates a new group with policy. - CreateGroupWithPolicy(context.Context, *MsgCreateGroupWithPolicy) (*MsgCreateGroupWithPolicyResponse, error) - // UpdateGroupPolicyAdmin updates a group policy admin. - UpdateGroupPolicyAdmin(context.Context, *MsgUpdateGroupPolicyAdmin) (*MsgUpdateGroupPolicyAdminResponse, error) - // UpdateGroupPolicyDecisionPolicy allows a group policy's decision policy to be updated. - UpdateGroupPolicyDecisionPolicy(context.Context, *MsgUpdateGroupPolicyDecisionPolicy) (*MsgUpdateGroupPolicyDecisionPolicyResponse, error) - // UpdateGroupPolicyMetadata updates a group policy metadata. - UpdateGroupPolicyMetadata(context.Context, *MsgUpdateGroupPolicyMetadata) (*MsgUpdateGroupPolicyMetadataResponse, error) - // SubmitProposal submits a new proposal. - SubmitProposal(context.Context, *MsgSubmitProposal) (*MsgSubmitProposalResponse, error) - // WithdrawProposal withdraws a proposal. - WithdrawProposal(context.Context, *MsgWithdrawProposal) (*MsgWithdrawProposalResponse, error) - // Vote allows a voter to vote on a proposal. - Vote(context.Context, *MsgVote) (*MsgVoteResponse, error) - // Exec executes a proposal. - Exec(context.Context, *MsgExec) (*MsgExecResponse, error) - // LeaveGroup allows a group member to leave the group. - LeaveGroup(context.Context, *MsgLeaveGroup) (*MsgLeaveGroupResponse, error) - mustEmbedUnimplementedMsgServer() -} - -// UnimplementedMsgServer must be embedded to have -// forward compatible implementations. -// -// NOTE: this should be embedded by value instead of pointer to avoid a nil -// pointer dereference when methods are called. -type UnimplementedMsgServer struct{} - -func (UnimplementedMsgServer) CreateGroup(context.Context, *MsgCreateGroup) (*MsgCreateGroupResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateGroup not implemented") -} -func (UnimplementedMsgServer) UpdateGroupMembers(context.Context, *MsgUpdateGroupMembers) (*MsgUpdateGroupMembersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateGroupMembers not implemented") -} -func (UnimplementedMsgServer) UpdateGroupAdmin(context.Context, *MsgUpdateGroupAdmin) (*MsgUpdateGroupAdminResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateGroupAdmin not implemented") -} -func (UnimplementedMsgServer) UpdateGroupMetadata(context.Context, *MsgUpdateGroupMetadata) (*MsgUpdateGroupMetadataResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateGroupMetadata not implemented") -} -func (UnimplementedMsgServer) CreateGroupPolicy(context.Context, *MsgCreateGroupPolicy) (*MsgCreateGroupPolicyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateGroupPolicy not implemented") -} -func (UnimplementedMsgServer) CreateGroupWithPolicy(context.Context, *MsgCreateGroupWithPolicy) (*MsgCreateGroupWithPolicyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateGroupWithPolicy not implemented") -} -func (UnimplementedMsgServer) UpdateGroupPolicyAdmin(context.Context, *MsgUpdateGroupPolicyAdmin) (*MsgUpdateGroupPolicyAdminResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateGroupPolicyAdmin not implemented") -} -func (UnimplementedMsgServer) UpdateGroupPolicyDecisionPolicy(context.Context, *MsgUpdateGroupPolicyDecisionPolicy) (*MsgUpdateGroupPolicyDecisionPolicyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateGroupPolicyDecisionPolicy not implemented") -} -func (UnimplementedMsgServer) UpdateGroupPolicyMetadata(context.Context, *MsgUpdateGroupPolicyMetadata) (*MsgUpdateGroupPolicyMetadataResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateGroupPolicyMetadata not implemented") -} -func (UnimplementedMsgServer) SubmitProposal(context.Context, *MsgSubmitProposal) (*MsgSubmitProposalResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SubmitProposal not implemented") -} -func (UnimplementedMsgServer) WithdrawProposal(context.Context, *MsgWithdrawProposal) (*MsgWithdrawProposalResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method WithdrawProposal not implemented") -} -func (UnimplementedMsgServer) Vote(context.Context, *MsgVote) (*MsgVoteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Vote not implemented") -} -func (UnimplementedMsgServer) Exec(context.Context, *MsgExec) (*MsgExecResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Exec not implemented") -} -func (UnimplementedMsgServer) LeaveGroup(context.Context, *MsgLeaveGroup) (*MsgLeaveGroupResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method LeaveGroup not implemented") -} -func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {} -func (UnimplementedMsgServer) testEmbeddedByValue() {} - -// UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to MsgServer will -// result in compilation errors. -type UnsafeMsgServer interface { - mustEmbedUnimplementedMsgServer() -} - -func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer) { - // If the following call pancis, it indicates UnimplementedMsgServer was - // embedded by pointer and is nil. This will cause panics if an - // unimplemented method is ever invoked, so we test this at initialization - // time to prevent it from happening at runtime later due to I/O. - if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { - t.testEmbeddedByValue() - } - s.RegisterService(&Msg_ServiceDesc, srv) -} - -func _Msg_CreateGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCreateGroup) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).CreateGroup(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_CreateGroup_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CreateGroup(ctx, req.(*MsgCreateGroup)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_UpdateGroupMembers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdateGroupMembers) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).UpdateGroupMembers(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_UpdateGroupMembers_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdateGroupMembers(ctx, req.(*MsgUpdateGroupMembers)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_UpdateGroupAdmin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdateGroupAdmin) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).UpdateGroupAdmin(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_UpdateGroupAdmin_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdateGroupAdmin(ctx, req.(*MsgUpdateGroupAdmin)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_UpdateGroupMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdateGroupMetadata) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).UpdateGroupMetadata(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_UpdateGroupMetadata_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdateGroupMetadata(ctx, req.(*MsgUpdateGroupMetadata)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_CreateGroupPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCreateGroupPolicy) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).CreateGroupPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_CreateGroupPolicy_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CreateGroupPolicy(ctx, req.(*MsgCreateGroupPolicy)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_CreateGroupWithPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCreateGroupWithPolicy) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).CreateGroupWithPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_CreateGroupWithPolicy_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CreateGroupWithPolicy(ctx, req.(*MsgCreateGroupWithPolicy)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_UpdateGroupPolicyAdmin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdateGroupPolicyAdmin) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).UpdateGroupPolicyAdmin(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_UpdateGroupPolicyAdmin_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdateGroupPolicyAdmin(ctx, req.(*MsgUpdateGroupPolicyAdmin)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_UpdateGroupPolicyDecisionPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdateGroupPolicyDecisionPolicy) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).UpdateGroupPolicyDecisionPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_UpdateGroupPolicyDecisionPolicy_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdateGroupPolicyDecisionPolicy(ctx, req.(*MsgUpdateGroupPolicyDecisionPolicy)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_UpdateGroupPolicyMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdateGroupPolicyMetadata) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).UpdateGroupPolicyMetadata(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_UpdateGroupPolicyMetadata_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdateGroupPolicyMetadata(ctx, req.(*MsgUpdateGroupPolicyMetadata)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_SubmitProposal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgSubmitProposal) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).SubmitProposal(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_SubmitProposal_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).SubmitProposal(ctx, req.(*MsgSubmitProposal)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_WithdrawProposal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgWithdrawProposal) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).WithdrawProposal(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_WithdrawProposal_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).WithdrawProposal(ctx, req.(*MsgWithdrawProposal)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_Vote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgVote) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).Vote(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_Vote_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).Vote(ctx, req.(*MsgVote)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_Exec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgExec) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).Exec(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_Exec_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).Exec(ctx, req.(*MsgExec)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_LeaveGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgLeaveGroup) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).LeaveGroup(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_LeaveGroup_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).LeaveGroup(ctx, req.(*MsgLeaveGroup)) - } - return interceptor(ctx, in, info, handler) -} - -// Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var Msg_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "cosmos.group.v1.Msg", - HandlerType: (*MsgServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CreateGroup", - Handler: _Msg_CreateGroup_Handler, - }, - { - MethodName: "UpdateGroupMembers", - Handler: _Msg_UpdateGroupMembers_Handler, - }, - { - MethodName: "UpdateGroupAdmin", - Handler: _Msg_UpdateGroupAdmin_Handler, - }, - { - MethodName: "UpdateGroupMetadata", - Handler: _Msg_UpdateGroupMetadata_Handler, - }, - { - MethodName: "CreateGroupPolicy", - Handler: _Msg_CreateGroupPolicy_Handler, - }, - { - MethodName: "CreateGroupWithPolicy", - Handler: _Msg_CreateGroupWithPolicy_Handler, - }, - { - MethodName: "UpdateGroupPolicyAdmin", - Handler: _Msg_UpdateGroupPolicyAdmin_Handler, - }, - { - MethodName: "UpdateGroupPolicyDecisionPolicy", - Handler: _Msg_UpdateGroupPolicyDecisionPolicy_Handler, - }, - { - MethodName: "UpdateGroupPolicyMetadata", - Handler: _Msg_UpdateGroupPolicyMetadata_Handler, - }, - { - MethodName: "SubmitProposal", - Handler: _Msg_SubmitProposal_Handler, - }, - { - MethodName: "WithdrawProposal", - Handler: _Msg_WithdrawProposal_Handler, - }, - { - MethodName: "Vote", - Handler: _Msg_Vote_Handler, - }, - { - MethodName: "Exec", - Handler: _Msg_Exec_Handler, - }, - { - MethodName: "LeaveGroup", - Handler: _Msg_LeaveGroup_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "cosmos/group/v1/tx.proto", -} diff --git a/api/cosmos/group/v1/types.pulsar.go b/api/cosmos/group/v1/types.pulsar.go deleted file mode 100644 index 258624b889..0000000000 --- a/api/cosmos/group/v1/types.pulsar.go +++ /dev/null @@ -1,8813 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package groupv1 - -import ( - _ "cosmossdk.io/api/amino" - fmt "fmt" - _ "github.com/cosmos/cosmos-proto" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - anypb "google.golang.org/protobuf/types/known/anypb" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_Member protoreflect.MessageDescriptor - fd_Member_address protoreflect.FieldDescriptor - fd_Member_weight protoreflect.FieldDescriptor - fd_Member_metadata protoreflect.FieldDescriptor - fd_Member_added_at protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_types_proto_init() - md_Member = File_cosmos_group_v1_types_proto.Messages().ByName("Member") - fd_Member_address = md_Member.Fields().ByName("address") - fd_Member_weight = md_Member.Fields().ByName("weight") - fd_Member_metadata = md_Member.Fields().ByName("metadata") - fd_Member_added_at = md_Member.Fields().ByName("added_at") -} - -var _ protoreflect.Message = (*fastReflection_Member)(nil) - -type fastReflection_Member Member - -func (x *Member) ProtoReflect() protoreflect.Message { - return (*fastReflection_Member)(x) -} - -func (x *Member) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_types_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_Member_messageType fastReflection_Member_messageType -var _ protoreflect.MessageType = fastReflection_Member_messageType{} - -type fastReflection_Member_messageType struct{} - -func (x fastReflection_Member_messageType) Zero() protoreflect.Message { - return (*fastReflection_Member)(nil) -} -func (x fastReflection_Member_messageType) New() protoreflect.Message { - return new(fastReflection_Member) -} -func (x fastReflection_Member_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Member -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Member) Descriptor() protoreflect.MessageDescriptor { - return md_Member -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_Member) Type() protoreflect.MessageType { - return _fastReflection_Member_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Member) New() protoreflect.Message { - return new(fastReflection_Member) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Member) Interface() protoreflect.ProtoMessage { - return (*Member)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_Member) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Address != "" { - value := protoreflect.ValueOfString(x.Address) - if !f(fd_Member_address, value) { - return - } - } - if x.Weight != "" { - value := protoreflect.ValueOfString(x.Weight) - if !f(fd_Member_weight, value) { - return - } - } - if x.Metadata != "" { - value := protoreflect.ValueOfString(x.Metadata) - if !f(fd_Member_metadata, value) { - return - } - } - if x.AddedAt != nil { - value := protoreflect.ValueOfMessage(x.AddedAt.ProtoReflect()) - if !f(fd_Member_added_at, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_Member) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.Member.address": - return x.Address != "" - case "cosmos.group.v1.Member.weight": - return x.Weight != "" - case "cosmos.group.v1.Member.metadata": - return x.Metadata != "" - case "cosmos.group.v1.Member.added_at": - return x.AddedAt != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.Member")) - } - panic(fmt.Errorf("message cosmos.group.v1.Member does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Member) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.Member.address": - x.Address = "" - case "cosmos.group.v1.Member.weight": - x.Weight = "" - case "cosmos.group.v1.Member.metadata": - x.Metadata = "" - case "cosmos.group.v1.Member.added_at": - x.AddedAt = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.Member")) - } - panic(fmt.Errorf("message cosmos.group.v1.Member does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_Member) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.Member.address": - value := x.Address - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.Member.weight": - value := x.Weight - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.Member.metadata": - value := x.Metadata - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.Member.added_at": - value := x.AddedAt - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.Member")) - } - panic(fmt.Errorf("message cosmos.group.v1.Member does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Member) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.Member.address": - x.Address = value.Interface().(string) - case "cosmos.group.v1.Member.weight": - x.Weight = value.Interface().(string) - case "cosmos.group.v1.Member.metadata": - x.Metadata = value.Interface().(string) - case "cosmos.group.v1.Member.added_at": - x.AddedAt = value.Message().Interface().(*timestamppb.Timestamp) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.Member")) - } - panic(fmt.Errorf("message cosmos.group.v1.Member does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Member) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.Member.added_at": - if x.AddedAt == nil { - x.AddedAt = new(timestamppb.Timestamp) - } - return protoreflect.ValueOfMessage(x.AddedAt.ProtoReflect()) - case "cosmos.group.v1.Member.address": - panic(fmt.Errorf("field address of message cosmos.group.v1.Member is not mutable")) - case "cosmos.group.v1.Member.weight": - panic(fmt.Errorf("field weight of message cosmos.group.v1.Member is not mutable")) - case "cosmos.group.v1.Member.metadata": - panic(fmt.Errorf("field metadata of message cosmos.group.v1.Member is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.Member")) - } - panic(fmt.Errorf("message cosmos.group.v1.Member does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_Member) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.Member.address": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.Member.weight": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.Member.metadata": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.Member.added_at": - m := new(timestamppb.Timestamp) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.Member")) - } - panic(fmt.Errorf("message cosmos.group.v1.Member does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_Member) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.Member", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_Member) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Member) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_Member) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_Member) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Member) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Address) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Weight) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Metadata) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.AddedAt != nil { - l = options.Size(x.AddedAt) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*Member) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.AddedAt != nil { - encoded, err := options.Marshal(x.AddedAt) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x22 - } - if len(x.Metadata) > 0 { - i -= len(x.Metadata) - copy(dAtA[i:], x.Metadata) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) - i-- - dAtA[i] = 0x1a - } - if len(x.Weight) > 0 { - i -= len(x.Weight) - copy(dAtA[i:], x.Weight) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Weight))) - i-- - dAtA[i] = 0x12 - } - if len(x.Address) > 0 { - i -= len(x.Address) - copy(dAtA[i:], x.Address) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*Member) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Member: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Member: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Weight = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Metadata = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AddedAt", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.AddedAt == nil { - x.AddedAt = ×tamppb.Timestamp{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.AddedAt); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MemberRequest protoreflect.MessageDescriptor - fd_MemberRequest_address protoreflect.FieldDescriptor - fd_MemberRequest_weight protoreflect.FieldDescriptor - fd_MemberRequest_metadata protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_types_proto_init() - md_MemberRequest = File_cosmos_group_v1_types_proto.Messages().ByName("MemberRequest") - fd_MemberRequest_address = md_MemberRequest.Fields().ByName("address") - fd_MemberRequest_weight = md_MemberRequest.Fields().ByName("weight") - fd_MemberRequest_metadata = md_MemberRequest.Fields().ByName("metadata") -} - -var _ protoreflect.Message = (*fastReflection_MemberRequest)(nil) - -type fastReflection_MemberRequest MemberRequest - -func (x *MemberRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_MemberRequest)(x) -} - -func (x *MemberRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_types_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MemberRequest_messageType fastReflection_MemberRequest_messageType -var _ protoreflect.MessageType = fastReflection_MemberRequest_messageType{} - -type fastReflection_MemberRequest_messageType struct{} - -func (x fastReflection_MemberRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_MemberRequest)(nil) -} -func (x fastReflection_MemberRequest_messageType) New() protoreflect.Message { - return new(fastReflection_MemberRequest) -} -func (x fastReflection_MemberRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MemberRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MemberRequest) Descriptor() protoreflect.MessageDescriptor { - return md_MemberRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MemberRequest) Type() protoreflect.MessageType { - return _fastReflection_MemberRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MemberRequest) New() protoreflect.Message { - return new(fastReflection_MemberRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MemberRequest) Interface() protoreflect.ProtoMessage { - return (*MemberRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MemberRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Address != "" { - value := protoreflect.ValueOfString(x.Address) - if !f(fd_MemberRequest_address, value) { - return - } - } - if x.Weight != "" { - value := protoreflect.ValueOfString(x.Weight) - if !f(fd_MemberRequest_weight, value) { - return - } - } - if x.Metadata != "" { - value := protoreflect.ValueOfString(x.Metadata) - if !f(fd_MemberRequest_metadata, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MemberRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.MemberRequest.address": - return x.Address != "" - case "cosmos.group.v1.MemberRequest.weight": - return x.Weight != "" - case "cosmos.group.v1.MemberRequest.metadata": - return x.Metadata != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MemberRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.MemberRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MemberRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.MemberRequest.address": - x.Address = "" - case "cosmos.group.v1.MemberRequest.weight": - x.Weight = "" - case "cosmos.group.v1.MemberRequest.metadata": - x.Metadata = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MemberRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.MemberRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MemberRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.MemberRequest.address": - value := x.Address - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.MemberRequest.weight": - value := x.Weight - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.MemberRequest.metadata": - value := x.Metadata - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MemberRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.MemberRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MemberRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.MemberRequest.address": - x.Address = value.Interface().(string) - case "cosmos.group.v1.MemberRequest.weight": - x.Weight = value.Interface().(string) - case "cosmos.group.v1.MemberRequest.metadata": - x.Metadata = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MemberRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.MemberRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MemberRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MemberRequest.address": - panic(fmt.Errorf("field address of message cosmos.group.v1.MemberRequest is not mutable")) - case "cosmos.group.v1.MemberRequest.weight": - panic(fmt.Errorf("field weight of message cosmos.group.v1.MemberRequest is not mutable")) - case "cosmos.group.v1.MemberRequest.metadata": - panic(fmt.Errorf("field metadata of message cosmos.group.v1.MemberRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MemberRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.MemberRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MemberRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.MemberRequest.address": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.MemberRequest.weight": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.MemberRequest.metadata": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.MemberRequest")) - } - panic(fmt.Errorf("message cosmos.group.v1.MemberRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MemberRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.MemberRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MemberRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MemberRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MemberRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MemberRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MemberRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Address) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Weight) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Metadata) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MemberRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Metadata) > 0 { - i -= len(x.Metadata) - copy(dAtA[i:], x.Metadata) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) - i-- - dAtA[i] = 0x1a - } - if len(x.Weight) > 0 { - i -= len(x.Weight) - copy(dAtA[i:], x.Weight) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Weight))) - i-- - dAtA[i] = 0x12 - } - if len(x.Address) > 0 { - i -= len(x.Address) - copy(dAtA[i:], x.Address) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MemberRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MemberRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MemberRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Weight = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Metadata = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_ThresholdDecisionPolicy protoreflect.MessageDescriptor - fd_ThresholdDecisionPolicy_threshold protoreflect.FieldDescriptor - fd_ThresholdDecisionPolicy_windows protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_types_proto_init() - md_ThresholdDecisionPolicy = File_cosmos_group_v1_types_proto.Messages().ByName("ThresholdDecisionPolicy") - fd_ThresholdDecisionPolicy_threshold = md_ThresholdDecisionPolicy.Fields().ByName("threshold") - fd_ThresholdDecisionPolicy_windows = md_ThresholdDecisionPolicy.Fields().ByName("windows") -} - -var _ protoreflect.Message = (*fastReflection_ThresholdDecisionPolicy)(nil) - -type fastReflection_ThresholdDecisionPolicy ThresholdDecisionPolicy - -func (x *ThresholdDecisionPolicy) ProtoReflect() protoreflect.Message { - return (*fastReflection_ThresholdDecisionPolicy)(x) -} - -func (x *ThresholdDecisionPolicy) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_types_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_ThresholdDecisionPolicy_messageType fastReflection_ThresholdDecisionPolicy_messageType -var _ protoreflect.MessageType = fastReflection_ThresholdDecisionPolicy_messageType{} - -type fastReflection_ThresholdDecisionPolicy_messageType struct{} - -func (x fastReflection_ThresholdDecisionPolicy_messageType) Zero() protoreflect.Message { - return (*fastReflection_ThresholdDecisionPolicy)(nil) -} -func (x fastReflection_ThresholdDecisionPolicy_messageType) New() protoreflect.Message { - return new(fastReflection_ThresholdDecisionPolicy) -} -func (x fastReflection_ThresholdDecisionPolicy_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_ThresholdDecisionPolicy -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_ThresholdDecisionPolicy) Descriptor() protoreflect.MessageDescriptor { - return md_ThresholdDecisionPolicy -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_ThresholdDecisionPolicy) Type() protoreflect.MessageType { - return _fastReflection_ThresholdDecisionPolicy_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_ThresholdDecisionPolicy) New() protoreflect.Message { - return new(fastReflection_ThresholdDecisionPolicy) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_ThresholdDecisionPolicy) Interface() protoreflect.ProtoMessage { - return (*ThresholdDecisionPolicy)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_ThresholdDecisionPolicy) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Threshold != "" { - value := protoreflect.ValueOfString(x.Threshold) - if !f(fd_ThresholdDecisionPolicy_threshold, value) { - return - } - } - if x.Windows != nil { - value := protoreflect.ValueOfMessage(x.Windows.ProtoReflect()) - if !f(fd_ThresholdDecisionPolicy_windows, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_ThresholdDecisionPolicy) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.ThresholdDecisionPolicy.threshold": - return x.Threshold != "" - case "cosmos.group.v1.ThresholdDecisionPolicy.windows": - return x.Windows != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.ThresholdDecisionPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.ThresholdDecisionPolicy does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ThresholdDecisionPolicy) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.ThresholdDecisionPolicy.threshold": - x.Threshold = "" - case "cosmos.group.v1.ThresholdDecisionPolicy.windows": - x.Windows = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.ThresholdDecisionPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.ThresholdDecisionPolicy does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_ThresholdDecisionPolicy) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.ThresholdDecisionPolicy.threshold": - value := x.Threshold - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.ThresholdDecisionPolicy.windows": - value := x.Windows - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.ThresholdDecisionPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.ThresholdDecisionPolicy does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ThresholdDecisionPolicy) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.ThresholdDecisionPolicy.threshold": - x.Threshold = value.Interface().(string) - case "cosmos.group.v1.ThresholdDecisionPolicy.windows": - x.Windows = value.Message().Interface().(*DecisionPolicyWindows) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.ThresholdDecisionPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.ThresholdDecisionPolicy does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ThresholdDecisionPolicy) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.ThresholdDecisionPolicy.windows": - if x.Windows == nil { - x.Windows = new(DecisionPolicyWindows) - } - return protoreflect.ValueOfMessage(x.Windows.ProtoReflect()) - case "cosmos.group.v1.ThresholdDecisionPolicy.threshold": - panic(fmt.Errorf("field threshold of message cosmos.group.v1.ThresholdDecisionPolicy is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.ThresholdDecisionPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.ThresholdDecisionPolicy does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_ThresholdDecisionPolicy) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.ThresholdDecisionPolicy.threshold": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.ThresholdDecisionPolicy.windows": - m := new(DecisionPolicyWindows) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.ThresholdDecisionPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.ThresholdDecisionPolicy does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_ThresholdDecisionPolicy) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.ThresholdDecisionPolicy", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_ThresholdDecisionPolicy) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ThresholdDecisionPolicy) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_ThresholdDecisionPolicy) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_ThresholdDecisionPolicy) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*ThresholdDecisionPolicy) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Threshold) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Windows != nil { - l = options.Size(x.Windows) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*ThresholdDecisionPolicy) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Windows != nil { - encoded, err := options.Marshal(x.Windows) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Threshold) > 0 { - i -= len(x.Threshold) - copy(dAtA[i:], x.Threshold) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Threshold))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*ThresholdDecisionPolicy) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ThresholdDecisionPolicy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ThresholdDecisionPolicy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Threshold", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Threshold = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Windows", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Windows == nil { - x.Windows = &DecisionPolicyWindows{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Windows); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_PercentageDecisionPolicy protoreflect.MessageDescriptor - fd_PercentageDecisionPolicy_percentage protoreflect.FieldDescriptor - fd_PercentageDecisionPolicy_windows protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_types_proto_init() - md_PercentageDecisionPolicy = File_cosmos_group_v1_types_proto.Messages().ByName("PercentageDecisionPolicy") - fd_PercentageDecisionPolicy_percentage = md_PercentageDecisionPolicy.Fields().ByName("percentage") - fd_PercentageDecisionPolicy_windows = md_PercentageDecisionPolicy.Fields().ByName("windows") -} - -var _ protoreflect.Message = (*fastReflection_PercentageDecisionPolicy)(nil) - -type fastReflection_PercentageDecisionPolicy PercentageDecisionPolicy - -func (x *PercentageDecisionPolicy) ProtoReflect() protoreflect.Message { - return (*fastReflection_PercentageDecisionPolicy)(x) -} - -func (x *PercentageDecisionPolicy) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_types_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_PercentageDecisionPolicy_messageType fastReflection_PercentageDecisionPolicy_messageType -var _ protoreflect.MessageType = fastReflection_PercentageDecisionPolicy_messageType{} - -type fastReflection_PercentageDecisionPolicy_messageType struct{} - -func (x fastReflection_PercentageDecisionPolicy_messageType) Zero() protoreflect.Message { - return (*fastReflection_PercentageDecisionPolicy)(nil) -} -func (x fastReflection_PercentageDecisionPolicy_messageType) New() protoreflect.Message { - return new(fastReflection_PercentageDecisionPolicy) -} -func (x fastReflection_PercentageDecisionPolicy_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_PercentageDecisionPolicy -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_PercentageDecisionPolicy) Descriptor() protoreflect.MessageDescriptor { - return md_PercentageDecisionPolicy -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_PercentageDecisionPolicy) Type() protoreflect.MessageType { - return _fastReflection_PercentageDecisionPolicy_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_PercentageDecisionPolicy) New() protoreflect.Message { - return new(fastReflection_PercentageDecisionPolicy) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_PercentageDecisionPolicy) Interface() protoreflect.ProtoMessage { - return (*PercentageDecisionPolicy)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_PercentageDecisionPolicy) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Percentage != "" { - value := protoreflect.ValueOfString(x.Percentage) - if !f(fd_PercentageDecisionPolicy_percentage, value) { - return - } - } - if x.Windows != nil { - value := protoreflect.ValueOfMessage(x.Windows.ProtoReflect()) - if !f(fd_PercentageDecisionPolicy_windows, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_PercentageDecisionPolicy) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.PercentageDecisionPolicy.percentage": - return x.Percentage != "" - case "cosmos.group.v1.PercentageDecisionPolicy.windows": - return x.Windows != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.PercentageDecisionPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.PercentageDecisionPolicy does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PercentageDecisionPolicy) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.PercentageDecisionPolicy.percentage": - x.Percentage = "" - case "cosmos.group.v1.PercentageDecisionPolicy.windows": - x.Windows = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.PercentageDecisionPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.PercentageDecisionPolicy does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_PercentageDecisionPolicy) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.PercentageDecisionPolicy.percentage": - value := x.Percentage - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.PercentageDecisionPolicy.windows": - value := x.Windows - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.PercentageDecisionPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.PercentageDecisionPolicy does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PercentageDecisionPolicy) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.PercentageDecisionPolicy.percentage": - x.Percentage = value.Interface().(string) - case "cosmos.group.v1.PercentageDecisionPolicy.windows": - x.Windows = value.Message().Interface().(*DecisionPolicyWindows) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.PercentageDecisionPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.PercentageDecisionPolicy does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PercentageDecisionPolicy) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.PercentageDecisionPolicy.windows": - if x.Windows == nil { - x.Windows = new(DecisionPolicyWindows) - } - return protoreflect.ValueOfMessage(x.Windows.ProtoReflect()) - case "cosmos.group.v1.PercentageDecisionPolicy.percentage": - panic(fmt.Errorf("field percentage of message cosmos.group.v1.PercentageDecisionPolicy is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.PercentageDecisionPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.PercentageDecisionPolicy does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_PercentageDecisionPolicy) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.PercentageDecisionPolicy.percentage": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.PercentageDecisionPolicy.windows": - m := new(DecisionPolicyWindows) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.PercentageDecisionPolicy")) - } - panic(fmt.Errorf("message cosmos.group.v1.PercentageDecisionPolicy does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_PercentageDecisionPolicy) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.PercentageDecisionPolicy", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_PercentageDecisionPolicy) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PercentageDecisionPolicy) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_PercentageDecisionPolicy) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_PercentageDecisionPolicy) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*PercentageDecisionPolicy) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Percentage) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Windows != nil { - l = options.Size(x.Windows) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*PercentageDecisionPolicy) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Windows != nil { - encoded, err := options.Marshal(x.Windows) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Percentage) > 0 { - i -= len(x.Percentage) - copy(dAtA[i:], x.Percentage) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Percentage))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*PercentageDecisionPolicy) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PercentageDecisionPolicy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PercentageDecisionPolicy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Percentage", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Percentage = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Windows", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Windows == nil { - x.Windows = &DecisionPolicyWindows{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Windows); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_DecisionPolicyWindows protoreflect.MessageDescriptor - fd_DecisionPolicyWindows_voting_period protoreflect.FieldDescriptor - fd_DecisionPolicyWindows_min_execution_period protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_types_proto_init() - md_DecisionPolicyWindows = File_cosmos_group_v1_types_proto.Messages().ByName("DecisionPolicyWindows") - fd_DecisionPolicyWindows_voting_period = md_DecisionPolicyWindows.Fields().ByName("voting_period") - fd_DecisionPolicyWindows_min_execution_period = md_DecisionPolicyWindows.Fields().ByName("min_execution_period") -} - -var _ protoreflect.Message = (*fastReflection_DecisionPolicyWindows)(nil) - -type fastReflection_DecisionPolicyWindows DecisionPolicyWindows - -func (x *DecisionPolicyWindows) ProtoReflect() protoreflect.Message { - return (*fastReflection_DecisionPolicyWindows)(x) -} - -func (x *DecisionPolicyWindows) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_types_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_DecisionPolicyWindows_messageType fastReflection_DecisionPolicyWindows_messageType -var _ protoreflect.MessageType = fastReflection_DecisionPolicyWindows_messageType{} - -type fastReflection_DecisionPolicyWindows_messageType struct{} - -func (x fastReflection_DecisionPolicyWindows_messageType) Zero() protoreflect.Message { - return (*fastReflection_DecisionPolicyWindows)(nil) -} -func (x fastReflection_DecisionPolicyWindows_messageType) New() protoreflect.Message { - return new(fastReflection_DecisionPolicyWindows) -} -func (x fastReflection_DecisionPolicyWindows_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_DecisionPolicyWindows -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_DecisionPolicyWindows) Descriptor() protoreflect.MessageDescriptor { - return md_DecisionPolicyWindows -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_DecisionPolicyWindows) Type() protoreflect.MessageType { - return _fastReflection_DecisionPolicyWindows_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_DecisionPolicyWindows) New() protoreflect.Message { - return new(fastReflection_DecisionPolicyWindows) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_DecisionPolicyWindows) Interface() protoreflect.ProtoMessage { - return (*DecisionPolicyWindows)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_DecisionPolicyWindows) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.VotingPeriod != nil { - value := protoreflect.ValueOfMessage(x.VotingPeriod.ProtoReflect()) - if !f(fd_DecisionPolicyWindows_voting_period, value) { - return - } - } - if x.MinExecutionPeriod != nil { - value := protoreflect.ValueOfMessage(x.MinExecutionPeriod.ProtoReflect()) - if !f(fd_DecisionPolicyWindows_min_execution_period, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_DecisionPolicyWindows) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.DecisionPolicyWindows.voting_period": - return x.VotingPeriod != nil - case "cosmos.group.v1.DecisionPolicyWindows.min_execution_period": - return x.MinExecutionPeriod != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.DecisionPolicyWindows")) - } - panic(fmt.Errorf("message cosmos.group.v1.DecisionPolicyWindows does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_DecisionPolicyWindows) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.DecisionPolicyWindows.voting_period": - x.VotingPeriod = nil - case "cosmos.group.v1.DecisionPolicyWindows.min_execution_period": - x.MinExecutionPeriod = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.DecisionPolicyWindows")) - } - panic(fmt.Errorf("message cosmos.group.v1.DecisionPolicyWindows does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_DecisionPolicyWindows) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.DecisionPolicyWindows.voting_period": - value := x.VotingPeriod - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cosmos.group.v1.DecisionPolicyWindows.min_execution_period": - value := x.MinExecutionPeriod - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.DecisionPolicyWindows")) - } - panic(fmt.Errorf("message cosmos.group.v1.DecisionPolicyWindows does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_DecisionPolicyWindows) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.DecisionPolicyWindows.voting_period": - x.VotingPeriod = value.Message().Interface().(*durationpb.Duration) - case "cosmos.group.v1.DecisionPolicyWindows.min_execution_period": - x.MinExecutionPeriod = value.Message().Interface().(*durationpb.Duration) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.DecisionPolicyWindows")) - } - panic(fmt.Errorf("message cosmos.group.v1.DecisionPolicyWindows does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_DecisionPolicyWindows) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.DecisionPolicyWindows.voting_period": - if x.VotingPeriod == nil { - x.VotingPeriod = new(durationpb.Duration) - } - return protoreflect.ValueOfMessage(x.VotingPeriod.ProtoReflect()) - case "cosmos.group.v1.DecisionPolicyWindows.min_execution_period": - if x.MinExecutionPeriod == nil { - x.MinExecutionPeriod = new(durationpb.Duration) - } - return protoreflect.ValueOfMessage(x.MinExecutionPeriod.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.DecisionPolicyWindows")) - } - panic(fmt.Errorf("message cosmos.group.v1.DecisionPolicyWindows does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_DecisionPolicyWindows) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.DecisionPolicyWindows.voting_period": - m := new(durationpb.Duration) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cosmos.group.v1.DecisionPolicyWindows.min_execution_period": - m := new(durationpb.Duration) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.DecisionPolicyWindows")) - } - panic(fmt.Errorf("message cosmos.group.v1.DecisionPolicyWindows does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_DecisionPolicyWindows) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.DecisionPolicyWindows", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_DecisionPolicyWindows) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_DecisionPolicyWindows) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_DecisionPolicyWindows) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_DecisionPolicyWindows) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*DecisionPolicyWindows) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.VotingPeriod != nil { - l = options.Size(x.VotingPeriod) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.MinExecutionPeriod != nil { - l = options.Size(x.MinExecutionPeriod) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*DecisionPolicyWindows) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.MinExecutionPeriod != nil { - encoded, err := options.Marshal(x.MinExecutionPeriod) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if x.VotingPeriod != nil { - encoded, err := options.Marshal(x.VotingPeriod) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*DecisionPolicyWindows) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: DecisionPolicyWindows: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: DecisionPolicyWindows: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VotingPeriod", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.VotingPeriod == nil { - x.VotingPeriod = &durationpb.Duration{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.VotingPeriod); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MinExecutionPeriod", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.MinExecutionPeriod == nil { - x.MinExecutionPeriod = &durationpb.Duration{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.MinExecutionPeriod); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_GroupInfo protoreflect.MessageDescriptor - fd_GroupInfo_id protoreflect.FieldDescriptor - fd_GroupInfo_admin protoreflect.FieldDescriptor - fd_GroupInfo_metadata protoreflect.FieldDescriptor - fd_GroupInfo_version protoreflect.FieldDescriptor - fd_GroupInfo_total_weight protoreflect.FieldDescriptor - fd_GroupInfo_created_at protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_types_proto_init() - md_GroupInfo = File_cosmos_group_v1_types_proto.Messages().ByName("GroupInfo") - fd_GroupInfo_id = md_GroupInfo.Fields().ByName("id") - fd_GroupInfo_admin = md_GroupInfo.Fields().ByName("admin") - fd_GroupInfo_metadata = md_GroupInfo.Fields().ByName("metadata") - fd_GroupInfo_version = md_GroupInfo.Fields().ByName("version") - fd_GroupInfo_total_weight = md_GroupInfo.Fields().ByName("total_weight") - fd_GroupInfo_created_at = md_GroupInfo.Fields().ByName("created_at") -} - -var _ protoreflect.Message = (*fastReflection_GroupInfo)(nil) - -type fastReflection_GroupInfo GroupInfo - -func (x *GroupInfo) ProtoReflect() protoreflect.Message { - return (*fastReflection_GroupInfo)(x) -} - -func (x *GroupInfo) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_types_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_GroupInfo_messageType fastReflection_GroupInfo_messageType -var _ protoreflect.MessageType = fastReflection_GroupInfo_messageType{} - -type fastReflection_GroupInfo_messageType struct{} - -func (x fastReflection_GroupInfo_messageType) Zero() protoreflect.Message { - return (*fastReflection_GroupInfo)(nil) -} -func (x fastReflection_GroupInfo_messageType) New() protoreflect.Message { - return new(fastReflection_GroupInfo) -} -func (x fastReflection_GroupInfo_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_GroupInfo -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_GroupInfo) Descriptor() protoreflect.MessageDescriptor { - return md_GroupInfo -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_GroupInfo) Type() protoreflect.MessageType { - return _fastReflection_GroupInfo_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_GroupInfo) New() protoreflect.Message { - return new(fastReflection_GroupInfo) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_GroupInfo) Interface() protoreflect.ProtoMessage { - return (*GroupInfo)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_GroupInfo) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Id != uint64(0) { - value := protoreflect.ValueOfUint64(x.Id) - if !f(fd_GroupInfo_id, value) { - return - } - } - if x.Admin != "" { - value := protoreflect.ValueOfString(x.Admin) - if !f(fd_GroupInfo_admin, value) { - return - } - } - if x.Metadata != "" { - value := protoreflect.ValueOfString(x.Metadata) - if !f(fd_GroupInfo_metadata, value) { - return - } - } - if x.Version != uint64(0) { - value := protoreflect.ValueOfUint64(x.Version) - if !f(fd_GroupInfo_version, value) { - return - } - } - if x.TotalWeight != "" { - value := protoreflect.ValueOfString(x.TotalWeight) - if !f(fd_GroupInfo_total_weight, value) { - return - } - } - if x.CreatedAt != nil { - value := protoreflect.ValueOfMessage(x.CreatedAt.ProtoReflect()) - if !f(fd_GroupInfo_created_at, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_GroupInfo) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.GroupInfo.id": - return x.Id != uint64(0) - case "cosmos.group.v1.GroupInfo.admin": - return x.Admin != "" - case "cosmos.group.v1.GroupInfo.metadata": - return x.Metadata != "" - case "cosmos.group.v1.GroupInfo.version": - return x.Version != uint64(0) - case "cosmos.group.v1.GroupInfo.total_weight": - return x.TotalWeight != "" - case "cosmos.group.v1.GroupInfo.created_at": - return x.CreatedAt != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.GroupInfo")) - } - panic(fmt.Errorf("message cosmos.group.v1.GroupInfo does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GroupInfo) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.GroupInfo.id": - x.Id = uint64(0) - case "cosmos.group.v1.GroupInfo.admin": - x.Admin = "" - case "cosmos.group.v1.GroupInfo.metadata": - x.Metadata = "" - case "cosmos.group.v1.GroupInfo.version": - x.Version = uint64(0) - case "cosmos.group.v1.GroupInfo.total_weight": - x.TotalWeight = "" - case "cosmos.group.v1.GroupInfo.created_at": - x.CreatedAt = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.GroupInfo")) - } - panic(fmt.Errorf("message cosmos.group.v1.GroupInfo does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_GroupInfo) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.GroupInfo.id": - value := x.Id - return protoreflect.ValueOfUint64(value) - case "cosmos.group.v1.GroupInfo.admin": - value := x.Admin - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.GroupInfo.metadata": - value := x.Metadata - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.GroupInfo.version": - value := x.Version - return protoreflect.ValueOfUint64(value) - case "cosmos.group.v1.GroupInfo.total_weight": - value := x.TotalWeight - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.GroupInfo.created_at": - value := x.CreatedAt - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.GroupInfo")) - } - panic(fmt.Errorf("message cosmos.group.v1.GroupInfo does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GroupInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.GroupInfo.id": - x.Id = value.Uint() - case "cosmos.group.v1.GroupInfo.admin": - x.Admin = value.Interface().(string) - case "cosmos.group.v1.GroupInfo.metadata": - x.Metadata = value.Interface().(string) - case "cosmos.group.v1.GroupInfo.version": - x.Version = value.Uint() - case "cosmos.group.v1.GroupInfo.total_weight": - x.TotalWeight = value.Interface().(string) - case "cosmos.group.v1.GroupInfo.created_at": - x.CreatedAt = value.Message().Interface().(*timestamppb.Timestamp) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.GroupInfo")) - } - panic(fmt.Errorf("message cosmos.group.v1.GroupInfo does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GroupInfo) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.GroupInfo.created_at": - if x.CreatedAt == nil { - x.CreatedAt = new(timestamppb.Timestamp) - } - return protoreflect.ValueOfMessage(x.CreatedAt.ProtoReflect()) - case "cosmos.group.v1.GroupInfo.id": - panic(fmt.Errorf("field id of message cosmos.group.v1.GroupInfo is not mutable")) - case "cosmos.group.v1.GroupInfo.admin": - panic(fmt.Errorf("field admin of message cosmos.group.v1.GroupInfo is not mutable")) - case "cosmos.group.v1.GroupInfo.metadata": - panic(fmt.Errorf("field metadata of message cosmos.group.v1.GroupInfo is not mutable")) - case "cosmos.group.v1.GroupInfo.version": - panic(fmt.Errorf("field version of message cosmos.group.v1.GroupInfo is not mutable")) - case "cosmos.group.v1.GroupInfo.total_weight": - panic(fmt.Errorf("field total_weight of message cosmos.group.v1.GroupInfo is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.GroupInfo")) - } - panic(fmt.Errorf("message cosmos.group.v1.GroupInfo does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_GroupInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.GroupInfo.id": - return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.group.v1.GroupInfo.admin": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.GroupInfo.metadata": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.GroupInfo.version": - return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.group.v1.GroupInfo.total_weight": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.GroupInfo.created_at": - m := new(timestamppb.Timestamp) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.GroupInfo")) - } - panic(fmt.Errorf("message cosmos.group.v1.GroupInfo does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_GroupInfo) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.GroupInfo", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_GroupInfo) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GroupInfo) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_GroupInfo) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_GroupInfo) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*GroupInfo) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Id != 0 { - n += 1 + runtime.Sov(uint64(x.Id)) - } - l = len(x.Admin) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Metadata) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Version != 0 { - n += 1 + runtime.Sov(uint64(x.Version)) - } - l = len(x.TotalWeight) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.CreatedAt != nil { - l = options.Size(x.CreatedAt) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*GroupInfo) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.CreatedAt != nil { - encoded, err := options.Marshal(x.CreatedAt) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x32 - } - if len(x.TotalWeight) > 0 { - i -= len(x.TotalWeight) - copy(dAtA[i:], x.TotalWeight) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalWeight))) - i-- - dAtA[i] = 0x2a - } - if x.Version != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Version)) - i-- - dAtA[i] = 0x20 - } - if len(x.Metadata) > 0 { - i -= len(x.Metadata) - copy(dAtA[i:], x.Metadata) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) - i-- - dAtA[i] = 0x1a - } - if len(x.Admin) > 0 { - i -= len(x.Admin) - copy(dAtA[i:], x.Admin) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Admin))) - i-- - dAtA[i] = 0x12 - } - if x.Id != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Id)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*GroupInfo) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GroupInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GroupInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - x.Id = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Id |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Admin = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Metadata = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) - } - x.Version = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Version |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalWeight", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.TotalWeight = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.CreatedAt == nil { - x.CreatedAt = ×tamppb.Timestamp{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CreatedAt); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_GroupMember protoreflect.MessageDescriptor - fd_GroupMember_group_id protoreflect.FieldDescriptor - fd_GroupMember_member protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_types_proto_init() - md_GroupMember = File_cosmos_group_v1_types_proto.Messages().ByName("GroupMember") - fd_GroupMember_group_id = md_GroupMember.Fields().ByName("group_id") - fd_GroupMember_member = md_GroupMember.Fields().ByName("member") -} - -var _ protoreflect.Message = (*fastReflection_GroupMember)(nil) - -type fastReflection_GroupMember GroupMember - -func (x *GroupMember) ProtoReflect() protoreflect.Message { - return (*fastReflection_GroupMember)(x) -} - -func (x *GroupMember) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_types_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_GroupMember_messageType fastReflection_GroupMember_messageType -var _ protoreflect.MessageType = fastReflection_GroupMember_messageType{} - -type fastReflection_GroupMember_messageType struct{} - -func (x fastReflection_GroupMember_messageType) Zero() protoreflect.Message { - return (*fastReflection_GroupMember)(nil) -} -func (x fastReflection_GroupMember_messageType) New() protoreflect.Message { - return new(fastReflection_GroupMember) -} -func (x fastReflection_GroupMember_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_GroupMember -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_GroupMember) Descriptor() protoreflect.MessageDescriptor { - return md_GroupMember -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_GroupMember) Type() protoreflect.MessageType { - return _fastReflection_GroupMember_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_GroupMember) New() protoreflect.Message { - return new(fastReflection_GroupMember) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_GroupMember) Interface() protoreflect.ProtoMessage { - return (*GroupMember)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_GroupMember) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.GroupId != uint64(0) { - value := protoreflect.ValueOfUint64(x.GroupId) - if !f(fd_GroupMember_group_id, value) { - return - } - } - if x.Member != nil { - value := protoreflect.ValueOfMessage(x.Member.ProtoReflect()) - if !f(fd_GroupMember_member, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_GroupMember) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.GroupMember.group_id": - return x.GroupId != uint64(0) - case "cosmos.group.v1.GroupMember.member": - return x.Member != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.GroupMember")) - } - panic(fmt.Errorf("message cosmos.group.v1.GroupMember does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GroupMember) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.GroupMember.group_id": - x.GroupId = uint64(0) - case "cosmos.group.v1.GroupMember.member": - x.Member = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.GroupMember")) - } - panic(fmt.Errorf("message cosmos.group.v1.GroupMember does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_GroupMember) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.GroupMember.group_id": - value := x.GroupId - return protoreflect.ValueOfUint64(value) - case "cosmos.group.v1.GroupMember.member": - value := x.Member - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.GroupMember")) - } - panic(fmt.Errorf("message cosmos.group.v1.GroupMember does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GroupMember) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.GroupMember.group_id": - x.GroupId = value.Uint() - case "cosmos.group.v1.GroupMember.member": - x.Member = value.Message().Interface().(*Member) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.GroupMember")) - } - panic(fmt.Errorf("message cosmos.group.v1.GroupMember does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GroupMember) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.GroupMember.member": - if x.Member == nil { - x.Member = new(Member) - } - return protoreflect.ValueOfMessage(x.Member.ProtoReflect()) - case "cosmos.group.v1.GroupMember.group_id": - panic(fmt.Errorf("field group_id of message cosmos.group.v1.GroupMember is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.GroupMember")) - } - panic(fmt.Errorf("message cosmos.group.v1.GroupMember does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_GroupMember) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.GroupMember.group_id": - return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.group.v1.GroupMember.member": - m := new(Member) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.GroupMember")) - } - panic(fmt.Errorf("message cosmos.group.v1.GroupMember does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_GroupMember) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.GroupMember", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_GroupMember) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GroupMember) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_GroupMember) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_GroupMember) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*GroupMember) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.GroupId != 0 { - n += 1 + runtime.Sov(uint64(x.GroupId)) - } - if x.Member != nil { - l = options.Size(x.Member) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*GroupMember) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Member != nil { - encoded, err := options.Marshal(x.Member) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if x.GroupId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.GroupId)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*GroupMember) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GroupMember: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GroupMember: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - x.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.GroupId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Member", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Member == nil { - x.Member = &Member{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Member); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_GroupPolicyInfo protoreflect.MessageDescriptor - fd_GroupPolicyInfo_address protoreflect.FieldDescriptor - fd_GroupPolicyInfo_group_id protoreflect.FieldDescriptor - fd_GroupPolicyInfo_admin protoreflect.FieldDescriptor - fd_GroupPolicyInfo_metadata protoreflect.FieldDescriptor - fd_GroupPolicyInfo_version protoreflect.FieldDescriptor - fd_GroupPolicyInfo_decision_policy protoreflect.FieldDescriptor - fd_GroupPolicyInfo_created_at protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_types_proto_init() - md_GroupPolicyInfo = File_cosmos_group_v1_types_proto.Messages().ByName("GroupPolicyInfo") - fd_GroupPolicyInfo_address = md_GroupPolicyInfo.Fields().ByName("address") - fd_GroupPolicyInfo_group_id = md_GroupPolicyInfo.Fields().ByName("group_id") - fd_GroupPolicyInfo_admin = md_GroupPolicyInfo.Fields().ByName("admin") - fd_GroupPolicyInfo_metadata = md_GroupPolicyInfo.Fields().ByName("metadata") - fd_GroupPolicyInfo_version = md_GroupPolicyInfo.Fields().ByName("version") - fd_GroupPolicyInfo_decision_policy = md_GroupPolicyInfo.Fields().ByName("decision_policy") - fd_GroupPolicyInfo_created_at = md_GroupPolicyInfo.Fields().ByName("created_at") -} - -var _ protoreflect.Message = (*fastReflection_GroupPolicyInfo)(nil) - -type fastReflection_GroupPolicyInfo GroupPolicyInfo - -func (x *GroupPolicyInfo) ProtoReflect() protoreflect.Message { - return (*fastReflection_GroupPolicyInfo)(x) -} - -func (x *GroupPolicyInfo) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_types_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_GroupPolicyInfo_messageType fastReflection_GroupPolicyInfo_messageType -var _ protoreflect.MessageType = fastReflection_GroupPolicyInfo_messageType{} - -type fastReflection_GroupPolicyInfo_messageType struct{} - -func (x fastReflection_GroupPolicyInfo_messageType) Zero() protoreflect.Message { - return (*fastReflection_GroupPolicyInfo)(nil) -} -func (x fastReflection_GroupPolicyInfo_messageType) New() protoreflect.Message { - return new(fastReflection_GroupPolicyInfo) -} -func (x fastReflection_GroupPolicyInfo_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_GroupPolicyInfo -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_GroupPolicyInfo) Descriptor() protoreflect.MessageDescriptor { - return md_GroupPolicyInfo -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_GroupPolicyInfo) Type() protoreflect.MessageType { - return _fastReflection_GroupPolicyInfo_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_GroupPolicyInfo) New() protoreflect.Message { - return new(fastReflection_GroupPolicyInfo) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_GroupPolicyInfo) Interface() protoreflect.ProtoMessage { - return (*GroupPolicyInfo)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_GroupPolicyInfo) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Address != "" { - value := protoreflect.ValueOfString(x.Address) - if !f(fd_GroupPolicyInfo_address, value) { - return - } - } - if x.GroupId != uint64(0) { - value := protoreflect.ValueOfUint64(x.GroupId) - if !f(fd_GroupPolicyInfo_group_id, value) { - return - } - } - if x.Admin != "" { - value := protoreflect.ValueOfString(x.Admin) - if !f(fd_GroupPolicyInfo_admin, value) { - return - } - } - if x.Metadata != "" { - value := protoreflect.ValueOfString(x.Metadata) - if !f(fd_GroupPolicyInfo_metadata, value) { - return - } - } - if x.Version != uint64(0) { - value := protoreflect.ValueOfUint64(x.Version) - if !f(fd_GroupPolicyInfo_version, value) { - return - } - } - if x.DecisionPolicy != nil { - value := protoreflect.ValueOfMessage(x.DecisionPolicy.ProtoReflect()) - if !f(fd_GroupPolicyInfo_decision_policy, value) { - return - } - } - if x.CreatedAt != nil { - value := protoreflect.ValueOfMessage(x.CreatedAt.ProtoReflect()) - if !f(fd_GroupPolicyInfo_created_at, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_GroupPolicyInfo) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.GroupPolicyInfo.address": - return x.Address != "" - case "cosmos.group.v1.GroupPolicyInfo.group_id": - return x.GroupId != uint64(0) - case "cosmos.group.v1.GroupPolicyInfo.admin": - return x.Admin != "" - case "cosmos.group.v1.GroupPolicyInfo.metadata": - return x.Metadata != "" - case "cosmos.group.v1.GroupPolicyInfo.version": - return x.Version != uint64(0) - case "cosmos.group.v1.GroupPolicyInfo.decision_policy": - return x.DecisionPolicy != nil - case "cosmos.group.v1.GroupPolicyInfo.created_at": - return x.CreatedAt != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.GroupPolicyInfo")) - } - panic(fmt.Errorf("message cosmos.group.v1.GroupPolicyInfo does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GroupPolicyInfo) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.GroupPolicyInfo.address": - x.Address = "" - case "cosmos.group.v1.GroupPolicyInfo.group_id": - x.GroupId = uint64(0) - case "cosmos.group.v1.GroupPolicyInfo.admin": - x.Admin = "" - case "cosmos.group.v1.GroupPolicyInfo.metadata": - x.Metadata = "" - case "cosmos.group.v1.GroupPolicyInfo.version": - x.Version = uint64(0) - case "cosmos.group.v1.GroupPolicyInfo.decision_policy": - x.DecisionPolicy = nil - case "cosmos.group.v1.GroupPolicyInfo.created_at": - x.CreatedAt = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.GroupPolicyInfo")) - } - panic(fmt.Errorf("message cosmos.group.v1.GroupPolicyInfo does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_GroupPolicyInfo) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.GroupPolicyInfo.address": - value := x.Address - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.GroupPolicyInfo.group_id": - value := x.GroupId - return protoreflect.ValueOfUint64(value) - case "cosmos.group.v1.GroupPolicyInfo.admin": - value := x.Admin - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.GroupPolicyInfo.metadata": - value := x.Metadata - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.GroupPolicyInfo.version": - value := x.Version - return protoreflect.ValueOfUint64(value) - case "cosmos.group.v1.GroupPolicyInfo.decision_policy": - value := x.DecisionPolicy - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cosmos.group.v1.GroupPolicyInfo.created_at": - value := x.CreatedAt - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.GroupPolicyInfo")) - } - panic(fmt.Errorf("message cosmos.group.v1.GroupPolicyInfo does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GroupPolicyInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.GroupPolicyInfo.address": - x.Address = value.Interface().(string) - case "cosmos.group.v1.GroupPolicyInfo.group_id": - x.GroupId = value.Uint() - case "cosmos.group.v1.GroupPolicyInfo.admin": - x.Admin = value.Interface().(string) - case "cosmos.group.v1.GroupPolicyInfo.metadata": - x.Metadata = value.Interface().(string) - case "cosmos.group.v1.GroupPolicyInfo.version": - x.Version = value.Uint() - case "cosmos.group.v1.GroupPolicyInfo.decision_policy": - x.DecisionPolicy = value.Message().Interface().(*anypb.Any) - case "cosmos.group.v1.GroupPolicyInfo.created_at": - x.CreatedAt = value.Message().Interface().(*timestamppb.Timestamp) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.GroupPolicyInfo")) - } - panic(fmt.Errorf("message cosmos.group.v1.GroupPolicyInfo does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GroupPolicyInfo) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.GroupPolicyInfo.decision_policy": - if x.DecisionPolicy == nil { - x.DecisionPolicy = new(anypb.Any) - } - return protoreflect.ValueOfMessage(x.DecisionPolicy.ProtoReflect()) - case "cosmos.group.v1.GroupPolicyInfo.created_at": - if x.CreatedAt == nil { - x.CreatedAt = new(timestamppb.Timestamp) - } - return protoreflect.ValueOfMessage(x.CreatedAt.ProtoReflect()) - case "cosmos.group.v1.GroupPolicyInfo.address": - panic(fmt.Errorf("field address of message cosmos.group.v1.GroupPolicyInfo is not mutable")) - case "cosmos.group.v1.GroupPolicyInfo.group_id": - panic(fmt.Errorf("field group_id of message cosmos.group.v1.GroupPolicyInfo is not mutable")) - case "cosmos.group.v1.GroupPolicyInfo.admin": - panic(fmt.Errorf("field admin of message cosmos.group.v1.GroupPolicyInfo is not mutable")) - case "cosmos.group.v1.GroupPolicyInfo.metadata": - panic(fmt.Errorf("field metadata of message cosmos.group.v1.GroupPolicyInfo is not mutable")) - case "cosmos.group.v1.GroupPolicyInfo.version": - panic(fmt.Errorf("field version of message cosmos.group.v1.GroupPolicyInfo is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.GroupPolicyInfo")) - } - panic(fmt.Errorf("message cosmos.group.v1.GroupPolicyInfo does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_GroupPolicyInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.GroupPolicyInfo.address": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.GroupPolicyInfo.group_id": - return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.group.v1.GroupPolicyInfo.admin": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.GroupPolicyInfo.metadata": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.GroupPolicyInfo.version": - return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.group.v1.GroupPolicyInfo.decision_policy": - m := new(anypb.Any) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cosmos.group.v1.GroupPolicyInfo.created_at": - m := new(timestamppb.Timestamp) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.GroupPolicyInfo")) - } - panic(fmt.Errorf("message cosmos.group.v1.GroupPolicyInfo does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_GroupPolicyInfo) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.GroupPolicyInfo", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_GroupPolicyInfo) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GroupPolicyInfo) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_GroupPolicyInfo) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_GroupPolicyInfo) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*GroupPolicyInfo) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Address) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.GroupId != 0 { - n += 1 + runtime.Sov(uint64(x.GroupId)) - } - l = len(x.Admin) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Metadata) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Version != 0 { - n += 1 + runtime.Sov(uint64(x.Version)) - } - if x.DecisionPolicy != nil { - l = options.Size(x.DecisionPolicy) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.CreatedAt != nil { - l = options.Size(x.CreatedAt) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*GroupPolicyInfo) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.CreatedAt != nil { - encoded, err := options.Marshal(x.CreatedAt) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x3a - } - if x.DecisionPolicy != nil { - encoded, err := options.Marshal(x.DecisionPolicy) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x32 - } - if x.Version != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Version)) - i-- - dAtA[i] = 0x28 - } - if len(x.Metadata) > 0 { - i -= len(x.Metadata) - copy(dAtA[i:], x.Metadata) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) - i-- - dAtA[i] = 0x22 - } - if len(x.Admin) > 0 { - i -= len(x.Admin) - copy(dAtA[i:], x.Admin) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Admin))) - i-- - dAtA[i] = 0x1a - } - if x.GroupId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.GroupId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Address) > 0 { - i -= len(x.Address) - copy(dAtA[i:], x.Address) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*GroupPolicyInfo) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GroupPolicyInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GroupPolicyInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - x.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.GroupId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Admin = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Metadata = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) - } - x.Version = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Version |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DecisionPolicy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.DecisionPolicy == nil { - x.DecisionPolicy = &anypb.Any{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DecisionPolicy); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.CreatedAt == nil { - x.CreatedAt = ×tamppb.Timestamp{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CreatedAt); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_Proposal_4_list)(nil) - -type _Proposal_4_list struct { - list *[]string -} - -func (x *_Proposal_4_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_Proposal_4_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_Proposal_4_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_Proposal_4_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_Proposal_4_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message Proposal at list field Proposers as it is not of Message kind")) -} - -func (x *_Proposal_4_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_Proposal_4_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_Proposal_4_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_Proposal_12_list)(nil) - -type _Proposal_12_list struct { - list *[]*anypb.Any -} - -func (x *_Proposal_12_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_Proposal_12_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_Proposal_12_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*anypb.Any) - (*x.list)[i] = concreteValue -} - -func (x *_Proposal_12_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*anypb.Any) - *x.list = append(*x.list, concreteValue) -} - -func (x *_Proposal_12_list) AppendMutable() protoreflect.Value { - v := new(anypb.Any) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_Proposal_12_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_Proposal_12_list) NewElement() protoreflect.Value { - v := new(anypb.Any) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_Proposal_12_list) IsValid() bool { - return x.list != nil -} - -var ( - md_Proposal protoreflect.MessageDescriptor - fd_Proposal_id protoreflect.FieldDescriptor - fd_Proposal_group_policy_address protoreflect.FieldDescriptor - fd_Proposal_metadata protoreflect.FieldDescriptor - fd_Proposal_proposers protoreflect.FieldDescriptor - fd_Proposal_submit_time protoreflect.FieldDescriptor - fd_Proposal_group_version protoreflect.FieldDescriptor - fd_Proposal_group_policy_version protoreflect.FieldDescriptor - fd_Proposal_status protoreflect.FieldDescriptor - fd_Proposal_final_tally_result protoreflect.FieldDescriptor - fd_Proposal_voting_period_end protoreflect.FieldDescriptor - fd_Proposal_executor_result protoreflect.FieldDescriptor - fd_Proposal_messages protoreflect.FieldDescriptor - fd_Proposal_title protoreflect.FieldDescriptor - fd_Proposal_summary protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_types_proto_init() - md_Proposal = File_cosmos_group_v1_types_proto.Messages().ByName("Proposal") - fd_Proposal_id = md_Proposal.Fields().ByName("id") - fd_Proposal_group_policy_address = md_Proposal.Fields().ByName("group_policy_address") - fd_Proposal_metadata = md_Proposal.Fields().ByName("metadata") - fd_Proposal_proposers = md_Proposal.Fields().ByName("proposers") - fd_Proposal_submit_time = md_Proposal.Fields().ByName("submit_time") - fd_Proposal_group_version = md_Proposal.Fields().ByName("group_version") - fd_Proposal_group_policy_version = md_Proposal.Fields().ByName("group_policy_version") - fd_Proposal_status = md_Proposal.Fields().ByName("status") - fd_Proposal_final_tally_result = md_Proposal.Fields().ByName("final_tally_result") - fd_Proposal_voting_period_end = md_Proposal.Fields().ByName("voting_period_end") - fd_Proposal_executor_result = md_Proposal.Fields().ByName("executor_result") - fd_Proposal_messages = md_Proposal.Fields().ByName("messages") - fd_Proposal_title = md_Proposal.Fields().ByName("title") - fd_Proposal_summary = md_Proposal.Fields().ByName("summary") -} - -var _ protoreflect.Message = (*fastReflection_Proposal)(nil) - -type fastReflection_Proposal Proposal - -func (x *Proposal) ProtoReflect() protoreflect.Message { - return (*fastReflection_Proposal)(x) -} - -func (x *Proposal) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_types_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_Proposal_messageType fastReflection_Proposal_messageType -var _ protoreflect.MessageType = fastReflection_Proposal_messageType{} - -type fastReflection_Proposal_messageType struct{} - -func (x fastReflection_Proposal_messageType) Zero() protoreflect.Message { - return (*fastReflection_Proposal)(nil) -} -func (x fastReflection_Proposal_messageType) New() protoreflect.Message { - return new(fastReflection_Proposal) -} -func (x fastReflection_Proposal_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Proposal -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Proposal) Descriptor() protoreflect.MessageDescriptor { - return md_Proposal -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_Proposal) Type() protoreflect.MessageType { - return _fastReflection_Proposal_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Proposal) New() protoreflect.Message { - return new(fastReflection_Proposal) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Proposal) Interface() protoreflect.ProtoMessage { - return (*Proposal)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_Proposal) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Id != uint64(0) { - value := protoreflect.ValueOfUint64(x.Id) - if !f(fd_Proposal_id, value) { - return - } - } - if x.GroupPolicyAddress != "" { - value := protoreflect.ValueOfString(x.GroupPolicyAddress) - if !f(fd_Proposal_group_policy_address, value) { - return - } - } - if x.Metadata != "" { - value := protoreflect.ValueOfString(x.Metadata) - if !f(fd_Proposal_metadata, value) { - return - } - } - if len(x.Proposers) != 0 { - value := protoreflect.ValueOfList(&_Proposal_4_list{list: &x.Proposers}) - if !f(fd_Proposal_proposers, value) { - return - } - } - if x.SubmitTime != nil { - value := protoreflect.ValueOfMessage(x.SubmitTime.ProtoReflect()) - if !f(fd_Proposal_submit_time, value) { - return - } - } - if x.GroupVersion != uint64(0) { - value := protoreflect.ValueOfUint64(x.GroupVersion) - if !f(fd_Proposal_group_version, value) { - return - } - } - if x.GroupPolicyVersion != uint64(0) { - value := protoreflect.ValueOfUint64(x.GroupPolicyVersion) - if !f(fd_Proposal_group_policy_version, value) { - return - } - } - if x.Status != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Status)) - if !f(fd_Proposal_status, value) { - return - } - } - if x.FinalTallyResult != nil { - value := protoreflect.ValueOfMessage(x.FinalTallyResult.ProtoReflect()) - if !f(fd_Proposal_final_tally_result, value) { - return - } - } - if x.VotingPeriodEnd != nil { - value := protoreflect.ValueOfMessage(x.VotingPeriodEnd.ProtoReflect()) - if !f(fd_Proposal_voting_period_end, value) { - return - } - } - if x.ExecutorResult != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.ExecutorResult)) - if !f(fd_Proposal_executor_result, value) { - return - } - } - if len(x.Messages) != 0 { - value := protoreflect.ValueOfList(&_Proposal_12_list{list: &x.Messages}) - if !f(fd_Proposal_messages, value) { - return - } - } - if x.Title != "" { - value := protoreflect.ValueOfString(x.Title) - if !f(fd_Proposal_title, value) { - return - } - } - if x.Summary != "" { - value := protoreflect.ValueOfString(x.Summary) - if !f(fd_Proposal_summary, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_Proposal) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.Proposal.id": - return x.Id != uint64(0) - case "cosmos.group.v1.Proposal.group_policy_address": - return x.GroupPolicyAddress != "" - case "cosmos.group.v1.Proposal.metadata": - return x.Metadata != "" - case "cosmos.group.v1.Proposal.proposers": - return len(x.Proposers) != 0 - case "cosmos.group.v1.Proposal.submit_time": - return x.SubmitTime != nil - case "cosmos.group.v1.Proposal.group_version": - return x.GroupVersion != uint64(0) - case "cosmos.group.v1.Proposal.group_policy_version": - return x.GroupPolicyVersion != uint64(0) - case "cosmos.group.v1.Proposal.status": - return x.Status != 0 - case "cosmos.group.v1.Proposal.final_tally_result": - return x.FinalTallyResult != nil - case "cosmos.group.v1.Proposal.voting_period_end": - return x.VotingPeriodEnd != nil - case "cosmos.group.v1.Proposal.executor_result": - return x.ExecutorResult != 0 - case "cosmos.group.v1.Proposal.messages": - return len(x.Messages) != 0 - case "cosmos.group.v1.Proposal.title": - return x.Title != "" - case "cosmos.group.v1.Proposal.summary": - return x.Summary != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.Proposal")) - } - panic(fmt.Errorf("message cosmos.group.v1.Proposal does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Proposal) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.Proposal.id": - x.Id = uint64(0) - case "cosmos.group.v1.Proposal.group_policy_address": - x.GroupPolicyAddress = "" - case "cosmos.group.v1.Proposal.metadata": - x.Metadata = "" - case "cosmos.group.v1.Proposal.proposers": - x.Proposers = nil - case "cosmos.group.v1.Proposal.submit_time": - x.SubmitTime = nil - case "cosmos.group.v1.Proposal.group_version": - x.GroupVersion = uint64(0) - case "cosmos.group.v1.Proposal.group_policy_version": - x.GroupPolicyVersion = uint64(0) - case "cosmos.group.v1.Proposal.status": - x.Status = 0 - case "cosmos.group.v1.Proposal.final_tally_result": - x.FinalTallyResult = nil - case "cosmos.group.v1.Proposal.voting_period_end": - x.VotingPeriodEnd = nil - case "cosmos.group.v1.Proposal.executor_result": - x.ExecutorResult = 0 - case "cosmos.group.v1.Proposal.messages": - x.Messages = nil - case "cosmos.group.v1.Proposal.title": - x.Title = "" - case "cosmos.group.v1.Proposal.summary": - x.Summary = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.Proposal")) - } - panic(fmt.Errorf("message cosmos.group.v1.Proposal does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_Proposal) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.Proposal.id": - value := x.Id - return protoreflect.ValueOfUint64(value) - case "cosmos.group.v1.Proposal.group_policy_address": - value := x.GroupPolicyAddress - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.Proposal.metadata": - value := x.Metadata - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.Proposal.proposers": - if len(x.Proposers) == 0 { - return protoreflect.ValueOfList(&_Proposal_4_list{}) - } - listValue := &_Proposal_4_list{list: &x.Proposers} - return protoreflect.ValueOfList(listValue) - case "cosmos.group.v1.Proposal.submit_time": - value := x.SubmitTime - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cosmos.group.v1.Proposal.group_version": - value := x.GroupVersion - return protoreflect.ValueOfUint64(value) - case "cosmos.group.v1.Proposal.group_policy_version": - value := x.GroupPolicyVersion - return protoreflect.ValueOfUint64(value) - case "cosmos.group.v1.Proposal.status": - value := x.Status - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "cosmos.group.v1.Proposal.final_tally_result": - value := x.FinalTallyResult - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cosmos.group.v1.Proposal.voting_period_end": - value := x.VotingPeriodEnd - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cosmos.group.v1.Proposal.executor_result": - value := x.ExecutorResult - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "cosmos.group.v1.Proposal.messages": - if len(x.Messages) == 0 { - return protoreflect.ValueOfList(&_Proposal_12_list{}) - } - listValue := &_Proposal_12_list{list: &x.Messages} - return protoreflect.ValueOfList(listValue) - case "cosmos.group.v1.Proposal.title": - value := x.Title - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.Proposal.summary": - value := x.Summary - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.Proposal")) - } - panic(fmt.Errorf("message cosmos.group.v1.Proposal does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Proposal) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.Proposal.id": - x.Id = value.Uint() - case "cosmos.group.v1.Proposal.group_policy_address": - x.GroupPolicyAddress = value.Interface().(string) - case "cosmos.group.v1.Proposal.metadata": - x.Metadata = value.Interface().(string) - case "cosmos.group.v1.Proposal.proposers": - lv := value.List() - clv := lv.(*_Proposal_4_list) - x.Proposers = *clv.list - case "cosmos.group.v1.Proposal.submit_time": - x.SubmitTime = value.Message().Interface().(*timestamppb.Timestamp) - case "cosmos.group.v1.Proposal.group_version": - x.GroupVersion = value.Uint() - case "cosmos.group.v1.Proposal.group_policy_version": - x.GroupPolicyVersion = value.Uint() - case "cosmos.group.v1.Proposal.status": - x.Status = (ProposalStatus)(value.Enum()) - case "cosmos.group.v1.Proposal.final_tally_result": - x.FinalTallyResult = value.Message().Interface().(*TallyResult) - case "cosmos.group.v1.Proposal.voting_period_end": - x.VotingPeriodEnd = value.Message().Interface().(*timestamppb.Timestamp) - case "cosmos.group.v1.Proposal.executor_result": - x.ExecutorResult = (ProposalExecutorResult)(value.Enum()) - case "cosmos.group.v1.Proposal.messages": - lv := value.List() - clv := lv.(*_Proposal_12_list) - x.Messages = *clv.list - case "cosmos.group.v1.Proposal.title": - x.Title = value.Interface().(string) - case "cosmos.group.v1.Proposal.summary": - x.Summary = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.Proposal")) - } - panic(fmt.Errorf("message cosmos.group.v1.Proposal does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Proposal) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.Proposal.proposers": - if x.Proposers == nil { - x.Proposers = []string{} - } - value := &_Proposal_4_list{list: &x.Proposers} - return protoreflect.ValueOfList(value) - case "cosmos.group.v1.Proposal.submit_time": - if x.SubmitTime == nil { - x.SubmitTime = new(timestamppb.Timestamp) - } - return protoreflect.ValueOfMessage(x.SubmitTime.ProtoReflect()) - case "cosmos.group.v1.Proposal.final_tally_result": - if x.FinalTallyResult == nil { - x.FinalTallyResult = new(TallyResult) - } - return protoreflect.ValueOfMessage(x.FinalTallyResult.ProtoReflect()) - case "cosmos.group.v1.Proposal.voting_period_end": - if x.VotingPeriodEnd == nil { - x.VotingPeriodEnd = new(timestamppb.Timestamp) - } - return protoreflect.ValueOfMessage(x.VotingPeriodEnd.ProtoReflect()) - case "cosmos.group.v1.Proposal.messages": - if x.Messages == nil { - x.Messages = []*anypb.Any{} - } - value := &_Proposal_12_list{list: &x.Messages} - return protoreflect.ValueOfList(value) - case "cosmos.group.v1.Proposal.id": - panic(fmt.Errorf("field id of message cosmos.group.v1.Proposal is not mutable")) - case "cosmos.group.v1.Proposal.group_policy_address": - panic(fmt.Errorf("field group_policy_address of message cosmos.group.v1.Proposal is not mutable")) - case "cosmos.group.v1.Proposal.metadata": - panic(fmt.Errorf("field metadata of message cosmos.group.v1.Proposal is not mutable")) - case "cosmos.group.v1.Proposal.group_version": - panic(fmt.Errorf("field group_version of message cosmos.group.v1.Proposal is not mutable")) - case "cosmos.group.v1.Proposal.group_policy_version": - panic(fmt.Errorf("field group_policy_version of message cosmos.group.v1.Proposal is not mutable")) - case "cosmos.group.v1.Proposal.status": - panic(fmt.Errorf("field status of message cosmos.group.v1.Proposal is not mutable")) - case "cosmos.group.v1.Proposal.executor_result": - panic(fmt.Errorf("field executor_result of message cosmos.group.v1.Proposal is not mutable")) - case "cosmos.group.v1.Proposal.title": - panic(fmt.Errorf("field title of message cosmos.group.v1.Proposal is not mutable")) - case "cosmos.group.v1.Proposal.summary": - panic(fmt.Errorf("field summary of message cosmos.group.v1.Proposal is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.Proposal")) - } - panic(fmt.Errorf("message cosmos.group.v1.Proposal does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_Proposal) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.Proposal.id": - return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.group.v1.Proposal.group_policy_address": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.Proposal.metadata": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.Proposal.proposers": - list := []string{} - return protoreflect.ValueOfList(&_Proposal_4_list{list: &list}) - case "cosmos.group.v1.Proposal.submit_time": - m := new(timestamppb.Timestamp) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cosmos.group.v1.Proposal.group_version": - return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.group.v1.Proposal.group_policy_version": - return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.group.v1.Proposal.status": - return protoreflect.ValueOfEnum(0) - case "cosmos.group.v1.Proposal.final_tally_result": - m := new(TallyResult) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cosmos.group.v1.Proposal.voting_period_end": - m := new(timestamppb.Timestamp) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cosmos.group.v1.Proposal.executor_result": - return protoreflect.ValueOfEnum(0) - case "cosmos.group.v1.Proposal.messages": - list := []*anypb.Any{} - return protoreflect.ValueOfList(&_Proposal_12_list{list: &list}) - case "cosmos.group.v1.Proposal.title": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.Proposal.summary": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.Proposal")) - } - panic(fmt.Errorf("message cosmos.group.v1.Proposal does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_Proposal) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.Proposal", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_Proposal) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Proposal) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_Proposal) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_Proposal) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Proposal) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Id != 0 { - n += 1 + runtime.Sov(uint64(x.Id)) - } - l = len(x.GroupPolicyAddress) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Metadata) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.Proposers) > 0 { - for _, s := range x.Proposers { - l = len(s) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.SubmitTime != nil { - l = options.Size(x.SubmitTime) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.GroupVersion != 0 { - n += 1 + runtime.Sov(uint64(x.GroupVersion)) - } - if x.GroupPolicyVersion != 0 { - n += 1 + runtime.Sov(uint64(x.GroupPolicyVersion)) - } - if x.Status != 0 { - n += 1 + runtime.Sov(uint64(x.Status)) - } - if x.FinalTallyResult != nil { - l = options.Size(x.FinalTallyResult) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.VotingPeriodEnd != nil { - l = options.Size(x.VotingPeriodEnd) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.ExecutorResult != 0 { - n += 1 + runtime.Sov(uint64(x.ExecutorResult)) - } - if len(x.Messages) > 0 { - for _, e := range x.Messages { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - l = len(x.Title) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Summary) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*Proposal) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Summary) > 0 { - i -= len(x.Summary) - copy(dAtA[i:], x.Summary) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Summary))) - i-- - dAtA[i] = 0x72 - } - if len(x.Title) > 0 { - i -= len(x.Title) - copy(dAtA[i:], x.Title) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Title))) - i-- - dAtA[i] = 0x6a - } - if len(x.Messages) > 0 { - for iNdEx := len(x.Messages) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Messages[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x62 - } - } - if x.ExecutorResult != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ExecutorResult)) - i-- - dAtA[i] = 0x58 - } - if x.VotingPeriodEnd != nil { - encoded, err := options.Marshal(x.VotingPeriodEnd) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x52 - } - if x.FinalTallyResult != nil { - encoded, err := options.Marshal(x.FinalTallyResult) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x4a - } - if x.Status != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Status)) - i-- - dAtA[i] = 0x40 - } - if x.GroupPolicyVersion != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.GroupPolicyVersion)) - i-- - dAtA[i] = 0x38 - } - if x.GroupVersion != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.GroupVersion)) - i-- - dAtA[i] = 0x30 - } - if x.SubmitTime != nil { - encoded, err := options.Marshal(x.SubmitTime) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x2a - } - if len(x.Proposers) > 0 { - for iNdEx := len(x.Proposers) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.Proposers[iNdEx]) - copy(dAtA[i:], x.Proposers[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Proposers[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if len(x.Metadata) > 0 { - i -= len(x.Metadata) - copy(dAtA[i:], x.Metadata) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) - i-- - dAtA[i] = 0x1a - } - if len(x.GroupPolicyAddress) > 0 { - i -= len(x.GroupPolicyAddress) - copy(dAtA[i:], x.GroupPolicyAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.GroupPolicyAddress))) - i-- - dAtA[i] = 0x12 - } - if x.Id != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Id)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*Proposal) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Proposal: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Proposal: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - x.Id = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Id |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupPolicyAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.GroupPolicyAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Metadata = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposers", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Proposers = append(x.Proposers, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 5: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SubmitTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.SubmitTime == nil { - x.SubmitTime = ×tamppb.Timestamp{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.SubmitTime); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupVersion", wireType) - } - x.GroupVersion = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.GroupVersion |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupPolicyVersion", wireType) - } - x.GroupPolicyVersion = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.GroupPolicyVersion |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - x.Status = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Status |= ProposalStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field FinalTallyResult", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.FinalTallyResult == nil { - x.FinalTallyResult = &TallyResult{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.FinalTallyResult); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 10: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VotingPeriodEnd", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.VotingPeriodEnd == nil { - x.VotingPeriodEnd = ×tamppb.Timestamp{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.VotingPeriodEnd); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 11: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ExecutorResult", wireType) - } - x.ExecutorResult = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.ExecutorResult |= ProposalExecutorResult(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 12: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Messages", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Messages = append(x.Messages, &anypb.Any{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Messages[len(x.Messages)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 13: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Title", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Title = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 14: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Summary", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Summary = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_TallyResult protoreflect.MessageDescriptor - fd_TallyResult_yes_count protoreflect.FieldDescriptor - fd_TallyResult_abstain_count protoreflect.FieldDescriptor - fd_TallyResult_no_count protoreflect.FieldDescriptor - fd_TallyResult_no_with_veto_count protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_types_proto_init() - md_TallyResult = File_cosmos_group_v1_types_proto.Messages().ByName("TallyResult") - fd_TallyResult_yes_count = md_TallyResult.Fields().ByName("yes_count") - fd_TallyResult_abstain_count = md_TallyResult.Fields().ByName("abstain_count") - fd_TallyResult_no_count = md_TallyResult.Fields().ByName("no_count") - fd_TallyResult_no_with_veto_count = md_TallyResult.Fields().ByName("no_with_veto_count") -} - -var _ protoreflect.Message = (*fastReflection_TallyResult)(nil) - -type fastReflection_TallyResult TallyResult - -func (x *TallyResult) ProtoReflect() protoreflect.Message { - return (*fastReflection_TallyResult)(x) -} - -func (x *TallyResult) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_types_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_TallyResult_messageType fastReflection_TallyResult_messageType -var _ protoreflect.MessageType = fastReflection_TallyResult_messageType{} - -type fastReflection_TallyResult_messageType struct{} - -func (x fastReflection_TallyResult_messageType) Zero() protoreflect.Message { - return (*fastReflection_TallyResult)(nil) -} -func (x fastReflection_TallyResult_messageType) New() protoreflect.Message { - return new(fastReflection_TallyResult) -} -func (x fastReflection_TallyResult_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_TallyResult -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_TallyResult) Descriptor() protoreflect.MessageDescriptor { - return md_TallyResult -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_TallyResult) Type() protoreflect.MessageType { - return _fastReflection_TallyResult_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_TallyResult) New() protoreflect.Message { - return new(fastReflection_TallyResult) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_TallyResult) Interface() protoreflect.ProtoMessage { - return (*TallyResult)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_TallyResult) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.YesCount != "" { - value := protoreflect.ValueOfString(x.YesCount) - if !f(fd_TallyResult_yes_count, value) { - return - } - } - if x.AbstainCount != "" { - value := protoreflect.ValueOfString(x.AbstainCount) - if !f(fd_TallyResult_abstain_count, value) { - return - } - } - if x.NoCount != "" { - value := protoreflect.ValueOfString(x.NoCount) - if !f(fd_TallyResult_no_count, value) { - return - } - } - if x.NoWithVetoCount != "" { - value := protoreflect.ValueOfString(x.NoWithVetoCount) - if !f(fd_TallyResult_no_with_veto_count, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_TallyResult) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.TallyResult.yes_count": - return x.YesCount != "" - case "cosmos.group.v1.TallyResult.abstain_count": - return x.AbstainCount != "" - case "cosmos.group.v1.TallyResult.no_count": - return x.NoCount != "" - case "cosmos.group.v1.TallyResult.no_with_veto_count": - return x.NoWithVetoCount != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.TallyResult")) - } - panic(fmt.Errorf("message cosmos.group.v1.TallyResult does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_TallyResult) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.TallyResult.yes_count": - x.YesCount = "" - case "cosmos.group.v1.TallyResult.abstain_count": - x.AbstainCount = "" - case "cosmos.group.v1.TallyResult.no_count": - x.NoCount = "" - case "cosmos.group.v1.TallyResult.no_with_veto_count": - x.NoWithVetoCount = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.TallyResult")) - } - panic(fmt.Errorf("message cosmos.group.v1.TallyResult does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_TallyResult) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.TallyResult.yes_count": - value := x.YesCount - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.TallyResult.abstain_count": - value := x.AbstainCount - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.TallyResult.no_count": - value := x.NoCount - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.TallyResult.no_with_veto_count": - value := x.NoWithVetoCount - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.TallyResult")) - } - panic(fmt.Errorf("message cosmos.group.v1.TallyResult does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_TallyResult) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.TallyResult.yes_count": - x.YesCount = value.Interface().(string) - case "cosmos.group.v1.TallyResult.abstain_count": - x.AbstainCount = value.Interface().(string) - case "cosmos.group.v1.TallyResult.no_count": - x.NoCount = value.Interface().(string) - case "cosmos.group.v1.TallyResult.no_with_veto_count": - x.NoWithVetoCount = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.TallyResult")) - } - panic(fmt.Errorf("message cosmos.group.v1.TallyResult does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_TallyResult) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.TallyResult.yes_count": - panic(fmt.Errorf("field yes_count of message cosmos.group.v1.TallyResult is not mutable")) - case "cosmos.group.v1.TallyResult.abstain_count": - panic(fmt.Errorf("field abstain_count of message cosmos.group.v1.TallyResult is not mutable")) - case "cosmos.group.v1.TallyResult.no_count": - panic(fmt.Errorf("field no_count of message cosmos.group.v1.TallyResult is not mutable")) - case "cosmos.group.v1.TallyResult.no_with_veto_count": - panic(fmt.Errorf("field no_with_veto_count of message cosmos.group.v1.TallyResult is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.TallyResult")) - } - panic(fmt.Errorf("message cosmos.group.v1.TallyResult does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_TallyResult) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.TallyResult.yes_count": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.TallyResult.abstain_count": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.TallyResult.no_count": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.TallyResult.no_with_veto_count": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.TallyResult")) - } - panic(fmt.Errorf("message cosmos.group.v1.TallyResult does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_TallyResult) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.TallyResult", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_TallyResult) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_TallyResult) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_TallyResult) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_TallyResult) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*TallyResult) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.YesCount) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.AbstainCount) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.NoCount) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.NoWithVetoCount) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*TallyResult) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.NoWithVetoCount) > 0 { - i -= len(x.NoWithVetoCount) - copy(dAtA[i:], x.NoWithVetoCount) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NoWithVetoCount))) - i-- - dAtA[i] = 0x22 - } - if len(x.NoCount) > 0 { - i -= len(x.NoCount) - copy(dAtA[i:], x.NoCount) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NoCount))) - i-- - dAtA[i] = 0x1a - } - if len(x.AbstainCount) > 0 { - i -= len(x.AbstainCount) - copy(dAtA[i:], x.AbstainCount) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AbstainCount))) - i-- - dAtA[i] = 0x12 - } - if len(x.YesCount) > 0 { - i -= len(x.YesCount) - copy(dAtA[i:], x.YesCount) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.YesCount))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*TallyResult) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TallyResult: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TallyResult: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field YesCount", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.YesCount = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AbstainCount", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.AbstainCount = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NoCount", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.NoCount = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NoWithVetoCount", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.NoWithVetoCount = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_Vote protoreflect.MessageDescriptor - fd_Vote_proposal_id protoreflect.FieldDescriptor - fd_Vote_voter protoreflect.FieldDescriptor - fd_Vote_option protoreflect.FieldDescriptor - fd_Vote_metadata protoreflect.FieldDescriptor - fd_Vote_submit_time protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_group_v1_types_proto_init() - md_Vote = File_cosmos_group_v1_types_proto.Messages().ByName("Vote") - fd_Vote_proposal_id = md_Vote.Fields().ByName("proposal_id") - fd_Vote_voter = md_Vote.Fields().ByName("voter") - fd_Vote_option = md_Vote.Fields().ByName("option") - fd_Vote_metadata = md_Vote.Fields().ByName("metadata") - fd_Vote_submit_time = md_Vote.Fields().ByName("submit_time") -} - -var _ protoreflect.Message = (*fastReflection_Vote)(nil) - -type fastReflection_Vote Vote - -func (x *Vote) ProtoReflect() protoreflect.Message { - return (*fastReflection_Vote)(x) -} - -func (x *Vote) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_group_v1_types_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_Vote_messageType fastReflection_Vote_messageType -var _ protoreflect.MessageType = fastReflection_Vote_messageType{} - -type fastReflection_Vote_messageType struct{} - -func (x fastReflection_Vote_messageType) Zero() protoreflect.Message { - return (*fastReflection_Vote)(nil) -} -func (x fastReflection_Vote_messageType) New() protoreflect.Message { - return new(fastReflection_Vote) -} -func (x fastReflection_Vote_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Vote -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Vote) Descriptor() protoreflect.MessageDescriptor { - return md_Vote -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_Vote) Type() protoreflect.MessageType { - return _fastReflection_Vote_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Vote) New() protoreflect.Message { - return new(fastReflection_Vote) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Vote) Interface() protoreflect.ProtoMessage { - return (*Vote)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_Vote) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ProposalId != uint64(0) { - value := protoreflect.ValueOfUint64(x.ProposalId) - if !f(fd_Vote_proposal_id, value) { - return - } - } - if x.Voter != "" { - value := protoreflect.ValueOfString(x.Voter) - if !f(fd_Vote_voter, value) { - return - } - } - if x.Option != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Option)) - if !f(fd_Vote_option, value) { - return - } - } - if x.Metadata != "" { - value := protoreflect.ValueOfString(x.Metadata) - if !f(fd_Vote_metadata, value) { - return - } - } - if x.SubmitTime != nil { - value := protoreflect.ValueOfMessage(x.SubmitTime.ProtoReflect()) - if !f(fd_Vote_submit_time, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_Vote) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.group.v1.Vote.proposal_id": - return x.ProposalId != uint64(0) - case "cosmos.group.v1.Vote.voter": - return x.Voter != "" - case "cosmos.group.v1.Vote.option": - return x.Option != 0 - case "cosmos.group.v1.Vote.metadata": - return x.Metadata != "" - case "cosmos.group.v1.Vote.submit_time": - return x.SubmitTime != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.Vote")) - } - panic(fmt.Errorf("message cosmos.group.v1.Vote does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Vote) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.group.v1.Vote.proposal_id": - x.ProposalId = uint64(0) - case "cosmos.group.v1.Vote.voter": - x.Voter = "" - case "cosmos.group.v1.Vote.option": - x.Option = 0 - case "cosmos.group.v1.Vote.metadata": - x.Metadata = "" - case "cosmos.group.v1.Vote.submit_time": - x.SubmitTime = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.Vote")) - } - panic(fmt.Errorf("message cosmos.group.v1.Vote does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_Vote) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.group.v1.Vote.proposal_id": - value := x.ProposalId - return protoreflect.ValueOfUint64(value) - case "cosmos.group.v1.Vote.voter": - value := x.Voter - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.Vote.option": - value := x.Option - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "cosmos.group.v1.Vote.metadata": - value := x.Metadata - return protoreflect.ValueOfString(value) - case "cosmos.group.v1.Vote.submit_time": - value := x.SubmitTime - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.Vote")) - } - panic(fmt.Errorf("message cosmos.group.v1.Vote does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Vote) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.group.v1.Vote.proposal_id": - x.ProposalId = value.Uint() - case "cosmos.group.v1.Vote.voter": - x.Voter = value.Interface().(string) - case "cosmos.group.v1.Vote.option": - x.Option = (VoteOption)(value.Enum()) - case "cosmos.group.v1.Vote.metadata": - x.Metadata = value.Interface().(string) - case "cosmos.group.v1.Vote.submit_time": - x.SubmitTime = value.Message().Interface().(*timestamppb.Timestamp) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.Vote")) - } - panic(fmt.Errorf("message cosmos.group.v1.Vote does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Vote) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.Vote.submit_time": - if x.SubmitTime == nil { - x.SubmitTime = new(timestamppb.Timestamp) - } - return protoreflect.ValueOfMessage(x.SubmitTime.ProtoReflect()) - case "cosmos.group.v1.Vote.proposal_id": - panic(fmt.Errorf("field proposal_id of message cosmos.group.v1.Vote is not mutable")) - case "cosmos.group.v1.Vote.voter": - panic(fmt.Errorf("field voter of message cosmos.group.v1.Vote is not mutable")) - case "cosmos.group.v1.Vote.option": - panic(fmt.Errorf("field option of message cosmos.group.v1.Vote is not mutable")) - case "cosmos.group.v1.Vote.metadata": - panic(fmt.Errorf("field metadata of message cosmos.group.v1.Vote is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.Vote")) - } - panic(fmt.Errorf("message cosmos.group.v1.Vote does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_Vote) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.group.v1.Vote.proposal_id": - return protoreflect.ValueOfUint64(uint64(0)) - case "cosmos.group.v1.Vote.voter": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.Vote.option": - return protoreflect.ValueOfEnum(0) - case "cosmos.group.v1.Vote.metadata": - return protoreflect.ValueOfString("") - case "cosmos.group.v1.Vote.submit_time": - m := new(timestamppb.Timestamp) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.Vote")) - } - panic(fmt.Errorf("message cosmos.group.v1.Vote does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_Vote) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.Vote", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_Vote) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Vote) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_Vote) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_Vote) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Vote) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.ProposalId != 0 { - n += 1 + runtime.Sov(uint64(x.ProposalId)) - } - l = len(x.Voter) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Option != 0 { - n += 1 + runtime.Sov(uint64(x.Option)) - } - l = len(x.Metadata) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.SubmitTime != nil { - l = options.Size(x.SubmitTime) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*Vote) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.SubmitTime != nil { - encoded, err := options.Marshal(x.SubmitTime) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x2a - } - if len(x.Metadata) > 0 { - i -= len(x.Metadata) - copy(dAtA[i:], x.Metadata) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) - i-- - dAtA[i] = 0x22 - } - if x.Option != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Option)) - i-- - dAtA[i] = 0x18 - } - if len(x.Voter) > 0 { - i -= len(x.Voter) - copy(dAtA[i:], x.Voter) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Voter))) - i-- - dAtA[i] = 0x12 - } - if x.ProposalId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ProposalId)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*Vote) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Vote: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Vote: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) - } - x.ProposalId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.ProposalId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Voter", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Voter = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Option", wireType) - } - x.Option = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Option |= VoteOption(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Metadata = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SubmitTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.SubmitTime == nil { - x.SubmitTime = ×tamppb.Timestamp{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.SubmitTime); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cosmos/group/v1/types.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// VoteOption enumerates the valid vote options for a given proposal. -type VoteOption int32 - -const ( - // VOTE_OPTION_UNSPECIFIED defines an unspecified vote option which will - // return an error. - VoteOption_VOTE_OPTION_UNSPECIFIED VoteOption = 0 - // VOTE_OPTION_YES defines a yes vote option. - VoteOption_VOTE_OPTION_YES VoteOption = 1 - // VOTE_OPTION_ABSTAIN defines an abstain vote option. - VoteOption_VOTE_OPTION_ABSTAIN VoteOption = 2 - // VOTE_OPTION_NO defines a no vote option. - VoteOption_VOTE_OPTION_NO VoteOption = 3 - // VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. - VoteOption_VOTE_OPTION_NO_WITH_VETO VoteOption = 4 -) - -// Enum value maps for VoteOption. -var ( - VoteOption_name = map[int32]string{ - 0: "VOTE_OPTION_UNSPECIFIED", - 1: "VOTE_OPTION_YES", - 2: "VOTE_OPTION_ABSTAIN", - 3: "VOTE_OPTION_NO", - 4: "VOTE_OPTION_NO_WITH_VETO", - } - VoteOption_value = map[string]int32{ - "VOTE_OPTION_UNSPECIFIED": 0, - "VOTE_OPTION_YES": 1, - "VOTE_OPTION_ABSTAIN": 2, - "VOTE_OPTION_NO": 3, - "VOTE_OPTION_NO_WITH_VETO": 4, - } -) - -func (x VoteOption) Enum() *VoteOption { - p := new(VoteOption) - *p = x - return p -} - -func (x VoteOption) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (VoteOption) Descriptor() protoreflect.EnumDescriptor { - return file_cosmos_group_v1_types_proto_enumTypes[0].Descriptor() -} - -func (VoteOption) Type() protoreflect.EnumType { - return &file_cosmos_group_v1_types_proto_enumTypes[0] -} - -func (x VoteOption) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use VoteOption.Descriptor instead. -func (VoteOption) EnumDescriptor() ([]byte, []int) { - return file_cosmos_group_v1_types_proto_rawDescGZIP(), []int{0} -} - -// ProposalStatus defines proposal statuses. -type ProposalStatus int32 - -const ( - // An empty value is invalid and not allowed. - ProposalStatus_PROPOSAL_STATUS_UNSPECIFIED ProposalStatus = 0 - // Initial status of a proposal when submitted. - ProposalStatus_PROPOSAL_STATUS_SUBMITTED ProposalStatus = 1 - // Final status of a proposal when the final tally is done and the outcome - // passes the group policy's decision policy. - ProposalStatus_PROPOSAL_STATUS_ACCEPTED ProposalStatus = 2 - // Final status of a proposal when the final tally is done and the outcome - // is rejected by the group policy's decision policy. - ProposalStatus_PROPOSAL_STATUS_REJECTED ProposalStatus = 3 - // Final status of a proposal when the group policy is modified before the - // final tally. - ProposalStatus_PROPOSAL_STATUS_ABORTED ProposalStatus = 4 - // A proposal can be withdrawn before the voting start time by the owner. - // When this happens the final status is Withdrawn. - ProposalStatus_PROPOSAL_STATUS_WITHDRAWN ProposalStatus = 5 -) - -// Enum value maps for ProposalStatus. -var ( - ProposalStatus_name = map[int32]string{ - 0: "PROPOSAL_STATUS_UNSPECIFIED", - 1: "PROPOSAL_STATUS_SUBMITTED", - 2: "PROPOSAL_STATUS_ACCEPTED", - 3: "PROPOSAL_STATUS_REJECTED", - 4: "PROPOSAL_STATUS_ABORTED", - 5: "PROPOSAL_STATUS_WITHDRAWN", - } - ProposalStatus_value = map[string]int32{ - "PROPOSAL_STATUS_UNSPECIFIED": 0, - "PROPOSAL_STATUS_SUBMITTED": 1, - "PROPOSAL_STATUS_ACCEPTED": 2, - "PROPOSAL_STATUS_REJECTED": 3, - "PROPOSAL_STATUS_ABORTED": 4, - "PROPOSAL_STATUS_WITHDRAWN": 5, - } -) - -func (x ProposalStatus) Enum() *ProposalStatus { - p := new(ProposalStatus) - *p = x - return p -} - -func (x ProposalStatus) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ProposalStatus) Descriptor() protoreflect.EnumDescriptor { - return file_cosmos_group_v1_types_proto_enumTypes[1].Descriptor() -} - -func (ProposalStatus) Type() protoreflect.EnumType { - return &file_cosmos_group_v1_types_proto_enumTypes[1] -} - -func (x ProposalStatus) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ProposalStatus.Descriptor instead. -func (ProposalStatus) EnumDescriptor() ([]byte, []int) { - return file_cosmos_group_v1_types_proto_rawDescGZIP(), []int{1} -} - -// ProposalExecutorResult defines types of proposal executor results. -type ProposalExecutorResult int32 - -const ( - // An empty value is not allowed. - ProposalExecutorResult_PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED ProposalExecutorResult = 0 - // We have not yet run the executor. - ProposalExecutorResult_PROPOSAL_EXECUTOR_RESULT_NOT_RUN ProposalExecutorResult = 1 - // The executor was successful and proposed action updated state. - ProposalExecutorResult_PROPOSAL_EXECUTOR_RESULT_SUCCESS ProposalExecutorResult = 2 - // The executor returned an error and proposed action didn't update state. - ProposalExecutorResult_PROPOSAL_EXECUTOR_RESULT_FAILURE ProposalExecutorResult = 3 -) - -// Enum value maps for ProposalExecutorResult. -var ( - ProposalExecutorResult_name = map[int32]string{ - 0: "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED", - 1: "PROPOSAL_EXECUTOR_RESULT_NOT_RUN", - 2: "PROPOSAL_EXECUTOR_RESULT_SUCCESS", - 3: "PROPOSAL_EXECUTOR_RESULT_FAILURE", - } - ProposalExecutorResult_value = map[string]int32{ - "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED": 0, - "PROPOSAL_EXECUTOR_RESULT_NOT_RUN": 1, - "PROPOSAL_EXECUTOR_RESULT_SUCCESS": 2, - "PROPOSAL_EXECUTOR_RESULT_FAILURE": 3, - } -) - -func (x ProposalExecutorResult) Enum() *ProposalExecutorResult { - p := new(ProposalExecutorResult) - *p = x - return p -} - -func (x ProposalExecutorResult) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ProposalExecutorResult) Descriptor() protoreflect.EnumDescriptor { - return file_cosmos_group_v1_types_proto_enumTypes[2].Descriptor() -} - -func (ProposalExecutorResult) Type() protoreflect.EnumType { - return &file_cosmos_group_v1_types_proto_enumTypes[2] -} - -func (x ProposalExecutorResult) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ProposalExecutorResult.Descriptor instead. -func (ProposalExecutorResult) EnumDescriptor() ([]byte, []int) { - return file_cosmos_group_v1_types_proto_rawDescGZIP(), []int{2} -} - -// Member represents a group member with an account address, -// non-zero weight, metadata and added_at timestamp. -type Member struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // address is the member's account address. - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - // weight is the member's voting weight that should be greater than 0. - Weight string `protobuf:"bytes,2,opt,name=weight,proto3" json:"weight,omitempty"` - // metadata is any arbitrary metadata attached to the member. - Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` - // added_at is a timestamp specifying when a member was added. - AddedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=added_at,json=addedAt,proto3" json:"added_at,omitempty"` -} - -func (x *Member) Reset() { - *x = Member{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_types_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Member) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Member) ProtoMessage() {} - -// Deprecated: Use Member.ProtoReflect.Descriptor instead. -func (*Member) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_types_proto_rawDescGZIP(), []int{0} -} - -func (x *Member) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -func (x *Member) GetWeight() string { - if x != nil { - return x.Weight - } - return "" -} - -func (x *Member) GetMetadata() string { - if x != nil { - return x.Metadata - } - return "" -} - -func (x *Member) GetAddedAt() *timestamppb.Timestamp { - if x != nil { - return x.AddedAt - } - return nil -} - -// 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. -type MemberRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // address is the member's account address. - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - // weight is the member's voting weight that should be greater than 0. - Weight string `protobuf:"bytes,2,opt,name=weight,proto3" json:"weight,omitempty"` - // metadata is any arbitrary metadata attached to the member. - Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` -} - -func (x *MemberRequest) Reset() { - *x = MemberRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_types_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MemberRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MemberRequest) ProtoMessage() {} - -// Deprecated: Use MemberRequest.ProtoReflect.Descriptor instead. -func (*MemberRequest) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_types_proto_rawDescGZIP(), []int{1} -} - -func (x *MemberRequest) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -func (x *MemberRequest) GetWeight() string { - if x != nil { - return x.Weight - } - return "" -} - -func (x *MemberRequest) GetMetadata() string { - if x != nil { - return x.Metadata - } - return "" -} - -// 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`. -type ThresholdDecisionPolicy struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // threshold is the minimum weighted sum of `YES` votes that must be met or - // exceeded for a proposal to succeed. - Threshold string `protobuf:"bytes,1,opt,name=threshold,proto3" json:"threshold,omitempty"` - // windows defines the different windows for voting and execution. - Windows *DecisionPolicyWindows `protobuf:"bytes,2,opt,name=windows,proto3" json:"windows,omitempty"` -} - -func (x *ThresholdDecisionPolicy) Reset() { - *x = ThresholdDecisionPolicy{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_types_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ThresholdDecisionPolicy) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ThresholdDecisionPolicy) ProtoMessage() {} - -// Deprecated: Use ThresholdDecisionPolicy.ProtoReflect.Descriptor instead. -func (*ThresholdDecisionPolicy) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_types_proto_rawDescGZIP(), []int{2} -} - -func (x *ThresholdDecisionPolicy) GetThreshold() string { - if x != nil { - return x.Threshold - } - return "" -} - -func (x *ThresholdDecisionPolicy) GetWindows() *DecisionPolicyWindows { - if x != nil { - return x.Windows - } - return nil -} - -// 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`. -type PercentageDecisionPolicy struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // percentage is the minimum percentage of the weighted sum of `YES` votes must - // meet for a proposal to succeed. - Percentage string `protobuf:"bytes,1,opt,name=percentage,proto3" json:"percentage,omitempty"` - // windows defines the different windows for voting and execution. - Windows *DecisionPolicyWindows `protobuf:"bytes,2,opt,name=windows,proto3" json:"windows,omitempty"` -} - -func (x *PercentageDecisionPolicy) Reset() { - *x = PercentageDecisionPolicy{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_types_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PercentageDecisionPolicy) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PercentageDecisionPolicy) ProtoMessage() {} - -// Deprecated: Use PercentageDecisionPolicy.ProtoReflect.Descriptor instead. -func (*PercentageDecisionPolicy) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_types_proto_rawDescGZIP(), []int{3} -} - -func (x *PercentageDecisionPolicy) GetPercentage() string { - if x != nil { - return x.Percentage - } - return "" -} - -func (x *PercentageDecisionPolicy) GetWindows() *DecisionPolicyWindows { - if x != nil { - return x.Windows - } - return nil -} - -// DecisionPolicyWindows defines the different windows for voting and execution. -type DecisionPolicyWindows struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // 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. - VotingPeriod *durationpb.Duration `protobuf:"bytes,1,opt,name=voting_period,json=votingPeriod,proto3" json:"voting_period,omitempty"` - // 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. - MinExecutionPeriod *durationpb.Duration `protobuf:"bytes,2,opt,name=min_execution_period,json=minExecutionPeriod,proto3" json:"min_execution_period,omitempty"` -} - -func (x *DecisionPolicyWindows) Reset() { - *x = DecisionPolicyWindows{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_types_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DecisionPolicyWindows) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DecisionPolicyWindows) ProtoMessage() {} - -// Deprecated: Use DecisionPolicyWindows.ProtoReflect.Descriptor instead. -func (*DecisionPolicyWindows) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_types_proto_rawDescGZIP(), []int{4} -} - -func (x *DecisionPolicyWindows) GetVotingPeriod() *durationpb.Duration { - if x != nil { - return x.VotingPeriod - } - return nil -} - -func (x *DecisionPolicyWindows) GetMinExecutionPeriod() *durationpb.Duration { - if x != nil { - return x.MinExecutionPeriod - } - return nil -} - -// GroupInfo represents the high-level on-chain information for a group. -type GroupInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // id is the unique ID of the group. - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - // admin is the account address of the group's admin. - Admin string `protobuf:"bytes,2,opt,name=admin,proto3" json:"admin,omitempty"` - // 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 - Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` - // 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 - Version uint64 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"` - // total_weight is the sum of the group members' weights. - TotalWeight string `protobuf:"bytes,5,opt,name=total_weight,json=totalWeight,proto3" json:"total_weight,omitempty"` - // created_at is a timestamp specifying when a group was created. - CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` -} - -func (x *GroupInfo) Reset() { - *x = GroupInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_types_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GroupInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GroupInfo) ProtoMessage() {} - -// Deprecated: Use GroupInfo.ProtoReflect.Descriptor instead. -func (*GroupInfo) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_types_proto_rawDescGZIP(), []int{5} -} - -func (x *GroupInfo) GetId() uint64 { - if x != nil { - return x.Id - } - return 0 -} - -func (x *GroupInfo) GetAdmin() string { - if x != nil { - return x.Admin - } - return "" -} - -func (x *GroupInfo) GetMetadata() string { - if x != nil { - return x.Metadata - } - return "" -} - -func (x *GroupInfo) GetVersion() uint64 { - if x != nil { - return x.Version - } - return 0 -} - -func (x *GroupInfo) GetTotalWeight() string { - if x != nil { - return x.TotalWeight - } - return "" -} - -func (x *GroupInfo) GetCreatedAt() *timestamppb.Timestamp { - if x != nil { - return x.CreatedAt - } - return nil -} - -// GroupMember represents the relationship between a group and a member. -type GroupMember struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // group_id is the unique ID of the group. - GroupId uint64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` - // member is the member data. - Member *Member `protobuf:"bytes,2,opt,name=member,proto3" json:"member,omitempty"` -} - -func (x *GroupMember) Reset() { - *x = GroupMember{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_types_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GroupMember) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GroupMember) ProtoMessage() {} - -// Deprecated: Use GroupMember.ProtoReflect.Descriptor instead. -func (*GroupMember) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_types_proto_rawDescGZIP(), []int{6} -} - -func (x *GroupMember) GetGroupId() uint64 { - if x != nil { - return x.GroupId - } - return 0 -} - -func (x *GroupMember) GetMember() *Member { - if x != nil { - return x.Member - } - return nil -} - -// GroupPolicyInfo represents the high-level on-chain information for a group policy. -type GroupPolicyInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // address is the account address of group policy. - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - // group_id is the unique ID of the group. - GroupId uint64 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` - // admin is the account address of the group admin. - Admin string `protobuf:"bytes,3,opt,name=admin,proto3" json:"admin,omitempty"` - // 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 - Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` - // version is used to track changes to a group's GroupPolicyInfo structure that - // would create a different result on a running proposal. - Version uint64 `protobuf:"varint,5,opt,name=version,proto3" json:"version,omitempty"` - // decision_policy specifies the group policy's decision policy. - DecisionPolicy *anypb.Any `protobuf:"bytes,6,opt,name=decision_policy,json=decisionPolicy,proto3" json:"decision_policy,omitempty"` - // created_at is a timestamp specifying when a group policy was created. - CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` -} - -func (x *GroupPolicyInfo) Reset() { - *x = GroupPolicyInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_types_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GroupPolicyInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GroupPolicyInfo) ProtoMessage() {} - -// Deprecated: Use GroupPolicyInfo.ProtoReflect.Descriptor instead. -func (*GroupPolicyInfo) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_types_proto_rawDescGZIP(), []int{7} -} - -func (x *GroupPolicyInfo) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -func (x *GroupPolicyInfo) GetGroupId() uint64 { - if x != nil { - return x.GroupId - } - return 0 -} - -func (x *GroupPolicyInfo) GetAdmin() string { - if x != nil { - return x.Admin - } - return "" -} - -func (x *GroupPolicyInfo) GetMetadata() string { - if x != nil { - return x.Metadata - } - return "" -} - -func (x *GroupPolicyInfo) GetVersion() uint64 { - if x != nil { - return x.Version - } - return 0 -} - -func (x *GroupPolicyInfo) GetDecisionPolicy() *anypb.Any { - if x != nil { - return x.DecisionPolicy - } - return nil -} - -func (x *GroupPolicyInfo) GetCreatedAt() *timestamppb.Timestamp { - if x != nil { - return x.CreatedAt - } - return nil -} - -// 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. -type Proposal struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // id is the unique id of the proposal. - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - // group_policy_address is the account address of group policy. - GroupPolicyAddress string `protobuf:"bytes,2,opt,name=group_policy_address,json=groupPolicyAddress,proto3" json:"group_policy_address,omitempty"` - // 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 - Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` - // proposers are the account addresses of the proposers. - Proposers []string `protobuf:"bytes,4,rep,name=proposers,proto3" json:"proposers,omitempty"` - // submit_time is a timestamp specifying when a proposal was submitted. - SubmitTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"` - // group_version tracks the version of the group at proposal submission. - // This field is here for informational purposes only. - GroupVersion uint64 `protobuf:"varint,6,opt,name=group_version,json=groupVersion,proto3" json:"group_version,omitempty"` - // 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. - GroupPolicyVersion uint64 `protobuf:"varint,7,opt,name=group_policy_version,json=groupPolicyVersion,proto3" json:"group_policy_version,omitempty"` - // status represents the high level position in the life cycle of the proposal. Initial value is Submitted. - Status ProposalStatus `protobuf:"varint,8,opt,name=status,proto3,enum=cosmos.group.v1.ProposalStatus" json:"status,omitempty"` - // 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. - FinalTallyResult *TallyResult `protobuf:"bytes,9,opt,name=final_tally_result,json=finalTallyResult,proto3" json:"final_tally_result,omitempty"` - // 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. - VotingPeriodEnd *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=voting_period_end,json=votingPeriodEnd,proto3" json:"voting_period_end,omitempty"` - // executor_result is the final result of the proposal execution. Initial value is NotRun. - ExecutorResult ProposalExecutorResult `protobuf:"varint,11,opt,name=executor_result,json=executorResult,proto3,enum=cosmos.group.v1.ProposalExecutorResult" json:"executor_result,omitempty"` - // messages is a list of `sdk.Msg`s that will be executed if the proposal passes. - Messages []*anypb.Any `protobuf:"bytes,12,rep,name=messages,proto3" json:"messages,omitempty"` - // title is the title of the proposal - Title string `protobuf:"bytes,13,opt,name=title,proto3" json:"title,omitempty"` - // summary is a short summary of the proposal - Summary string `protobuf:"bytes,14,opt,name=summary,proto3" json:"summary,omitempty"` -} - -func (x *Proposal) Reset() { - *x = Proposal{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_types_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Proposal) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Proposal) ProtoMessage() {} - -// Deprecated: Use Proposal.ProtoReflect.Descriptor instead. -func (*Proposal) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_types_proto_rawDescGZIP(), []int{8} -} - -func (x *Proposal) GetId() uint64 { - if x != nil { - return x.Id - } - return 0 -} - -func (x *Proposal) GetGroupPolicyAddress() string { - if x != nil { - return x.GroupPolicyAddress - } - return "" -} - -func (x *Proposal) GetMetadata() string { - if x != nil { - return x.Metadata - } - return "" -} - -func (x *Proposal) GetProposers() []string { - if x != nil { - return x.Proposers - } - return nil -} - -func (x *Proposal) GetSubmitTime() *timestamppb.Timestamp { - if x != nil { - return x.SubmitTime - } - return nil -} - -func (x *Proposal) GetGroupVersion() uint64 { - if x != nil { - return x.GroupVersion - } - return 0 -} - -func (x *Proposal) GetGroupPolicyVersion() uint64 { - if x != nil { - return x.GroupPolicyVersion - } - return 0 -} - -func (x *Proposal) GetStatus() ProposalStatus { - if x != nil { - return x.Status - } - return ProposalStatus_PROPOSAL_STATUS_UNSPECIFIED -} - -func (x *Proposal) GetFinalTallyResult() *TallyResult { - if x != nil { - return x.FinalTallyResult - } - return nil -} - -func (x *Proposal) GetVotingPeriodEnd() *timestamppb.Timestamp { - if x != nil { - return x.VotingPeriodEnd - } - return nil -} - -func (x *Proposal) GetExecutorResult() ProposalExecutorResult { - if x != nil { - return x.ExecutorResult - } - return ProposalExecutorResult_PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED -} - -func (x *Proposal) GetMessages() []*anypb.Any { - if x != nil { - return x.Messages - } - return nil -} - -func (x *Proposal) GetTitle() string { - if x != nil { - return x.Title - } - return "" -} - -func (x *Proposal) GetSummary() string { - if x != nil { - return x.Summary - } - return "" -} - -// TallyResult represents the sum of weighted votes for each vote option. -type TallyResult struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // yes_count is the weighted sum of yes votes. - YesCount string `protobuf:"bytes,1,opt,name=yes_count,json=yesCount,proto3" json:"yes_count,omitempty"` - // abstain_count is the weighted sum of abstainers. - AbstainCount string `protobuf:"bytes,2,opt,name=abstain_count,json=abstainCount,proto3" json:"abstain_count,omitempty"` - // no_count is the weighted sum of no votes. - NoCount string `protobuf:"bytes,3,opt,name=no_count,json=noCount,proto3" json:"no_count,omitempty"` - // no_with_veto_count is the weighted sum of veto. - NoWithVetoCount string `protobuf:"bytes,4,opt,name=no_with_veto_count,json=noWithVetoCount,proto3" json:"no_with_veto_count,omitempty"` -} - -func (x *TallyResult) Reset() { - *x = TallyResult{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_types_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TallyResult) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TallyResult) ProtoMessage() {} - -// Deprecated: Use TallyResult.ProtoReflect.Descriptor instead. -func (*TallyResult) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_types_proto_rawDescGZIP(), []int{9} -} - -func (x *TallyResult) GetYesCount() string { - if x != nil { - return x.YesCount - } - return "" -} - -func (x *TallyResult) GetAbstainCount() string { - if x != nil { - return x.AbstainCount - } - return "" -} - -func (x *TallyResult) GetNoCount() string { - if x != nil { - return x.NoCount - } - return "" -} - -func (x *TallyResult) GetNoWithVetoCount() string { - if x != nil { - return x.NoWithVetoCount - } - return "" -} - -// Vote represents a vote for a proposal.string metadata -type Vote struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // proposal is the unique ID of the proposal. - ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` - // voter is the account address of the voter. - Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"` - // option is the voter's choice on the proposal. - Option VoteOption `protobuf:"varint,3,opt,name=option,proto3,enum=cosmos.group.v1.VoteOption" json:"option,omitempty"` - // 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 - Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` - // submit_time is the timestamp when the vote was submitted. - SubmitTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"` -} - -func (x *Vote) Reset() { - *x = Vote{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_group_v1_types_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Vote) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Vote) ProtoMessage() {} - -// Deprecated: Use Vote.ProtoReflect.Descriptor instead. -func (*Vote) Descriptor() ([]byte, []int) { - return file_cosmos_group_v1_types_proto_rawDescGZIP(), []int{10} -} - -func (x *Vote) GetProposalId() uint64 { - if x != nil { - return x.ProposalId - } - return 0 -} - -func (x *Vote) GetVoter() string { - if x != nil { - return x.Voter - } - return "" -} - -func (x *Vote) GetOption() VoteOption { - if x != nil { - return x.Option - } - return VoteOption_VOTE_OPTION_UNSPECIFIED -} - -func (x *Vote) GetMetadata() string { - if x != nil { - return x.Metadata - } - return "" -} - -func (x *Vote) GetSubmitTime() *timestamppb.Timestamp { - if x != nil { - return x.SubmitTime - } - return nil -} - -var File_cosmos_group_v1_types_proto protoreflect.FileDescriptor - -var file_cosmos_group_v1_types_proto_rawDesc = []byte{ - 0x0a, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, - 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x1a, 0x14, - 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x61, 0x6d, 0x69, - 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb6, - 0x01, 0x0a, 0x06, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, - 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, - 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x12, 0x44, 0x0a, 0x08, 0x61, 0x64, 0x64, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, - 0x0d, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x07, - 0x61, 0x64, 0x64, 0x65, 0x64, 0x41, 0x74, 0x22, 0x77, 0x0a, 0x0d, 0x4d, 0x65, 0x6d, 0x62, 0x65, - 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, - 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, - 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x65, - 0x69, 0x67, 0x68, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x22, 0xc4, 0x01, 0x0a, 0x17, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x44, 0x65, - 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x1c, 0x0a, 0x09, - 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x40, 0x0a, 0x07, 0x77, 0x69, - 0x6e, 0x64, 0x6f, 0x77, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, - 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x57, 0x69, 0x6e, 0x64, - 0x6f, 0x77, 0x73, 0x52, 0x07, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x73, 0x3a, 0x49, 0xca, 0xb4, - 0x2d, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, - 0x31, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x8a, 0xe7, 0xb0, 0x2a, 0x22, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, - 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, - 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0xc8, 0x01, 0x0a, 0x18, 0x50, 0x65, 0x72, 0x63, - 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, - 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, - 0x74, 0x61, 0x67, 0x65, 0x12, 0x40, 0x0a, 0x07, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x73, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, - 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, - 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x73, 0x52, 0x07, 0x77, - 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x73, 0x3a, 0x4a, 0xca, 0xb4, 0x2d, 0x1e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x69, - 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x23, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, - 0x74, 0x61, 0x67, 0x65, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x22, 0xc2, 0x01, 0x0a, 0x15, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x50, - 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x73, 0x12, 0x4d, 0x0a, 0x0d, - 0x76, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0d, - 0xc8, 0xde, 0x1f, 0x00, 0x98, 0xdf, 0x1f, 0x01, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0c, 0x76, - 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x5a, 0x0a, 0x14, 0x6d, - 0x69, 0x6e, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x65, 0x72, - 0x69, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0d, 0xc8, 0xde, 0x1f, 0x00, 0x98, 0xdf, 0x1f, 0x01, 0xa8, 0xe7, - 0xb0, 0x2a, 0x01, 0x52, 0x12, 0x6d, 0x69, 0x6e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, - 0x6e, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x22, 0xee, 0x01, 0x0a, 0x09, 0x47, 0x72, 0x6f, 0x75, - 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x74, - 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x48, - 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x0d, - 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x09, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x59, 0x0a, 0x0b, 0x47, 0x72, 0x6f, 0x75, - 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, - 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, - 0x49, 0x64, 0x12, 0x2f, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, - 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x06, 0x6d, 0x65, 0x6d, - 0x62, 0x65, 0x72, 0x22, 0xfd, 0x02, 0x0a, 0x0f, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, - 0x69, 0x63, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x67, - 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x67, - 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, - 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x61, 0x0a, 0x0f, - 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x42, 0x22, 0xca, 0xb4, 0x2d, - 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, - 0x2e, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, - 0x0e, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, - 0x48, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, - 0x0d, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x09, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x3a, 0x08, 0x88, 0xa0, 0x1f, 0x00, 0xe8, - 0xa0, 0x1f, 0x01, 0x22, 0xa8, 0x06, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x4a, 0x0a, 0x14, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, - 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x12, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x50, - 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1a, 0x0a, 0x08, - 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x36, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x70, - 0x6f, 0x73, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, - 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x73, - 0x12, 0x4a, 0x0a, 0x0b, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x42, 0x0d, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, - 0x52, 0x0a, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, - 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x0c, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x12, 0x30, 0x0a, 0x14, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x12, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x56, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x12, 0x37, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x08, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, - 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x55, 0x0a, 0x12, - 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x74, 0x61, 0x6c, 0x6c, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x6c, 0x6c, 0x79, - 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, - 0x01, 0x52, 0x10, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x54, 0x61, 0x6c, 0x6c, 0x79, 0x52, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x12, 0x55, 0x0a, 0x11, 0x76, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x65, - 0x72, 0x69, 0x6f, 0x64, 0x5f, 0x65, 0x6e, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x0d, 0xc8, 0xde, 0x1f, 0x00, - 0x90, 0xdf, 0x1f, 0x01, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0f, 0x76, 0x6f, 0x74, 0x69, 0x6e, - 0x67, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x45, 0x6e, 0x64, 0x12, 0x50, 0x0a, 0x0f, 0x65, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x0b, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, - 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x0e, 0x65, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x30, 0x0a, 0x08, - 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x29, - 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x42, 0x13, 0xda, - 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, - 0x34, 0x37, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x2d, 0x0a, 0x07, 0x73, 0x75, 0x6d, - 0x6d, 0x61, 0x72, 0x79, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x42, 0x13, 0xda, 0xb4, 0x2d, 0x0f, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x37, 0x52, - 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x3a, 0x04, 0x88, 0xa0, 0x1f, 0x00, 0x22, 0x9d, - 0x01, 0x0a, 0x0b, 0x54, 0x61, 0x6c, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x1b, - 0x0a, 0x09, 0x79, 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x79, 0x65, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x61, - 0x62, 0x73, 0x74, 0x61, 0x69, 0x6e, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0c, 0x61, 0x62, 0x73, 0x74, 0x61, 0x69, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, - 0x12, 0x19, 0x0a, 0x08, 0x6e, 0x6f, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x6e, 0x6f, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2b, 0x0a, 0x12, 0x6e, - 0x6f, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x5f, 0x76, 0x65, 0x74, 0x6f, 0x5f, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x6e, 0x6f, 0x57, 0x69, 0x74, 0x68, 0x56, - 0x65, 0x74, 0x6f, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x04, 0x88, 0xa0, 0x1f, 0x00, 0x22, 0xf4, - 0x01, 0x0a, 0x04, 0x56, 0x6f, 0x74, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x70, 0x6f, - 0x73, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x72, - 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x05, 0x76, 0x6f, 0x74, 0x65, - 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x52, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x72, 0x12, 0x33, 0x0a, 0x06, 0x6f, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x6f, 0x74, 0x65, 0x4f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, - 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x4a, 0x0a, 0x0b, 0x73, 0x75, 0x62, - 0x6d, 0x69, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x0d, 0xc8, 0xde, 0x1f, 0x00, - 0x90, 0xdf, 0x1f, 0x01, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0a, 0x73, 0x75, 0x62, 0x6d, 0x69, - 0x74, 0x54, 0x69, 0x6d, 0x65, 0x2a, 0x8f, 0x01, 0x0a, 0x0a, 0x56, 0x6f, 0x74, 0x65, 0x4f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x17, 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x4f, 0x50, 0x54, - 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, - 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, - 0x5f, 0x59, 0x45, 0x53, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x4f, - 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x41, 0x42, 0x53, 0x54, 0x41, 0x49, 0x4e, 0x10, 0x02, 0x12, - 0x12, 0x0a, 0x0e, 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4e, - 0x4f, 0x10, 0x03, 0x12, 0x1c, 0x0a, 0x18, 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x4f, 0x50, 0x54, 0x49, - 0x4f, 0x4e, 0x5f, 0x4e, 0x4f, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x5f, 0x56, 0x45, 0x54, 0x4f, 0x10, - 0x04, 0x1a, 0x04, 0x88, 0xa3, 0x1e, 0x00, 0x2a, 0xce, 0x01, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x70, - 0x6f, 0x73, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, 0x0a, 0x1b, 0x50, 0x52, - 0x4f, 0x50, 0x4f, 0x53, 0x41, 0x4c, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, - 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x50, - 0x52, 0x4f, 0x50, 0x4f, 0x53, 0x41, 0x4c, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x53, - 0x55, 0x42, 0x4d, 0x49, 0x54, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x1c, 0x0a, 0x18, 0x50, 0x52, - 0x4f, 0x50, 0x4f, 0x53, 0x41, 0x4c, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x41, 0x43, - 0x43, 0x45, 0x50, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, 0x1c, 0x0a, 0x18, 0x50, 0x52, 0x4f, 0x50, - 0x4f, 0x53, 0x41, 0x4c, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x52, 0x45, 0x4a, 0x45, - 0x43, 0x54, 0x45, 0x44, 0x10, 0x03, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x52, 0x4f, 0x50, 0x4f, 0x53, - 0x41, 0x4c, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x41, 0x42, 0x4f, 0x52, 0x54, 0x45, - 0x44, 0x10, 0x04, 0x12, 0x1d, 0x0a, 0x19, 0x50, 0x52, 0x4f, 0x50, 0x4f, 0x53, 0x41, 0x4c, 0x5f, - 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x44, 0x52, 0x41, 0x57, 0x4e, - 0x10, 0x05, 0x1a, 0x04, 0x88, 0xa3, 0x1e, 0x00, 0x2a, 0xba, 0x01, 0x0a, 0x16, 0x50, 0x72, 0x6f, - 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x12, 0x28, 0x0a, 0x24, 0x50, 0x52, 0x4f, 0x50, 0x4f, 0x53, 0x41, 0x4c, 0x5f, - 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x4f, 0x52, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x5f, - 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x24, 0x0a, - 0x20, 0x50, 0x52, 0x4f, 0x50, 0x4f, 0x53, 0x41, 0x4c, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, - 0x4f, 0x52, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x52, 0x55, - 0x4e, 0x10, 0x01, 0x12, 0x24, 0x0a, 0x20, 0x50, 0x52, 0x4f, 0x50, 0x4f, 0x53, 0x41, 0x4c, 0x5f, - 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x4f, 0x52, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x5f, - 0x53, 0x55, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x02, 0x12, 0x24, 0x0a, 0x20, 0x50, 0x52, 0x4f, - 0x50, 0x4f, 0x53, 0x41, 0x4c, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x4f, 0x52, 0x5f, 0x52, - 0x45, 0x53, 0x55, 0x4c, 0x54, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x03, 0x1a, - 0x04, 0x88, 0xa3, 0x1e, 0x00, 0x42, 0xa9, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x54, - 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x28, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x3b, 0x67, 0x72, - 0x6f, 0x75, 0x70, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x47, 0x58, 0xaa, 0x02, 0x0f, 0x43, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0f, - 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x5c, 0x56, 0x31, 0xe2, - 0x02, 0x1b, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x5c, 0x56, - 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, - 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x3a, 0x3a, 0x56, - 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cosmos_group_v1_types_proto_rawDescOnce sync.Once - file_cosmos_group_v1_types_proto_rawDescData = file_cosmos_group_v1_types_proto_rawDesc -) - -func file_cosmos_group_v1_types_proto_rawDescGZIP() []byte { - file_cosmos_group_v1_types_proto_rawDescOnce.Do(func() { - file_cosmos_group_v1_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_group_v1_types_proto_rawDescData) - }) - return file_cosmos_group_v1_types_proto_rawDescData -} - -var file_cosmos_group_v1_types_proto_enumTypes = make([]protoimpl.EnumInfo, 3) -var file_cosmos_group_v1_types_proto_msgTypes = make([]protoimpl.MessageInfo, 11) -var file_cosmos_group_v1_types_proto_goTypes = []interface{}{ - (VoteOption)(0), // 0: cosmos.group.v1.VoteOption - (ProposalStatus)(0), // 1: cosmos.group.v1.ProposalStatus - (ProposalExecutorResult)(0), // 2: cosmos.group.v1.ProposalExecutorResult - (*Member)(nil), // 3: cosmos.group.v1.Member - (*MemberRequest)(nil), // 4: cosmos.group.v1.MemberRequest - (*ThresholdDecisionPolicy)(nil), // 5: cosmos.group.v1.ThresholdDecisionPolicy - (*PercentageDecisionPolicy)(nil), // 6: cosmos.group.v1.PercentageDecisionPolicy - (*DecisionPolicyWindows)(nil), // 7: cosmos.group.v1.DecisionPolicyWindows - (*GroupInfo)(nil), // 8: cosmos.group.v1.GroupInfo - (*GroupMember)(nil), // 9: cosmos.group.v1.GroupMember - (*GroupPolicyInfo)(nil), // 10: cosmos.group.v1.GroupPolicyInfo - (*Proposal)(nil), // 11: cosmos.group.v1.Proposal - (*TallyResult)(nil), // 12: cosmos.group.v1.TallyResult - (*Vote)(nil), // 13: cosmos.group.v1.Vote - (*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 15: google.protobuf.Duration - (*anypb.Any)(nil), // 16: google.protobuf.Any -} -var file_cosmos_group_v1_types_proto_depIdxs = []int32{ - 14, // 0: cosmos.group.v1.Member.added_at:type_name -> google.protobuf.Timestamp - 7, // 1: cosmos.group.v1.ThresholdDecisionPolicy.windows:type_name -> cosmos.group.v1.DecisionPolicyWindows - 7, // 2: cosmos.group.v1.PercentageDecisionPolicy.windows:type_name -> cosmos.group.v1.DecisionPolicyWindows - 15, // 3: cosmos.group.v1.DecisionPolicyWindows.voting_period:type_name -> google.protobuf.Duration - 15, // 4: cosmos.group.v1.DecisionPolicyWindows.min_execution_period:type_name -> google.protobuf.Duration - 14, // 5: cosmos.group.v1.GroupInfo.created_at:type_name -> google.protobuf.Timestamp - 3, // 6: cosmos.group.v1.GroupMember.member:type_name -> cosmos.group.v1.Member - 16, // 7: cosmos.group.v1.GroupPolicyInfo.decision_policy:type_name -> google.protobuf.Any - 14, // 8: cosmos.group.v1.GroupPolicyInfo.created_at:type_name -> google.protobuf.Timestamp - 14, // 9: cosmos.group.v1.Proposal.submit_time:type_name -> google.protobuf.Timestamp - 1, // 10: cosmos.group.v1.Proposal.status:type_name -> cosmos.group.v1.ProposalStatus - 12, // 11: cosmos.group.v1.Proposal.final_tally_result:type_name -> cosmos.group.v1.TallyResult - 14, // 12: cosmos.group.v1.Proposal.voting_period_end:type_name -> google.protobuf.Timestamp - 2, // 13: cosmos.group.v1.Proposal.executor_result:type_name -> cosmos.group.v1.ProposalExecutorResult - 16, // 14: cosmos.group.v1.Proposal.messages:type_name -> google.protobuf.Any - 0, // 15: cosmos.group.v1.Vote.option:type_name -> cosmos.group.v1.VoteOption - 14, // 16: cosmos.group.v1.Vote.submit_time:type_name -> google.protobuf.Timestamp - 17, // [17:17] is the sub-list for method output_type - 17, // [17:17] is the sub-list for method input_type - 17, // [17:17] is the sub-list for extension type_name - 17, // [17:17] is the sub-list for extension extendee - 0, // [0:17] is the sub-list for field type_name -} - -func init() { file_cosmos_group_v1_types_proto_init() } -func file_cosmos_group_v1_types_proto_init() { - if File_cosmos_group_v1_types_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cosmos_group_v1_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Member); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MemberRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ThresholdDecisionPolicy); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_types_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PercentageDecisionPolicy); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_types_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DecisionPolicyWindows); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_types_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GroupInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_types_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GroupMember); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_types_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GroupPolicyInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_types_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Proposal); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_types_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TallyResult); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_group_v1_types_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Vote); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cosmos_group_v1_types_proto_rawDesc, - NumEnums: 3, - NumMessages: 11, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cosmos_group_v1_types_proto_goTypes, - DependencyIndexes: file_cosmos_group_v1_types_proto_depIdxs, - EnumInfos: file_cosmos_group_v1_types_proto_enumTypes, - MessageInfos: file_cosmos_group_v1_types_proto_msgTypes, - }.Build() - File_cosmos_group_v1_types_proto = out.File - file_cosmos_group_v1_types_proto_rawDesc = nil - file_cosmos_group_v1_types_proto_goTypes = nil - file_cosmos_group_v1_types_proto_depIdxs = nil -} diff --git a/api/cosmos/nft/module/v1/module.pulsar.go b/api/cosmos/nft/module/v1/module.pulsar.go deleted file mode 100644 index c81c030136..0000000000 --- a/api/cosmos/nft/module/v1/module.pulsar.go +++ /dev/null @@ -1,501 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package modulev1 - -import ( - _ "cosmossdk.io/api/cosmos/app/v1alpha1" - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_Module protoreflect.MessageDescriptor -) - -func init() { - file_cosmos_nft_module_v1_module_proto_init() - md_Module = File_cosmos_nft_module_v1_module_proto.Messages().ByName("Module") -} - -var _ protoreflect.Message = (*fastReflection_Module)(nil) - -type fastReflection_Module Module - -func (x *Module) ProtoReflect() protoreflect.Message { - return (*fastReflection_Module)(x) -} - -func (x *Module) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_nft_module_v1_module_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_Module_messageType fastReflection_Module_messageType -var _ protoreflect.MessageType = fastReflection_Module_messageType{} - -type fastReflection_Module_messageType struct{} - -func (x fastReflection_Module_messageType) Zero() protoreflect.Message { - return (*fastReflection_Module)(nil) -} -func (x fastReflection_Module_messageType) New() protoreflect.Message { - return new(fastReflection_Module) -} -func (x fastReflection_Module_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Module -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Module) Descriptor() protoreflect.MessageDescriptor { - return md_Module -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_Module) Type() protoreflect.MessageType { - return _fastReflection_Module_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Module) New() protoreflect.Message { - return new(fastReflection_Module) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Module) Interface() protoreflect.ProtoMessage { - return (*Module)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_Module) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.module.v1.Module")) - } - panic(fmt.Errorf("message cosmos.nft.module.v1.Module does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.module.v1.Module")) - } - panic(fmt.Errorf("message cosmos.nft.module.v1.Module does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.module.v1.Module")) - } - panic(fmt.Errorf("message cosmos.nft.module.v1.Module does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Module) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.module.v1.Module")) - } - panic(fmt.Errorf("message cosmos.nft.module.v1.Module does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.module.v1.Module")) - } - panic(fmt.Errorf("message cosmos.nft.module.v1.Module does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_Module) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.module.v1.Module")) - } - panic(fmt.Errorf("message cosmos.nft.module.v1.Module does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_Module) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.nft.module.v1.Module", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_Module) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Module) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_Module) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Module) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*Module) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*Module) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cosmos/nft/module/v1/module.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Module is the config object of the nft module. -type Module struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *Module) Reset() { - *x = Module{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_nft_module_v1_module_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Module) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Module) ProtoMessage() {} - -// Deprecated: Use Module.ProtoReflect.Descriptor instead. -func (*Module) Descriptor() ([]byte, []int) { - return file_cosmos_nft_module_v1_module_proto_rawDescGZIP(), []int{0} -} - -var File_cosmos_nft_module_v1_module_proto protoreflect.FileDescriptor - -var file_cosmos_nft_module_v1_module_proto_rawDesc = []byte{ - 0x0a, 0x21, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6e, 0x66, 0x74, 0x2f, 0x6d, 0x6f, 0x64, - 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6e, 0x66, 0x74, 0x2e, - 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6d, - 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3c, 0x0a, 0x06, 0x4d, - 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x3a, 0x32, 0xba, 0xc0, 0x96, 0xda, 0x01, 0x2c, 0x0a, 0x2a, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x69, 0x62, 0x2f, 0x78, 0x2f, 0x6e, 0x66, 0x74, 0x42, 0xca, 0x01, 0x0a, 0x18, 0x63, 0x6f, - 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6e, 0x66, 0x74, 0x2e, 0x6d, 0x6f, 0x64, - 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, - 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6e, - 0x66, 0x74, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x6d, 0x6f, 0x64, - 0x75, 0x6c, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x4e, 0x4d, 0xaa, 0x02, 0x14, 0x43, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x4e, 0x66, 0x74, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, - 0x56, 0x31, 0xca, 0x02, 0x14, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x4e, 0x66, 0x74, 0x5c, - 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x20, 0x43, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x5c, 0x4e, 0x66, 0x74, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x17, 0x43, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x4e, 0x66, 0x74, 0x3a, 0x3a, 0x4d, 0x6f, 0x64, 0x75, - 0x6c, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cosmos_nft_module_v1_module_proto_rawDescOnce sync.Once - file_cosmos_nft_module_v1_module_proto_rawDescData = file_cosmos_nft_module_v1_module_proto_rawDesc -) - -func file_cosmos_nft_module_v1_module_proto_rawDescGZIP() []byte { - file_cosmos_nft_module_v1_module_proto_rawDescOnce.Do(func() { - file_cosmos_nft_module_v1_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_nft_module_v1_module_proto_rawDescData) - }) - return file_cosmos_nft_module_v1_module_proto_rawDescData -} - -var file_cosmos_nft_module_v1_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_cosmos_nft_module_v1_module_proto_goTypes = []interface{}{ - (*Module)(nil), // 0: cosmos.nft.module.v1.Module -} -var file_cosmos_nft_module_v1_module_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_cosmos_nft_module_v1_module_proto_init() } -func file_cosmos_nft_module_v1_module_proto_init() { - if File_cosmos_nft_module_v1_module_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cosmos_nft_module_v1_module_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Module); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cosmos_nft_module_v1_module_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cosmos_nft_module_v1_module_proto_goTypes, - DependencyIndexes: file_cosmos_nft_module_v1_module_proto_depIdxs, - MessageInfos: file_cosmos_nft_module_v1_module_proto_msgTypes, - }.Build() - File_cosmos_nft_module_v1_module_proto = out.File - file_cosmos_nft_module_v1_module_proto_rawDesc = nil - file_cosmos_nft_module_v1_module_proto_goTypes = nil - file_cosmos_nft_module_v1_module_proto_depIdxs = nil -} diff --git a/api/cosmos/nft/v1beta1/event.pulsar.go b/api/cosmos/nft/v1beta1/event.pulsar.go deleted file mode 100644 index 16b7a6c26c..0000000000 --- a/api/cosmos/nft/v1beta1/event.pulsar.go +++ /dev/null @@ -1,2035 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package nftv1beta1 - -import ( - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_EventSend protoreflect.MessageDescriptor - fd_EventSend_class_id protoreflect.FieldDescriptor - fd_EventSend_id protoreflect.FieldDescriptor - fd_EventSend_sender protoreflect.FieldDescriptor - fd_EventSend_receiver protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_nft_v1beta1_event_proto_init() - md_EventSend = File_cosmos_nft_v1beta1_event_proto.Messages().ByName("EventSend") - fd_EventSend_class_id = md_EventSend.Fields().ByName("class_id") - fd_EventSend_id = md_EventSend.Fields().ByName("id") - fd_EventSend_sender = md_EventSend.Fields().ByName("sender") - fd_EventSend_receiver = md_EventSend.Fields().ByName("receiver") -} - -var _ protoreflect.Message = (*fastReflection_EventSend)(nil) - -type fastReflection_EventSend EventSend - -func (x *EventSend) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventSend)(x) -} - -func (x *EventSend) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_nft_v1beta1_event_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_EventSend_messageType fastReflection_EventSend_messageType -var _ protoreflect.MessageType = fastReflection_EventSend_messageType{} - -type fastReflection_EventSend_messageType struct{} - -func (x fastReflection_EventSend_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventSend)(nil) -} -func (x fastReflection_EventSend_messageType) New() protoreflect.Message { - return new(fastReflection_EventSend) -} -func (x fastReflection_EventSend_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventSend -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_EventSend) Descriptor() protoreflect.MessageDescriptor { - return md_EventSend -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_EventSend) Type() protoreflect.MessageType { - return _fastReflection_EventSend_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventSend) New() protoreflect.Message { - return new(fastReflection_EventSend) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_EventSend) Interface() protoreflect.ProtoMessage { - return (*EventSend)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_EventSend) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ClassId != "" { - value := protoreflect.ValueOfString(x.ClassId) - if !f(fd_EventSend_class_id, value) { - return - } - } - if x.Id != "" { - value := protoreflect.ValueOfString(x.Id) - if !f(fd_EventSend_id, value) { - return - } - } - if x.Sender != "" { - value := protoreflect.ValueOfString(x.Sender) - if !f(fd_EventSend_sender, value) { - return - } - } - if x.Receiver != "" { - value := protoreflect.ValueOfString(x.Receiver) - if !f(fd_EventSend_receiver, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_EventSend) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.nft.v1beta1.EventSend.class_id": - return x.ClassId != "" - case "cosmos.nft.v1beta1.EventSend.id": - return x.Id != "" - case "cosmos.nft.v1beta1.EventSend.sender": - return x.Sender != "" - case "cosmos.nft.v1beta1.EventSend.receiver": - return x.Receiver != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.EventSend")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.EventSend does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventSend) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.EventSend.class_id": - x.ClassId = "" - case "cosmos.nft.v1beta1.EventSend.id": - x.Id = "" - case "cosmos.nft.v1beta1.EventSend.sender": - x.Sender = "" - case "cosmos.nft.v1beta1.EventSend.receiver": - x.Receiver = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.EventSend")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.EventSend does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_EventSend) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.nft.v1beta1.EventSend.class_id": - value := x.ClassId - return protoreflect.ValueOfString(value) - case "cosmos.nft.v1beta1.EventSend.id": - value := x.Id - return protoreflect.ValueOfString(value) - case "cosmos.nft.v1beta1.EventSend.sender": - value := x.Sender - return protoreflect.ValueOfString(value) - case "cosmos.nft.v1beta1.EventSend.receiver": - value := x.Receiver - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.EventSend")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.EventSend does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventSend) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.EventSend.class_id": - x.ClassId = value.Interface().(string) - case "cosmos.nft.v1beta1.EventSend.id": - x.Id = value.Interface().(string) - case "cosmos.nft.v1beta1.EventSend.sender": - x.Sender = value.Interface().(string) - case "cosmos.nft.v1beta1.EventSend.receiver": - x.Receiver = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.EventSend")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.EventSend does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventSend) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.EventSend.class_id": - panic(fmt.Errorf("field class_id of message cosmos.nft.v1beta1.EventSend is not mutable")) - case "cosmos.nft.v1beta1.EventSend.id": - panic(fmt.Errorf("field id of message cosmos.nft.v1beta1.EventSend is not mutable")) - case "cosmos.nft.v1beta1.EventSend.sender": - panic(fmt.Errorf("field sender of message cosmos.nft.v1beta1.EventSend is not mutable")) - case "cosmos.nft.v1beta1.EventSend.receiver": - panic(fmt.Errorf("field receiver of message cosmos.nft.v1beta1.EventSend is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.EventSend")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.EventSend does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_EventSend) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.EventSend.class_id": - return protoreflect.ValueOfString("") - case "cosmos.nft.v1beta1.EventSend.id": - return protoreflect.ValueOfString("") - case "cosmos.nft.v1beta1.EventSend.sender": - return protoreflect.ValueOfString("") - case "cosmos.nft.v1beta1.EventSend.receiver": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.EventSend")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.EventSend does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_EventSend) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.nft.v1beta1.EventSend", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_EventSend) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventSend) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_EventSend) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_EventSend) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventSend) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.ClassId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Id) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Sender) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Receiver) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EventSend) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Receiver) > 0 { - i -= len(x.Receiver) - copy(dAtA[i:], x.Receiver) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Receiver))) - i-- - dAtA[i] = 0x22 - } - if len(x.Sender) > 0 { - i -= len(x.Sender) - copy(dAtA[i:], x.Sender) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Sender))) - i-- - dAtA[i] = 0x1a - } - if len(x.Id) > 0 { - i -= len(x.Id) - copy(dAtA[i:], x.Id) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Id))) - i-- - dAtA[i] = 0x12 - } - if len(x.ClassId) > 0 { - i -= len(x.ClassId) - copy(dAtA[i:], x.ClassId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClassId))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EventSend) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventSend: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventSend: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ClassId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Sender = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Receiver", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Receiver = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_EventMint protoreflect.MessageDescriptor - fd_EventMint_class_id protoreflect.FieldDescriptor - fd_EventMint_id protoreflect.FieldDescriptor - fd_EventMint_owner protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_nft_v1beta1_event_proto_init() - md_EventMint = File_cosmos_nft_v1beta1_event_proto.Messages().ByName("EventMint") - fd_EventMint_class_id = md_EventMint.Fields().ByName("class_id") - fd_EventMint_id = md_EventMint.Fields().ByName("id") - fd_EventMint_owner = md_EventMint.Fields().ByName("owner") -} - -var _ protoreflect.Message = (*fastReflection_EventMint)(nil) - -type fastReflection_EventMint EventMint - -func (x *EventMint) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventMint)(x) -} - -func (x *EventMint) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_nft_v1beta1_event_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_EventMint_messageType fastReflection_EventMint_messageType -var _ protoreflect.MessageType = fastReflection_EventMint_messageType{} - -type fastReflection_EventMint_messageType struct{} - -func (x fastReflection_EventMint_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventMint)(nil) -} -func (x fastReflection_EventMint_messageType) New() protoreflect.Message { - return new(fastReflection_EventMint) -} -func (x fastReflection_EventMint_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventMint -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_EventMint) Descriptor() protoreflect.MessageDescriptor { - return md_EventMint -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_EventMint) Type() protoreflect.MessageType { - return _fastReflection_EventMint_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventMint) New() protoreflect.Message { - return new(fastReflection_EventMint) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_EventMint) Interface() protoreflect.ProtoMessage { - return (*EventMint)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_EventMint) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ClassId != "" { - value := protoreflect.ValueOfString(x.ClassId) - if !f(fd_EventMint_class_id, value) { - return - } - } - if x.Id != "" { - value := protoreflect.ValueOfString(x.Id) - if !f(fd_EventMint_id, value) { - return - } - } - if x.Owner != "" { - value := protoreflect.ValueOfString(x.Owner) - if !f(fd_EventMint_owner, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_EventMint) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.nft.v1beta1.EventMint.class_id": - return x.ClassId != "" - case "cosmos.nft.v1beta1.EventMint.id": - return x.Id != "" - case "cosmos.nft.v1beta1.EventMint.owner": - return x.Owner != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.EventMint")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.EventMint does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventMint) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.EventMint.class_id": - x.ClassId = "" - case "cosmos.nft.v1beta1.EventMint.id": - x.Id = "" - case "cosmos.nft.v1beta1.EventMint.owner": - x.Owner = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.EventMint")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.EventMint does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_EventMint) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.nft.v1beta1.EventMint.class_id": - value := x.ClassId - return protoreflect.ValueOfString(value) - case "cosmos.nft.v1beta1.EventMint.id": - value := x.Id - return protoreflect.ValueOfString(value) - case "cosmos.nft.v1beta1.EventMint.owner": - value := x.Owner - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.EventMint")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.EventMint does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventMint) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.EventMint.class_id": - x.ClassId = value.Interface().(string) - case "cosmos.nft.v1beta1.EventMint.id": - x.Id = value.Interface().(string) - case "cosmos.nft.v1beta1.EventMint.owner": - x.Owner = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.EventMint")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.EventMint does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventMint) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.EventMint.class_id": - panic(fmt.Errorf("field class_id of message cosmos.nft.v1beta1.EventMint is not mutable")) - case "cosmos.nft.v1beta1.EventMint.id": - panic(fmt.Errorf("field id of message cosmos.nft.v1beta1.EventMint is not mutable")) - case "cosmos.nft.v1beta1.EventMint.owner": - panic(fmt.Errorf("field owner of message cosmos.nft.v1beta1.EventMint is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.EventMint")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.EventMint does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_EventMint) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.EventMint.class_id": - return protoreflect.ValueOfString("") - case "cosmos.nft.v1beta1.EventMint.id": - return protoreflect.ValueOfString("") - case "cosmos.nft.v1beta1.EventMint.owner": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.EventMint")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.EventMint does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_EventMint) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.nft.v1beta1.EventMint", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_EventMint) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventMint) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_EventMint) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_EventMint) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventMint) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.ClassId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Id) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Owner) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EventMint) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Owner) > 0 { - i -= len(x.Owner) - copy(dAtA[i:], x.Owner) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Owner))) - i-- - dAtA[i] = 0x1a - } - if len(x.Id) > 0 { - i -= len(x.Id) - copy(dAtA[i:], x.Id) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Id))) - i-- - dAtA[i] = 0x12 - } - if len(x.ClassId) > 0 { - i -= len(x.ClassId) - copy(dAtA[i:], x.ClassId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClassId))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EventMint) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventMint: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventMint: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ClassId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Owner = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_EventBurn protoreflect.MessageDescriptor - fd_EventBurn_class_id protoreflect.FieldDescriptor - fd_EventBurn_id protoreflect.FieldDescriptor - fd_EventBurn_owner protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_nft_v1beta1_event_proto_init() - md_EventBurn = File_cosmos_nft_v1beta1_event_proto.Messages().ByName("EventBurn") - fd_EventBurn_class_id = md_EventBurn.Fields().ByName("class_id") - fd_EventBurn_id = md_EventBurn.Fields().ByName("id") - fd_EventBurn_owner = md_EventBurn.Fields().ByName("owner") -} - -var _ protoreflect.Message = (*fastReflection_EventBurn)(nil) - -type fastReflection_EventBurn EventBurn - -func (x *EventBurn) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventBurn)(x) -} - -func (x *EventBurn) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_nft_v1beta1_event_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_EventBurn_messageType fastReflection_EventBurn_messageType -var _ protoreflect.MessageType = fastReflection_EventBurn_messageType{} - -type fastReflection_EventBurn_messageType struct{} - -func (x fastReflection_EventBurn_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventBurn)(nil) -} -func (x fastReflection_EventBurn_messageType) New() protoreflect.Message { - return new(fastReflection_EventBurn) -} -func (x fastReflection_EventBurn_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventBurn -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_EventBurn) Descriptor() protoreflect.MessageDescriptor { - return md_EventBurn -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_EventBurn) Type() protoreflect.MessageType { - return _fastReflection_EventBurn_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventBurn) New() protoreflect.Message { - return new(fastReflection_EventBurn) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_EventBurn) Interface() protoreflect.ProtoMessage { - return (*EventBurn)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_EventBurn) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ClassId != "" { - value := protoreflect.ValueOfString(x.ClassId) - if !f(fd_EventBurn_class_id, value) { - return - } - } - if x.Id != "" { - value := protoreflect.ValueOfString(x.Id) - if !f(fd_EventBurn_id, value) { - return - } - } - if x.Owner != "" { - value := protoreflect.ValueOfString(x.Owner) - if !f(fd_EventBurn_owner, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_EventBurn) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.nft.v1beta1.EventBurn.class_id": - return x.ClassId != "" - case "cosmos.nft.v1beta1.EventBurn.id": - return x.Id != "" - case "cosmos.nft.v1beta1.EventBurn.owner": - return x.Owner != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.EventBurn")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.EventBurn does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventBurn) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.EventBurn.class_id": - x.ClassId = "" - case "cosmos.nft.v1beta1.EventBurn.id": - x.Id = "" - case "cosmos.nft.v1beta1.EventBurn.owner": - x.Owner = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.EventBurn")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.EventBurn does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_EventBurn) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.nft.v1beta1.EventBurn.class_id": - value := x.ClassId - return protoreflect.ValueOfString(value) - case "cosmos.nft.v1beta1.EventBurn.id": - value := x.Id - return protoreflect.ValueOfString(value) - case "cosmos.nft.v1beta1.EventBurn.owner": - value := x.Owner - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.EventBurn")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.EventBurn does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventBurn) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.EventBurn.class_id": - x.ClassId = value.Interface().(string) - case "cosmos.nft.v1beta1.EventBurn.id": - x.Id = value.Interface().(string) - case "cosmos.nft.v1beta1.EventBurn.owner": - x.Owner = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.EventBurn")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.EventBurn does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventBurn) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.EventBurn.class_id": - panic(fmt.Errorf("field class_id of message cosmos.nft.v1beta1.EventBurn is not mutable")) - case "cosmos.nft.v1beta1.EventBurn.id": - panic(fmt.Errorf("field id of message cosmos.nft.v1beta1.EventBurn is not mutable")) - case "cosmos.nft.v1beta1.EventBurn.owner": - panic(fmt.Errorf("field owner of message cosmos.nft.v1beta1.EventBurn is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.EventBurn")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.EventBurn does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_EventBurn) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.EventBurn.class_id": - return protoreflect.ValueOfString("") - case "cosmos.nft.v1beta1.EventBurn.id": - return protoreflect.ValueOfString("") - case "cosmos.nft.v1beta1.EventBurn.owner": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.EventBurn")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.EventBurn does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_EventBurn) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.nft.v1beta1.EventBurn", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_EventBurn) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventBurn) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_EventBurn) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_EventBurn) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventBurn) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.ClassId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Id) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Owner) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EventBurn) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Owner) > 0 { - i -= len(x.Owner) - copy(dAtA[i:], x.Owner) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Owner))) - i-- - dAtA[i] = 0x1a - } - if len(x.Id) > 0 { - i -= len(x.Id) - copy(dAtA[i:], x.Id) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Id))) - i-- - dAtA[i] = 0x12 - } - if len(x.ClassId) > 0 { - i -= len(x.ClassId) - copy(dAtA[i:], x.ClassId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClassId))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EventBurn) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventBurn: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventBurn: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ClassId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Owner = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cosmos/nft/v1beta1/event.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// EventSend is emitted on Msg/Send -type EventSend struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // class_id associated with the nft - ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` - // id is a unique identifier of the nft - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - // sender is the address of the owner of nft - Sender string `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"` - // receiver is the receiver address of nft - Receiver string `protobuf:"bytes,4,opt,name=receiver,proto3" json:"receiver,omitempty"` -} - -func (x *EventSend) Reset() { - *x = EventSend{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_nft_v1beta1_event_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EventSend) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EventSend) ProtoMessage() {} - -// Deprecated: Use EventSend.ProtoReflect.Descriptor instead. -func (*EventSend) Descriptor() ([]byte, []int) { - return file_cosmos_nft_v1beta1_event_proto_rawDescGZIP(), []int{0} -} - -func (x *EventSend) GetClassId() string { - if x != nil { - return x.ClassId - } - return "" -} - -func (x *EventSend) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *EventSend) GetSender() string { - if x != nil { - return x.Sender - } - return "" -} - -func (x *EventSend) GetReceiver() string { - if x != nil { - return x.Receiver - } - return "" -} - -// EventMint is emitted on Mint -type EventMint struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // class_id associated with the nft - ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` - // id is a unique identifier of the nft - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - // owner is the owner address of the nft - Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` -} - -func (x *EventMint) Reset() { - *x = EventMint{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_nft_v1beta1_event_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EventMint) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EventMint) ProtoMessage() {} - -// Deprecated: Use EventMint.ProtoReflect.Descriptor instead. -func (*EventMint) Descriptor() ([]byte, []int) { - return file_cosmos_nft_v1beta1_event_proto_rawDescGZIP(), []int{1} -} - -func (x *EventMint) GetClassId() string { - if x != nil { - return x.ClassId - } - return "" -} - -func (x *EventMint) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *EventMint) GetOwner() string { - if x != nil { - return x.Owner - } - return "" -} - -// EventBurn is emitted on Burn -type EventBurn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // class_id associated with the nft - ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` - // id is a unique identifier of the nft - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - // owner is the owner address of the nft - Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` -} - -func (x *EventBurn) Reset() { - *x = EventBurn{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_nft_v1beta1_event_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EventBurn) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EventBurn) ProtoMessage() {} - -// Deprecated: Use EventBurn.ProtoReflect.Descriptor instead. -func (*EventBurn) Descriptor() ([]byte, []int) { - return file_cosmos_nft_v1beta1_event_proto_rawDescGZIP(), []int{2} -} - -func (x *EventBurn) GetClassId() string { - if x != nil { - return x.ClassId - } - return "" -} - -func (x *EventBurn) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *EventBurn) GetOwner() string { - if x != nil { - return x.Owner - } - return "" -} - -var File_cosmos_nft_v1beta1_event_proto protoreflect.FileDescriptor - -var file_cosmos_nft_v1beta1_event_proto_rawDesc = []byte{ - 0x0a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6e, 0x66, 0x74, 0x2f, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x12, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6e, 0x66, 0x74, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x22, 0x6a, 0x0a, 0x09, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x6e, - 0x64, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, - 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, - 0x6e, 0x64, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, - 0x22, 0x4c, 0x0a, 0x09, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4d, 0x69, 0x6e, 0x74, 0x12, 0x19, 0x0a, - 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, - 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x22, 0x4c, - 0x0a, 0x09, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x75, 0x72, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x63, - 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, - 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x42, 0xbe, 0x01, 0x0a, - 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6e, 0x66, 0x74, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0a, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, - 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6e, - 0x66, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x6e, 0x66, 0x74, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x4e, 0x58, 0xaa, 0x02, 0x12, 0x43, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x4e, 0x66, 0x74, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0xca, 0x02, 0x12, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x4e, 0x66, 0x74, 0x5c, 0x56, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x1e, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x4e, - 0x66, 0x74, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, - 0x3a, 0x4e, 0x66, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cosmos_nft_v1beta1_event_proto_rawDescOnce sync.Once - file_cosmos_nft_v1beta1_event_proto_rawDescData = file_cosmos_nft_v1beta1_event_proto_rawDesc -) - -func file_cosmos_nft_v1beta1_event_proto_rawDescGZIP() []byte { - file_cosmos_nft_v1beta1_event_proto_rawDescOnce.Do(func() { - file_cosmos_nft_v1beta1_event_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_nft_v1beta1_event_proto_rawDescData) - }) - return file_cosmos_nft_v1beta1_event_proto_rawDescData -} - -var file_cosmos_nft_v1beta1_event_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_cosmos_nft_v1beta1_event_proto_goTypes = []interface{}{ - (*EventSend)(nil), // 0: cosmos.nft.v1beta1.EventSend - (*EventMint)(nil), // 1: cosmos.nft.v1beta1.EventMint - (*EventBurn)(nil), // 2: cosmos.nft.v1beta1.EventBurn -} -var file_cosmos_nft_v1beta1_event_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_cosmos_nft_v1beta1_event_proto_init() } -func file_cosmos_nft_v1beta1_event_proto_init() { - if File_cosmos_nft_v1beta1_event_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cosmos_nft_v1beta1_event_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventSend); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_nft_v1beta1_event_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventMint); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_nft_v1beta1_event_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventBurn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cosmos_nft_v1beta1_event_proto_rawDesc, - NumEnums: 0, - NumMessages: 3, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cosmos_nft_v1beta1_event_proto_goTypes, - DependencyIndexes: file_cosmos_nft_v1beta1_event_proto_depIdxs, - MessageInfos: file_cosmos_nft_v1beta1_event_proto_msgTypes, - }.Build() - File_cosmos_nft_v1beta1_event_proto = out.File - file_cosmos_nft_v1beta1_event_proto_rawDesc = nil - file_cosmos_nft_v1beta1_event_proto_goTypes = nil - file_cosmos_nft_v1beta1_event_proto_depIdxs = nil -} diff --git a/api/cosmos/nft/v1beta1/genesis.pulsar.go b/api/cosmos/nft/v1beta1/genesis.pulsar.go deleted file mode 100644 index c2a085a307..0000000000 --- a/api/cosmos/nft/v1beta1/genesis.pulsar.go +++ /dev/null @@ -1,1426 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package nftv1beta1 - -import ( - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var _ protoreflect.List = (*_GenesisState_1_list)(nil) - -type _GenesisState_1_list struct { - list *[]*Class -} - -func (x *_GenesisState_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_GenesisState_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_GenesisState_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Class) - (*x.list)[i] = concreteValue -} - -func (x *_GenesisState_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Class) - *x.list = append(*x.list, concreteValue) -} - -func (x *_GenesisState_1_list) AppendMutable() protoreflect.Value { - v := new(Class) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_GenesisState_1_list) NewElement() protoreflect.Value { - v := new(Class) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_1_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_GenesisState_2_list)(nil) - -type _GenesisState_2_list struct { - list *[]*Entry -} - -func (x *_GenesisState_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_GenesisState_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_GenesisState_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Entry) - (*x.list)[i] = concreteValue -} - -func (x *_GenesisState_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Entry) - *x.list = append(*x.list, concreteValue) -} - -func (x *_GenesisState_2_list) AppendMutable() protoreflect.Value { - v := new(Entry) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_2_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_GenesisState_2_list) NewElement() protoreflect.Value { - v := new(Entry) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_2_list) IsValid() bool { - return x.list != nil -} - -var ( - md_GenesisState protoreflect.MessageDescriptor - fd_GenesisState_classes protoreflect.FieldDescriptor - fd_GenesisState_entries protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_nft_v1beta1_genesis_proto_init() - md_GenesisState = File_cosmos_nft_v1beta1_genesis_proto.Messages().ByName("GenesisState") - fd_GenesisState_classes = md_GenesisState.Fields().ByName("classes") - fd_GenesisState_entries = md_GenesisState.Fields().ByName("entries") -} - -var _ protoreflect.Message = (*fastReflection_GenesisState)(nil) - -type fastReflection_GenesisState GenesisState - -func (x *GenesisState) ProtoReflect() protoreflect.Message { - return (*fastReflection_GenesisState)(x) -} - -func (x *GenesisState) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_nft_v1beta1_genesis_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_GenesisState_messageType fastReflection_GenesisState_messageType -var _ protoreflect.MessageType = fastReflection_GenesisState_messageType{} - -type fastReflection_GenesisState_messageType struct{} - -func (x fastReflection_GenesisState_messageType) Zero() protoreflect.Message { - return (*fastReflection_GenesisState)(nil) -} -func (x fastReflection_GenesisState_messageType) New() protoreflect.Message { - return new(fastReflection_GenesisState) -} -func (x fastReflection_GenesisState_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_GenesisState -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_GenesisState) Descriptor() protoreflect.MessageDescriptor { - return md_GenesisState -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_GenesisState) Type() protoreflect.MessageType { - return _fastReflection_GenesisState_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_GenesisState) New() protoreflect.Message { - return new(fastReflection_GenesisState) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_GenesisState) Interface() protoreflect.ProtoMessage { - return (*GenesisState)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Classes) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_1_list{list: &x.Classes}) - if !f(fd_GenesisState_classes, value) { - return - } - } - if len(x.Entries) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_2_list{list: &x.Entries}) - if !f(fd_GenesisState_entries, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.nft.v1beta1.GenesisState.classes": - return len(x.Classes) != 0 - case "cosmos.nft.v1beta1.GenesisState.entries": - return len(x.Entries) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.GenesisState")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.GenesisState does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.GenesisState.classes": - x.Classes = nil - case "cosmos.nft.v1beta1.GenesisState.entries": - x.Entries = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.GenesisState")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.GenesisState does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.nft.v1beta1.GenesisState.classes": - if len(x.Classes) == 0 { - return protoreflect.ValueOfList(&_GenesisState_1_list{}) - } - listValue := &_GenesisState_1_list{list: &x.Classes} - return protoreflect.ValueOfList(listValue) - case "cosmos.nft.v1beta1.GenesisState.entries": - if len(x.Entries) == 0 { - return protoreflect.ValueOfList(&_GenesisState_2_list{}) - } - listValue := &_GenesisState_2_list{list: &x.Entries} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.GenesisState")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.GenesisState does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.GenesisState.classes": - lv := value.List() - clv := lv.(*_GenesisState_1_list) - x.Classes = *clv.list - case "cosmos.nft.v1beta1.GenesisState.entries": - lv := value.List() - clv := lv.(*_GenesisState_2_list) - x.Entries = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.GenesisState")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.GenesisState does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.GenesisState.classes": - if x.Classes == nil { - x.Classes = []*Class{} - } - value := &_GenesisState_1_list{list: &x.Classes} - return protoreflect.ValueOfList(value) - case "cosmos.nft.v1beta1.GenesisState.entries": - if x.Entries == nil { - x.Entries = []*Entry{} - } - value := &_GenesisState_2_list{list: &x.Entries} - return protoreflect.ValueOfList(value) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.GenesisState")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.GenesisState does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.GenesisState.classes": - list := []*Class{} - return protoreflect.ValueOfList(&_GenesisState_1_list{list: &list}) - case "cosmos.nft.v1beta1.GenesisState.entries": - list := []*Entry{} - return protoreflect.ValueOfList(&_GenesisState_2_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.GenesisState")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.GenesisState does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.nft.v1beta1.GenesisState", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_GenesisState) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GenesisState) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_GenesisState) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*GenesisState) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.Classes) > 0 { - for _, e := range x.Classes { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.Entries) > 0 { - for _, e := range x.Entries { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*GenesisState) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Entries) > 0 { - for iNdEx := len(x.Entries) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Entries[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - } - if len(x.Classes) > 0 { - for iNdEx := len(x.Classes) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Classes[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*GenesisState) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Classes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Classes = append(x.Classes, &Class{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Classes[len(x.Classes)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Entries", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Entries = append(x.Entries, &Entry{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Entries[len(x.Entries)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_Entry_2_list)(nil) - -type _Entry_2_list struct { - list *[]*NFT -} - -func (x *_Entry_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_Entry_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_Entry_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*NFT) - (*x.list)[i] = concreteValue -} - -func (x *_Entry_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*NFT) - *x.list = append(*x.list, concreteValue) -} - -func (x *_Entry_2_list) AppendMutable() protoreflect.Value { - v := new(NFT) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_Entry_2_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_Entry_2_list) NewElement() protoreflect.Value { - v := new(NFT) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_Entry_2_list) IsValid() bool { - return x.list != nil -} - -var ( - md_Entry protoreflect.MessageDescriptor - fd_Entry_owner protoreflect.FieldDescriptor - fd_Entry_nfts protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_nft_v1beta1_genesis_proto_init() - md_Entry = File_cosmos_nft_v1beta1_genesis_proto.Messages().ByName("Entry") - fd_Entry_owner = md_Entry.Fields().ByName("owner") - fd_Entry_nfts = md_Entry.Fields().ByName("nfts") -} - -var _ protoreflect.Message = (*fastReflection_Entry)(nil) - -type fastReflection_Entry Entry - -func (x *Entry) ProtoReflect() protoreflect.Message { - return (*fastReflection_Entry)(x) -} - -func (x *Entry) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_nft_v1beta1_genesis_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_Entry_messageType fastReflection_Entry_messageType -var _ protoreflect.MessageType = fastReflection_Entry_messageType{} - -type fastReflection_Entry_messageType struct{} - -func (x fastReflection_Entry_messageType) Zero() protoreflect.Message { - return (*fastReflection_Entry)(nil) -} -func (x fastReflection_Entry_messageType) New() protoreflect.Message { - return new(fastReflection_Entry) -} -func (x fastReflection_Entry_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Entry -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Entry) Descriptor() protoreflect.MessageDescriptor { - return md_Entry -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_Entry) Type() protoreflect.MessageType { - return _fastReflection_Entry_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Entry) New() protoreflect.Message { - return new(fastReflection_Entry) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Entry) Interface() protoreflect.ProtoMessage { - return (*Entry)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_Entry) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Owner != "" { - value := protoreflect.ValueOfString(x.Owner) - if !f(fd_Entry_owner, value) { - return - } - } - if len(x.Nfts) != 0 { - value := protoreflect.ValueOfList(&_Entry_2_list{list: &x.Nfts}) - if !f(fd_Entry_nfts, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_Entry) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.nft.v1beta1.Entry.owner": - return x.Owner != "" - case "cosmos.nft.v1beta1.Entry.nfts": - return len(x.Nfts) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.Entry")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.Entry does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Entry) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.Entry.owner": - x.Owner = "" - case "cosmos.nft.v1beta1.Entry.nfts": - x.Nfts = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.Entry")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.Entry does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_Entry) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.nft.v1beta1.Entry.owner": - value := x.Owner - return protoreflect.ValueOfString(value) - case "cosmos.nft.v1beta1.Entry.nfts": - if len(x.Nfts) == 0 { - return protoreflect.ValueOfList(&_Entry_2_list{}) - } - listValue := &_Entry_2_list{list: &x.Nfts} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.Entry")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.Entry does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Entry) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.Entry.owner": - x.Owner = value.Interface().(string) - case "cosmos.nft.v1beta1.Entry.nfts": - lv := value.List() - clv := lv.(*_Entry_2_list) - x.Nfts = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.Entry")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.Entry does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Entry) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.Entry.nfts": - if x.Nfts == nil { - x.Nfts = []*NFT{} - } - value := &_Entry_2_list{list: &x.Nfts} - return protoreflect.ValueOfList(value) - case "cosmos.nft.v1beta1.Entry.owner": - panic(fmt.Errorf("field owner of message cosmos.nft.v1beta1.Entry is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.Entry")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.Entry does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_Entry) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.Entry.owner": - return protoreflect.ValueOfString("") - case "cosmos.nft.v1beta1.Entry.nfts": - list := []*NFT{} - return protoreflect.ValueOfList(&_Entry_2_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.Entry")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.Entry does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_Entry) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.nft.v1beta1.Entry", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_Entry) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Entry) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_Entry) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_Entry) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Entry) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Owner) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.Nfts) > 0 { - for _, e := range x.Nfts { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*Entry) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Nfts) > 0 { - for iNdEx := len(x.Nfts) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Nfts[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - } - if len(x.Owner) > 0 { - i -= len(x.Owner) - copy(dAtA[i:], x.Owner) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Owner))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*Entry) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Entry: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Entry: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Owner = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Nfts", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Nfts = append(x.Nfts, &NFT{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Nfts[len(x.Nfts)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cosmos/nft/v1beta1/genesis.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// GenesisState defines the nft module's genesis state. -type GenesisState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // class defines the class of the nft type. - Classes []*Class `protobuf:"bytes,1,rep,name=classes,proto3" json:"classes,omitempty"` - // entry defines all nft owned by a person. - Entries []*Entry `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"` -} - -func (x *GenesisState) Reset() { - *x = GenesisState{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_nft_v1beta1_genesis_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GenesisState) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GenesisState) ProtoMessage() {} - -// Deprecated: Use GenesisState.ProtoReflect.Descriptor instead. -func (*GenesisState) Descriptor() ([]byte, []int) { - return file_cosmos_nft_v1beta1_genesis_proto_rawDescGZIP(), []int{0} -} - -func (x *GenesisState) GetClasses() []*Class { - if x != nil { - return x.Classes - } - return nil -} - -func (x *GenesisState) GetEntries() []*Entry { - if x != nil { - return x.Entries - } - return nil -} - -// Entry Defines all nft owned by a person -type Entry struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // owner is the owner address of the following nft - Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` - // nfts is a group of nfts of the same owner - Nfts []*NFT `protobuf:"bytes,2,rep,name=nfts,proto3" json:"nfts,omitempty"` -} - -func (x *Entry) Reset() { - *x = Entry{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_nft_v1beta1_genesis_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Entry) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Entry) ProtoMessage() {} - -// Deprecated: Use Entry.ProtoReflect.Descriptor instead. -func (*Entry) Descriptor() ([]byte, []int) { - return file_cosmos_nft_v1beta1_genesis_proto_rawDescGZIP(), []int{1} -} - -func (x *Entry) GetOwner() string { - if x != nil { - return x.Owner - } - return "" -} - -func (x *Entry) GetNfts() []*NFT { - if x != nil { - return x.Nfts - } - return nil -} - -var File_cosmos_nft_v1beta1_genesis_proto protoreflect.FileDescriptor - -var file_cosmos_nft_v1beta1_genesis_proto_rawDesc = []byte{ - 0x0a, 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6e, 0x66, 0x74, 0x2f, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x12, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6e, 0x66, 0x74, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1c, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6e, - 0x66, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6e, 0x66, 0x74, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x78, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6e, - 0x66, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, - 0x52, 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x12, 0x33, 0x0a, 0x07, 0x65, 0x6e, 0x74, - 0x72, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x6e, 0x66, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x22, 0x4a, - 0x0a, 0x05, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x2b, 0x0a, - 0x04, 0x6e, 0x66, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6e, 0x66, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x4e, 0x46, 0x54, 0x52, 0x04, 0x6e, 0x66, 0x74, 0x73, 0x42, 0xc0, 0x01, 0x0a, 0x16, 0x63, - 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6e, 0x66, 0x74, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, - 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6e, - 0x66, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x6e, 0x66, 0x74, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x4e, 0x58, 0xaa, 0x02, 0x12, 0x43, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x4e, 0x66, 0x74, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0xca, 0x02, 0x12, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x4e, 0x66, 0x74, 0x5c, 0x56, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x1e, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x4e, - 0x66, 0x74, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, - 0x3a, 0x4e, 0x66, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cosmos_nft_v1beta1_genesis_proto_rawDescOnce sync.Once - file_cosmos_nft_v1beta1_genesis_proto_rawDescData = file_cosmos_nft_v1beta1_genesis_proto_rawDesc -) - -func file_cosmos_nft_v1beta1_genesis_proto_rawDescGZIP() []byte { - file_cosmos_nft_v1beta1_genesis_proto_rawDescOnce.Do(func() { - file_cosmos_nft_v1beta1_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_nft_v1beta1_genesis_proto_rawDescData) - }) - return file_cosmos_nft_v1beta1_genesis_proto_rawDescData -} - -var file_cosmos_nft_v1beta1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_cosmos_nft_v1beta1_genesis_proto_goTypes = []interface{}{ - (*GenesisState)(nil), // 0: cosmos.nft.v1beta1.GenesisState - (*Entry)(nil), // 1: cosmos.nft.v1beta1.Entry - (*Class)(nil), // 2: cosmos.nft.v1beta1.Class - (*NFT)(nil), // 3: cosmos.nft.v1beta1.NFT -} -var file_cosmos_nft_v1beta1_genesis_proto_depIdxs = []int32{ - 2, // 0: cosmos.nft.v1beta1.GenesisState.classes:type_name -> cosmos.nft.v1beta1.Class - 1, // 1: cosmos.nft.v1beta1.GenesisState.entries:type_name -> cosmos.nft.v1beta1.Entry - 3, // 2: cosmos.nft.v1beta1.Entry.nfts:type_name -> cosmos.nft.v1beta1.NFT - 3, // [3:3] is the sub-list for method output_type - 3, // [3:3] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name -} - -func init() { file_cosmos_nft_v1beta1_genesis_proto_init() } -func file_cosmos_nft_v1beta1_genesis_proto_init() { - if File_cosmos_nft_v1beta1_genesis_proto != nil { - return - } - file_cosmos_nft_v1beta1_nft_proto_init() - if !protoimpl.UnsafeEnabled { - file_cosmos_nft_v1beta1_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenesisState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_nft_v1beta1_genesis_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Entry); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cosmos_nft_v1beta1_genesis_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cosmos_nft_v1beta1_genesis_proto_goTypes, - DependencyIndexes: file_cosmos_nft_v1beta1_genesis_proto_depIdxs, - MessageInfos: file_cosmos_nft_v1beta1_genesis_proto_msgTypes, - }.Build() - File_cosmos_nft_v1beta1_genesis_proto = out.File - file_cosmos_nft_v1beta1_genesis_proto_rawDesc = nil - file_cosmos_nft_v1beta1_genesis_proto_goTypes = nil - file_cosmos_nft_v1beta1_genesis_proto_depIdxs = nil -} diff --git a/api/cosmos/nft/v1beta1/nft.pulsar.go b/api/cosmos/nft/v1beta1/nft.pulsar.go deleted file mode 100644 index e5ef55c356..0000000000 --- a/api/cosmos/nft/v1beta1/nft.pulsar.go +++ /dev/null @@ -1,1823 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package nftv1beta1 - -import ( - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - anypb "google.golang.org/protobuf/types/known/anypb" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_Class protoreflect.MessageDescriptor - fd_Class_id protoreflect.FieldDescriptor - fd_Class_name protoreflect.FieldDescriptor - fd_Class_symbol protoreflect.FieldDescriptor - fd_Class_description protoreflect.FieldDescriptor - fd_Class_uri protoreflect.FieldDescriptor - fd_Class_uri_hash protoreflect.FieldDescriptor - fd_Class_data protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_nft_v1beta1_nft_proto_init() - md_Class = File_cosmos_nft_v1beta1_nft_proto.Messages().ByName("Class") - fd_Class_id = md_Class.Fields().ByName("id") - fd_Class_name = md_Class.Fields().ByName("name") - fd_Class_symbol = md_Class.Fields().ByName("symbol") - fd_Class_description = md_Class.Fields().ByName("description") - fd_Class_uri = md_Class.Fields().ByName("uri") - fd_Class_uri_hash = md_Class.Fields().ByName("uri_hash") - fd_Class_data = md_Class.Fields().ByName("data") -} - -var _ protoreflect.Message = (*fastReflection_Class)(nil) - -type fastReflection_Class Class - -func (x *Class) ProtoReflect() protoreflect.Message { - return (*fastReflection_Class)(x) -} - -func (x *Class) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_nft_v1beta1_nft_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_Class_messageType fastReflection_Class_messageType -var _ protoreflect.MessageType = fastReflection_Class_messageType{} - -type fastReflection_Class_messageType struct{} - -func (x fastReflection_Class_messageType) Zero() protoreflect.Message { - return (*fastReflection_Class)(nil) -} -func (x fastReflection_Class_messageType) New() protoreflect.Message { - return new(fastReflection_Class) -} -func (x fastReflection_Class_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Class -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Class) Descriptor() protoreflect.MessageDescriptor { - return md_Class -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_Class) Type() protoreflect.MessageType { - return _fastReflection_Class_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Class) New() protoreflect.Message { - return new(fastReflection_Class) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Class) Interface() protoreflect.ProtoMessage { - return (*Class)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_Class) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Id != "" { - value := protoreflect.ValueOfString(x.Id) - if !f(fd_Class_id, value) { - return - } - } - if x.Name != "" { - value := protoreflect.ValueOfString(x.Name) - if !f(fd_Class_name, value) { - return - } - } - if x.Symbol != "" { - value := protoreflect.ValueOfString(x.Symbol) - if !f(fd_Class_symbol, value) { - return - } - } - if x.Description != "" { - value := protoreflect.ValueOfString(x.Description) - if !f(fd_Class_description, value) { - return - } - } - if x.Uri != "" { - value := protoreflect.ValueOfString(x.Uri) - if !f(fd_Class_uri, value) { - return - } - } - if x.UriHash != "" { - value := protoreflect.ValueOfString(x.UriHash) - if !f(fd_Class_uri_hash, value) { - return - } - } - if x.Data != nil { - value := protoreflect.ValueOfMessage(x.Data.ProtoReflect()) - if !f(fd_Class_data, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_Class) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.nft.v1beta1.Class.id": - return x.Id != "" - case "cosmos.nft.v1beta1.Class.name": - return x.Name != "" - case "cosmos.nft.v1beta1.Class.symbol": - return x.Symbol != "" - case "cosmos.nft.v1beta1.Class.description": - return x.Description != "" - case "cosmos.nft.v1beta1.Class.uri": - return x.Uri != "" - case "cosmos.nft.v1beta1.Class.uri_hash": - return x.UriHash != "" - case "cosmos.nft.v1beta1.Class.data": - return x.Data != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.Class")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.Class does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Class) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.Class.id": - x.Id = "" - case "cosmos.nft.v1beta1.Class.name": - x.Name = "" - case "cosmos.nft.v1beta1.Class.symbol": - x.Symbol = "" - case "cosmos.nft.v1beta1.Class.description": - x.Description = "" - case "cosmos.nft.v1beta1.Class.uri": - x.Uri = "" - case "cosmos.nft.v1beta1.Class.uri_hash": - x.UriHash = "" - case "cosmos.nft.v1beta1.Class.data": - x.Data = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.Class")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.Class does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_Class) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.nft.v1beta1.Class.id": - value := x.Id - return protoreflect.ValueOfString(value) - case "cosmos.nft.v1beta1.Class.name": - value := x.Name - return protoreflect.ValueOfString(value) - case "cosmos.nft.v1beta1.Class.symbol": - value := x.Symbol - return protoreflect.ValueOfString(value) - case "cosmos.nft.v1beta1.Class.description": - value := x.Description - return protoreflect.ValueOfString(value) - case "cosmos.nft.v1beta1.Class.uri": - value := x.Uri - return protoreflect.ValueOfString(value) - case "cosmos.nft.v1beta1.Class.uri_hash": - value := x.UriHash - return protoreflect.ValueOfString(value) - case "cosmos.nft.v1beta1.Class.data": - value := x.Data - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.Class")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.Class does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Class) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.Class.id": - x.Id = value.Interface().(string) - case "cosmos.nft.v1beta1.Class.name": - x.Name = value.Interface().(string) - case "cosmos.nft.v1beta1.Class.symbol": - x.Symbol = value.Interface().(string) - case "cosmos.nft.v1beta1.Class.description": - x.Description = value.Interface().(string) - case "cosmos.nft.v1beta1.Class.uri": - x.Uri = value.Interface().(string) - case "cosmos.nft.v1beta1.Class.uri_hash": - x.UriHash = value.Interface().(string) - case "cosmos.nft.v1beta1.Class.data": - x.Data = value.Message().Interface().(*anypb.Any) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.Class")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.Class does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Class) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.Class.data": - if x.Data == nil { - x.Data = new(anypb.Any) - } - return protoreflect.ValueOfMessage(x.Data.ProtoReflect()) - case "cosmos.nft.v1beta1.Class.id": - panic(fmt.Errorf("field id of message cosmos.nft.v1beta1.Class is not mutable")) - case "cosmos.nft.v1beta1.Class.name": - panic(fmt.Errorf("field name of message cosmos.nft.v1beta1.Class is not mutable")) - case "cosmos.nft.v1beta1.Class.symbol": - panic(fmt.Errorf("field symbol of message cosmos.nft.v1beta1.Class is not mutable")) - case "cosmos.nft.v1beta1.Class.description": - panic(fmt.Errorf("field description of message cosmos.nft.v1beta1.Class is not mutable")) - case "cosmos.nft.v1beta1.Class.uri": - panic(fmt.Errorf("field uri of message cosmos.nft.v1beta1.Class is not mutable")) - case "cosmos.nft.v1beta1.Class.uri_hash": - panic(fmt.Errorf("field uri_hash of message cosmos.nft.v1beta1.Class is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.Class")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.Class does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_Class) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.Class.id": - return protoreflect.ValueOfString("") - case "cosmos.nft.v1beta1.Class.name": - return protoreflect.ValueOfString("") - case "cosmos.nft.v1beta1.Class.symbol": - return protoreflect.ValueOfString("") - case "cosmos.nft.v1beta1.Class.description": - return protoreflect.ValueOfString("") - case "cosmos.nft.v1beta1.Class.uri": - return protoreflect.ValueOfString("") - case "cosmos.nft.v1beta1.Class.uri_hash": - return protoreflect.ValueOfString("") - case "cosmos.nft.v1beta1.Class.data": - m := new(anypb.Any) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.Class")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.Class does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_Class) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.nft.v1beta1.Class", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_Class) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Class) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_Class) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_Class) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Class) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Id) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Name) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Symbol) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Description) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Uri) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.UriHash) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Data != nil { - l = options.Size(x.Data) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*Class) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Data != nil { - encoded, err := options.Marshal(x.Data) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x3a - } - if len(x.UriHash) > 0 { - i -= len(x.UriHash) - copy(dAtA[i:], x.UriHash) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.UriHash))) - i-- - dAtA[i] = 0x32 - } - if len(x.Uri) > 0 { - i -= len(x.Uri) - copy(dAtA[i:], x.Uri) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Uri))) - i-- - dAtA[i] = 0x2a - } - if len(x.Description) > 0 { - i -= len(x.Description) - copy(dAtA[i:], x.Description) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Description))) - i-- - dAtA[i] = 0x22 - } - if len(x.Symbol) > 0 { - i -= len(x.Symbol) - copy(dAtA[i:], x.Symbol) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Symbol))) - i-- - dAtA[i] = 0x1a - } - if len(x.Name) > 0 { - i -= len(x.Name) - copy(dAtA[i:], x.Name) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Name))) - i-- - dAtA[i] = 0x12 - } - if len(x.Id) > 0 { - i -= len(x.Id) - copy(dAtA[i:], x.Id) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Id))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*Class) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Class: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Class: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Symbol", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Symbol = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Uri", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Uri = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field UriHash", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.UriHash = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Data == nil { - x.Data = &anypb.Any{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Data); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_NFT protoreflect.MessageDescriptor - fd_NFT_class_id protoreflect.FieldDescriptor - fd_NFT_id protoreflect.FieldDescriptor - fd_NFT_uri protoreflect.FieldDescriptor - fd_NFT_uri_hash protoreflect.FieldDescriptor - fd_NFT_data protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_nft_v1beta1_nft_proto_init() - md_NFT = File_cosmos_nft_v1beta1_nft_proto.Messages().ByName("NFT") - fd_NFT_class_id = md_NFT.Fields().ByName("class_id") - fd_NFT_id = md_NFT.Fields().ByName("id") - fd_NFT_uri = md_NFT.Fields().ByName("uri") - fd_NFT_uri_hash = md_NFT.Fields().ByName("uri_hash") - fd_NFT_data = md_NFT.Fields().ByName("data") -} - -var _ protoreflect.Message = (*fastReflection_NFT)(nil) - -type fastReflection_NFT NFT - -func (x *NFT) ProtoReflect() protoreflect.Message { - return (*fastReflection_NFT)(x) -} - -func (x *NFT) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_nft_v1beta1_nft_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_NFT_messageType fastReflection_NFT_messageType -var _ protoreflect.MessageType = fastReflection_NFT_messageType{} - -type fastReflection_NFT_messageType struct{} - -func (x fastReflection_NFT_messageType) Zero() protoreflect.Message { - return (*fastReflection_NFT)(nil) -} -func (x fastReflection_NFT_messageType) New() protoreflect.Message { - return new(fastReflection_NFT) -} -func (x fastReflection_NFT_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_NFT -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_NFT) Descriptor() protoreflect.MessageDescriptor { - return md_NFT -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_NFT) Type() protoreflect.MessageType { - return _fastReflection_NFT_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_NFT) New() protoreflect.Message { - return new(fastReflection_NFT) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_NFT) Interface() protoreflect.ProtoMessage { - return (*NFT)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_NFT) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ClassId != "" { - value := protoreflect.ValueOfString(x.ClassId) - if !f(fd_NFT_class_id, value) { - return - } - } - if x.Id != "" { - value := protoreflect.ValueOfString(x.Id) - if !f(fd_NFT_id, value) { - return - } - } - if x.Uri != "" { - value := protoreflect.ValueOfString(x.Uri) - if !f(fd_NFT_uri, value) { - return - } - } - if x.UriHash != "" { - value := protoreflect.ValueOfString(x.UriHash) - if !f(fd_NFT_uri_hash, value) { - return - } - } - if x.Data != nil { - value := protoreflect.ValueOfMessage(x.Data.ProtoReflect()) - if !f(fd_NFT_data, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_NFT) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.nft.v1beta1.NFT.class_id": - return x.ClassId != "" - case "cosmos.nft.v1beta1.NFT.id": - return x.Id != "" - case "cosmos.nft.v1beta1.NFT.uri": - return x.Uri != "" - case "cosmos.nft.v1beta1.NFT.uri_hash": - return x.UriHash != "" - case "cosmos.nft.v1beta1.NFT.data": - return x.Data != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.NFT")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.NFT does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_NFT) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.NFT.class_id": - x.ClassId = "" - case "cosmos.nft.v1beta1.NFT.id": - x.Id = "" - case "cosmos.nft.v1beta1.NFT.uri": - x.Uri = "" - case "cosmos.nft.v1beta1.NFT.uri_hash": - x.UriHash = "" - case "cosmos.nft.v1beta1.NFT.data": - x.Data = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.NFT")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.NFT does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_NFT) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.nft.v1beta1.NFT.class_id": - value := x.ClassId - return protoreflect.ValueOfString(value) - case "cosmos.nft.v1beta1.NFT.id": - value := x.Id - return protoreflect.ValueOfString(value) - case "cosmos.nft.v1beta1.NFT.uri": - value := x.Uri - return protoreflect.ValueOfString(value) - case "cosmos.nft.v1beta1.NFT.uri_hash": - value := x.UriHash - return protoreflect.ValueOfString(value) - case "cosmos.nft.v1beta1.NFT.data": - value := x.Data - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.NFT")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.NFT does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_NFT) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.NFT.class_id": - x.ClassId = value.Interface().(string) - case "cosmos.nft.v1beta1.NFT.id": - x.Id = value.Interface().(string) - case "cosmos.nft.v1beta1.NFT.uri": - x.Uri = value.Interface().(string) - case "cosmos.nft.v1beta1.NFT.uri_hash": - x.UriHash = value.Interface().(string) - case "cosmos.nft.v1beta1.NFT.data": - x.Data = value.Message().Interface().(*anypb.Any) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.NFT")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.NFT does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_NFT) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.NFT.data": - if x.Data == nil { - x.Data = new(anypb.Any) - } - return protoreflect.ValueOfMessage(x.Data.ProtoReflect()) - case "cosmos.nft.v1beta1.NFT.class_id": - panic(fmt.Errorf("field class_id of message cosmos.nft.v1beta1.NFT is not mutable")) - case "cosmos.nft.v1beta1.NFT.id": - panic(fmt.Errorf("field id of message cosmos.nft.v1beta1.NFT is not mutable")) - case "cosmos.nft.v1beta1.NFT.uri": - panic(fmt.Errorf("field uri of message cosmos.nft.v1beta1.NFT is not mutable")) - case "cosmos.nft.v1beta1.NFT.uri_hash": - panic(fmt.Errorf("field uri_hash of message cosmos.nft.v1beta1.NFT is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.NFT")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.NFT does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_NFT) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.NFT.class_id": - return protoreflect.ValueOfString("") - case "cosmos.nft.v1beta1.NFT.id": - return protoreflect.ValueOfString("") - case "cosmos.nft.v1beta1.NFT.uri": - return protoreflect.ValueOfString("") - case "cosmos.nft.v1beta1.NFT.uri_hash": - return protoreflect.ValueOfString("") - case "cosmos.nft.v1beta1.NFT.data": - m := new(anypb.Any) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.NFT")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.NFT does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_NFT) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.nft.v1beta1.NFT", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_NFT) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_NFT) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_NFT) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_NFT) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*NFT) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.ClassId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Id) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Uri) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.UriHash) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Data != nil { - l = options.Size(x.Data) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*NFT) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Data != nil { - encoded, err := options.Marshal(x.Data) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x52 - } - if len(x.UriHash) > 0 { - i -= len(x.UriHash) - copy(dAtA[i:], x.UriHash) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.UriHash))) - i-- - dAtA[i] = 0x22 - } - if len(x.Uri) > 0 { - i -= len(x.Uri) - copy(dAtA[i:], x.Uri) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Uri))) - i-- - dAtA[i] = 0x1a - } - if len(x.Id) > 0 { - i -= len(x.Id) - copy(dAtA[i:], x.Id) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Id))) - i-- - dAtA[i] = 0x12 - } - if len(x.ClassId) > 0 { - i -= len(x.ClassId) - copy(dAtA[i:], x.ClassId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClassId))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*NFT) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: NFT: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: NFT: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ClassId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Uri", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Uri = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field UriHash", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.UriHash = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Data == nil { - x.Data = &anypb.Any{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Data); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cosmos/nft/v1beta1/nft.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Class defines the class of the nft type. -type Class struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // id defines the unique identifier of the NFT classification, similar to the contract address of ERC721 - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // name defines the human-readable name of the NFT classification. Optional - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - // symbol is an abbreviated name for nft classification. Optional - Symbol string `protobuf:"bytes,3,opt,name=symbol,proto3" json:"symbol,omitempty"` - // description is a brief description of nft classification. Optional - Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` - // uri for the class metadata stored off chain. It can define schema for Class and NFT `Data` attributes. Optional - Uri string `protobuf:"bytes,5,opt,name=uri,proto3" json:"uri,omitempty"` - // uri_hash is a hash of the document pointed by uri. Optional - UriHash string `protobuf:"bytes,6,opt,name=uri_hash,json=uriHash,proto3" json:"uri_hash,omitempty"` - // data is the app specific metadata of the NFT class. Optional - Data *anypb.Any `protobuf:"bytes,7,opt,name=data,proto3" json:"data,omitempty"` -} - -func (x *Class) Reset() { - *x = Class{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_nft_v1beta1_nft_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Class) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Class) ProtoMessage() {} - -// Deprecated: Use Class.ProtoReflect.Descriptor instead. -func (*Class) Descriptor() ([]byte, []int) { - return file_cosmos_nft_v1beta1_nft_proto_rawDescGZIP(), []int{0} -} - -func (x *Class) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *Class) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *Class) GetSymbol() string { - if x != nil { - return x.Symbol - } - return "" -} - -func (x *Class) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *Class) GetUri() string { - if x != nil { - return x.Uri - } - return "" -} - -func (x *Class) GetUriHash() string { - if x != nil { - return x.UriHash - } - return "" -} - -func (x *Class) GetData() *anypb.Any { - if x != nil { - return x.Data - } - return nil -} - -// NFT defines the NFT. -type NFT struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // class_id associated with the NFT, similar to the contract address of ERC721 - ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` - // id is a unique identifier of the NFT - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - // uri for the NFT metadata stored off chain - Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"` - // uri_hash is a hash of the document pointed by uri - UriHash string `protobuf:"bytes,4,opt,name=uri_hash,json=uriHash,proto3" json:"uri_hash,omitempty"` - // data is an app specific data of the NFT. Optional - Data *anypb.Any `protobuf:"bytes,10,opt,name=data,proto3" json:"data,omitempty"` -} - -func (x *NFT) Reset() { - *x = NFT{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_nft_v1beta1_nft_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NFT) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NFT) ProtoMessage() {} - -// Deprecated: Use NFT.ProtoReflect.Descriptor instead. -func (*NFT) Descriptor() ([]byte, []int) { - return file_cosmos_nft_v1beta1_nft_proto_rawDescGZIP(), []int{1} -} - -func (x *NFT) GetClassId() string { - if x != nil { - return x.ClassId - } - return "" -} - -func (x *NFT) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *NFT) GetUri() string { - if x != nil { - return x.Uri - } - return "" -} - -func (x *NFT) GetUriHash() string { - if x != nil { - return x.UriHash - } - return "" -} - -func (x *NFT) GetData() *anypb.Any { - if x != nil { - return x.Data - } - return nil -} - -var File_cosmos_nft_v1beta1_nft_proto protoreflect.FileDescriptor - -var file_cosmos_nft_v1beta1_nft_proto_rawDesc = []byte{ - 0x0a, 0x1c, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6e, 0x66, 0x74, 0x2f, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6e, 0x66, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6e, 0x66, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbc, 0x01, - 0x0a, 0x05, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, - 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x79, 0x6d, - 0x62, 0x6f, 0x6c, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, 0x19, 0x0a, 0x08, 0x75, 0x72, 0x69, 0x5f, 0x68, - 0x61, 0x73, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x75, 0x72, 0x69, 0x48, 0x61, - 0x73, 0x68, 0x12, 0x28, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x87, 0x01, 0x0a, - 0x03, 0x4e, 0x46, 0x54, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, - 0x10, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, - 0x69, 0x12, 0x19, 0x0a, 0x08, 0x75, 0x72, 0x69, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x75, 0x72, 0x69, 0x48, 0x61, 0x73, 0x68, 0x12, 0x28, 0x0a, 0x04, - 0x64, 0x61, 0x74, 0x61, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, - 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0xbc, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6e, 0x66, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x42, 0x08, 0x4e, 0x66, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6e, 0x66, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x3b, 0x6e, 0x66, 0x74, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, - 0x43, 0x4e, 0x58, 0xaa, 0x02, 0x12, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x4e, 0x66, 0x74, - 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x12, 0x43, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x5c, 0x4e, 0x66, 0x74, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x1e, - 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x4e, 0x66, 0x74, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, - 0x14, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x4e, 0x66, 0x74, 0x3a, 0x3a, 0x56, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cosmos_nft_v1beta1_nft_proto_rawDescOnce sync.Once - file_cosmos_nft_v1beta1_nft_proto_rawDescData = file_cosmos_nft_v1beta1_nft_proto_rawDesc -) - -func file_cosmos_nft_v1beta1_nft_proto_rawDescGZIP() []byte { - file_cosmos_nft_v1beta1_nft_proto_rawDescOnce.Do(func() { - file_cosmos_nft_v1beta1_nft_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_nft_v1beta1_nft_proto_rawDescData) - }) - return file_cosmos_nft_v1beta1_nft_proto_rawDescData -} - -var file_cosmos_nft_v1beta1_nft_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_cosmos_nft_v1beta1_nft_proto_goTypes = []interface{}{ - (*Class)(nil), // 0: cosmos.nft.v1beta1.Class - (*NFT)(nil), // 1: cosmos.nft.v1beta1.NFT - (*anypb.Any)(nil), // 2: google.protobuf.Any -} -var file_cosmos_nft_v1beta1_nft_proto_depIdxs = []int32{ - 2, // 0: cosmos.nft.v1beta1.Class.data:type_name -> google.protobuf.Any - 2, // 1: cosmos.nft.v1beta1.NFT.data:type_name -> google.protobuf.Any - 2, // [2:2] is the sub-list for method output_type - 2, // [2:2] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_cosmos_nft_v1beta1_nft_proto_init() } -func file_cosmos_nft_v1beta1_nft_proto_init() { - if File_cosmos_nft_v1beta1_nft_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cosmos_nft_v1beta1_nft_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Class); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_nft_v1beta1_nft_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NFT); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cosmos_nft_v1beta1_nft_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cosmos_nft_v1beta1_nft_proto_goTypes, - DependencyIndexes: file_cosmos_nft_v1beta1_nft_proto_depIdxs, - MessageInfos: file_cosmos_nft_v1beta1_nft_proto_msgTypes, - }.Build() - File_cosmos_nft_v1beta1_nft_proto = out.File - file_cosmos_nft_v1beta1_nft_proto_rawDesc = nil - file_cosmos_nft_v1beta1_nft_proto_goTypes = nil - file_cosmos_nft_v1beta1_nft_proto_depIdxs = nil -} diff --git a/api/cosmos/nft/v1beta1/query.pulsar.go b/api/cosmos/nft/v1beta1/query.pulsar.go deleted file mode 100644 index 223661271e..0000000000 --- a/api/cosmos/nft/v1beta1/query.pulsar.go +++ /dev/null @@ -1,7558 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package nftv1beta1 - -import ( - v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1" - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "google.golang.org/genproto/googleapis/api/annotations" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_QueryBalanceRequest protoreflect.MessageDescriptor - fd_QueryBalanceRequest_class_id protoreflect.FieldDescriptor - fd_QueryBalanceRequest_owner protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_nft_v1beta1_query_proto_init() - md_QueryBalanceRequest = File_cosmos_nft_v1beta1_query_proto.Messages().ByName("QueryBalanceRequest") - fd_QueryBalanceRequest_class_id = md_QueryBalanceRequest.Fields().ByName("class_id") - fd_QueryBalanceRequest_owner = md_QueryBalanceRequest.Fields().ByName("owner") -} - -var _ protoreflect.Message = (*fastReflection_QueryBalanceRequest)(nil) - -type fastReflection_QueryBalanceRequest QueryBalanceRequest - -func (x *QueryBalanceRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryBalanceRequest)(x) -} - -func (x *QueryBalanceRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_nft_v1beta1_query_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryBalanceRequest_messageType fastReflection_QueryBalanceRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryBalanceRequest_messageType{} - -type fastReflection_QueryBalanceRequest_messageType struct{} - -func (x fastReflection_QueryBalanceRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryBalanceRequest)(nil) -} -func (x fastReflection_QueryBalanceRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryBalanceRequest) -} -func (x fastReflection_QueryBalanceRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryBalanceRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryBalanceRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryBalanceRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryBalanceRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryBalanceRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryBalanceRequest) New() protoreflect.Message { - return new(fastReflection_QueryBalanceRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryBalanceRequest) Interface() protoreflect.ProtoMessage { - return (*QueryBalanceRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryBalanceRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ClassId != "" { - value := protoreflect.ValueOfString(x.ClassId) - if !f(fd_QueryBalanceRequest_class_id, value) { - return - } - } - if x.Owner != "" { - value := protoreflect.ValueOfString(x.Owner) - if !f(fd_QueryBalanceRequest_owner, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryBalanceRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryBalanceRequest.class_id": - return x.ClassId != "" - case "cosmos.nft.v1beta1.QueryBalanceRequest.owner": - return x.Owner != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryBalanceRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryBalanceRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryBalanceRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryBalanceRequest.class_id": - x.ClassId = "" - case "cosmos.nft.v1beta1.QueryBalanceRequest.owner": - x.Owner = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryBalanceRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryBalanceRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryBalanceRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.nft.v1beta1.QueryBalanceRequest.class_id": - value := x.ClassId - return protoreflect.ValueOfString(value) - case "cosmos.nft.v1beta1.QueryBalanceRequest.owner": - value := x.Owner - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryBalanceRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryBalanceRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryBalanceRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryBalanceRequest.class_id": - x.ClassId = value.Interface().(string) - case "cosmos.nft.v1beta1.QueryBalanceRequest.owner": - x.Owner = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryBalanceRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryBalanceRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryBalanceRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryBalanceRequest.class_id": - panic(fmt.Errorf("field class_id of message cosmos.nft.v1beta1.QueryBalanceRequest is not mutable")) - case "cosmos.nft.v1beta1.QueryBalanceRequest.owner": - panic(fmt.Errorf("field owner of message cosmos.nft.v1beta1.QueryBalanceRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryBalanceRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryBalanceRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryBalanceRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryBalanceRequest.class_id": - return protoreflect.ValueOfString("") - case "cosmos.nft.v1beta1.QueryBalanceRequest.owner": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryBalanceRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryBalanceRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryBalanceRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.nft.v1beta1.QueryBalanceRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryBalanceRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryBalanceRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryBalanceRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryBalanceRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryBalanceRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.ClassId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Owner) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryBalanceRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Owner) > 0 { - i -= len(x.Owner) - copy(dAtA[i:], x.Owner) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Owner))) - i-- - dAtA[i] = 0x12 - } - if len(x.ClassId) > 0 { - i -= len(x.ClassId) - copy(dAtA[i:], x.ClassId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClassId))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryBalanceRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryBalanceRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryBalanceRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ClassId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Owner = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryBalanceResponse protoreflect.MessageDescriptor - fd_QueryBalanceResponse_amount protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_nft_v1beta1_query_proto_init() - md_QueryBalanceResponse = File_cosmos_nft_v1beta1_query_proto.Messages().ByName("QueryBalanceResponse") - fd_QueryBalanceResponse_amount = md_QueryBalanceResponse.Fields().ByName("amount") -} - -var _ protoreflect.Message = (*fastReflection_QueryBalanceResponse)(nil) - -type fastReflection_QueryBalanceResponse QueryBalanceResponse - -func (x *QueryBalanceResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryBalanceResponse)(x) -} - -func (x *QueryBalanceResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_nft_v1beta1_query_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryBalanceResponse_messageType fastReflection_QueryBalanceResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryBalanceResponse_messageType{} - -type fastReflection_QueryBalanceResponse_messageType struct{} - -func (x fastReflection_QueryBalanceResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryBalanceResponse)(nil) -} -func (x fastReflection_QueryBalanceResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryBalanceResponse) -} -func (x fastReflection_QueryBalanceResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryBalanceResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryBalanceResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryBalanceResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryBalanceResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryBalanceResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryBalanceResponse) New() protoreflect.Message { - return new(fastReflection_QueryBalanceResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryBalanceResponse) Interface() protoreflect.ProtoMessage { - return (*QueryBalanceResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryBalanceResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Amount != uint64(0) { - value := protoreflect.ValueOfUint64(x.Amount) - if !f(fd_QueryBalanceResponse_amount, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryBalanceResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryBalanceResponse.amount": - return x.Amount != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryBalanceResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryBalanceResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryBalanceResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryBalanceResponse.amount": - x.Amount = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryBalanceResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryBalanceResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryBalanceResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.nft.v1beta1.QueryBalanceResponse.amount": - value := x.Amount - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryBalanceResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryBalanceResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryBalanceResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryBalanceResponse.amount": - x.Amount = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryBalanceResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryBalanceResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryBalanceResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryBalanceResponse.amount": - panic(fmt.Errorf("field amount of message cosmos.nft.v1beta1.QueryBalanceResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryBalanceResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryBalanceResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryBalanceResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryBalanceResponse.amount": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryBalanceResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryBalanceResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryBalanceResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.nft.v1beta1.QueryBalanceResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryBalanceResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryBalanceResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryBalanceResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryBalanceResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryBalanceResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Amount != 0 { - n += 1 + runtime.Sov(uint64(x.Amount)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryBalanceResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Amount != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Amount)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryBalanceResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryBalanceResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryBalanceResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) - } - x.Amount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Amount |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryOwnerRequest protoreflect.MessageDescriptor - fd_QueryOwnerRequest_class_id protoreflect.FieldDescriptor - fd_QueryOwnerRequest_id protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_nft_v1beta1_query_proto_init() - md_QueryOwnerRequest = File_cosmos_nft_v1beta1_query_proto.Messages().ByName("QueryOwnerRequest") - fd_QueryOwnerRequest_class_id = md_QueryOwnerRequest.Fields().ByName("class_id") - fd_QueryOwnerRequest_id = md_QueryOwnerRequest.Fields().ByName("id") -} - -var _ protoreflect.Message = (*fastReflection_QueryOwnerRequest)(nil) - -type fastReflection_QueryOwnerRequest QueryOwnerRequest - -func (x *QueryOwnerRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryOwnerRequest)(x) -} - -func (x *QueryOwnerRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_nft_v1beta1_query_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryOwnerRequest_messageType fastReflection_QueryOwnerRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryOwnerRequest_messageType{} - -type fastReflection_QueryOwnerRequest_messageType struct{} - -func (x fastReflection_QueryOwnerRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryOwnerRequest)(nil) -} -func (x fastReflection_QueryOwnerRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryOwnerRequest) -} -func (x fastReflection_QueryOwnerRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryOwnerRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryOwnerRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryOwnerRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryOwnerRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryOwnerRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryOwnerRequest) New() protoreflect.Message { - return new(fastReflection_QueryOwnerRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryOwnerRequest) Interface() protoreflect.ProtoMessage { - return (*QueryOwnerRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryOwnerRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ClassId != "" { - value := protoreflect.ValueOfString(x.ClassId) - if !f(fd_QueryOwnerRequest_class_id, value) { - return - } - } - if x.Id != "" { - value := protoreflect.ValueOfString(x.Id) - if !f(fd_QueryOwnerRequest_id, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryOwnerRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryOwnerRequest.class_id": - return x.ClassId != "" - case "cosmos.nft.v1beta1.QueryOwnerRequest.id": - return x.Id != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryOwnerRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryOwnerRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryOwnerRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryOwnerRequest.class_id": - x.ClassId = "" - case "cosmos.nft.v1beta1.QueryOwnerRequest.id": - x.Id = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryOwnerRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryOwnerRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryOwnerRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.nft.v1beta1.QueryOwnerRequest.class_id": - value := x.ClassId - return protoreflect.ValueOfString(value) - case "cosmos.nft.v1beta1.QueryOwnerRequest.id": - value := x.Id - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryOwnerRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryOwnerRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryOwnerRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryOwnerRequest.class_id": - x.ClassId = value.Interface().(string) - case "cosmos.nft.v1beta1.QueryOwnerRequest.id": - x.Id = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryOwnerRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryOwnerRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryOwnerRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryOwnerRequest.class_id": - panic(fmt.Errorf("field class_id of message cosmos.nft.v1beta1.QueryOwnerRequest is not mutable")) - case "cosmos.nft.v1beta1.QueryOwnerRequest.id": - panic(fmt.Errorf("field id of message cosmos.nft.v1beta1.QueryOwnerRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryOwnerRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryOwnerRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryOwnerRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryOwnerRequest.class_id": - return protoreflect.ValueOfString("") - case "cosmos.nft.v1beta1.QueryOwnerRequest.id": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryOwnerRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryOwnerRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryOwnerRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.nft.v1beta1.QueryOwnerRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryOwnerRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryOwnerRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryOwnerRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryOwnerRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryOwnerRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.ClassId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Id) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryOwnerRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Id) > 0 { - i -= len(x.Id) - copy(dAtA[i:], x.Id) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Id))) - i-- - dAtA[i] = 0x12 - } - if len(x.ClassId) > 0 { - i -= len(x.ClassId) - copy(dAtA[i:], x.ClassId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClassId))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryOwnerRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOwnerRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOwnerRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ClassId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryOwnerResponse protoreflect.MessageDescriptor - fd_QueryOwnerResponse_owner protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_nft_v1beta1_query_proto_init() - md_QueryOwnerResponse = File_cosmos_nft_v1beta1_query_proto.Messages().ByName("QueryOwnerResponse") - fd_QueryOwnerResponse_owner = md_QueryOwnerResponse.Fields().ByName("owner") -} - -var _ protoreflect.Message = (*fastReflection_QueryOwnerResponse)(nil) - -type fastReflection_QueryOwnerResponse QueryOwnerResponse - -func (x *QueryOwnerResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryOwnerResponse)(x) -} - -func (x *QueryOwnerResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_nft_v1beta1_query_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryOwnerResponse_messageType fastReflection_QueryOwnerResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryOwnerResponse_messageType{} - -type fastReflection_QueryOwnerResponse_messageType struct{} - -func (x fastReflection_QueryOwnerResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryOwnerResponse)(nil) -} -func (x fastReflection_QueryOwnerResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryOwnerResponse) -} -func (x fastReflection_QueryOwnerResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryOwnerResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryOwnerResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryOwnerResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryOwnerResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryOwnerResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryOwnerResponse) New() protoreflect.Message { - return new(fastReflection_QueryOwnerResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryOwnerResponse) Interface() protoreflect.ProtoMessage { - return (*QueryOwnerResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryOwnerResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Owner != "" { - value := protoreflect.ValueOfString(x.Owner) - if !f(fd_QueryOwnerResponse_owner, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryOwnerResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryOwnerResponse.owner": - return x.Owner != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryOwnerResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryOwnerResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryOwnerResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryOwnerResponse.owner": - x.Owner = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryOwnerResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryOwnerResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryOwnerResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.nft.v1beta1.QueryOwnerResponse.owner": - value := x.Owner - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryOwnerResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryOwnerResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryOwnerResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryOwnerResponse.owner": - x.Owner = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryOwnerResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryOwnerResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryOwnerResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryOwnerResponse.owner": - panic(fmt.Errorf("field owner of message cosmos.nft.v1beta1.QueryOwnerResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryOwnerResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryOwnerResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryOwnerResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryOwnerResponse.owner": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryOwnerResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryOwnerResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryOwnerResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.nft.v1beta1.QueryOwnerResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryOwnerResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryOwnerResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryOwnerResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryOwnerResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryOwnerResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Owner) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryOwnerResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Owner) > 0 { - i -= len(x.Owner) - copy(dAtA[i:], x.Owner) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Owner))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryOwnerResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOwnerResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOwnerResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Owner = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QuerySupplyRequest protoreflect.MessageDescriptor - fd_QuerySupplyRequest_class_id protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_nft_v1beta1_query_proto_init() - md_QuerySupplyRequest = File_cosmos_nft_v1beta1_query_proto.Messages().ByName("QuerySupplyRequest") - fd_QuerySupplyRequest_class_id = md_QuerySupplyRequest.Fields().ByName("class_id") -} - -var _ protoreflect.Message = (*fastReflection_QuerySupplyRequest)(nil) - -type fastReflection_QuerySupplyRequest QuerySupplyRequest - -func (x *QuerySupplyRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QuerySupplyRequest)(x) -} - -func (x *QuerySupplyRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_nft_v1beta1_query_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QuerySupplyRequest_messageType fastReflection_QuerySupplyRequest_messageType -var _ protoreflect.MessageType = fastReflection_QuerySupplyRequest_messageType{} - -type fastReflection_QuerySupplyRequest_messageType struct{} - -func (x fastReflection_QuerySupplyRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QuerySupplyRequest)(nil) -} -func (x fastReflection_QuerySupplyRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QuerySupplyRequest) -} -func (x fastReflection_QuerySupplyRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QuerySupplyRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QuerySupplyRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QuerySupplyRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QuerySupplyRequest) Type() protoreflect.MessageType { - return _fastReflection_QuerySupplyRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QuerySupplyRequest) New() protoreflect.Message { - return new(fastReflection_QuerySupplyRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QuerySupplyRequest) Interface() protoreflect.ProtoMessage { - return (*QuerySupplyRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QuerySupplyRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ClassId != "" { - value := protoreflect.ValueOfString(x.ClassId) - if !f(fd_QuerySupplyRequest_class_id, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QuerySupplyRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QuerySupplyRequest.class_id": - return x.ClassId != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QuerySupplyRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QuerySupplyRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QuerySupplyRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QuerySupplyRequest.class_id": - x.ClassId = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QuerySupplyRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QuerySupplyRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QuerySupplyRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.nft.v1beta1.QuerySupplyRequest.class_id": - value := x.ClassId - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QuerySupplyRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QuerySupplyRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QuerySupplyRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QuerySupplyRequest.class_id": - x.ClassId = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QuerySupplyRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QuerySupplyRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QuerySupplyRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QuerySupplyRequest.class_id": - panic(fmt.Errorf("field class_id of message cosmos.nft.v1beta1.QuerySupplyRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QuerySupplyRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QuerySupplyRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QuerySupplyRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QuerySupplyRequest.class_id": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QuerySupplyRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QuerySupplyRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QuerySupplyRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.nft.v1beta1.QuerySupplyRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QuerySupplyRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QuerySupplyRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QuerySupplyRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QuerySupplyRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QuerySupplyRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.ClassId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QuerySupplyRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.ClassId) > 0 { - i -= len(x.ClassId) - copy(dAtA[i:], x.ClassId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClassId))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QuerySupplyRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QuerySupplyRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QuerySupplyRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ClassId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QuerySupplyResponse protoreflect.MessageDescriptor - fd_QuerySupplyResponse_amount protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_nft_v1beta1_query_proto_init() - md_QuerySupplyResponse = File_cosmos_nft_v1beta1_query_proto.Messages().ByName("QuerySupplyResponse") - fd_QuerySupplyResponse_amount = md_QuerySupplyResponse.Fields().ByName("amount") -} - -var _ protoreflect.Message = (*fastReflection_QuerySupplyResponse)(nil) - -type fastReflection_QuerySupplyResponse QuerySupplyResponse - -func (x *QuerySupplyResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QuerySupplyResponse)(x) -} - -func (x *QuerySupplyResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_nft_v1beta1_query_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QuerySupplyResponse_messageType fastReflection_QuerySupplyResponse_messageType -var _ protoreflect.MessageType = fastReflection_QuerySupplyResponse_messageType{} - -type fastReflection_QuerySupplyResponse_messageType struct{} - -func (x fastReflection_QuerySupplyResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QuerySupplyResponse)(nil) -} -func (x fastReflection_QuerySupplyResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QuerySupplyResponse) -} -func (x fastReflection_QuerySupplyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QuerySupplyResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QuerySupplyResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QuerySupplyResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QuerySupplyResponse) Type() protoreflect.MessageType { - return _fastReflection_QuerySupplyResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QuerySupplyResponse) New() protoreflect.Message { - return new(fastReflection_QuerySupplyResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QuerySupplyResponse) Interface() protoreflect.ProtoMessage { - return (*QuerySupplyResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QuerySupplyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Amount != uint64(0) { - value := protoreflect.ValueOfUint64(x.Amount) - if !f(fd_QuerySupplyResponse_amount, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QuerySupplyResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QuerySupplyResponse.amount": - return x.Amount != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QuerySupplyResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QuerySupplyResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QuerySupplyResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QuerySupplyResponse.amount": - x.Amount = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QuerySupplyResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QuerySupplyResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QuerySupplyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.nft.v1beta1.QuerySupplyResponse.amount": - value := x.Amount - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QuerySupplyResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QuerySupplyResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QuerySupplyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QuerySupplyResponse.amount": - x.Amount = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QuerySupplyResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QuerySupplyResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QuerySupplyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QuerySupplyResponse.amount": - panic(fmt.Errorf("field amount of message cosmos.nft.v1beta1.QuerySupplyResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QuerySupplyResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QuerySupplyResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QuerySupplyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QuerySupplyResponse.amount": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QuerySupplyResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QuerySupplyResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QuerySupplyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.nft.v1beta1.QuerySupplyResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QuerySupplyResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QuerySupplyResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QuerySupplyResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QuerySupplyResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QuerySupplyResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Amount != 0 { - n += 1 + runtime.Sov(uint64(x.Amount)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QuerySupplyResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Amount != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Amount)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QuerySupplyResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QuerySupplyResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QuerySupplyResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) - } - x.Amount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Amount |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryNFTsRequest protoreflect.MessageDescriptor - fd_QueryNFTsRequest_class_id protoreflect.FieldDescriptor - fd_QueryNFTsRequest_owner protoreflect.FieldDescriptor - fd_QueryNFTsRequest_pagination protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_nft_v1beta1_query_proto_init() - md_QueryNFTsRequest = File_cosmos_nft_v1beta1_query_proto.Messages().ByName("QueryNFTsRequest") - fd_QueryNFTsRequest_class_id = md_QueryNFTsRequest.Fields().ByName("class_id") - fd_QueryNFTsRequest_owner = md_QueryNFTsRequest.Fields().ByName("owner") - fd_QueryNFTsRequest_pagination = md_QueryNFTsRequest.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryNFTsRequest)(nil) - -type fastReflection_QueryNFTsRequest QueryNFTsRequest - -func (x *QueryNFTsRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryNFTsRequest)(x) -} - -func (x *QueryNFTsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_nft_v1beta1_query_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryNFTsRequest_messageType fastReflection_QueryNFTsRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryNFTsRequest_messageType{} - -type fastReflection_QueryNFTsRequest_messageType struct{} - -func (x fastReflection_QueryNFTsRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryNFTsRequest)(nil) -} -func (x fastReflection_QueryNFTsRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryNFTsRequest) -} -func (x fastReflection_QueryNFTsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryNFTsRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryNFTsRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryNFTsRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryNFTsRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryNFTsRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryNFTsRequest) New() protoreflect.Message { - return new(fastReflection_QueryNFTsRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryNFTsRequest) Interface() protoreflect.ProtoMessage { - return (*QueryNFTsRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryNFTsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ClassId != "" { - value := protoreflect.ValueOfString(x.ClassId) - if !f(fd_QueryNFTsRequest_class_id, value) { - return - } - } - if x.Owner != "" { - value := protoreflect.ValueOfString(x.Owner) - if !f(fd_QueryNFTsRequest_owner, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryNFTsRequest_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryNFTsRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryNFTsRequest.class_id": - return x.ClassId != "" - case "cosmos.nft.v1beta1.QueryNFTsRequest.owner": - return x.Owner != "" - case "cosmos.nft.v1beta1.QueryNFTsRequest.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryNFTsRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryNFTsRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTsRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryNFTsRequest.class_id": - x.ClassId = "" - case "cosmos.nft.v1beta1.QueryNFTsRequest.owner": - x.Owner = "" - case "cosmos.nft.v1beta1.QueryNFTsRequest.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryNFTsRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryNFTsRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryNFTsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.nft.v1beta1.QueryNFTsRequest.class_id": - value := x.ClassId - return protoreflect.ValueOfString(value) - case "cosmos.nft.v1beta1.QueryNFTsRequest.owner": - value := x.Owner - return protoreflect.ValueOfString(value) - case "cosmos.nft.v1beta1.QueryNFTsRequest.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryNFTsRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryNFTsRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryNFTsRequest.class_id": - x.ClassId = value.Interface().(string) - case "cosmos.nft.v1beta1.QueryNFTsRequest.owner": - x.Owner = value.Interface().(string) - case "cosmos.nft.v1beta1.QueryNFTsRequest.pagination": - x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryNFTsRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryNFTsRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryNFTsRequest.pagination": - if x.Pagination == nil { - x.Pagination = new(v1beta1.PageRequest) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - case "cosmos.nft.v1beta1.QueryNFTsRequest.class_id": - panic(fmt.Errorf("field class_id of message cosmos.nft.v1beta1.QueryNFTsRequest is not mutable")) - case "cosmos.nft.v1beta1.QueryNFTsRequest.owner": - panic(fmt.Errorf("field owner of message cosmos.nft.v1beta1.QueryNFTsRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryNFTsRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryNFTsRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryNFTsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryNFTsRequest.class_id": - return protoreflect.ValueOfString("") - case "cosmos.nft.v1beta1.QueryNFTsRequest.owner": - return protoreflect.ValueOfString("") - case "cosmos.nft.v1beta1.QueryNFTsRequest.pagination": - m := new(v1beta1.PageRequest) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryNFTsRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryNFTsRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryNFTsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.nft.v1beta1.QueryNFTsRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryNFTsRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTsRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryNFTsRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryNFTsRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryNFTsRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.ClassId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Owner) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryNFTsRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x1a - } - if len(x.Owner) > 0 { - i -= len(x.Owner) - copy(dAtA[i:], x.Owner) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Owner))) - i-- - dAtA[i] = 0x12 - } - if len(x.ClassId) > 0 { - i -= len(x.ClassId) - copy(dAtA[i:], x.ClassId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClassId))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryNFTsRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNFTsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNFTsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ClassId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Owner = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &v1beta1.PageRequest{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_QueryNFTsResponse_1_list)(nil) - -type _QueryNFTsResponse_1_list struct { - list *[]*NFT -} - -func (x *_QueryNFTsResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryNFTsResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_QueryNFTsResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*NFT) - (*x.list)[i] = concreteValue -} - -func (x *_QueryNFTsResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*NFT) - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryNFTsResponse_1_list) AppendMutable() protoreflect.Value { - v := new(NFT) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryNFTsResponse_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_QueryNFTsResponse_1_list) NewElement() protoreflect.Value { - v := new(NFT) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryNFTsResponse_1_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QueryNFTsResponse protoreflect.MessageDescriptor - fd_QueryNFTsResponse_nfts protoreflect.FieldDescriptor - fd_QueryNFTsResponse_pagination protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_nft_v1beta1_query_proto_init() - md_QueryNFTsResponse = File_cosmos_nft_v1beta1_query_proto.Messages().ByName("QueryNFTsResponse") - fd_QueryNFTsResponse_nfts = md_QueryNFTsResponse.Fields().ByName("nfts") - fd_QueryNFTsResponse_pagination = md_QueryNFTsResponse.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryNFTsResponse)(nil) - -type fastReflection_QueryNFTsResponse QueryNFTsResponse - -func (x *QueryNFTsResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryNFTsResponse)(x) -} - -func (x *QueryNFTsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_nft_v1beta1_query_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryNFTsResponse_messageType fastReflection_QueryNFTsResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryNFTsResponse_messageType{} - -type fastReflection_QueryNFTsResponse_messageType struct{} - -func (x fastReflection_QueryNFTsResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryNFTsResponse)(nil) -} -func (x fastReflection_QueryNFTsResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryNFTsResponse) -} -func (x fastReflection_QueryNFTsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryNFTsResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryNFTsResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryNFTsResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryNFTsResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryNFTsResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryNFTsResponse) New() protoreflect.Message { - return new(fastReflection_QueryNFTsResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryNFTsResponse) Interface() protoreflect.ProtoMessage { - return (*QueryNFTsResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryNFTsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Nfts) != 0 { - value := protoreflect.ValueOfList(&_QueryNFTsResponse_1_list{list: &x.Nfts}) - if !f(fd_QueryNFTsResponse_nfts, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryNFTsResponse_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryNFTsResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryNFTsResponse.nfts": - return len(x.Nfts) != 0 - case "cosmos.nft.v1beta1.QueryNFTsResponse.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryNFTsResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryNFTsResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTsResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryNFTsResponse.nfts": - x.Nfts = nil - case "cosmos.nft.v1beta1.QueryNFTsResponse.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryNFTsResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryNFTsResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryNFTsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.nft.v1beta1.QueryNFTsResponse.nfts": - if len(x.Nfts) == 0 { - return protoreflect.ValueOfList(&_QueryNFTsResponse_1_list{}) - } - listValue := &_QueryNFTsResponse_1_list{list: &x.Nfts} - return protoreflect.ValueOfList(listValue) - case "cosmos.nft.v1beta1.QueryNFTsResponse.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryNFTsResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryNFTsResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryNFTsResponse.nfts": - lv := value.List() - clv := lv.(*_QueryNFTsResponse_1_list) - x.Nfts = *clv.list - case "cosmos.nft.v1beta1.QueryNFTsResponse.pagination": - x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryNFTsResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryNFTsResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryNFTsResponse.nfts": - if x.Nfts == nil { - x.Nfts = []*NFT{} - } - value := &_QueryNFTsResponse_1_list{list: &x.Nfts} - return protoreflect.ValueOfList(value) - case "cosmos.nft.v1beta1.QueryNFTsResponse.pagination": - if x.Pagination == nil { - x.Pagination = new(v1beta1.PageResponse) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryNFTsResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryNFTsResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryNFTsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryNFTsResponse.nfts": - list := []*NFT{} - return protoreflect.ValueOfList(&_QueryNFTsResponse_1_list{list: &list}) - case "cosmos.nft.v1beta1.QueryNFTsResponse.pagination": - m := new(v1beta1.PageResponse) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryNFTsResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryNFTsResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryNFTsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.nft.v1beta1.QueryNFTsResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryNFTsResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTsResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryNFTsResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryNFTsResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryNFTsResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.Nfts) > 0 { - for _, e := range x.Nfts { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryNFTsResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Nfts) > 0 { - for iNdEx := len(x.Nfts) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Nfts[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryNFTsResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNFTsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNFTsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Nfts", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Nfts = append(x.Nfts, &NFT{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Nfts[len(x.Nfts)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &v1beta1.PageResponse{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryNFTRequest protoreflect.MessageDescriptor - fd_QueryNFTRequest_class_id protoreflect.FieldDescriptor - fd_QueryNFTRequest_id protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_nft_v1beta1_query_proto_init() - md_QueryNFTRequest = File_cosmos_nft_v1beta1_query_proto.Messages().ByName("QueryNFTRequest") - fd_QueryNFTRequest_class_id = md_QueryNFTRequest.Fields().ByName("class_id") - fd_QueryNFTRequest_id = md_QueryNFTRequest.Fields().ByName("id") -} - -var _ protoreflect.Message = (*fastReflection_QueryNFTRequest)(nil) - -type fastReflection_QueryNFTRequest QueryNFTRequest - -func (x *QueryNFTRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryNFTRequest)(x) -} - -func (x *QueryNFTRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_nft_v1beta1_query_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryNFTRequest_messageType fastReflection_QueryNFTRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryNFTRequest_messageType{} - -type fastReflection_QueryNFTRequest_messageType struct{} - -func (x fastReflection_QueryNFTRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryNFTRequest)(nil) -} -func (x fastReflection_QueryNFTRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryNFTRequest) -} -func (x fastReflection_QueryNFTRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryNFTRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryNFTRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryNFTRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryNFTRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryNFTRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryNFTRequest) New() protoreflect.Message { - return new(fastReflection_QueryNFTRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryNFTRequest) Interface() protoreflect.ProtoMessage { - return (*QueryNFTRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryNFTRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ClassId != "" { - value := protoreflect.ValueOfString(x.ClassId) - if !f(fd_QueryNFTRequest_class_id, value) { - return - } - } - if x.Id != "" { - value := protoreflect.ValueOfString(x.Id) - if !f(fd_QueryNFTRequest_id, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryNFTRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryNFTRequest.class_id": - return x.ClassId != "" - case "cosmos.nft.v1beta1.QueryNFTRequest.id": - return x.Id != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryNFTRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryNFTRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryNFTRequest.class_id": - x.ClassId = "" - case "cosmos.nft.v1beta1.QueryNFTRequest.id": - x.Id = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryNFTRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryNFTRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryNFTRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.nft.v1beta1.QueryNFTRequest.class_id": - value := x.ClassId - return protoreflect.ValueOfString(value) - case "cosmos.nft.v1beta1.QueryNFTRequest.id": - value := x.Id - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryNFTRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryNFTRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryNFTRequest.class_id": - x.ClassId = value.Interface().(string) - case "cosmos.nft.v1beta1.QueryNFTRequest.id": - x.Id = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryNFTRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryNFTRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryNFTRequest.class_id": - panic(fmt.Errorf("field class_id of message cosmos.nft.v1beta1.QueryNFTRequest is not mutable")) - case "cosmos.nft.v1beta1.QueryNFTRequest.id": - panic(fmt.Errorf("field id of message cosmos.nft.v1beta1.QueryNFTRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryNFTRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryNFTRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryNFTRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryNFTRequest.class_id": - return protoreflect.ValueOfString("") - case "cosmos.nft.v1beta1.QueryNFTRequest.id": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryNFTRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryNFTRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryNFTRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.nft.v1beta1.QueryNFTRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryNFTRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryNFTRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryNFTRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryNFTRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.ClassId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Id) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryNFTRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Id) > 0 { - i -= len(x.Id) - copy(dAtA[i:], x.Id) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Id))) - i-- - dAtA[i] = 0x12 - } - if len(x.ClassId) > 0 { - i -= len(x.ClassId) - copy(dAtA[i:], x.ClassId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClassId))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryNFTRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNFTRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNFTRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ClassId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryNFTResponse protoreflect.MessageDescriptor - fd_QueryNFTResponse_nft protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_nft_v1beta1_query_proto_init() - md_QueryNFTResponse = File_cosmos_nft_v1beta1_query_proto.Messages().ByName("QueryNFTResponse") - fd_QueryNFTResponse_nft = md_QueryNFTResponse.Fields().ByName("nft") -} - -var _ protoreflect.Message = (*fastReflection_QueryNFTResponse)(nil) - -type fastReflection_QueryNFTResponse QueryNFTResponse - -func (x *QueryNFTResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryNFTResponse)(x) -} - -func (x *QueryNFTResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_nft_v1beta1_query_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryNFTResponse_messageType fastReflection_QueryNFTResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryNFTResponse_messageType{} - -type fastReflection_QueryNFTResponse_messageType struct{} - -func (x fastReflection_QueryNFTResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryNFTResponse)(nil) -} -func (x fastReflection_QueryNFTResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryNFTResponse) -} -func (x fastReflection_QueryNFTResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryNFTResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryNFTResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryNFTResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryNFTResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryNFTResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryNFTResponse) New() protoreflect.Message { - return new(fastReflection_QueryNFTResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryNFTResponse) Interface() protoreflect.ProtoMessage { - return (*QueryNFTResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryNFTResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Nft != nil { - value := protoreflect.ValueOfMessage(x.Nft.ProtoReflect()) - if !f(fd_QueryNFTResponse_nft, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryNFTResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryNFTResponse.nft": - return x.Nft != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryNFTResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryNFTResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryNFTResponse.nft": - x.Nft = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryNFTResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryNFTResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryNFTResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.nft.v1beta1.QueryNFTResponse.nft": - value := x.Nft - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryNFTResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryNFTResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryNFTResponse.nft": - x.Nft = value.Message().Interface().(*NFT) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryNFTResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryNFTResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryNFTResponse.nft": - if x.Nft == nil { - x.Nft = new(NFT) - } - return protoreflect.ValueOfMessage(x.Nft.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryNFTResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryNFTResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryNFTResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryNFTResponse.nft": - m := new(NFT) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryNFTResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryNFTResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryNFTResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.nft.v1beta1.QueryNFTResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryNFTResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryNFTResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryNFTResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryNFTResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Nft != nil { - l = options.Size(x.Nft) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryNFTResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Nft != nil { - encoded, err := options.Marshal(x.Nft) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryNFTResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNFTResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Nft", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Nft == nil { - x.Nft = &NFT{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Nft); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryClassRequest protoreflect.MessageDescriptor - fd_QueryClassRequest_class_id protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_nft_v1beta1_query_proto_init() - md_QueryClassRequest = File_cosmos_nft_v1beta1_query_proto.Messages().ByName("QueryClassRequest") - fd_QueryClassRequest_class_id = md_QueryClassRequest.Fields().ByName("class_id") -} - -var _ protoreflect.Message = (*fastReflection_QueryClassRequest)(nil) - -type fastReflection_QueryClassRequest QueryClassRequest - -func (x *QueryClassRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryClassRequest)(x) -} - -func (x *QueryClassRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_nft_v1beta1_query_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryClassRequest_messageType fastReflection_QueryClassRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryClassRequest_messageType{} - -type fastReflection_QueryClassRequest_messageType struct{} - -func (x fastReflection_QueryClassRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryClassRequest)(nil) -} -func (x fastReflection_QueryClassRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryClassRequest) -} -func (x fastReflection_QueryClassRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryClassRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryClassRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryClassRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryClassRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryClassRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryClassRequest) New() protoreflect.Message { - return new(fastReflection_QueryClassRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryClassRequest) Interface() protoreflect.ProtoMessage { - return (*QueryClassRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryClassRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ClassId != "" { - value := protoreflect.ValueOfString(x.ClassId) - if !f(fd_QueryClassRequest_class_id, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryClassRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryClassRequest.class_id": - return x.ClassId != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryClassRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryClassRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryClassRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryClassRequest.class_id": - x.ClassId = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryClassRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryClassRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryClassRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.nft.v1beta1.QueryClassRequest.class_id": - value := x.ClassId - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryClassRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryClassRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryClassRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryClassRequest.class_id": - x.ClassId = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryClassRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryClassRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryClassRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryClassRequest.class_id": - panic(fmt.Errorf("field class_id of message cosmos.nft.v1beta1.QueryClassRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryClassRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryClassRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryClassRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryClassRequest.class_id": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryClassRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryClassRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryClassRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.nft.v1beta1.QueryClassRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryClassRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryClassRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryClassRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryClassRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryClassRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.ClassId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryClassRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.ClassId) > 0 { - i -= len(x.ClassId) - copy(dAtA[i:], x.ClassId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClassId))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryClassRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryClassRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryClassRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ClassId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryClassResponse protoreflect.MessageDescriptor - fd_QueryClassResponse_class protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_nft_v1beta1_query_proto_init() - md_QueryClassResponse = File_cosmos_nft_v1beta1_query_proto.Messages().ByName("QueryClassResponse") - fd_QueryClassResponse_class = md_QueryClassResponse.Fields().ByName("class") -} - -var _ protoreflect.Message = (*fastReflection_QueryClassResponse)(nil) - -type fastReflection_QueryClassResponse QueryClassResponse - -func (x *QueryClassResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryClassResponse)(x) -} - -func (x *QueryClassResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_nft_v1beta1_query_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryClassResponse_messageType fastReflection_QueryClassResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryClassResponse_messageType{} - -type fastReflection_QueryClassResponse_messageType struct{} - -func (x fastReflection_QueryClassResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryClassResponse)(nil) -} -func (x fastReflection_QueryClassResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryClassResponse) -} -func (x fastReflection_QueryClassResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryClassResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryClassResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryClassResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryClassResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryClassResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryClassResponse) New() protoreflect.Message { - return new(fastReflection_QueryClassResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryClassResponse) Interface() protoreflect.ProtoMessage { - return (*QueryClassResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryClassResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Class != nil { - value := protoreflect.ValueOfMessage(x.Class.ProtoReflect()) - if !f(fd_QueryClassResponse_class, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryClassResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryClassResponse.class": - return x.Class != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryClassResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryClassResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryClassResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryClassResponse.class": - x.Class = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryClassResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryClassResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryClassResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.nft.v1beta1.QueryClassResponse.class": - value := x.Class - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryClassResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryClassResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryClassResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryClassResponse.class": - x.Class = value.Message().Interface().(*Class) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryClassResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryClassResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryClassResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryClassResponse.class": - if x.Class == nil { - x.Class = new(Class) - } - return protoreflect.ValueOfMessage(x.Class.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryClassResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryClassResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryClassResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryClassResponse.class": - m := new(Class) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryClassResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryClassResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryClassResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.nft.v1beta1.QueryClassResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryClassResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryClassResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryClassResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryClassResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryClassResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Class != nil { - l = options.Size(x.Class) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryClassResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Class != nil { - encoded, err := options.Marshal(x.Class) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryClassResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryClassResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryClassResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Class", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Class == nil { - x.Class = &Class{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Class); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryClassesRequest protoreflect.MessageDescriptor - fd_QueryClassesRequest_pagination protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_nft_v1beta1_query_proto_init() - md_QueryClassesRequest = File_cosmos_nft_v1beta1_query_proto.Messages().ByName("QueryClassesRequest") - fd_QueryClassesRequest_pagination = md_QueryClassesRequest.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryClassesRequest)(nil) - -type fastReflection_QueryClassesRequest QueryClassesRequest - -func (x *QueryClassesRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryClassesRequest)(x) -} - -func (x *QueryClassesRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_nft_v1beta1_query_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryClassesRequest_messageType fastReflection_QueryClassesRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryClassesRequest_messageType{} - -type fastReflection_QueryClassesRequest_messageType struct{} - -func (x fastReflection_QueryClassesRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryClassesRequest)(nil) -} -func (x fastReflection_QueryClassesRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryClassesRequest) -} -func (x fastReflection_QueryClassesRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryClassesRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryClassesRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryClassesRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryClassesRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryClassesRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryClassesRequest) New() protoreflect.Message { - return new(fastReflection_QueryClassesRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryClassesRequest) Interface() protoreflect.ProtoMessage { - return (*QueryClassesRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryClassesRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryClassesRequest_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryClassesRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryClassesRequest.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryClassesRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryClassesRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryClassesRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryClassesRequest.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryClassesRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryClassesRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryClassesRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.nft.v1beta1.QueryClassesRequest.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryClassesRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryClassesRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryClassesRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryClassesRequest.pagination": - x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryClassesRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryClassesRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryClassesRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryClassesRequest.pagination": - if x.Pagination == nil { - x.Pagination = new(v1beta1.PageRequest) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryClassesRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryClassesRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryClassesRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryClassesRequest.pagination": - m := new(v1beta1.PageRequest) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryClassesRequest")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryClassesRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryClassesRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.nft.v1beta1.QueryClassesRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryClassesRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryClassesRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryClassesRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryClassesRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryClassesRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryClassesRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryClassesRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryClassesRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryClassesRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &v1beta1.PageRequest{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_QueryClassesResponse_1_list)(nil) - -type _QueryClassesResponse_1_list struct { - list *[]*Class -} - -func (x *_QueryClassesResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryClassesResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_QueryClassesResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Class) - (*x.list)[i] = concreteValue -} - -func (x *_QueryClassesResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Class) - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryClassesResponse_1_list) AppendMutable() protoreflect.Value { - v := new(Class) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryClassesResponse_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_QueryClassesResponse_1_list) NewElement() protoreflect.Value { - v := new(Class) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryClassesResponse_1_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QueryClassesResponse protoreflect.MessageDescriptor - fd_QueryClassesResponse_classes protoreflect.FieldDescriptor - fd_QueryClassesResponse_pagination protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_nft_v1beta1_query_proto_init() - md_QueryClassesResponse = File_cosmos_nft_v1beta1_query_proto.Messages().ByName("QueryClassesResponse") - fd_QueryClassesResponse_classes = md_QueryClassesResponse.Fields().ByName("classes") - fd_QueryClassesResponse_pagination = md_QueryClassesResponse.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryClassesResponse)(nil) - -type fastReflection_QueryClassesResponse QueryClassesResponse - -func (x *QueryClassesResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryClassesResponse)(x) -} - -func (x *QueryClassesResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_nft_v1beta1_query_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryClassesResponse_messageType fastReflection_QueryClassesResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryClassesResponse_messageType{} - -type fastReflection_QueryClassesResponse_messageType struct{} - -func (x fastReflection_QueryClassesResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryClassesResponse)(nil) -} -func (x fastReflection_QueryClassesResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryClassesResponse) -} -func (x fastReflection_QueryClassesResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryClassesResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryClassesResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryClassesResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryClassesResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryClassesResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryClassesResponse) New() protoreflect.Message { - return new(fastReflection_QueryClassesResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryClassesResponse) Interface() protoreflect.ProtoMessage { - return (*QueryClassesResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryClassesResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Classes) != 0 { - value := protoreflect.ValueOfList(&_QueryClassesResponse_1_list{list: &x.Classes}) - if !f(fd_QueryClassesResponse_classes, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryClassesResponse_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryClassesResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryClassesResponse.classes": - return len(x.Classes) != 0 - case "cosmos.nft.v1beta1.QueryClassesResponse.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryClassesResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryClassesResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryClassesResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryClassesResponse.classes": - x.Classes = nil - case "cosmos.nft.v1beta1.QueryClassesResponse.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryClassesResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryClassesResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryClassesResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.nft.v1beta1.QueryClassesResponse.classes": - if len(x.Classes) == 0 { - return protoreflect.ValueOfList(&_QueryClassesResponse_1_list{}) - } - listValue := &_QueryClassesResponse_1_list{list: &x.Classes} - return protoreflect.ValueOfList(listValue) - case "cosmos.nft.v1beta1.QueryClassesResponse.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryClassesResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryClassesResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryClassesResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryClassesResponse.classes": - lv := value.List() - clv := lv.(*_QueryClassesResponse_1_list) - x.Classes = *clv.list - case "cosmos.nft.v1beta1.QueryClassesResponse.pagination": - x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryClassesResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryClassesResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryClassesResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryClassesResponse.classes": - if x.Classes == nil { - x.Classes = []*Class{} - } - value := &_QueryClassesResponse_1_list{list: &x.Classes} - return protoreflect.ValueOfList(value) - case "cosmos.nft.v1beta1.QueryClassesResponse.pagination": - if x.Pagination == nil { - x.Pagination = new(v1beta1.PageResponse) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryClassesResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryClassesResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryClassesResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.QueryClassesResponse.classes": - list := []*Class{} - return protoreflect.ValueOfList(&_QueryClassesResponse_1_list{list: &list}) - case "cosmos.nft.v1beta1.QueryClassesResponse.pagination": - m := new(v1beta1.PageResponse) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.QueryClassesResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.QueryClassesResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryClassesResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.nft.v1beta1.QueryClassesResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryClassesResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryClassesResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryClassesResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryClassesResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryClassesResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.Classes) > 0 { - for _, e := range x.Classes { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryClassesResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Classes) > 0 { - for iNdEx := len(x.Classes) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Classes[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryClassesResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryClassesResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryClassesResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Classes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Classes = append(x.Classes, &Class{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Classes[len(x.Classes)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &v1beta1.PageResponse{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cosmos/nft/v1beta1/query.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// QueryBalanceRequest is the request type for the Query/Balance RPC method -type QueryBalanceRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // class_id associated with the nft - ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` - // owner is the owner address of the nft - Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` -} - -func (x *QueryBalanceRequest) Reset() { - *x = QueryBalanceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_nft_v1beta1_query_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryBalanceRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryBalanceRequest) ProtoMessage() {} - -// Deprecated: Use QueryBalanceRequest.ProtoReflect.Descriptor instead. -func (*QueryBalanceRequest) Descriptor() ([]byte, []int) { - return file_cosmos_nft_v1beta1_query_proto_rawDescGZIP(), []int{0} -} - -func (x *QueryBalanceRequest) GetClassId() string { - if x != nil { - return x.ClassId - } - return "" -} - -func (x *QueryBalanceRequest) GetOwner() string { - if x != nil { - return x.Owner - } - return "" -} - -// QueryBalanceResponse is the response type for the Query/Balance RPC method -type QueryBalanceResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // amount is the number of all NFTs of a given class owned by the owner - Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"` -} - -func (x *QueryBalanceResponse) Reset() { - *x = QueryBalanceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_nft_v1beta1_query_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryBalanceResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryBalanceResponse) ProtoMessage() {} - -// Deprecated: Use QueryBalanceResponse.ProtoReflect.Descriptor instead. -func (*QueryBalanceResponse) Descriptor() ([]byte, []int) { - return file_cosmos_nft_v1beta1_query_proto_rawDescGZIP(), []int{1} -} - -func (x *QueryBalanceResponse) GetAmount() uint64 { - if x != nil { - return x.Amount - } - return 0 -} - -// QueryOwnerRequest is the request type for the Query/Owner RPC method -type QueryOwnerRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // class_id associated with the nft - ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` - // id is a unique identifier of the NFT - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *QueryOwnerRequest) Reset() { - *x = QueryOwnerRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_nft_v1beta1_query_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryOwnerRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryOwnerRequest) ProtoMessage() {} - -// Deprecated: Use QueryOwnerRequest.ProtoReflect.Descriptor instead. -func (*QueryOwnerRequest) Descriptor() ([]byte, []int) { - return file_cosmos_nft_v1beta1_query_proto_rawDescGZIP(), []int{2} -} - -func (x *QueryOwnerRequest) GetClassId() string { - if x != nil { - return x.ClassId - } - return "" -} - -func (x *QueryOwnerRequest) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -// QueryOwnerResponse is the response type for the Query/Owner RPC method -type QueryOwnerResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // owner is the owner address of the nft - Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` -} - -func (x *QueryOwnerResponse) Reset() { - *x = QueryOwnerResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_nft_v1beta1_query_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryOwnerResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryOwnerResponse) ProtoMessage() {} - -// Deprecated: Use QueryOwnerResponse.ProtoReflect.Descriptor instead. -func (*QueryOwnerResponse) Descriptor() ([]byte, []int) { - return file_cosmos_nft_v1beta1_query_proto_rawDescGZIP(), []int{3} -} - -func (x *QueryOwnerResponse) GetOwner() string { - if x != nil { - return x.Owner - } - return "" -} - -// QuerySupplyRequest is the request type for the Query/Supply RPC method -type QuerySupplyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // class_id associated with the nft - ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` -} - -func (x *QuerySupplyRequest) Reset() { - *x = QuerySupplyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_nft_v1beta1_query_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QuerySupplyRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QuerySupplyRequest) ProtoMessage() {} - -// Deprecated: Use QuerySupplyRequest.ProtoReflect.Descriptor instead. -func (*QuerySupplyRequest) Descriptor() ([]byte, []int) { - return file_cosmos_nft_v1beta1_query_proto_rawDescGZIP(), []int{4} -} - -func (x *QuerySupplyRequest) GetClassId() string { - if x != nil { - return x.ClassId - } - return "" -} - -// QuerySupplyResponse is the response type for the Query/Supply RPC method -type QuerySupplyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // amount is the number of all NFTs from the given class - Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"` -} - -func (x *QuerySupplyResponse) Reset() { - *x = QuerySupplyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_nft_v1beta1_query_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QuerySupplyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QuerySupplyResponse) ProtoMessage() {} - -// Deprecated: Use QuerySupplyResponse.ProtoReflect.Descriptor instead. -func (*QuerySupplyResponse) Descriptor() ([]byte, []int) { - return file_cosmos_nft_v1beta1_query_proto_rawDescGZIP(), []int{5} -} - -func (x *QuerySupplyResponse) GetAmount() uint64 { - if x != nil { - return x.Amount - } - return 0 -} - -// QueryNFTsRequest is the request type for the Query/NFTs RPC method -type QueryNFTsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // class_id associated with the nft - ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` - // owner is the owner address of the nft - Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` - // pagination defines an optional pagination for the request. - Pagination *v1beta1.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *QueryNFTsRequest) Reset() { - *x = QueryNFTsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_nft_v1beta1_query_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryNFTsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryNFTsRequest) ProtoMessage() {} - -// Deprecated: Use QueryNFTsRequest.ProtoReflect.Descriptor instead. -func (*QueryNFTsRequest) Descriptor() ([]byte, []int) { - return file_cosmos_nft_v1beta1_query_proto_rawDescGZIP(), []int{6} -} - -func (x *QueryNFTsRequest) GetClassId() string { - if x != nil { - return x.ClassId - } - return "" -} - -func (x *QueryNFTsRequest) GetOwner() string { - if x != nil { - return x.Owner - } - return "" -} - -func (x *QueryNFTsRequest) GetPagination() *v1beta1.PageRequest { - if x != nil { - return x.Pagination - } - return nil -} - -// QueryNFTsResponse is the response type for the Query/NFTs RPC methods -type QueryNFTsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // NFT defines the NFT - Nfts []*NFT `protobuf:"bytes,1,rep,name=nfts,proto3" json:"nfts,omitempty"` - // pagination defines the pagination in the response. - Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *QueryNFTsResponse) Reset() { - *x = QueryNFTsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_nft_v1beta1_query_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryNFTsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryNFTsResponse) ProtoMessage() {} - -// Deprecated: Use QueryNFTsResponse.ProtoReflect.Descriptor instead. -func (*QueryNFTsResponse) Descriptor() ([]byte, []int) { - return file_cosmos_nft_v1beta1_query_proto_rawDescGZIP(), []int{7} -} - -func (x *QueryNFTsResponse) GetNfts() []*NFT { - if x != nil { - return x.Nfts - } - return nil -} - -func (x *QueryNFTsResponse) GetPagination() *v1beta1.PageResponse { - if x != nil { - return x.Pagination - } - return nil -} - -// QueryNFTRequest is the request type for the Query/NFT RPC method -type QueryNFTRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // class_id associated with the nft - ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` - // id is a unique identifier of the NFT - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *QueryNFTRequest) Reset() { - *x = QueryNFTRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_nft_v1beta1_query_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryNFTRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryNFTRequest) ProtoMessage() {} - -// Deprecated: Use QueryNFTRequest.ProtoReflect.Descriptor instead. -func (*QueryNFTRequest) Descriptor() ([]byte, []int) { - return file_cosmos_nft_v1beta1_query_proto_rawDescGZIP(), []int{8} -} - -func (x *QueryNFTRequest) GetClassId() string { - if x != nil { - return x.ClassId - } - return "" -} - -func (x *QueryNFTRequest) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -// QueryNFTResponse is the response type for the Query/NFT RPC method -type QueryNFTResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // owner is the owner address of the nft - Nft *NFT `protobuf:"bytes,1,opt,name=nft,proto3" json:"nft,omitempty"` -} - -func (x *QueryNFTResponse) Reset() { - *x = QueryNFTResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_nft_v1beta1_query_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryNFTResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryNFTResponse) ProtoMessage() {} - -// Deprecated: Use QueryNFTResponse.ProtoReflect.Descriptor instead. -func (*QueryNFTResponse) Descriptor() ([]byte, []int) { - return file_cosmos_nft_v1beta1_query_proto_rawDescGZIP(), []int{9} -} - -func (x *QueryNFTResponse) GetNft() *NFT { - if x != nil { - return x.Nft - } - return nil -} - -// QueryClassRequest is the request type for the Query/Class RPC method -type QueryClassRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // class_id associated with the nft - ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` -} - -func (x *QueryClassRequest) Reset() { - *x = QueryClassRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_nft_v1beta1_query_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryClassRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryClassRequest) ProtoMessage() {} - -// Deprecated: Use QueryClassRequest.ProtoReflect.Descriptor instead. -func (*QueryClassRequest) Descriptor() ([]byte, []int) { - return file_cosmos_nft_v1beta1_query_proto_rawDescGZIP(), []int{10} -} - -func (x *QueryClassRequest) GetClassId() string { - if x != nil { - return x.ClassId - } - return "" -} - -// QueryClassResponse is the response type for the Query/Class RPC method -type QueryClassResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // class defines the class of the nft type. - Class *Class `protobuf:"bytes,1,opt,name=class,proto3" json:"class,omitempty"` -} - -func (x *QueryClassResponse) Reset() { - *x = QueryClassResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_nft_v1beta1_query_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryClassResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryClassResponse) ProtoMessage() {} - -// Deprecated: Use QueryClassResponse.ProtoReflect.Descriptor instead. -func (*QueryClassResponse) Descriptor() ([]byte, []int) { - return file_cosmos_nft_v1beta1_query_proto_rawDescGZIP(), []int{11} -} - -func (x *QueryClassResponse) GetClass() *Class { - if x != nil { - return x.Class - } - return nil -} - -// QueryClassesRequest is the request type for the Query/Classes RPC method -type QueryClassesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // pagination defines an optional pagination for the request. - Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *QueryClassesRequest) Reset() { - *x = QueryClassesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_nft_v1beta1_query_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryClassesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryClassesRequest) ProtoMessage() {} - -// Deprecated: Use QueryClassesRequest.ProtoReflect.Descriptor instead. -func (*QueryClassesRequest) Descriptor() ([]byte, []int) { - return file_cosmos_nft_v1beta1_query_proto_rawDescGZIP(), []int{12} -} - -func (x *QueryClassesRequest) GetPagination() *v1beta1.PageRequest { - if x != nil { - return x.Pagination - } - return nil -} - -// QueryClassesResponse is the response type for the Query/Classes RPC method -type QueryClassesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // class defines the class of the nft type. - Classes []*Class `protobuf:"bytes,1,rep,name=classes,proto3" json:"classes,omitempty"` - // pagination defines the pagination in the response. - Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *QueryClassesResponse) Reset() { - *x = QueryClassesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_nft_v1beta1_query_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryClassesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryClassesResponse) ProtoMessage() {} - -// Deprecated: Use QueryClassesResponse.ProtoReflect.Descriptor instead. -func (*QueryClassesResponse) Descriptor() ([]byte, []int) { - return file_cosmos_nft_v1beta1_query_proto_rawDescGZIP(), []int{13} -} - -func (x *QueryClassesResponse) GetClasses() []*Class { - if x != nil { - return x.Classes - } - return nil -} - -func (x *QueryClassesResponse) GetPagination() *v1beta1.PageResponse { - if x != nil { - return x.Pagination - } - return nil -} - -var File_cosmos_nft_v1beta1_query_proto protoreflect.FileDescriptor - -var file_cosmos_nft_v1beta1_query_proto_rawDesc = []byte{ - 0x0a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6e, 0x66, 0x74, 0x2f, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x12, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6e, 0x66, 0x74, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, - 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, - 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, - 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6e, 0x66, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2f, 0x6e, 0x66, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x46, 0x0a, 0x13, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, 0x12, 0x14, - 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, - 0x77, 0x6e, 0x65, 0x72, 0x22, 0x2e, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x6c, - 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, - 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, 0x6d, - 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x3e, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x77, 0x6e, - 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6c, 0x61, - 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x61, - 0x73, 0x73, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x02, 0x69, 0x64, 0x22, 0x2a, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x77, 0x6e, - 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, - 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, - 0x22, 0x2f, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x49, - 0x64, 0x22, 0x2d, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, - 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, - 0x22, 0x8b, 0x01, 0x0a, 0x10, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x46, 0x54, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, - 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x89, - 0x01, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x46, 0x54, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x04, 0x6e, 0x66, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6e, 0x66, 0x74, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4e, 0x46, 0x54, 0x52, 0x04, 0x6e, 0x66, 0x74, - 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, - 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, - 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3c, 0x0a, 0x0f, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x4e, 0x46, 0x54, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, - 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x3d, 0x0a, 0x10, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x4e, 0x46, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x03, - 0x6e, 0x66, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x6e, 0x66, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4e, - 0x46, 0x54, 0x52, 0x03, 0x6e, 0x66, 0x74, 0x22, 0x2e, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, - 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x63, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, 0x22, 0x45, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, - 0x05, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6e, 0x66, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x05, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x22, 0x5d, - 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x94, 0x01, - 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x6e, 0x66, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6c, 0x61, - 0x73, 0x73, 0x52, 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, - 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, - 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x32, 0xbe, 0x07, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x94, - 0x01, 0x0a, 0x07, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x27, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x6e, 0x66, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6e, 0x66, 0x74, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, - 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x36, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x12, 0x2e, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6e, - 0x66, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, - 0x63, 0x65, 0x2f, 0x7b, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x7d, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, - 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x89, 0x01, 0x0a, 0x05, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, - 0x25, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6e, 0x66, 0x74, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x6e, 0x66, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, - 0x6e, 0x66, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6f, 0x77, 0x6e, 0x65, - 0x72, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x69, 0x64, - 0x7d, 0x12, 0x88, 0x01, 0x0a, 0x06, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x26, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6e, 0x66, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6e, 0x66, - 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, - 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, 0x25, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6e, - 0x66, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6c, - 0x79, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x75, 0x0a, 0x04, - 0x4e, 0x46, 0x54, 0x73, 0x12, 0x24, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6e, 0x66, - 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, - 0x46, 0x54, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x6e, 0x66, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x46, 0x54, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x12, 0x18, 0x2f, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2f, 0x6e, 0x66, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6e, - 0x66, 0x74, 0x73, 0x12, 0x82, 0x01, 0x0a, 0x03, 0x4e, 0x46, 0x54, 0x12, 0x23, 0x2e, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6e, 0x66, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x46, 0x54, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x24, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6e, 0x66, 0x74, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x46, 0x54, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x30, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x12, 0x28, - 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6e, 0x66, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2f, 0x6e, 0x66, 0x74, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, - 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x86, 0x01, 0x0a, 0x05, 0x43, 0x6c, 0x61, - 0x73, 0x73, 0x12, 0x25, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6e, 0x66, 0x74, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6c, 0x61, - 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x6e, 0x66, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, 0x2f, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2f, 0x6e, 0x66, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, - 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, - 0x7d, 0x12, 0x81, 0x01, 0x0a, 0x07, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x12, 0x27, 0x2e, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6e, 0x66, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x6e, 0x66, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2f, 0x6e, 0x66, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6c, - 0x61, 0x73, 0x73, 0x65, 0x73, 0x42, 0xbe, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6e, 0x66, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2e, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6e, 0x66, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x3b, 0x6e, 0x66, 0x74, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, - 0x03, 0x43, 0x4e, 0x58, 0xaa, 0x02, 0x12, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x4e, 0x66, - 0x74, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x12, 0x43, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x5c, 0x4e, 0x66, 0x74, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, - 0x1e, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x4e, 0x66, 0x74, 0x5c, 0x56, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, - 0x02, 0x14, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x4e, 0x66, 0x74, 0x3a, 0x3a, 0x56, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cosmos_nft_v1beta1_query_proto_rawDescOnce sync.Once - file_cosmos_nft_v1beta1_query_proto_rawDescData = file_cosmos_nft_v1beta1_query_proto_rawDesc -) - -func file_cosmos_nft_v1beta1_query_proto_rawDescGZIP() []byte { - file_cosmos_nft_v1beta1_query_proto_rawDescOnce.Do(func() { - file_cosmos_nft_v1beta1_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_nft_v1beta1_query_proto_rawDescData) - }) - return file_cosmos_nft_v1beta1_query_proto_rawDescData -} - -var file_cosmos_nft_v1beta1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 14) -var file_cosmos_nft_v1beta1_query_proto_goTypes = []interface{}{ - (*QueryBalanceRequest)(nil), // 0: cosmos.nft.v1beta1.QueryBalanceRequest - (*QueryBalanceResponse)(nil), // 1: cosmos.nft.v1beta1.QueryBalanceResponse - (*QueryOwnerRequest)(nil), // 2: cosmos.nft.v1beta1.QueryOwnerRequest - (*QueryOwnerResponse)(nil), // 3: cosmos.nft.v1beta1.QueryOwnerResponse - (*QuerySupplyRequest)(nil), // 4: cosmos.nft.v1beta1.QuerySupplyRequest - (*QuerySupplyResponse)(nil), // 5: cosmos.nft.v1beta1.QuerySupplyResponse - (*QueryNFTsRequest)(nil), // 6: cosmos.nft.v1beta1.QueryNFTsRequest - (*QueryNFTsResponse)(nil), // 7: cosmos.nft.v1beta1.QueryNFTsResponse - (*QueryNFTRequest)(nil), // 8: cosmos.nft.v1beta1.QueryNFTRequest - (*QueryNFTResponse)(nil), // 9: cosmos.nft.v1beta1.QueryNFTResponse - (*QueryClassRequest)(nil), // 10: cosmos.nft.v1beta1.QueryClassRequest - (*QueryClassResponse)(nil), // 11: cosmos.nft.v1beta1.QueryClassResponse - (*QueryClassesRequest)(nil), // 12: cosmos.nft.v1beta1.QueryClassesRequest - (*QueryClassesResponse)(nil), // 13: cosmos.nft.v1beta1.QueryClassesResponse - (*v1beta1.PageRequest)(nil), // 14: cosmos.base.query.v1beta1.PageRequest - (*NFT)(nil), // 15: cosmos.nft.v1beta1.NFT - (*v1beta1.PageResponse)(nil), // 16: cosmos.base.query.v1beta1.PageResponse - (*Class)(nil), // 17: cosmos.nft.v1beta1.Class -} -var file_cosmos_nft_v1beta1_query_proto_depIdxs = []int32{ - 14, // 0: cosmos.nft.v1beta1.QueryNFTsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 15, // 1: cosmos.nft.v1beta1.QueryNFTsResponse.nfts:type_name -> cosmos.nft.v1beta1.NFT - 16, // 2: cosmos.nft.v1beta1.QueryNFTsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 15, // 3: cosmos.nft.v1beta1.QueryNFTResponse.nft:type_name -> cosmos.nft.v1beta1.NFT - 17, // 4: cosmos.nft.v1beta1.QueryClassResponse.class:type_name -> cosmos.nft.v1beta1.Class - 14, // 5: cosmos.nft.v1beta1.QueryClassesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 17, // 6: cosmos.nft.v1beta1.QueryClassesResponse.classes:type_name -> cosmos.nft.v1beta1.Class - 16, // 7: cosmos.nft.v1beta1.QueryClassesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 0, // 8: cosmos.nft.v1beta1.Query.Balance:input_type -> cosmos.nft.v1beta1.QueryBalanceRequest - 2, // 9: cosmos.nft.v1beta1.Query.Owner:input_type -> cosmos.nft.v1beta1.QueryOwnerRequest - 4, // 10: cosmos.nft.v1beta1.Query.Supply:input_type -> cosmos.nft.v1beta1.QuerySupplyRequest - 6, // 11: cosmos.nft.v1beta1.Query.NFTs:input_type -> cosmos.nft.v1beta1.QueryNFTsRequest - 8, // 12: cosmos.nft.v1beta1.Query.NFT:input_type -> cosmos.nft.v1beta1.QueryNFTRequest - 10, // 13: cosmos.nft.v1beta1.Query.Class:input_type -> cosmos.nft.v1beta1.QueryClassRequest - 12, // 14: cosmos.nft.v1beta1.Query.Classes:input_type -> cosmos.nft.v1beta1.QueryClassesRequest - 1, // 15: cosmos.nft.v1beta1.Query.Balance:output_type -> cosmos.nft.v1beta1.QueryBalanceResponse - 3, // 16: cosmos.nft.v1beta1.Query.Owner:output_type -> cosmos.nft.v1beta1.QueryOwnerResponse - 5, // 17: cosmos.nft.v1beta1.Query.Supply:output_type -> cosmos.nft.v1beta1.QuerySupplyResponse - 7, // 18: cosmos.nft.v1beta1.Query.NFTs:output_type -> cosmos.nft.v1beta1.QueryNFTsResponse - 9, // 19: cosmos.nft.v1beta1.Query.NFT:output_type -> cosmos.nft.v1beta1.QueryNFTResponse - 11, // 20: cosmos.nft.v1beta1.Query.Class:output_type -> cosmos.nft.v1beta1.QueryClassResponse - 13, // 21: cosmos.nft.v1beta1.Query.Classes:output_type -> cosmos.nft.v1beta1.QueryClassesResponse - 15, // [15:22] is the sub-list for method output_type - 8, // [8:15] is the sub-list for method input_type - 8, // [8:8] is the sub-list for extension type_name - 8, // [8:8] is the sub-list for extension extendee - 0, // [0:8] is the sub-list for field type_name -} - -func init() { file_cosmos_nft_v1beta1_query_proto_init() } -func file_cosmos_nft_v1beta1_query_proto_init() { - if File_cosmos_nft_v1beta1_query_proto != nil { - return - } - file_cosmos_nft_v1beta1_nft_proto_init() - if !protoimpl.UnsafeEnabled { - file_cosmos_nft_v1beta1_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryBalanceRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_nft_v1beta1_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryBalanceResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_nft_v1beta1_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryOwnerRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_nft_v1beta1_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryOwnerResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_nft_v1beta1_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QuerySupplyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_nft_v1beta1_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QuerySupplyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_nft_v1beta1_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryNFTsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_nft_v1beta1_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryNFTsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_nft_v1beta1_query_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryNFTRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_nft_v1beta1_query_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryNFTResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_nft_v1beta1_query_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryClassRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_nft_v1beta1_query_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryClassResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_nft_v1beta1_query_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryClassesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_nft_v1beta1_query_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryClassesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cosmos_nft_v1beta1_query_proto_rawDesc, - NumEnums: 0, - NumMessages: 14, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_cosmos_nft_v1beta1_query_proto_goTypes, - DependencyIndexes: file_cosmos_nft_v1beta1_query_proto_depIdxs, - MessageInfos: file_cosmos_nft_v1beta1_query_proto_msgTypes, - }.Build() - File_cosmos_nft_v1beta1_query_proto = out.File - file_cosmos_nft_v1beta1_query_proto_rawDesc = nil - file_cosmos_nft_v1beta1_query_proto_goTypes = nil - file_cosmos_nft_v1beta1_query_proto_depIdxs = nil -} diff --git a/api/cosmos/nft/v1beta1/query_grpc.pb.go b/api/cosmos/nft/v1beta1/query_grpc.pb.go deleted file mode 100644 index 304fa9446e..0000000000 --- a/api/cosmos/nft/v1beta1/query_grpc.pb.go +++ /dev/null @@ -1,369 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.5.1 -// - protoc (unknown) -// source: cosmos/nft/v1beta1/query.proto - -package nftv1beta1 - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.64.0 or later. -const _ = grpc.SupportPackageIsVersion9 - -const ( - Query_Balance_FullMethodName = "/cosmos.nft.v1beta1.Query/Balance" - Query_Owner_FullMethodName = "/cosmos.nft.v1beta1.Query/Owner" - Query_Supply_FullMethodName = "/cosmos.nft.v1beta1.Query/Supply" - Query_NFTs_FullMethodName = "/cosmos.nft.v1beta1.Query/NFTs" - Query_NFT_FullMethodName = "/cosmos.nft.v1beta1.Query/NFT" - Query_Class_FullMethodName = "/cosmos.nft.v1beta1.Query/Class" - Query_Classes_FullMethodName = "/cosmos.nft.v1beta1.Query/Classes" -) - -// QueryClient is the client API for Query service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -// -// Query defines the gRPC querier service. -type QueryClient interface { - // Balance queries the number of NFTs of a given class owned by the owner, same as balanceOf in ERC721 - Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error) - // Owner queries the owner of the NFT based on its class and id, same as ownerOf in ERC721 - Owner(ctx context.Context, in *QueryOwnerRequest, opts ...grpc.CallOption) (*QueryOwnerResponse, error) - // Supply queries the number of NFTs from the given class, same as totalSupply of ERC721. - Supply(ctx context.Context, in *QuerySupplyRequest, opts ...grpc.CallOption) (*QuerySupplyResponse, error) - // NFTs queries all NFTs of a given class or owner,choose at least one of the two, similar to tokenByIndex in - // ERC721Enumerable - NFTs(ctx context.Context, in *QueryNFTsRequest, opts ...grpc.CallOption) (*QueryNFTsResponse, error) - // NFT queries an NFT based on its class and id. - NFT(ctx context.Context, in *QueryNFTRequest, opts ...grpc.CallOption) (*QueryNFTResponse, error) - // Class queries an NFT class based on its id - Class(ctx context.Context, in *QueryClassRequest, opts ...grpc.CallOption) (*QueryClassResponse, error) - // Classes queries all NFT classes - Classes(ctx context.Context, in *QueryClassesRequest, opts ...grpc.CallOption) (*QueryClassesResponse, error) -} - -type queryClient struct { - cc grpc.ClientConnInterface -} - -func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { - return &queryClient{cc} -} - -func (c *queryClient) Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(QueryBalanceResponse) - err := c.cc.Invoke(ctx, Query_Balance_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Owner(ctx context.Context, in *QueryOwnerRequest, opts ...grpc.CallOption) (*QueryOwnerResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(QueryOwnerResponse) - err := c.cc.Invoke(ctx, Query_Owner_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Supply(ctx context.Context, in *QuerySupplyRequest, opts ...grpc.CallOption) (*QuerySupplyResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(QuerySupplyResponse) - err := c.cc.Invoke(ctx, Query_Supply_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) NFTs(ctx context.Context, in *QueryNFTsRequest, opts ...grpc.CallOption) (*QueryNFTsResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(QueryNFTsResponse) - err := c.cc.Invoke(ctx, Query_NFTs_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) NFT(ctx context.Context, in *QueryNFTRequest, opts ...grpc.CallOption) (*QueryNFTResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(QueryNFTResponse) - err := c.cc.Invoke(ctx, Query_NFT_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Class(ctx context.Context, in *QueryClassRequest, opts ...grpc.CallOption) (*QueryClassResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(QueryClassResponse) - err := c.cc.Invoke(ctx, Query_Class_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Classes(ctx context.Context, in *QueryClassesRequest, opts ...grpc.CallOption) (*QueryClassesResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(QueryClassesResponse) - err := c.cc.Invoke(ctx, Query_Classes_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -// QueryServer is the server API for Query service. -// All implementations must embed UnimplementedQueryServer -// for forward compatibility. -// -// Query defines the gRPC querier service. -type QueryServer interface { - // Balance queries the number of NFTs of a given class owned by the owner, same as balanceOf in ERC721 - Balance(context.Context, *QueryBalanceRequest) (*QueryBalanceResponse, error) - // Owner queries the owner of the NFT based on its class and id, same as ownerOf in ERC721 - Owner(context.Context, *QueryOwnerRequest) (*QueryOwnerResponse, error) - // Supply queries the number of NFTs from the given class, same as totalSupply of ERC721. - Supply(context.Context, *QuerySupplyRequest) (*QuerySupplyResponse, error) - // NFTs queries all NFTs of a given class or owner,choose at least one of the two, similar to tokenByIndex in - // ERC721Enumerable - NFTs(context.Context, *QueryNFTsRequest) (*QueryNFTsResponse, error) - // NFT queries an NFT based on its class and id. - NFT(context.Context, *QueryNFTRequest) (*QueryNFTResponse, error) - // Class queries an NFT class based on its id - Class(context.Context, *QueryClassRequest) (*QueryClassResponse, error) - // Classes queries all NFT classes - Classes(context.Context, *QueryClassesRequest) (*QueryClassesResponse, error) - mustEmbedUnimplementedQueryServer() -} - -// UnimplementedQueryServer must be embedded to have -// forward compatible implementations. -// -// NOTE: this should be embedded by value instead of pointer to avoid a nil -// pointer dereference when methods are called. -type UnimplementedQueryServer struct{} - -func (UnimplementedQueryServer) Balance(context.Context, *QueryBalanceRequest) (*QueryBalanceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Balance not implemented") -} -func (UnimplementedQueryServer) Owner(context.Context, *QueryOwnerRequest) (*QueryOwnerResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Owner not implemented") -} -func (UnimplementedQueryServer) Supply(context.Context, *QuerySupplyRequest) (*QuerySupplyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Supply not implemented") -} -func (UnimplementedQueryServer) NFTs(context.Context, *QueryNFTsRequest) (*QueryNFTsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method NFTs not implemented") -} -func (UnimplementedQueryServer) NFT(context.Context, *QueryNFTRequest) (*QueryNFTResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method NFT not implemented") -} -func (UnimplementedQueryServer) Class(context.Context, *QueryClassRequest) (*QueryClassResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Class not implemented") -} -func (UnimplementedQueryServer) Classes(context.Context, *QueryClassesRequest) (*QueryClassesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Classes not implemented") -} -func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} -func (UnimplementedQueryServer) testEmbeddedByValue() {} - -// UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to QueryServer will -// result in compilation errors. -type UnsafeQueryServer interface { - mustEmbedUnimplementedQueryServer() -} - -func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) { - // If the following call pancis, it indicates UnimplementedQueryServer was - // embedded by pointer and is nil. This will cause panics if an - // unimplemented method is ever invoked, so we test this at initialization - // time to prevent it from happening at runtime later due to I/O. - if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { - t.testEmbeddedByValue() - } - s.RegisterService(&Query_ServiceDesc, srv) -} - -func _Query_Balance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryBalanceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Balance(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_Balance_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Balance(ctx, req.(*QueryBalanceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Owner_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryOwnerRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Owner(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_Owner_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Owner(ctx, req.(*QueryOwnerRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Supply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QuerySupplyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Supply(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_Supply_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Supply(ctx, req.(*QuerySupplyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_NFTs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryNFTsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).NFTs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_NFTs_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).NFTs(ctx, req.(*QueryNFTsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_NFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryNFTRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).NFT(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_NFT_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).NFT(ctx, req.(*QueryNFTRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Class_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryClassRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Class(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_Class_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Class(ctx, req.(*QueryClassRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Classes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryClassesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Classes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_Classes_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Classes(ctx, req.(*QueryClassesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// Query_ServiceDesc is the grpc.ServiceDesc for Query service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var Query_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "cosmos.nft.v1beta1.Query", - HandlerType: (*QueryServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Balance", - Handler: _Query_Balance_Handler, - }, - { - MethodName: "Owner", - Handler: _Query_Owner_Handler, - }, - { - MethodName: "Supply", - Handler: _Query_Supply_Handler, - }, - { - MethodName: "NFTs", - Handler: _Query_NFTs_Handler, - }, - { - MethodName: "NFT", - Handler: _Query_NFT_Handler, - }, - { - MethodName: "Class", - Handler: _Query_Class_Handler, - }, - { - MethodName: "Classes", - Handler: _Query_Classes_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "cosmos/nft/v1beta1/query.proto", -} diff --git a/api/cosmos/nft/v1beta1/tx.pulsar.go b/api/cosmos/nft/v1beta1/tx.pulsar.go deleted file mode 100644 index 246a0a34c1..0000000000 --- a/api/cosmos/nft/v1beta1/tx.pulsar.go +++ /dev/null @@ -1,1207 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package nftv1beta1 - -import ( - _ "cosmossdk.io/api/cosmos/msg/v1" - fmt "fmt" - _ "github.com/cosmos/cosmos-proto" - runtime "github.com/cosmos/cosmos-proto/runtime" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_MsgSend protoreflect.MessageDescriptor - fd_MsgSend_class_id protoreflect.FieldDescriptor - fd_MsgSend_id protoreflect.FieldDescriptor - fd_MsgSend_sender protoreflect.FieldDescriptor - fd_MsgSend_receiver protoreflect.FieldDescriptor -) - -func init() { - file_cosmos_nft_v1beta1_tx_proto_init() - md_MsgSend = File_cosmos_nft_v1beta1_tx_proto.Messages().ByName("MsgSend") - fd_MsgSend_class_id = md_MsgSend.Fields().ByName("class_id") - fd_MsgSend_id = md_MsgSend.Fields().ByName("id") - fd_MsgSend_sender = md_MsgSend.Fields().ByName("sender") - fd_MsgSend_receiver = md_MsgSend.Fields().ByName("receiver") -} - -var _ protoreflect.Message = (*fastReflection_MsgSend)(nil) - -type fastReflection_MsgSend MsgSend - -func (x *MsgSend) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSend)(x) -} - -func (x *MsgSend) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_nft_v1beta1_tx_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgSend_messageType fastReflection_MsgSend_messageType -var _ protoreflect.MessageType = fastReflection_MsgSend_messageType{} - -type fastReflection_MsgSend_messageType struct{} - -func (x fastReflection_MsgSend_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSend)(nil) -} -func (x fastReflection_MsgSend_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSend) -} -func (x fastReflection_MsgSend_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSend -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSend) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSend -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgSend) Type() protoreflect.MessageType { - return _fastReflection_MsgSend_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSend) New() protoreflect.Message { - return new(fastReflection_MsgSend) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSend) Interface() protoreflect.ProtoMessage { - return (*MsgSend)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgSend) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ClassId != "" { - value := protoreflect.ValueOfString(x.ClassId) - if !f(fd_MsgSend_class_id, value) { - return - } - } - if x.Id != "" { - value := protoreflect.ValueOfString(x.Id) - if !f(fd_MsgSend_id, value) { - return - } - } - if x.Sender != "" { - value := protoreflect.ValueOfString(x.Sender) - if !f(fd_MsgSend_sender, value) { - return - } - } - if x.Receiver != "" { - value := protoreflect.ValueOfString(x.Receiver) - if !f(fd_MsgSend_receiver, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgSend) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cosmos.nft.v1beta1.MsgSend.class_id": - return x.ClassId != "" - case "cosmos.nft.v1beta1.MsgSend.id": - return x.Id != "" - case "cosmos.nft.v1beta1.MsgSend.sender": - return x.Sender != "" - case "cosmos.nft.v1beta1.MsgSend.receiver": - return x.Receiver != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.MsgSend")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.MsgSend does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSend) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.MsgSend.class_id": - x.ClassId = "" - case "cosmos.nft.v1beta1.MsgSend.id": - x.Id = "" - case "cosmos.nft.v1beta1.MsgSend.sender": - x.Sender = "" - case "cosmos.nft.v1beta1.MsgSend.receiver": - x.Receiver = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.MsgSend")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.MsgSend does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgSend) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cosmos.nft.v1beta1.MsgSend.class_id": - value := x.ClassId - return protoreflect.ValueOfString(value) - case "cosmos.nft.v1beta1.MsgSend.id": - value := x.Id - return protoreflect.ValueOfString(value) - case "cosmos.nft.v1beta1.MsgSend.sender": - value := x.Sender - return protoreflect.ValueOfString(value) - case "cosmos.nft.v1beta1.MsgSend.receiver": - value := x.Receiver - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.MsgSend")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.MsgSend does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSend) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cosmos.nft.v1beta1.MsgSend.class_id": - x.ClassId = value.Interface().(string) - case "cosmos.nft.v1beta1.MsgSend.id": - x.Id = value.Interface().(string) - case "cosmos.nft.v1beta1.MsgSend.sender": - x.Sender = value.Interface().(string) - case "cosmos.nft.v1beta1.MsgSend.receiver": - x.Receiver = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.MsgSend")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.MsgSend does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSend) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.MsgSend.class_id": - panic(fmt.Errorf("field class_id of message cosmos.nft.v1beta1.MsgSend is not mutable")) - case "cosmos.nft.v1beta1.MsgSend.id": - panic(fmt.Errorf("field id of message cosmos.nft.v1beta1.MsgSend is not mutable")) - case "cosmos.nft.v1beta1.MsgSend.sender": - panic(fmt.Errorf("field sender of message cosmos.nft.v1beta1.MsgSend is not mutable")) - case "cosmos.nft.v1beta1.MsgSend.receiver": - panic(fmt.Errorf("field receiver of message cosmos.nft.v1beta1.MsgSend is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.MsgSend")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.MsgSend does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgSend) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cosmos.nft.v1beta1.MsgSend.class_id": - return protoreflect.ValueOfString("") - case "cosmos.nft.v1beta1.MsgSend.id": - return protoreflect.ValueOfString("") - case "cosmos.nft.v1beta1.MsgSend.sender": - return protoreflect.ValueOfString("") - case "cosmos.nft.v1beta1.MsgSend.receiver": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.MsgSend")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.MsgSend does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgSend) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.nft.v1beta1.MsgSend", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgSend) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSend) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgSend) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgSend) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSend) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.ClassId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Id) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Sender) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Receiver) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgSend) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Receiver) > 0 { - i -= len(x.Receiver) - copy(dAtA[i:], x.Receiver) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Receiver))) - i-- - dAtA[i] = 0x22 - } - if len(x.Sender) > 0 { - i -= len(x.Sender) - copy(dAtA[i:], x.Sender) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Sender))) - i-- - dAtA[i] = 0x1a - } - if len(x.Id) > 0 { - i -= len(x.Id) - copy(dAtA[i:], x.Id) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Id))) - i-- - dAtA[i] = 0x12 - } - if len(x.ClassId) > 0 { - i -= len(x.ClassId) - copy(dAtA[i:], x.ClassId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClassId))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgSend) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSend: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSend: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ClassId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Sender = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Receiver", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Receiver = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgSendResponse protoreflect.MessageDescriptor -) - -func init() { - file_cosmos_nft_v1beta1_tx_proto_init() - md_MsgSendResponse = File_cosmos_nft_v1beta1_tx_proto.Messages().ByName("MsgSendResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgSendResponse)(nil) - -type fastReflection_MsgSendResponse MsgSendResponse - -func (x *MsgSendResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSendResponse)(x) -} - -func (x *MsgSendResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_nft_v1beta1_tx_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgSendResponse_messageType fastReflection_MsgSendResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgSendResponse_messageType{} - -type fastReflection_MsgSendResponse_messageType struct{} - -func (x fastReflection_MsgSendResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSendResponse)(nil) -} -func (x fastReflection_MsgSendResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSendResponse) -} -func (x fastReflection_MsgSendResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSendResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSendResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSendResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgSendResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgSendResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSendResponse) New() protoreflect.Message { - return new(fastReflection_MsgSendResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSendResponse) Interface() protoreflect.ProtoMessage { - return (*MsgSendResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgSendResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgSendResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.MsgSendResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.MsgSendResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSendResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.MsgSendResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.MsgSendResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgSendResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.MsgSendResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.MsgSendResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSendResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.MsgSendResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.MsgSendResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSendResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.MsgSendResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.MsgSendResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgSendResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.nft.v1beta1.MsgSendResponse")) - } - panic(fmt.Errorf("message cosmos.nft.v1beta1.MsgSendResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgSendResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.nft.v1beta1.MsgSendResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgSendResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSendResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgSendResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgSendResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSendResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgSendResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgSendResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSendResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSendResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cosmos/nft/v1beta1/tx.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// MsgSend represents a message to send a nft from one account to another account. -type MsgSend struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // class_id defines the unique identifier of the nft classification, similar to the contract address of ERC721 - ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` - // id defines the unique identification of nft - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - // sender is the address of the owner of nft - Sender string `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"` - // receiver is the receiver address of nft - Receiver string `protobuf:"bytes,4,opt,name=receiver,proto3" json:"receiver,omitempty"` -} - -func (x *MsgSend) Reset() { - *x = MsgSend{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_nft_v1beta1_tx_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSend) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSend) ProtoMessage() {} - -// Deprecated: Use MsgSend.ProtoReflect.Descriptor instead. -func (*MsgSend) Descriptor() ([]byte, []int) { - return file_cosmos_nft_v1beta1_tx_proto_rawDescGZIP(), []int{0} -} - -func (x *MsgSend) GetClassId() string { - if x != nil { - return x.ClassId - } - return "" -} - -func (x *MsgSend) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *MsgSend) GetSender() string { - if x != nil { - return x.Sender - } - return "" -} - -func (x *MsgSend) GetReceiver() string { - if x != nil { - return x.Receiver - } - return "" -} - -// MsgSendResponse defines the Msg/Send response type. -type MsgSendResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgSendResponse) Reset() { - *x = MsgSendResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cosmos_nft_v1beta1_tx_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSendResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSendResponse) ProtoMessage() {} - -// Deprecated: Use MsgSendResponse.ProtoReflect.Descriptor instead. -func (*MsgSendResponse) Descriptor() ([]byte, []int) { - return file_cosmos_nft_v1beta1_tx_proto_rawDescGZIP(), []int{1} -} - -var File_cosmos_nft_v1beta1_tx_proto protoreflect.FileDescriptor - -var file_cosmos_nft_v1beta1_tx_proto_rawDesc = []byte{ - 0x0a, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6e, 0x66, 0x74, 0x2f, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6e, 0x66, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x73, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x73, 0x67, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa9, 0x01, 0x0a, 0x07, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, - 0x64, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x30, 0x0a, 0x06, - 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, - 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x34, - 0x0a, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x72, 0x65, 0x63, 0x65, - 0x69, 0x76, 0x65, 0x72, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, - 0x72, 0x22, 0x11, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x56, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x48, 0x0a, 0x04, 0x53, - 0x65, 0x6e, 0x64, 0x12, 0x1b, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6e, 0x66, 0x74, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, - 0x1a, 0x23, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6e, 0x66, 0x74, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xbb, 0x01, 0x0a, - 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6e, 0x66, 0x74, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6e, 0x66, 0x74, 0x2f, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x6e, 0x66, 0x74, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x4e, 0x58, 0xaa, 0x02, 0x12, 0x43, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x4e, 0x66, 0x74, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x12, - 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x4e, 0x66, 0x74, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0xe2, 0x02, 0x1e, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x4e, 0x66, 0x74, 0x5c, - 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x4e, 0x66, - 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, -} - -var ( - file_cosmos_nft_v1beta1_tx_proto_rawDescOnce sync.Once - file_cosmos_nft_v1beta1_tx_proto_rawDescData = file_cosmos_nft_v1beta1_tx_proto_rawDesc -) - -func file_cosmos_nft_v1beta1_tx_proto_rawDescGZIP() []byte { - file_cosmos_nft_v1beta1_tx_proto_rawDescOnce.Do(func() { - file_cosmos_nft_v1beta1_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_nft_v1beta1_tx_proto_rawDescData) - }) - return file_cosmos_nft_v1beta1_tx_proto_rawDescData -} - -var file_cosmos_nft_v1beta1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_cosmos_nft_v1beta1_tx_proto_goTypes = []interface{}{ - (*MsgSend)(nil), // 0: cosmos.nft.v1beta1.MsgSend - (*MsgSendResponse)(nil), // 1: cosmos.nft.v1beta1.MsgSendResponse -} -var file_cosmos_nft_v1beta1_tx_proto_depIdxs = []int32{ - 0, // 0: cosmos.nft.v1beta1.Msg.Send:input_type -> cosmos.nft.v1beta1.MsgSend - 1, // 1: cosmos.nft.v1beta1.Msg.Send:output_type -> cosmos.nft.v1beta1.MsgSendResponse - 1, // [1:2] is the sub-list for method output_type - 0, // [0:1] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_cosmos_nft_v1beta1_tx_proto_init() } -func file_cosmos_nft_v1beta1_tx_proto_init() { - if File_cosmos_nft_v1beta1_tx_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cosmos_nft_v1beta1_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSend); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cosmos_nft_v1beta1_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSendResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cosmos_nft_v1beta1_tx_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_cosmos_nft_v1beta1_tx_proto_goTypes, - DependencyIndexes: file_cosmos_nft_v1beta1_tx_proto_depIdxs, - MessageInfos: file_cosmos_nft_v1beta1_tx_proto_msgTypes, - }.Build() - File_cosmos_nft_v1beta1_tx_proto = out.File - file_cosmos_nft_v1beta1_tx_proto_rawDesc = nil - file_cosmos_nft_v1beta1_tx_proto_goTypes = nil - file_cosmos_nft_v1beta1_tx_proto_depIdxs = nil -} diff --git a/api/cosmos/nft/v1beta1/tx_grpc.pb.go b/api/cosmos/nft/v1beta1/tx_grpc.pb.go deleted file mode 100644 index f706ced244..0000000000 --- a/api/cosmos/nft/v1beta1/tx_grpc.pb.go +++ /dev/null @@ -1,127 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.5.1 -// - protoc (unknown) -// source: cosmos/nft/v1beta1/tx.proto - -package nftv1beta1 - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.64.0 or later. -const _ = grpc.SupportPackageIsVersion9 - -const ( - Msg_Send_FullMethodName = "/cosmos.nft.v1beta1.Msg/Send" -) - -// MsgClient is the client API for Msg service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -// -// Msg defines the nft Msg service. -type MsgClient interface { - // Send defines a method to send a nft from one account to another account. - Send(ctx context.Context, in *MsgSend, opts ...grpc.CallOption) (*MsgSendResponse, error) -} - -type msgClient struct { - cc grpc.ClientConnInterface -} - -func NewMsgClient(cc grpc.ClientConnInterface) MsgClient { - return &msgClient{cc} -} - -func (c *msgClient) Send(ctx context.Context, in *MsgSend, opts ...grpc.CallOption) (*MsgSendResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(MsgSendResponse) - err := c.cc.Invoke(ctx, Msg_Send_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -// MsgServer is the server API for Msg service. -// All implementations must embed UnimplementedMsgServer -// for forward compatibility. -// -// Msg defines the nft Msg service. -type MsgServer interface { - // Send defines a method to send a nft from one account to another account. - Send(context.Context, *MsgSend) (*MsgSendResponse, error) - mustEmbedUnimplementedMsgServer() -} - -// UnimplementedMsgServer must be embedded to have -// forward compatible implementations. -// -// NOTE: this should be embedded by value instead of pointer to avoid a nil -// pointer dereference when methods are called. -type UnimplementedMsgServer struct{} - -func (UnimplementedMsgServer) Send(context.Context, *MsgSend) (*MsgSendResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Send not implemented") -} -func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {} -func (UnimplementedMsgServer) testEmbeddedByValue() {} - -// UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to MsgServer will -// result in compilation errors. -type UnsafeMsgServer interface { - mustEmbedUnimplementedMsgServer() -} - -func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer) { - // If the following call pancis, it indicates UnimplementedMsgServer was - // embedded by pointer and is nil. This will cause panics if an - // unimplemented method is ever invoked, so we test this at initialization - // time to prevent it from happening at runtime later due to I/O. - if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { - t.testEmbeddedByValue() - } - s.RegisterService(&Msg_ServiceDesc, srv) -} - -func _Msg_Send_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgSend) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).Send(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_Send_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).Send(ctx, req.(*MsgSend)) - } - return interceptor(ctx, in, info, handler) -} - -// Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var Msg_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "cosmos.nft.v1beta1.Msg", - HandlerType: (*MsgServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Send", - Handler: _Msg_Send_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "cosmos/nft/v1beta1/tx.proto", -} diff --git a/api/cosmos/staking/v1beta1/staking.pulsar.go b/api/cosmos/staking/v1beta1/staking.pulsar.go index 03836ab9f2..2a45b42488 100644 --- a/api/cosmos/staking/v1beta1/staking.pulsar.go +++ b/api/cosmos/staking/v1beta1/staking.pulsar.go @@ -3,9 +3,9 @@ package stakingv1beta1 import ( _ "cosmossdk.io/api/amino" - v21 "cosmossdk.io/api/cometbft/abci/v2" - v2 "cosmossdk.io/api/cometbft/types/v2" v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" + abci "cosmossdk.io/api/tendermint/abci" + types "cosmossdk.io/api/tendermint/types" fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" @@ -247,7 +247,7 @@ func (x *fastReflection_HistoricalInfo) Get(descriptor protoreflect.FieldDescrip func (x *fastReflection_HistoricalInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "cosmos.staking.v1beta1.HistoricalInfo.header": - x.Header = value.Message().Interface().(*v2.Header) + x.Header = value.Message().Interface().(*types.Header) case "cosmos.staking.v1beta1.HistoricalInfo.valset": lv := value.List() clv := lv.(*_HistoricalInfo_2_list) @@ -274,7 +274,7 @@ func (x *fastReflection_HistoricalInfo) Mutable(fd protoreflect.FieldDescriptor) switch fd.FullName() { case "cosmos.staking.v1beta1.HistoricalInfo.header": if x.Header == nil { - x.Header = new(v2.Header) + x.Header = new(types.Header) } return protoreflect.ValueOfMessage(x.Header.ProtoReflect()) case "cosmos.staking.v1beta1.HistoricalInfo.valset": @@ -297,7 +297,7 @@ func (x *fastReflection_HistoricalInfo) Mutable(fd protoreflect.FieldDescriptor) func (x *fastReflection_HistoricalInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "cosmos.staking.v1beta1.HistoricalInfo.header": - m := new(v2.Header) + m := new(types.Header) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cosmos.staking.v1beta1.HistoricalInfo.valset": list := []*Validator{} @@ -519,7 +519,7 @@ func (x *fastReflection_HistoricalInfo) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.Header == nil { - x.Header = &v2.Header{} + x.Header = &types.Header{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Header); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -12188,7 +12188,7 @@ func (x *fastReflection_Pool) ProtoMethods() *protoiface.Methods { var _ protoreflect.List = (*_ValidatorUpdates_1_list)(nil) type _ValidatorUpdates_1_list struct { - list *[]*v21.ValidatorUpdate + list *[]*abci.ValidatorUpdate } func (x *_ValidatorUpdates_1_list) Len() int { @@ -12204,18 +12204,18 @@ func (x *_ValidatorUpdates_1_list) Get(i int) protoreflect.Value { func (x *_ValidatorUpdates_1_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v21.ValidatorUpdate) + concreteValue := valueUnwrapped.Interface().(*abci.ValidatorUpdate) (*x.list)[i] = concreteValue } func (x *_ValidatorUpdates_1_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v21.ValidatorUpdate) + concreteValue := valueUnwrapped.Interface().(*abci.ValidatorUpdate) *x.list = append(*x.list, concreteValue) } func (x *_ValidatorUpdates_1_list) AppendMutable() protoreflect.Value { - v := new(v21.ValidatorUpdate) + v := new(abci.ValidatorUpdate) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -12228,7 +12228,7 @@ func (x *_ValidatorUpdates_1_list) Truncate(n int) { } func (x *_ValidatorUpdates_1_list) NewElement() protoreflect.Value { - v := new(v21.ValidatorUpdate) + v := new(abci.ValidatorUpdate) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -12421,7 +12421,7 @@ func (x *fastReflection_ValidatorUpdates) Mutable(fd protoreflect.FieldDescripto switch fd.FullName() { case "cosmos.staking.v1beta1.ValidatorUpdates.updates": if x.Updates == nil { - x.Updates = []*v21.ValidatorUpdate{} + x.Updates = []*abci.ValidatorUpdate{} } value := &_ValidatorUpdates_1_list{list: &x.Updates} return protoreflect.ValueOfList(value) @@ -12439,7 +12439,7 @@ func (x *fastReflection_ValidatorUpdates) Mutable(fd protoreflect.FieldDescripto func (x *fastReflection_ValidatorUpdates) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "cosmos.staking.v1beta1.ValidatorUpdates.updates": - list := []*v21.ValidatorUpdate{} + list := []*abci.ValidatorUpdate{} return protoreflect.ValueOfList(&_ValidatorUpdates_1_list{list: &list}) default: if fd.IsExtension() { @@ -12639,7 +12639,7 @@ func (x *fastReflection_ValidatorUpdates) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Updates = append(x.Updates, &v21.ValidatorUpdate{}) + x.Updates = append(x.Updates, &abci.ValidatorUpdate{}) if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Updates[len(x.Updates)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -12749,7 +12749,7 @@ func (BondStatus) EnumDescriptor() ([]byte, []int) { return file_cosmos_staking_v1beta1_staking_proto_rawDescGZIP(), []int{0} } -// Infraction indicates the infraction a validator committed. +// Infraction indicates the infraction a validator commited. type Infraction int32 const ( @@ -12811,8 +12811,8 @@ type HistoricalInfo struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Header *v2.Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Valset []*Validator `protobuf:"bytes,2,rep,name=valset,proto3" json:"valset,omitempty"` + Header *types.Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Valset []*Validator `protobuf:"bytes,2,rep,name=valset,proto3" json:"valset,omitempty"` } func (x *HistoricalInfo) Reset() { @@ -12835,7 +12835,7 @@ func (*HistoricalInfo) Descriptor() ([]byte, []int) { return file_cosmos_staking_v1beta1_staking_proto_rawDescGZIP(), []int{0} } -func (x *HistoricalInfo) GetHeader() *v2.Header { +func (x *HistoricalInfo) GetHeader() *types.Header { if x != nil { return x.Header } @@ -13061,7 +13061,7 @@ type Validator struct { MinSelfDelegation string `protobuf:"bytes,11,opt,name=min_self_delegation,json=minSelfDelegation,proto3" json:"min_self_delegation,omitempty"` // strictly positive if this validator's unbonding has been stopped by external modules UnbondingOnHoldRefCount int64 `protobuf:"varint,12,opt,name=unbonding_on_hold_ref_count,json=unbondingOnHoldRefCount,proto3" json:"unbonding_on_hold_ref_count,omitempty"` - // list of unbonding ids, each uniquely identifying an unbonding of this validator + // list of unbonding ids, each uniquely identifing an unbonding of this validator UnbondingIds []uint64 `protobuf:"varint,13,rep,packed,name=unbonding_ids,json=unbondingIds,proto3" json:"unbonding_ids,omitempty"` } @@ -13998,7 +13998,7 @@ type ValidatorUpdates struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Updates []*v21.ValidatorUpdate `protobuf:"bytes,1,rep,name=updates,proto3" json:"updates,omitempty"` + Updates []*abci.ValidatorUpdate `protobuf:"bytes,1,rep,name=updates,proto3" json:"updates,omitempty"` } func (x *ValidatorUpdates) Reset() { @@ -14021,7 +14021,7 @@ func (*ValidatorUpdates) Descriptor() ([]byte, []int) { return file_cosmos_staking_v1beta1_staking_proto_rawDescGZIP(), []int{20} } -func (x *ValidatorUpdates) GetUpdates() []*v21.ValidatorUpdate { +func (x *ValidatorUpdates) GetUpdates() []*abci.ValidatorUpdate { if x != nil { return x.Updates } @@ -14046,383 +14046,383 @@ var file_cosmos_staking_v1beta1_staking_proto_rawDesc = []byte{ 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x61, 0x6d, 0x69, - 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, - 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, - 0x32, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x63, - 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x61, 0x62, 0x63, 0x69, 0x2f, 0x76, 0x32, 0x2f, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x94, 0x01, 0x0a, 0x0e, - 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x63, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x3c, - 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, - 0x76, 0x32, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, - 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x44, 0x0a, 0x06, - 0x76, 0x61, 0x6c, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x42, - 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x73, - 0x65, 0x74, 0x22, 0x96, 0x02, 0x0a, 0x0f, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x52, 0x61, 0x74, 0x65, 0x73, 0x12, 0x4a, 0x0a, 0x04, 0x72, 0x61, 0x74, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x36, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, - 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x44, 0x65, 0x63, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x63, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x04, 0x72, 0x61, - 0x74, 0x65, 0x12, 0x51, 0x0a, 0x08, 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x36, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, - 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x44, 0x65, 0x63, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x63, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x07, 0x6d, 0x61, - 0x78, 0x52, 0x61, 0x74, 0x65, 0x12, 0x5e, 0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x5f, 0x63, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x36, - 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, - 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, - 0x44, 0x65, 0x63, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65, - 0x63, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0d, 0x6d, 0x61, 0x78, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x52, 0x61, 0x74, 0x65, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0xc1, 0x01, 0x0a, 0x0a, - 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x61, 0x0a, 0x10, 0x63, 0x6f, - 0x6d, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, - 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, - 0x6d, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x61, 0x74, 0x65, 0x73, 0x42, 0x0d, 0xc8, - 0xde, 0x1f, 0x00, 0xd0, 0xde, 0x1f, 0x01, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0f, 0x63, 0x6f, - 0x6d, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x61, 0x74, 0x65, 0x73, 0x12, 0x4a, 0x0a, - 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x0d, - 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0a, 0x75, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, - 0xa8, 0x01, 0x0a, 0x0b, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x18, 0x0a, 0x07, 0x6d, 0x6f, 0x6e, 0x69, 0x6b, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x6d, 0x6f, 0x6e, 0x69, 0x6b, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x77, 0x65, 0x62, 0x73, 0x69, 0x74, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x77, 0x65, 0x62, 0x73, 0x69, 0x74, 0x65, 0x12, - 0x29, 0x0a, 0x10, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x74, - 0x61, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x73, 0x65, 0x63, 0x75, 0x72, - 0x69, 0x74, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, - 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x65, 0x74, - 0x61, 0x69, 0x6c, 0x73, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0x9d, 0x07, 0x0a, 0x09, 0x56, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x43, 0x0a, 0x10, 0x6f, 0x70, 0x65, 0x72, - 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0f, 0x6f, 0x70, - 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x59, 0x0a, - 0x10, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x5f, 0x70, 0x75, 0x62, 0x6b, 0x65, - 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x42, 0x18, 0xca, - 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, - 0x2e, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, - 0x75, 0x73, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x6a, 0x61, 0x69, 0x6c, - 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x6a, 0x61, 0x69, 0x6c, 0x65, 0x64, - 0x12, 0x3a, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x22, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, - 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x6f, 0x6e, 0x64, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x43, 0x0a, 0x06, - 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xc8, 0xde, - 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, - 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x52, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, - 0x73, 0x12, 0x5c, 0x0a, 0x10, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x31, 0xc8, 0xde, 0x1f, + 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, + 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x74, 0x65, + 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x61, 0x62, 0x63, 0x69, 0x2f, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x93, 0x01, 0x0a, 0x0e, 0x48, 0x69, + 0x73, 0x74, 0x6f, 0x72, 0x69, 0x63, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x3b, 0x0a, 0x06, + 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, + 0x01, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x44, 0x0a, 0x06, 0x76, 0x61, 0x6c, + 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x42, 0x09, 0xc8, 0xde, + 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x73, 0x65, 0x74, 0x22, + 0x96, 0x02, 0x0a, 0x0f, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x61, + 0x74, 0x65, 0x73, 0x12, 0x4a, 0x0a, 0x04, 0x72, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x36, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, + 0x61, 0x63, 0x79, 0x44, 0x65, 0x63, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x44, 0x65, 0x63, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x04, 0x72, 0x61, 0x74, 0x65, 0x12, + 0x51, 0x0a, 0x08, 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x36, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, + 0x61, 0x63, 0x79, 0x44, 0x65, 0x63, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x44, 0x65, 0x63, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x07, 0x6d, 0x61, 0x78, 0x52, 0x61, + 0x74, 0x65, 0x12, 0x5e, 0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x36, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x44, 0x65, 0x63, - 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x0f, - 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x12, - 0x50, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, - 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x65, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, - 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x75, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x68, - 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x75, 0x6e, 0x62, - 0x6f, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x50, 0x0a, 0x0e, - 0x75, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x09, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x42, 0x0d, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, - 0x0d, 0x75, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x4d, - 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x61, 0x6b, - 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, - 0x01, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x6e, 0x0a, - 0x13, 0x6d, 0x69, 0x6e, 0x5f, 0x73, 0x65, 0x6c, 0x66, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x42, 0x3e, 0xc8, 0xde, 0x1f, 0x00, - 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, - 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xda, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x36, 0x52, 0x11, 0x6d, 0x69, 0x6e, 0x53, - 0x65, 0x6c, 0x66, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3c, 0x0a, - 0x1b, 0x75, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x6f, 0x6e, 0x5f, 0x68, 0x6f, - 0x6c, 0x64, 0x5f, 0x72, 0x65, 0x66, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x0c, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x17, 0x75, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x4f, 0x6e, 0x48, - 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x66, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x75, - 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x0d, 0x20, 0x03, - 0x28, 0x04, 0x52, 0x0c, 0x75, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x49, 0x64, 0x73, - 0x3a, 0x08, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x22, 0x46, 0x0a, 0x0c, 0x56, 0x61, - 0x6c, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, 0x18, 0xd2, - 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x65, 0x73, 0x22, 0xa9, 0x01, 0x0a, 0x06, 0x44, 0x56, 0x50, 0x61, 0x69, 0x72, 0x12, 0x45, 0x0a, - 0x11, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x52, 0x10, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x12, 0x4e, 0x0a, 0x11, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, - 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x21, 0xd2, 0xb4, 0x2d, 0x1d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x52, 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x3a, 0x08, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x22, 0x4a, - 0x0a, 0x07, 0x44, 0x56, 0x50, 0x61, 0x69, 0x72, 0x73, 0x12, 0x3f, 0x0a, 0x05, 0x70, 0x61, 0x69, - 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x44, 0x56, 0x50, 0x61, 0x69, 0x72, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, - 0xb0, 0x2a, 0x01, 0x52, 0x05, 0x70, 0x61, 0x69, 0x72, 0x73, 0x22, 0x8b, 0x02, 0x0a, 0x0a, 0x44, - 0x56, 0x56, 0x54, 0x72, 0x69, 0x70, 0x6c, 0x65, 0x74, 0x12, 0x45, 0x0a, 0x11, 0x64, 0x65, 0x6c, - 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x10, - 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x12, 0x55, 0x0a, 0x15, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x73, 0x72, - 0x63, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x21, 0xd2, 0xb4, 0x2d, 0x1d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x52, 0x13, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x72, 0x63, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x55, 0x0a, 0x15, 0x76, 0x61, 0x6c, 0x69, 0x64, - 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x64, 0x73, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x21, 0xd2, 0xb4, 0x2d, 0x1d, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x13, 0x76, 0x61, 0x6c, 0x69, 0x64, - 0x61, 0x74, 0x6f, 0x72, 0x44, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x08, - 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x22, 0x58, 0x0a, 0x0b, 0x44, 0x56, 0x56, 0x54, - 0x72, 0x69, 0x70, 0x6c, 0x65, 0x74, 0x73, 0x12, 0x49, 0x0a, 0x08, 0x74, 0x72, 0x69, 0x70, 0x6c, - 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x44, 0x56, 0x56, 0x54, 0x72, 0x69, 0x70, 0x6c, 0x65, 0x74, 0x42, 0x09, 0xc8, - 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x08, 0x74, 0x72, 0x69, 0x70, 0x6c, 0x65, - 0x74, 0x73, 0x22, 0xf8, 0x01, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x45, 0x0a, 0x11, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, - 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x10, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, - 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x4e, 0x0a, 0x11, 0x76, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x21, 0xd2, 0xb4, 0x2d, 0x1d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, - 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x49, 0x0a, 0x06, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x31, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, + 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x63, 0xa8, 0xe7, + 0xb0, 0x2a, 0x01, 0x52, 0x0d, 0x6d, 0x61, 0x78, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x61, + 0x74, 0x65, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0xc1, 0x01, 0x0a, 0x0a, 0x43, 0x6f, 0x6d, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x61, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x61, 0x6b, 0x69, + 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x61, 0x74, 0x65, 0x73, 0x42, 0x0d, 0xc8, 0xde, 0x1f, 0x00, + 0xd0, 0xde, 0x1f, 0x01, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x61, 0x74, 0x65, 0x73, 0x12, 0x4a, 0x0a, 0x0b, 0x75, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x0d, 0xc8, 0xde, 0x1f, + 0x00, 0x90, 0xdf, 0x1f, 0x01, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0xa8, 0x01, 0x0a, + 0x0b, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, + 0x6d, 0x6f, 0x6e, 0x69, 0x6b, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, + 0x6f, 0x6e, 0x69, 0x6b, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x77, 0x65, 0x62, 0x73, 0x69, 0x74, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x77, 0x65, 0x62, 0x73, 0x69, 0x74, 0x65, 0x12, 0x29, 0x0a, 0x10, + 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, + 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, + 0x6c, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, + 0x73, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0x9d, 0x07, 0x0a, 0x09, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x43, 0x0a, 0x10, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, + 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0f, 0x6f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x59, 0x0a, 0x10, 0x63, 0x6f, + 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x5f, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x42, 0x18, 0xca, 0xb4, 0x2d, 0x14, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x50, 0x75, + 0x62, 0x4b, 0x65, 0x79, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x50, + 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x6a, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x6a, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x12, 0x3a, 0x0a, + 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x6f, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x43, 0x0a, 0x06, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xc8, 0xde, 0x1f, 0x00, 0xda, + 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, + 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x52, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x5c, + 0x0a, 0x10, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x31, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x44, 0x65, 0x63, 0xd2, 0xb4, 0x2d, - 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x06, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x73, 0x3a, 0x08, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x22, 0x8d, 0x02, - 0x0a, 0x13, 0x55, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x67, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x45, 0x0a, 0x11, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, - 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x10, 0x64, 0x65, 0x6c, 0x65, - 0x67, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x4e, 0x0a, 0x11, - 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x21, 0xd2, 0xb4, 0x2d, 0x1d, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x10, 0x76, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x55, 0x0a, 0x07, - 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x69, 0x6e, 0x67, - 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, - 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x07, 0x65, 0x6e, 0x74, 0x72, - 0x69, 0x65, 0x73, 0x3a, 0x08, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x22, 0x9b, 0x03, - 0x0a, 0x18, 0x55, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x67, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x0e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x69, - 0x67, 0x68, 0x74, 0x12, 0x52, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x0d, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, - 0x1f, 0x01, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0e, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, - 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x54, 0x0a, 0x0f, 0x69, 0x6e, 0x69, 0x74, 0x69, - 0x61, 0x6c, 0x5f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x2b, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, - 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x52, 0x0e, 0x69, - 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x45, 0x0a, - 0x07, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, - 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, - 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, - 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x52, 0x07, 0x62, 0x61, 0x6c, - 0x61, 0x6e, 0x63, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x75, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x69, 0x6e, - 0x67, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x75, 0x6e, 0x62, 0x6f, - 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x49, 0x64, 0x12, 0x3c, 0x0a, 0x1b, 0x75, 0x6e, 0x62, 0x6f, 0x6e, - 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x6f, 0x6e, 0x5f, 0x68, 0x6f, 0x6c, 0x64, 0x5f, 0x72, 0x65, 0x66, - 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x17, 0x75, 0x6e, - 0x62, 0x6f, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x4f, 0x6e, 0x48, 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x66, - 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0x9f, 0x03, 0x0a, 0x11, - 0x52, 0x65, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x68, 0x65, - 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x52, 0x0a, 0x0f, 0x63, 0x6f, - 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, - 0x0d, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0e, - 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x54, - 0x0a, 0x0f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, + 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x0f, 0x64, 0x65, 0x6c, + 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x12, 0x50, 0x0a, 0x0b, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x61, 0x6b, 0x69, + 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, + 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, + 0x0a, 0x10, 0x75, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x68, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x75, 0x6e, 0x62, 0x6f, 0x6e, 0x64, + 0x69, 0x6e, 0x67, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x50, 0x0a, 0x0e, 0x75, 0x6e, 0x62, + 0x6f, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x0d, 0xc8, + 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0d, 0x75, 0x6e, + 0x62, 0x6f, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x4d, 0x0a, 0x0a, 0x63, + 0x6f, 0x6d, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x22, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0a, + 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x6e, 0x0a, 0x13, 0x6d, 0x69, + 0x6e, 0x5f, 0x73, 0x65, 0x6c, 0x66, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x42, 0x3e, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x49, 0x6e, 0x74, 0x52, 0x0e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x42, 0x61, 0x6c, - 0x61, 0x6e, 0x63, 0x65, 0x12, 0x50, 0x0a, 0x0a, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x5f, 0x64, - 0x73, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x31, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, - 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, - 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x44, 0x65, 0x63, 0xd2, 0xb4, 0x2d, - 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x09, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x73, 0x44, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x75, 0x6e, 0x62, 0x6f, 0x6e, 0x64, - 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x75, 0x6e, - 0x62, 0x6f, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x49, 0x64, 0x12, 0x3c, 0x0a, 0x1b, 0x75, 0x6e, 0x62, - 0x6f, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x6f, 0x6e, 0x5f, 0x68, 0x6f, 0x6c, 0x64, 0x5f, 0x72, - 0x65, 0x66, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x17, - 0x75, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x4f, 0x6e, 0x48, 0x6f, 0x6c, 0x64, 0x52, - 0x65, 0x66, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0xdd, 0x02, - 0x0a, 0x0c, 0x52, 0x65, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x45, + 0x2e, 0x49, 0x6e, 0x74, 0xda, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, + 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x36, 0x52, 0x11, 0x6d, 0x69, 0x6e, 0x53, 0x65, 0x6c, 0x66, + 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3c, 0x0a, 0x1b, 0x75, 0x6e, + 0x62, 0x6f, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x6f, 0x6e, 0x5f, 0x68, 0x6f, 0x6c, 0x64, 0x5f, + 0x72, 0x65, 0x66, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x17, 0x75, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x4f, 0x6e, 0x48, 0x6f, 0x6c, 0x64, + 0x52, 0x65, 0x66, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x75, 0x6e, 0x62, 0x6f, + 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x04, 0x52, + 0x0c, 0x75, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x49, 0x64, 0x73, 0x3a, 0x08, 0x88, + 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x22, 0x46, 0x0a, 0x0c, 0x56, 0x61, 0x6c, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x22, + 0xa9, 0x01, 0x0a, 0x06, 0x44, 0x56, 0x50, 0x61, 0x69, 0x72, 0x12, 0x45, 0x0a, 0x11, 0x64, 0x65, + 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, + 0x10, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x12, 0x4e, 0x0a, 0x11, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x21, 0xd2, 0xb4, + 0x2d, 0x1d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, + 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x3a, 0x08, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x22, 0x4a, 0x0a, 0x07, 0x44, + 0x56, 0x50, 0x61, 0x69, 0x72, 0x73, 0x12, 0x3f, 0x0a, 0x05, 0x70, 0x61, 0x69, 0x72, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, + 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, + 0x56, 0x50, 0x61, 0x69, 0x72, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, + 0x52, 0x05, 0x70, 0x61, 0x69, 0x72, 0x73, 0x22, 0x8b, 0x02, 0x0a, 0x0a, 0x44, 0x56, 0x56, 0x54, + 0x72, 0x69, 0x70, 0x6c, 0x65, 0x74, 0x12, 0x45, 0x0a, 0x11, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, + 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x10, 0x64, 0x65, 0x6c, + 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x55, 0x0a, + 0x15, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x73, 0x72, 0x63, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x21, 0xd2, 0xb4, + 0x2d, 0x1d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, + 0x13, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x72, 0x63, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x12, 0x55, 0x0a, 0x15, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, + 0x72, 0x5f, 0x64, 0x73, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x21, 0xd2, 0xb4, 0x2d, 0x1d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x13, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, + 0x72, 0x44, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x08, 0x88, 0xa0, 0x1f, + 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x22, 0x58, 0x0a, 0x0b, 0x44, 0x56, 0x56, 0x54, 0x72, 0x69, 0x70, + 0x6c, 0x65, 0x74, 0x73, 0x12, 0x49, 0x0a, 0x08, 0x74, 0x72, 0x69, 0x70, 0x6c, 0x65, 0x74, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x44, 0x56, 0x56, 0x54, 0x72, 0x69, 0x70, 0x6c, 0x65, 0x74, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, + 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x08, 0x74, 0x72, 0x69, 0x70, 0x6c, 0x65, 0x74, 0x73, 0x22, + 0xf8, 0x01, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x45, 0x0a, 0x11, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x10, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x55, 0x0a, 0x15, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, - 0x6f, 0x72, 0x5f, 0x73, 0x72, 0x63, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x4e, 0x0a, 0x11, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x21, 0xd2, 0xb4, 0x2d, 0x1d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x56, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, + 0x69, 0x6e, 0x67, 0x52, 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x49, 0x0a, 0x06, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x31, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, + 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x44, 0x65, 0x63, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x06, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, + 0x3a, 0x08, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x22, 0x8d, 0x02, 0x0a, 0x13, 0x55, + 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x45, 0x0a, 0x11, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x5f, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, + 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x10, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, + 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x4e, 0x0a, 0x11, 0x76, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x21, 0xd2, 0xb4, 0x2d, 0x1d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x13, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, - 0x6f, 0x72, 0x53, 0x72, 0x63, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x55, 0x0a, 0x15, - 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x64, 0x73, 0x74, 0x5f, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x21, 0xd2, 0xb4, 0x2d, - 0x1d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, - 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x13, - 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x44, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x12, 0x4e, 0x0a, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x04, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, + 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x55, 0x0a, 0x07, 0x65, 0x6e, 0x74, + 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x55, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x6c, + 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x09, 0xc8, 0xde, + 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, + 0x3a, 0x08, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x22, 0x9b, 0x03, 0x0a, 0x18, 0x55, + 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x0e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x12, 0x52, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, + 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x0d, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0xa8, + 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0e, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, + 0x54, 0x69, 0x6d, 0x65, 0x12, 0x54, 0x0a, 0x0f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x5f, + 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xc8, + 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, + 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x52, 0x0e, 0x69, 0x6e, 0x69, 0x74, + 0x69, 0x61, 0x6c, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x45, 0x0a, 0x07, 0x62, 0x61, + 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xc8, 0xde, 0x1f, + 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, + 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x52, 0x07, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, + 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x75, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x69, + 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x75, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x69, + 0x6e, 0x67, 0x49, 0x64, 0x12, 0x3c, 0x0a, 0x1b, 0x75, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x69, 0x6e, + 0x67, 0x5f, 0x6f, 0x6e, 0x5f, 0x68, 0x6f, 0x6c, 0x64, 0x5f, 0x72, 0x65, 0x66, 0x5f, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x17, 0x75, 0x6e, 0x62, 0x6f, 0x6e, + 0x64, 0x69, 0x6e, 0x67, 0x4f, 0x6e, 0x48, 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x66, 0x43, 0x6f, 0x75, + 0x6e, 0x74, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0x9f, 0x03, 0x0a, 0x11, 0x52, 0x65, 0x64, + 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x27, + 0x0a, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x52, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, + 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x0d, 0xc8, 0xde, + 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0e, 0x63, 0x6f, 0x6d, + 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x54, 0x0a, 0x0f, 0x69, + 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, + 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, + 0x74, 0x52, 0x0e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, + 0x65, 0x12, 0x50, 0x0a, 0x0a, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x5f, 0x64, 0x73, 0x74, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x31, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, + 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x44, 0x65, 0x63, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x09, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, + 0x44, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x75, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x69, 0x6e, 0x67, + 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x75, 0x6e, 0x62, 0x6f, 0x6e, + 0x64, 0x69, 0x6e, 0x67, 0x49, 0x64, 0x12, 0x3c, 0x0a, 0x1b, 0x75, 0x6e, 0x62, 0x6f, 0x6e, 0x64, + 0x69, 0x6e, 0x67, 0x5f, 0x6f, 0x6e, 0x5f, 0x68, 0x6f, 0x6c, 0x64, 0x5f, 0x72, 0x65, 0x66, 0x5f, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x17, 0x75, 0x6e, 0x62, + 0x6f, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x4f, 0x6e, 0x48, 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x66, 0x43, + 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0xdd, 0x02, 0x0a, 0x0c, 0x52, + 0x65, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x45, 0x0a, 0x11, 0x64, + 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x52, 0x10, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x12, 0x55, 0x0a, 0x15, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, + 0x73, 0x72, 0x63, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x21, 0xd2, 0xb4, 0x2d, 0x1d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x52, 0x13, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, + 0x72, 0x63, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x55, 0x0a, 0x15, 0x76, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x64, 0x73, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x21, 0xd2, 0xb4, 0x2d, 0x1d, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x13, 0x76, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x44, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x12, 0x4e, 0x0a, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x61, 0x6b, 0x69, + 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x64, 0x65, 0x6c, + 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x09, 0xc8, 0xde, + 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, + 0x3a, 0x08, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x22, 0x9c, 0x03, 0x0a, 0x06, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x4f, 0x0a, 0x0e, 0x75, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x69, + 0x6e, 0x67, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0d, 0xc8, 0xde, 0x1f, 0x00, 0x98, 0xdf, + 0x1f, 0x01, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0d, 0x75, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x69, + 0x6e, 0x67, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x6d, 0x61, 0x78, 0x5f, 0x76, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, + 0x6d, 0x61, 0x78, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x1f, 0x0a, + 0x0b, 0x6d, 0x61, 0x78, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x0a, 0x6d, 0x61, 0x78, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x2d, + 0x0a, 0x12, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x65, 0x6e, 0x74, + 0x72, 0x69, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x11, 0x68, 0x69, 0x73, 0x74, + 0x6f, 0x72, 0x69, 0x63, 0x61, 0x6c, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x1d, 0x0a, + 0x0a, 0x62, 0x6f, 0x6e, 0x64, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x62, 0x6f, 0x6e, 0x64, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x84, 0x01, 0x0a, + 0x13, 0x6d, 0x69, 0x6e, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, + 0x72, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x54, 0xc8, 0xde, 0x1f, 0x00, + 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, + 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x44, 0x65, 0x63, 0xf2, + 0xde, 0x1f, 0x1a, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6d, 0x69, 0x6e, 0x5f, 0x63, 0x6f, 0x6d, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x22, 0xd2, 0xb4, 0x2d, + 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x63, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, + 0x52, 0x11, 0x6d, 0x69, 0x6e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, + 0x61, 0x74, 0x65, 0x3a, 0x24, 0xe8, 0xa0, 0x1f, 0x01, 0x8a, 0xe7, 0xb0, 0x2a, 0x1b, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x78, 0x2f, 0x73, 0x74, 0x61, 0x6b, 0x69, + 0x6e, 0x67, 0x2f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0xa9, 0x01, 0x0a, 0x12, 0x44, 0x65, + 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x4d, 0x0a, 0x0a, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, + 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x65, + 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, + 0xb0, 0x2a, 0x01, 0x52, 0x0a, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x3e, 0x0a, 0x07, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x09, 0xc8, 0xde, 0x1f, + 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x07, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x3a, + 0x04, 0xe8, 0xa0, 0x1f, 0x00, 0x22, 0xcd, 0x01, 0x0a, 0x19, 0x52, 0x65, 0x64, 0x65, 0x6c, 0x65, + 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, 0x12, 0x72, 0x65, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x29, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x64, 0x65, 0x6c, 0x65, 0x67, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, + 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x11, 0x72, 0x65, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x45, 0x0a, 0x07, 0x62, 0x61, 0x6c, 0x61, + 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xc8, 0xde, 0x1f, 0x00, 0xda, + 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, + 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x52, 0x07, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x3a, + 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0xc9, 0x01, 0x0a, 0x14, 0x52, 0x65, 0x64, 0x65, 0x6c, 0x65, + 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, + 0x0a, 0x0c, 0x72, 0x65, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, - 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, - 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x07, 0x65, 0x6e, 0x74, 0x72, - 0x69, 0x65, 0x73, 0x3a, 0x08, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x22, 0x9c, 0x03, - 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x4f, 0x0a, 0x0e, 0x75, 0x6e, 0x62, 0x6f, - 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0d, 0xc8, 0xde, 0x1f, - 0x00, 0x98, 0xdf, 0x1f, 0x01, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0d, 0x75, 0x6e, 0x62, 0x6f, - 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x6d, 0x61, 0x78, - 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0d, 0x52, 0x0d, 0x6d, 0x61, 0x78, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, - 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x61, 0x78, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x6d, 0x61, 0x78, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, - 0x73, 0x12, 0x2d, 0x0a, 0x12, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x63, 0x61, 0x6c, 0x5f, - 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x11, 0x68, - 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x63, 0x61, 0x6c, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, - 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6f, 0x6e, 0x64, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x62, 0x6f, 0x6e, 0x64, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x12, - 0x84, 0x01, 0x0a, 0x13, 0x6d, 0x69, 0x6e, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x54, 0xc8, - 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, - 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x44, - 0x65, 0x63, 0xf2, 0xde, 0x1f, 0x1a, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6d, 0x69, 0x6e, 0x5f, - 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x22, - 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x63, 0xa8, 0xe7, - 0xb0, 0x2a, 0x01, 0x52, 0x11, 0x6d, 0x69, 0x6e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x52, 0x61, 0x74, 0x65, 0x3a, 0x24, 0xe8, 0xa0, 0x1f, 0x01, 0x8a, 0xe7, 0xb0, 0x2a, - 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x78, 0x2f, 0x73, 0x74, - 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0xa9, 0x01, 0x0a, - 0x12, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x0a, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x09, 0xc8, 0xde, 0x1f, - 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0a, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x3e, 0x0a, 0x07, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, - 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x09, - 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x07, 0x62, 0x61, 0x6c, 0x61, 0x6e, - 0x63, 0x65, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x00, 0x22, 0xcd, 0x01, 0x0a, 0x19, 0x52, 0x65, 0x64, - 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, 0x12, 0x72, 0x65, 0x64, 0x65, 0x6c, 0x65, - 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x61, 0x6b, - 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x64, 0x65, - 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x09, 0xc8, - 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x11, 0x72, 0x65, 0x64, 0x65, 0x6c, 0x65, - 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x45, 0x0a, 0x07, 0x62, - 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xc8, 0xde, - 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, - 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x52, 0x07, 0x62, 0x61, 0x6c, 0x61, 0x6e, - 0x63, 0x65, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0xc9, 0x01, 0x0a, 0x14, 0x52, 0x65, 0x64, - 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x53, 0x0a, 0x0c, 0x72, 0x65, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x52, 0x65, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x09, 0xc8, - 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0c, 0x72, 0x65, 0x64, 0x65, 0x6c, 0x65, - 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x56, 0x0a, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, - 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x52, 0x65, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, - 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x3a, 0x04, - 0xe8, 0xa0, 0x1f, 0x00, 0x22, 0xeb, 0x01, 0x0a, 0x04, 0x50, 0x6f, 0x6f, 0x6c, 0x12, 0x71, 0x0a, - 0x11, 0x6e, 0x6f, 0x74, 0x5f, 0x62, 0x6f, 0x6e, 0x64, 0x65, 0x64, 0x5f, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x45, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, - 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, - 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xea, 0xde, 0x1f, 0x11, 0x6e, 0x6f, 0x74, 0x5f, 0x62, - 0x6f, 0x6e, 0x64, 0x65, 0x64, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0xd2, 0xb4, 0x2d, 0x0a, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, - 0x0f, 0x6e, 0x6f, 0x74, 0x42, 0x6f, 0x6e, 0x64, 0x65, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, - 0x12, 0x66, 0x0a, 0x0d, 0x62, 0x6f, 0x6e, 0x64, 0x65, 0x64, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, - 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x41, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, - 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, - 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xea, 0xde, 0x1f, 0x0d, 0x62, 0x6f, 0x6e, 0x64, 0x65, 0x64, - 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0c, 0x62, 0x6f, 0x6e, 0x64, - 0x65, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x3a, 0x08, 0xe8, 0xa0, 0x1f, 0x01, 0xf0, 0xa0, - 0x1f, 0x01, 0x22, 0x5a, 0x0a, 0x10, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x12, 0x46, 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, - 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, - 0x61, 0x74, 0x6f, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, - 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x2a, 0xb6, - 0x01, 0x0a, 0x0a, 0x42, 0x6f, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2c, 0x0a, - 0x17, 0x42, 0x4f, 0x4e, 0x44, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, - 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x1a, 0x0f, 0x8a, 0x9d, 0x20, 0x0b, - 0x55, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x26, 0x0a, 0x14, 0x42, - 0x4f, 0x4e, 0x44, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x42, 0x4f, 0x4e, - 0x44, 0x45, 0x44, 0x10, 0x01, 0x1a, 0x0c, 0x8a, 0x9d, 0x20, 0x08, 0x55, 0x6e, 0x62, 0x6f, 0x6e, - 0x64, 0x65, 0x64, 0x12, 0x28, 0x0a, 0x15, 0x42, 0x4f, 0x4e, 0x44, 0x5f, 0x53, 0x54, 0x41, 0x54, - 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x42, 0x4f, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x1a, 0x0d, - 0x8a, 0x9d, 0x20, 0x09, 0x55, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x22, 0x0a, - 0x12, 0x42, 0x4f, 0x4e, 0x44, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x42, 0x4f, 0x4e, - 0x44, 0x45, 0x44, 0x10, 0x03, 0x1a, 0x0a, 0x8a, 0x9d, 0x20, 0x06, 0x42, 0x6f, 0x6e, 0x64, 0x65, - 0x64, 0x1a, 0x04, 0x88, 0xa3, 0x1e, 0x00, 0x2a, 0x5d, 0x0a, 0x0a, 0x49, 0x6e, 0x66, 0x72, 0x61, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x16, 0x49, 0x4e, 0x46, 0x52, 0x41, 0x43, 0x54, - 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, - 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x49, 0x4e, 0x46, 0x52, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, - 0x44, 0x4f, 0x55, 0x42, 0x4c, 0x45, 0x5f, 0x53, 0x49, 0x47, 0x4e, 0x10, 0x01, 0x12, 0x17, 0x0a, - 0x13, 0x49, 0x4e, 0x46, 0x52, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x44, 0x4f, 0x57, 0x4e, - 0x54, 0x49, 0x4d, 0x45, 0x10, 0x02, 0x42, 0xdc, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0c, 0x53, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x36, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, - 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x73, - 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x73, - 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, - 0x43, 0x53, 0x58, 0xaa, 0x02, 0x16, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x61, - 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x16, 0x43, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x22, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x53, - 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, - 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x18, 0x43, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x53, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x56, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, + 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0c, 0x72, 0x65, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x56, 0x0a, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, + 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, + 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, + 0x2a, 0x01, 0x52, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, + 0x00, 0x22, 0xeb, 0x01, 0x0a, 0x04, 0x50, 0x6f, 0x6f, 0x6c, 0x12, 0x71, 0x0a, 0x11, 0x6e, 0x6f, + 0x74, 0x5f, 0x62, 0x6f, 0x6e, 0x64, 0x65, 0x64, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x45, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, + 0x2e, 0x49, 0x6e, 0x74, 0xea, 0xde, 0x1f, 0x11, 0x6e, 0x6f, 0x74, 0x5f, 0x62, 0x6f, 0x6e, 0x64, + 0x65, 0x64, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0f, 0x6e, 0x6f, + 0x74, 0x42, 0x6f, 0x6e, 0x64, 0x65, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x66, 0x0a, + 0x0d, 0x62, 0x6f, 0x6e, 0x64, 0x65, 0x64, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x41, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, + 0x49, 0x6e, 0x74, 0xea, 0xde, 0x1f, 0x0d, 0x62, 0x6f, 0x6e, 0x64, 0x65, 0x64, 0x5f, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x73, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, + 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0c, 0x62, 0x6f, 0x6e, 0x64, 0x65, 0x64, 0x54, + 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x3a, 0x08, 0xe8, 0xa0, 0x1f, 0x01, 0xf0, 0xa0, 0x1f, 0x01, 0x22, + 0x59, 0x0a, 0x10, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x73, 0x12, 0x45, 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, + 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, + 0x01, 0x52, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x2a, 0xb6, 0x01, 0x0a, 0x0a, 0x42, + 0x6f, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2c, 0x0a, 0x17, 0x42, 0x4f, 0x4e, + 0x44, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, + 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x1a, 0x0f, 0x8a, 0x9d, 0x20, 0x0b, 0x55, 0x6e, 0x73, 0x70, + 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x26, 0x0a, 0x14, 0x42, 0x4f, 0x4e, 0x44, 0x5f, + 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x42, 0x4f, 0x4e, 0x44, 0x45, 0x44, 0x10, + 0x01, 0x1a, 0x0c, 0x8a, 0x9d, 0x20, 0x08, 0x55, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x65, 0x64, 0x12, + 0x28, 0x0a, 0x15, 0x42, 0x4f, 0x4e, 0x44, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, + 0x4e, 0x42, 0x4f, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x1a, 0x0d, 0x8a, 0x9d, 0x20, 0x09, + 0x55, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x22, 0x0a, 0x12, 0x42, 0x4f, 0x4e, + 0x44, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x42, 0x4f, 0x4e, 0x44, 0x45, 0x44, 0x10, + 0x03, 0x1a, 0x0a, 0x8a, 0x9d, 0x20, 0x06, 0x42, 0x6f, 0x6e, 0x64, 0x65, 0x64, 0x1a, 0x04, 0x88, + 0xa3, 0x1e, 0x00, 0x2a, 0x5d, 0x0a, 0x0a, 0x49, 0x6e, 0x66, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x1a, 0x0a, 0x16, 0x49, 0x4e, 0x46, 0x52, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, + 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1a, 0x0a, + 0x16, 0x49, 0x4e, 0x46, 0x52, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x44, 0x4f, 0x55, 0x42, + 0x4c, 0x45, 0x5f, 0x53, 0x49, 0x47, 0x4e, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x49, 0x4e, 0x46, + 0x52, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x44, 0x4f, 0x57, 0x4e, 0x54, 0x49, 0x4d, 0x45, + 0x10, 0x02, 0x42, 0xdc, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x42, 0x0c, 0x53, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x36, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x6b, 0x69, + 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x73, 0x74, 0x61, 0x6b, 0x69, + 0x6e, 0x67, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x53, 0x58, 0xaa, + 0x02, 0x16, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, + 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x16, 0x43, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x5c, 0x53, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0xe2, 0x02, 0x22, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x61, 0x6b, 0x69, + 0x6e, 0x67, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x18, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, + 0x3a, 0x53, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -14463,15 +14463,15 @@ var file_cosmos_staking_v1beta1_staking_proto_goTypes = []interface{}{ (*RedelegationResponse)(nil), // 20: cosmos.staking.v1beta1.RedelegationResponse (*Pool)(nil), // 21: cosmos.staking.v1beta1.Pool (*ValidatorUpdates)(nil), // 22: cosmos.staking.v1beta1.ValidatorUpdates - (*v2.Header)(nil), // 23: cometbft.types.v2.Header + (*types.Header)(nil), // 23: tendermint.types.Header (*timestamppb.Timestamp)(nil), // 24: google.protobuf.Timestamp (*anypb.Any)(nil), // 25: google.protobuf.Any (*durationpb.Duration)(nil), // 26: google.protobuf.Duration (*v1beta1.Coin)(nil), // 27: cosmos.base.v1beta1.Coin - (*v21.ValidatorUpdate)(nil), // 28: cometbft.abci.v2.ValidatorUpdate + (*abci.ValidatorUpdate)(nil), // 28: tendermint.abci.ValidatorUpdate } var file_cosmos_staking_v1beta1_staking_proto_depIdxs = []int32{ - 23, // 0: cosmos.staking.v1beta1.HistoricalInfo.header:type_name -> cometbft.types.v2.Header + 23, // 0: cosmos.staking.v1beta1.HistoricalInfo.header:type_name -> tendermint.types.Header 6, // 1: cosmos.staking.v1beta1.HistoricalInfo.valset:type_name -> cosmos.staking.v1beta1.Validator 3, // 2: cosmos.staking.v1beta1.Commission.commission_rates:type_name -> cosmos.staking.v1beta1.CommissionRates 24, // 3: cosmos.staking.v1beta1.Commission.update_time:type_name -> google.protobuf.Timestamp @@ -14492,7 +14492,7 @@ var file_cosmos_staking_v1beta1_staking_proto_depIdxs = []int32{ 15, // 18: cosmos.staking.v1beta1.RedelegationEntryResponse.redelegation_entry:type_name -> cosmos.staking.v1beta1.RedelegationEntry 16, // 19: cosmos.staking.v1beta1.RedelegationResponse.redelegation:type_name -> cosmos.staking.v1beta1.Redelegation 19, // 20: cosmos.staking.v1beta1.RedelegationResponse.entries:type_name -> cosmos.staking.v1beta1.RedelegationEntryResponse - 28, // 21: cosmos.staking.v1beta1.ValidatorUpdates.updates:type_name -> cometbft.abci.v2.ValidatorUpdate + 28, // 21: cosmos.staking.v1beta1.ValidatorUpdates.updates:type_name -> tendermint.abci.ValidatorUpdate 22, // [22:22] is the sub-list for method output_type 22, // [22:22] is the sub-list for method input_type 22, // [22:22] is the sub-list for extension type_name diff --git a/api/cosmos/store/streaming/abci/grpc.pulsar.go b/api/cosmos/store/streaming/abci/grpc.pulsar.go index 99a2916908..b661596ea4 100644 --- a/api/cosmos/store/streaming/abci/grpc.pulsar.go +++ b/api/cosmos/store/streaming/abci/grpc.pulsar.go @@ -2,8 +2,8 @@ package abci import ( - v2 "cosmossdk.io/api/cometbft/abci/v2" v1beta1 "cosmossdk.io/api/cosmos/store/v1beta1" + abci "cosmossdk.io/api/tendermint/abci" fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -186,9 +186,9 @@ func (x *fastReflection_ListenFinalizeBlockRequest) Get(descriptor protoreflect. func (x *fastReflection_ListenFinalizeBlockRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "cosmos.store.streaming.abci.ListenFinalizeBlockRequest.req": - x.Req = value.Message().Interface().(*v2.FinalizeBlockRequest) + x.Req = value.Message().Interface().(*abci.RequestFinalizeBlock) case "cosmos.store.streaming.abci.ListenFinalizeBlockRequest.res": - x.Res = value.Message().Interface().(*v2.FinalizeBlockResponse) + x.Res = value.Message().Interface().(*abci.ResponseFinalizeBlock) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.store.streaming.abci.ListenFinalizeBlockRequest")) @@ -211,12 +211,12 @@ func (x *fastReflection_ListenFinalizeBlockRequest) Mutable(fd protoreflect.Fiel switch fd.FullName() { case "cosmos.store.streaming.abci.ListenFinalizeBlockRequest.req": if x.Req == nil { - x.Req = new(v2.FinalizeBlockRequest) + x.Req = new(abci.RequestFinalizeBlock) } return protoreflect.ValueOfMessage(x.Req.ProtoReflect()) case "cosmos.store.streaming.abci.ListenFinalizeBlockRequest.res": if x.Res == nil { - x.Res = new(v2.FinalizeBlockResponse) + x.Res = new(abci.ResponseFinalizeBlock) } return protoreflect.ValueOfMessage(x.Res.ProtoReflect()) default: @@ -233,10 +233,10 @@ func (x *fastReflection_ListenFinalizeBlockRequest) Mutable(fd protoreflect.Fiel func (x *fastReflection_ListenFinalizeBlockRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "cosmos.store.streaming.abci.ListenFinalizeBlockRequest.req": - m := new(v2.FinalizeBlockRequest) + m := new(abci.RequestFinalizeBlock) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cosmos.store.streaming.abci.ListenFinalizeBlockRequest.res": - m := new(v2.FinalizeBlockResponse) + m := new(abci.ResponseFinalizeBlock) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { @@ -451,7 +451,7 @@ func (x *fastReflection_ListenFinalizeBlockRequest) ProtoMethods() *protoiface.M return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.Req == nil { - x.Req = &v2.FinalizeBlockRequest{} + x.Req = &abci.RequestFinalizeBlock{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Req); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -487,7 +487,7 @@ func (x *fastReflection_ListenFinalizeBlockRequest) ProtoMethods() *protoiface.M return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.Res == nil { - x.Res = &v2.FinalizeBlockResponse{} + x.Res = &abci.ResponseFinalizeBlock{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Res); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -1127,7 +1127,7 @@ func (x *fastReflection_ListenCommitRequest) Set(fd protoreflect.FieldDescriptor case "cosmos.store.streaming.abci.ListenCommitRequest.block_height": x.BlockHeight = value.Int() case "cosmos.store.streaming.abci.ListenCommitRequest.res": - x.Res = value.Message().Interface().(*v2.CommitResponse) + x.Res = value.Message().Interface().(*abci.ResponseCommit) case "cosmos.store.streaming.abci.ListenCommitRequest.change_set": lv := value.List() clv := lv.(*_ListenCommitRequest_3_list) @@ -1154,7 +1154,7 @@ func (x *fastReflection_ListenCommitRequest) Mutable(fd protoreflect.FieldDescri switch fd.FullName() { case "cosmos.store.streaming.abci.ListenCommitRequest.res": if x.Res == nil { - x.Res = new(v2.CommitResponse) + x.Res = new(abci.ResponseCommit) } return protoreflect.ValueOfMessage(x.Res.ProtoReflect()) case "cosmos.store.streaming.abci.ListenCommitRequest.change_set": @@ -1181,7 +1181,7 @@ func (x *fastReflection_ListenCommitRequest) NewField(fd protoreflect.FieldDescr case "cosmos.store.streaming.abci.ListenCommitRequest.block_height": return protoreflect.ValueOfInt64(int64(0)) case "cosmos.store.streaming.abci.ListenCommitRequest.res": - m := new(v2.CommitResponse) + m := new(abci.ResponseCommit) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cosmos.store.streaming.abci.ListenCommitRequest.change_set": list := []*v1beta1.StoreKVPair{} @@ -1430,7 +1430,7 @@ func (x *fastReflection_ListenCommitRequest) ProtoMethods() *protoiface.Methods return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.Res == nil { - x.Res = &v2.CommitResponse{} + x.Res = &abci.ResponseCommit{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Res); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -1880,8 +1880,8 @@ type ListenFinalizeBlockRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Req *v2.FinalizeBlockRequest `protobuf:"bytes,1,opt,name=req,proto3" json:"req,omitempty"` - Res *v2.FinalizeBlockResponse `protobuf:"bytes,2,opt,name=res,proto3" json:"res,omitempty"` + Req *abci.RequestFinalizeBlock `protobuf:"bytes,1,opt,name=req,proto3" json:"req,omitempty"` + Res *abci.ResponseFinalizeBlock `protobuf:"bytes,2,opt,name=res,proto3" json:"res,omitempty"` } func (x *ListenFinalizeBlockRequest) Reset() { @@ -1904,14 +1904,14 @@ func (*ListenFinalizeBlockRequest) Descriptor() ([]byte, []int) { return file_cosmos_store_streaming_abci_grpc_proto_rawDescGZIP(), []int{0} } -func (x *ListenFinalizeBlockRequest) GetReq() *v2.FinalizeBlockRequest { +func (x *ListenFinalizeBlockRequest) GetReq() *abci.RequestFinalizeBlock { if x != nil { return x.Req } return nil } -func (x *ListenFinalizeBlockRequest) GetRes() *v2.FinalizeBlockResponse { +func (x *ListenFinalizeBlockRequest) GetRes() *abci.ResponseFinalizeBlock { if x != nil { return x.Res } @@ -1953,7 +1953,7 @@ type ListenCommitRequest struct { // explicitly pass in block height as ResponseCommit does not contain this info BlockHeight int64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` - Res *v2.CommitResponse `protobuf:"bytes,2,opt,name=res,proto3" json:"res,omitempty"` + Res *abci.ResponseCommit `protobuf:"bytes,2,opt,name=res,proto3" json:"res,omitempty"` ChangeSet []*v1beta1.StoreKVPair `protobuf:"bytes,3,rep,name=change_set,json=changeSet,proto3" json:"change_set,omitempty"` } @@ -1984,7 +1984,7 @@ func (x *ListenCommitRequest) GetBlockHeight() int64 { return 0 } -func (x *ListenCommitRequest) GetRes() *v2.CommitResponse { +func (x *ListenCommitRequest) GetRes() *abci.ResponseCommit { if x != nil { return x.Res } @@ -2032,68 +2032,67 @@ var file_cosmos_store_streaming_abci_grpc_proto_rawDesc = []byte{ 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x62, 0x63, 0x69, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, - 0x2e, 0x61, 0x62, 0x63, 0x69, 0x1a, 0x1c, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, - 0x61, 0x62, 0x63, 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x73, 0x74, 0x6f, 0x72, - 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, - 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x91, 0x01, 0x0a, 0x1a, 0x4c, 0x69, - 0x73, 0x74, 0x65, 0x6e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x03, 0x72, 0x65, 0x71, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, - 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, - 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x03, 0x72, - 0x65, 0x71, 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x27, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, - 0x76, 0x32, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x03, 0x72, 0x65, 0x73, 0x22, 0x1d, 0x0a, - 0x1b, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x42, - 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xae, 0x01, 0x0a, - 0x13, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, - 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, - 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x32, 0x0a, 0x03, 0x72, 0x65, 0x73, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, - 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x03, 0x72, 0x65, 0x73, 0x12, 0x40, 0x0a, 0x0a, 0x63, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x21, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x4b, 0x56, 0x50, 0x61, - 0x69, 0x72, 0x52, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x53, 0x65, 0x74, 0x22, 0x16, 0x0a, - 0x14, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x95, 0x02, 0x0a, 0x13, 0x41, 0x42, 0x43, 0x49, 0x4c, 0x69, - 0x73, 0x74, 0x65, 0x6e, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x88, 0x01, - 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, - 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x37, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, - 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x61, - 0x62, 0x63, 0x69, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, - 0x7a, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, - 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x73, 0x74, - 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x4c, 0x69, 0x73, + 0x2e, 0x61, 0x62, 0x63, 0x69, 0x1a, 0x1b, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, + 0x74, 0x2f, 0x61, 0x62, 0x63, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x24, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, + 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x69, + 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8f, 0x01, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x73, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, - 0x65, 0x6e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x30, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, - 0x67, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x43, 0x6f, 0x6d, - 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x63, 0x6f, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x03, 0x72, 0x65, 0x71, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, + 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x46, 0x69, + 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x03, 0x72, 0x65, 0x71, + 0x12, 0x38, 0x0a, 0x03, 0x72, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, + 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x03, 0x72, 0x65, 0x73, 0x22, 0x1d, 0x0a, 0x1b, 0x4c, 0x69, + 0x73, 0x74, 0x65, 0x6e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xad, 0x01, 0x0a, 0x13, 0x4c, 0x69, + 0x73, 0x74, 0x65, 0x6e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, + 0x69, 0x67, 0x68, 0x74, 0x12, 0x31, 0x0a, 0x03, 0x72, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, + 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x43, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x52, 0x03, 0x72, 0x65, 0x73, 0x12, 0x40, 0x0a, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x4b, 0x56, 0x50, 0x61, 0x69, 0x72, 0x52, 0x09, + 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x53, 0x65, 0x74, 0x22, 0x16, 0x0a, 0x14, 0x4c, 0x69, 0x73, + 0x74, 0x65, 0x6e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x32, 0x95, 0x02, 0x0a, 0x13, 0x41, 0x42, 0x43, 0x49, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, + 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x88, 0x01, 0x0a, 0x13, 0x4c, 0x69, + 0x73, 0x74, 0x65, 0x6e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x12, 0x37, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, + 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, - 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x43, - 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xea, 0x01, - 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, - 0x72, 0x65, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x62, 0x63, - 0x69, 0x42, 0x09, 0x47, 0x72, 0x70, 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x74, - 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x62, 0x63, 0x69, 0xa2, 0x02, 0x04, 0x43, - 0x53, 0x53, 0x41, 0xaa, 0x02, 0x1b, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x6f, - 0x72, 0x65, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x62, 0x63, - 0x69, 0xca, 0x02, 0x1b, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65, - 0x5c, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x5c, 0x41, 0x62, 0x63, 0x69, 0xe2, - 0x02, 0x27, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x5c, 0x53, - 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x5c, 0x41, 0x62, 0x63, 0x69, 0x5c, 0x47, 0x50, - 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x43, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x3a, 0x3a, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x3a, 0x3a, 0x53, 0x74, 0x72, 0x65, 0x61, - 0x6d, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x41, 0x62, 0x63, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, + 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x46, + 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x73, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x43, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x30, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, + 0x6f, 0x72, 0x65, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x62, + 0x63, 0x69, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, + 0x61, 0x62, 0x63, 0x69, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xea, 0x01, 0x0a, 0x1f, 0x63, 0x6f, + 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x73, + 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x42, 0x09, 0x47, + 0x72, 0x70, 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, + 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x62, 0x63, 0x69, 0xa2, 0x02, 0x04, 0x43, 0x53, 0x53, 0x41, 0xaa, + 0x02, 0x1b, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x53, + 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x62, 0x63, 0x69, 0xca, 0x02, 0x1b, + 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x5c, 0x53, 0x74, 0x72, + 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x5c, 0x41, 0x62, 0x63, 0x69, 0xe2, 0x02, 0x27, 0x43, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x5c, 0x53, 0x74, 0x72, 0x65, 0x61, + 0x6d, 0x69, 0x6e, 0x67, 0x5c, 0x41, 0x62, 0x63, 0x69, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, + 0x53, 0x74, 0x6f, 0x72, 0x65, 0x3a, 0x3a, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, + 0x3a, 0x3a, 0x41, 0x62, 0x63, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -2114,15 +2113,15 @@ var file_cosmos_store_streaming_abci_grpc_proto_goTypes = []interface{}{ (*ListenFinalizeBlockResponse)(nil), // 1: cosmos.store.streaming.abci.ListenFinalizeBlockResponse (*ListenCommitRequest)(nil), // 2: cosmos.store.streaming.abci.ListenCommitRequest (*ListenCommitResponse)(nil), // 3: cosmos.store.streaming.abci.ListenCommitResponse - (*v2.FinalizeBlockRequest)(nil), // 4: cometbft.abci.v2.FinalizeBlockRequest - (*v2.FinalizeBlockResponse)(nil), // 5: cometbft.abci.v2.FinalizeBlockResponse - (*v2.CommitResponse)(nil), // 6: cometbft.abci.v2.CommitResponse + (*abci.RequestFinalizeBlock)(nil), // 4: tendermint.abci.RequestFinalizeBlock + (*abci.ResponseFinalizeBlock)(nil), // 5: tendermint.abci.ResponseFinalizeBlock + (*abci.ResponseCommit)(nil), // 6: tendermint.abci.ResponseCommit (*v1beta1.StoreKVPair)(nil), // 7: cosmos.store.v1beta1.StoreKVPair } var file_cosmos_store_streaming_abci_grpc_proto_depIdxs = []int32{ - 4, // 0: cosmos.store.streaming.abci.ListenFinalizeBlockRequest.req:type_name -> cometbft.abci.v2.FinalizeBlockRequest - 5, // 1: cosmos.store.streaming.abci.ListenFinalizeBlockRequest.res:type_name -> cometbft.abci.v2.FinalizeBlockResponse - 6, // 2: cosmos.store.streaming.abci.ListenCommitRequest.res:type_name -> cometbft.abci.v2.CommitResponse + 4, // 0: cosmos.store.streaming.abci.ListenFinalizeBlockRequest.req:type_name -> tendermint.abci.RequestFinalizeBlock + 5, // 1: cosmos.store.streaming.abci.ListenFinalizeBlockRequest.res:type_name -> tendermint.abci.ResponseFinalizeBlock + 6, // 2: cosmos.store.streaming.abci.ListenCommitRequest.res:type_name -> tendermint.abci.ResponseCommit 7, // 3: cosmos.store.streaming.abci.ListenCommitRequest.change_set:type_name -> cosmos.store.v1beta1.StoreKVPair 0, // 4: cosmos.store.streaming.abci.ABCIListenerService.ListenFinalizeBlock:input_type -> cosmos.store.streaming.abci.ListenFinalizeBlockRequest 2, // 5: cosmos.store.streaming.abci.ABCIListenerService.ListenCommit:input_type -> cosmos.store.streaming.abci.ListenCommitRequest diff --git a/api/cosmos/store/v1beta1/listening.pulsar.go b/api/cosmos/store/v1beta1/listening.pulsar.go index ae0a55c7a0..70cdf69a39 100644 --- a/api/cosmos/store/v1beta1/listening.pulsar.go +++ b/api/cosmos/store/v1beta1/listening.pulsar.go @@ -2,7 +2,7 @@ package storev1beta1 import ( - v2 "cosmossdk.io/api/cometbft/abci/v2" + abci "cosmossdk.io/api/tendermint/abci" fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" @@ -807,11 +807,11 @@ func (x *fastReflection_BlockMetadata) Get(descriptor protoreflect.FieldDescript func (x *fastReflection_BlockMetadata) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "cosmos.store.v1beta1.BlockMetadata.response_commit": - x.ResponseCommit = value.Message().Interface().(*v2.CommitResponse) + x.ResponseCommit = value.Message().Interface().(*abci.ResponseCommit) case "cosmos.store.v1beta1.BlockMetadata.request_finalize_block": - x.RequestFinalizeBlock = value.Message().Interface().(*v2.FinalizeBlockRequest) + x.RequestFinalizeBlock = value.Message().Interface().(*abci.RequestFinalizeBlock) case "cosmos.store.v1beta1.BlockMetadata.response_finalize_block": - x.ResponseFinalizeBlock = value.Message().Interface().(*v2.FinalizeBlockResponse) + x.ResponseFinalizeBlock = value.Message().Interface().(*abci.ResponseFinalizeBlock) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.store.v1beta1.BlockMetadata")) @@ -834,17 +834,17 @@ func (x *fastReflection_BlockMetadata) Mutable(fd protoreflect.FieldDescriptor) switch fd.FullName() { case "cosmos.store.v1beta1.BlockMetadata.response_commit": if x.ResponseCommit == nil { - x.ResponseCommit = new(v2.CommitResponse) + x.ResponseCommit = new(abci.ResponseCommit) } return protoreflect.ValueOfMessage(x.ResponseCommit.ProtoReflect()) case "cosmos.store.v1beta1.BlockMetadata.request_finalize_block": if x.RequestFinalizeBlock == nil { - x.RequestFinalizeBlock = new(v2.FinalizeBlockRequest) + x.RequestFinalizeBlock = new(abci.RequestFinalizeBlock) } return protoreflect.ValueOfMessage(x.RequestFinalizeBlock.ProtoReflect()) case "cosmos.store.v1beta1.BlockMetadata.response_finalize_block": if x.ResponseFinalizeBlock == nil { - x.ResponseFinalizeBlock = new(v2.FinalizeBlockResponse) + x.ResponseFinalizeBlock = new(abci.ResponseFinalizeBlock) } return protoreflect.ValueOfMessage(x.ResponseFinalizeBlock.ProtoReflect()) default: @@ -861,13 +861,13 @@ func (x *fastReflection_BlockMetadata) Mutable(fd protoreflect.FieldDescriptor) func (x *fastReflection_BlockMetadata) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "cosmos.store.v1beta1.BlockMetadata.response_commit": - m := new(v2.CommitResponse) + m := new(abci.ResponseCommit) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cosmos.store.v1beta1.BlockMetadata.request_finalize_block": - m := new(v2.FinalizeBlockRequest) + m := new(abci.RequestFinalizeBlock) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cosmos.store.v1beta1.BlockMetadata.response_finalize_block": - m := new(v2.FinalizeBlockResponse) + m := new(abci.ResponseFinalizeBlock) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { @@ -1100,7 +1100,7 @@ func (x *fastReflection_BlockMetadata) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.ResponseCommit == nil { - x.ResponseCommit = &v2.CommitResponse{} + x.ResponseCommit = &abci.ResponseCommit{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ResponseCommit); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -1136,7 +1136,7 @@ func (x *fastReflection_BlockMetadata) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.RequestFinalizeBlock == nil { - x.RequestFinalizeBlock = &v2.FinalizeBlockRequest{} + x.RequestFinalizeBlock = &abci.RequestFinalizeBlock{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.RequestFinalizeBlock); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -1172,7 +1172,7 @@ func (x *fastReflection_BlockMetadata) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.ResponseFinalizeBlock == nil { - x.ResponseFinalizeBlock = &v2.FinalizeBlockResponse{} + x.ResponseFinalizeBlock = &abci.ResponseFinalizeBlock{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ResponseFinalizeBlock); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -1295,9 +1295,9 @@ type BlockMetadata struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ResponseCommit *v2.CommitResponse `protobuf:"bytes,6,opt,name=response_commit,json=responseCommit,proto3" json:"response_commit,omitempty"` - RequestFinalizeBlock *v2.FinalizeBlockRequest `protobuf:"bytes,7,opt,name=request_finalize_block,json=requestFinalizeBlock,proto3" json:"request_finalize_block,omitempty"` - ResponseFinalizeBlock *v2.FinalizeBlockResponse `protobuf:"bytes,8,opt,name=response_finalize_block,json=responseFinalizeBlock,proto3" json:"response_finalize_block,omitempty"` // TODO: should we renumber this? + ResponseCommit *abci.ResponseCommit `protobuf:"bytes,6,opt,name=response_commit,json=responseCommit,proto3" json:"response_commit,omitempty"` + RequestFinalizeBlock *abci.RequestFinalizeBlock `protobuf:"bytes,7,opt,name=request_finalize_block,json=requestFinalizeBlock,proto3" json:"request_finalize_block,omitempty"` + ResponseFinalizeBlock *abci.ResponseFinalizeBlock `protobuf:"bytes,8,opt,name=response_finalize_block,json=responseFinalizeBlock,proto3" json:"response_finalize_block,omitempty"` // TODO: should we renumber this? } func (x *BlockMetadata) Reset() { @@ -1320,21 +1320,21 @@ func (*BlockMetadata) Descriptor() ([]byte, []int) { return file_cosmos_store_v1beta1_listening_proto_rawDescGZIP(), []int{1} } -func (x *BlockMetadata) GetResponseCommit() *v2.CommitResponse { +func (x *BlockMetadata) GetResponseCommit() *abci.ResponseCommit { if x != nil { return x.ResponseCommit } return nil } -func (x *BlockMetadata) GetRequestFinalizeBlock() *v2.FinalizeBlockRequest { +func (x *BlockMetadata) GetRequestFinalizeBlock() *abci.RequestFinalizeBlock { if x != nil { return x.RequestFinalizeBlock } return nil } -func (x *BlockMetadata) GetResponseFinalizeBlock() *v2.FinalizeBlockResponse { +func (x *BlockMetadata) GetResponseFinalizeBlock() *abci.ResponseFinalizeBlock { if x != nil { return x.ResponseFinalizeBlock } @@ -1347,52 +1347,52 @@ var file_cosmos_store_v1beta1_listening_proto_rawDesc = []byte{ 0x0a, 0x24, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, - 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1c, 0x63, 0x6f, - 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x61, 0x62, 0x63, 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7f, 0x0a, 0x0b, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x4b, 0x56, - 0x50, 0x61, 0x69, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x6b, 0x65, - 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x4b, 0x65, - 0x79, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x06, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x3a, 0x13, 0xd2, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, - 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x33, 0x22, 0xb7, 0x02, 0x0a, 0x0d, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x49, 0x0a, 0x0f, 0x72, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, - 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x52, 0x0e, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x43, 0x6f, 0x6d, - 0x6d, 0x69, 0x74, 0x12, 0x5c, 0x0a, 0x16, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x66, - 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, - 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x42, - 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x14, 0x72, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x12, 0x5f, 0x0a, 0x17, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x66, 0x69, - 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x08, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, - 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x15, 0x72, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x4a, 0x04, - 0x08, 0x03, 0x10, 0x04, 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, 0x4a, 0x04, 0x08, 0x05, 0x10, 0x06, - 0x42, 0xd0, 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0e, 0x4c, - 0x69, 0x73, 0x74, 0x65, 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, - 0x32, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x53, 0x58, 0xaa, 0x02, 0x14, 0x43, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0xca, 0x02, 0x14, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x5c, - 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x20, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, - 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x16, 0x43, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1b, 0x74, 0x65, + 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x61, 0x62, 0x63, 0x69, 0x2f, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7f, 0x0a, 0x0b, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x4b, 0x56, 0x50, + 0x61, 0x69, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x4b, 0x65, 0x79, + 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x06, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x3a, 0x13, 0xd2, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, + 0x20, 0x30, 0x2e, 0x34, 0x33, 0x22, 0xb4, 0x02, 0x0a, 0x0d, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x48, 0x0a, 0x0f, 0x72, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, + 0x63, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x52, 0x0e, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x12, 0x5b, 0x0a, 0x16, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x66, 0x69, 0x6e, + 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x25, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, + 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x46, 0x69, 0x6e, 0x61, 0x6c, + 0x69, 0x7a, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x14, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x5e, + 0x0a, 0x17, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x66, 0x69, 0x6e, 0x61, 0x6c, + 0x69, 0x7a, 0x65, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x26, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, + 0x69, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, + 0x7a, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x15, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4a, 0x04, + 0x08, 0x01, 0x10, 0x02, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, + 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, 0x4a, 0x04, 0x08, 0x05, 0x10, 0x06, 0x42, 0xd0, 0x01, 0x0a, + 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, + 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x65, + 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x32, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x3b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, + 0x02, 0x03, 0x43, 0x53, 0x58, 0xaa, 0x02, 0x14, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x53, + 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x14, 0x43, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x5c, 0x56, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0xe2, 0x02, 0x20, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x6f, + 0x72, 0x65, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x16, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, + 0x3a, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1409,16 +1409,16 @@ func file_cosmos_store_v1beta1_listening_proto_rawDescGZIP() []byte { var file_cosmos_store_v1beta1_listening_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_cosmos_store_v1beta1_listening_proto_goTypes = []interface{}{ - (*StoreKVPair)(nil), // 0: cosmos.store.v1beta1.StoreKVPair - (*BlockMetadata)(nil), // 1: cosmos.store.v1beta1.BlockMetadata - (*v2.CommitResponse)(nil), // 2: cometbft.abci.v2.CommitResponse - (*v2.FinalizeBlockRequest)(nil), // 3: cometbft.abci.v2.FinalizeBlockRequest - (*v2.FinalizeBlockResponse)(nil), // 4: cometbft.abci.v2.FinalizeBlockResponse + (*StoreKVPair)(nil), // 0: cosmos.store.v1beta1.StoreKVPair + (*BlockMetadata)(nil), // 1: cosmos.store.v1beta1.BlockMetadata + (*abci.ResponseCommit)(nil), // 2: tendermint.abci.ResponseCommit + (*abci.RequestFinalizeBlock)(nil), // 3: tendermint.abci.RequestFinalizeBlock + (*abci.ResponseFinalizeBlock)(nil), // 4: tendermint.abci.ResponseFinalizeBlock } var file_cosmos_store_v1beta1_listening_proto_depIdxs = []int32{ - 2, // 0: cosmos.store.v1beta1.BlockMetadata.response_commit:type_name -> cometbft.abci.v2.CommitResponse - 3, // 1: cosmos.store.v1beta1.BlockMetadata.request_finalize_block:type_name -> cometbft.abci.v2.FinalizeBlockRequest - 4, // 2: cosmos.store.v1beta1.BlockMetadata.response_finalize_block:type_name -> cometbft.abci.v2.FinalizeBlockResponse + 2, // 0: cosmos.store.v1beta1.BlockMetadata.response_commit:type_name -> tendermint.abci.ResponseCommit + 3, // 1: cosmos.store.v1beta1.BlockMetadata.request_finalize_block:type_name -> tendermint.abci.RequestFinalizeBlock + 4, // 2: cosmos.store.v1beta1.BlockMetadata.response_finalize_block:type_name -> tendermint.abci.ResponseFinalizeBlock 3, // [3:3] is the sub-list for method output_type 3, // [3:3] is the sub-list for method input_type 3, // [3:3] is the sub-list for extension type_name diff --git a/api/cosmos/tx/v1beta1/service.pulsar.go b/api/cosmos/tx/v1beta1/service.pulsar.go index cf485deb17..cad31c64b5 100644 --- a/api/cosmos/tx/v1beta1/service.pulsar.go +++ b/api/cosmos/tx/v1beta1/service.pulsar.go @@ -2,9 +2,9 @@ package txv1beta1 import ( - v2 "cosmossdk.io/api/cometbft/types/v2" v1beta11 "cosmossdk.io/api/cosmos/base/abci/v1beta1" v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1" + types "cosmossdk.io/api/tendermint/types" fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" @@ -5140,9 +5140,9 @@ func (x *fastReflection_GetBlockWithTxsResponse) Set(fd protoreflect.FieldDescri clv := lv.(*_GetBlockWithTxsResponse_1_list) x.Txs = *clv.list case "cosmos.tx.v1beta1.GetBlockWithTxsResponse.block_id": - x.BlockId = value.Message().Interface().(*v2.BlockID) + x.BlockId = value.Message().Interface().(*types.BlockID) case "cosmos.tx.v1beta1.GetBlockWithTxsResponse.block": - x.Block = value.Message().Interface().(*v2.Block) + x.Block = value.Message().Interface().(*types.Block) case "cosmos.tx.v1beta1.GetBlockWithTxsResponse.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) default: @@ -5173,12 +5173,12 @@ func (x *fastReflection_GetBlockWithTxsResponse) Mutable(fd protoreflect.FieldDe return protoreflect.ValueOfList(value) case "cosmos.tx.v1beta1.GetBlockWithTxsResponse.block_id": if x.BlockId == nil { - x.BlockId = new(v2.BlockID) + x.BlockId = new(types.BlockID) } return protoreflect.ValueOfMessage(x.BlockId.ProtoReflect()) case "cosmos.tx.v1beta1.GetBlockWithTxsResponse.block": if x.Block == nil { - x.Block = new(v2.Block) + x.Block = new(types.Block) } return protoreflect.ValueOfMessage(x.Block.ProtoReflect()) case "cosmos.tx.v1beta1.GetBlockWithTxsResponse.pagination": @@ -5203,10 +5203,10 @@ func (x *fastReflection_GetBlockWithTxsResponse) NewField(fd protoreflect.FieldD list := []*Tx{} return protoreflect.ValueOfList(&_GetBlockWithTxsResponse_1_list{list: &list}) case "cosmos.tx.v1beta1.GetBlockWithTxsResponse.block_id": - m := new(v2.BlockID) + m := new(types.BlockID) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cosmos.tx.v1beta1.GetBlockWithTxsResponse.block": - m := new(v2.Block) + m := new(types.Block) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cosmos.tx.v1beta1.GetBlockWithTxsResponse.pagination": m := new(v1beta1.PageResponse) @@ -5498,7 +5498,7 @@ func (x *fastReflection_GetBlockWithTxsResponse) ProtoMethods() *protoiface.Meth return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.BlockId == nil { - x.BlockId = &v2.BlockID{} + x.BlockId = &types.BlockID{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.BlockId); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -5534,7 +5534,7 @@ func (x *fastReflection_GetBlockWithTxsResponse) ProtoMethods() *protoiface.Meth return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.Block == nil { - x.Block = &v2.Block{} + x.Block = &types.Block{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Block); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -9623,9 +9623,9 @@ type GetBlockWithTxsResponse struct { unknownFields protoimpl.UnknownFields // txs are the transactions in the block. - Txs []*Tx `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"` - BlockId *v2.BlockID `protobuf:"bytes,2,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` - Block *v2.Block `protobuf:"bytes,3,opt,name=block,proto3" json:"block,omitempty"` + Txs []*Tx `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"` + BlockId *types.BlockID `protobuf:"bytes,2,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` + Block *types.Block `protobuf:"bytes,3,opt,name=block,proto3" json:"block,omitempty"` // pagination defines a pagination for the response. Pagination *v1beta1.PageResponse `protobuf:"bytes,4,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -9657,14 +9657,14 @@ func (x *GetBlockWithTxsResponse) GetTxs() []*Tx { return nil } -func (x *GetBlockWithTxsResponse) GetBlockId() *v2.BlockID { +func (x *GetBlockWithTxsResponse) GetBlockId() *types.BlockID { if x != nil { return x.BlockId } return nil } -func (x *GetBlockWithTxsResponse) GetBlock() *v2.Block { +func (x *GetBlockWithTxsResponse) GetBlock() *types.Block { if x != nil { return x.Block } @@ -9993,252 +9993,251 @@ var file_cosmos_tx_v1beta1_service_proto_rawDesc = []byte{ 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x1d, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, - 0x76, 0x32, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, - 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, - 0x32, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x88, 0x02, 0x0a, 0x12, 0x47, 0x65, 0x74, - 0x54, 0x78, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x1a, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, - 0x02, 0x18, 0x01, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x4a, 0x0a, 0x0a, 0x70, - 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, + 0x1c, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x74, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x88, 0x02, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x54, 0x78, + 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, + 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, 0x02, 0x18, + 0x01, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x4a, 0x0a, 0x0a, 0x70, 0x61, 0x67, + 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, + 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x72, 0x64, 0x65, + 0x72, 0x42, 0x79, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x12, 0x12, 0x0a, 0x04, + 0x70, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, + 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x29, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x13, 0xda, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x35, 0x30, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x22, 0xea, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x54, 0x78, 0x73, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x03, 0x74, 0x78, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x52, 0x03, 0x74, + 0x78, 0x73, 0x12, 0x47, 0x0a, 0x0c, 0x74, 0x78, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0b, + 0x74, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x12, 0x4b, 0x0a, 0x0a, 0x70, + 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0a, 0x70, 0x61, 0x67, - 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, - 0x5f, 0x62, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x72, - 0x64, 0x65, 0x72, 0x42, 0x79, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x12, 0x12, - 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x70, 0x61, - 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x29, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, - 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x13, 0xda, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x35, 0x30, 0x52, 0x05, 0x71, 0x75, - 0x65, 0x72, 0x79, 0x22, 0xea, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x54, 0x78, 0x73, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x03, 0x74, - 0x78, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x52, - 0x03, 0x74, 0x78, 0x73, 0x12, 0x47, 0x0a, 0x0c, 0x74, 0x78, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x52, 0x0b, 0x74, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x12, 0x4b, 0x0a, - 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, - 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, - 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0a, - 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, - 0x74, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, - 0x22, 0x65, 0x0a, 0x12, 0x42, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x54, 0x78, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x78, 0x5f, 0x62, 0x79, 0x74, - 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x74, 0x78, 0x42, 0x79, 0x74, 0x65, - 0x73, 0x12, 0x34, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x20, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x42, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x4d, 0x6f, 0x64, - 0x65, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x22, 0x5c, 0x0a, 0x13, 0x42, 0x72, 0x6f, 0x61, 0x64, - 0x63, 0x61, 0x73, 0x74, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, - 0x0a, 0x0b, 0x74, 0x78, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, - 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, - 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x74, 0x78, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6c, 0x0a, 0x0f, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x02, 0x74, 0x78, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x42, 0x02, 0x18, 0x01, 0x52, - 0x02, 0x74, 0x78, 0x12, 0x2e, 0x0a, 0x08, 0x74, 0x78, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x13, 0xda, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x33, 0x52, 0x07, 0x74, 0x78, 0x42, 0x79, - 0x74, 0x65, 0x73, 0x22, 0x8a, 0x01, 0x0a, 0x10, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x08, 0x67, 0x61, 0x73, 0x5f, - 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x61, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x07, 0x67, - 0x61, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x38, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x22, 0x22, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x54, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x68, 0x61, 0x73, 0x68, 0x22, 0x7d, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x54, 0x78, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x02, 0x74, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x52, 0x02, 0x74, 0x78, 0x12, 0x45, 0x0a, 0x0b, - 0x74, 0x78, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0a, 0x70, 0x61, + 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, + 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x22, 0x65, + 0x0a, 0x12, 0x42, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x54, 0x78, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x78, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x74, 0x78, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, + 0x34, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x42, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x52, + 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x22, 0x5c, 0x0a, 0x13, 0x42, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61, + 0x73, 0x74, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x0b, + 0x74, 0x78, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x74, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x8f, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x57, 0x69, 0x74, 0x68, 0x54, 0x78, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, - 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, - 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x15, - 0xd2, 0xb4, 0x2d, 0x11, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, - 0x2e, 0x34, 0x35, 0x2e, 0x32, 0x22, 0x89, 0x02, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x57, 0x69, 0x74, 0x68, 0x54, 0x78, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x27, 0x0a, 0x03, 0x74, 0x78, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, - 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x54, 0x78, 0x52, 0x03, 0x74, 0x78, 0x73, 0x12, 0x35, 0x0a, 0x08, 0x62, 0x6c, - 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, - 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, - 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x49, - 0x64, 0x12, 0x2e, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x18, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, - 0x6b, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, - 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, - 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x15, 0xd2, 0xb4, 0x2d, 0x11, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x35, 0x2e, - 0x32, 0x22, 0x41, 0x0a, 0x0f, 0x54, 0x78, 0x44, 0x65, 0x63, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x78, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x74, 0x78, 0x42, 0x79, 0x74, 0x65, 0x73, 0x3a, - 0x13, 0xd2, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, - 0x30, 0x2e, 0x34, 0x37, 0x22, 0x4e, 0x0a, 0x10, 0x54, 0x78, 0x44, 0x65, 0x63, 0x6f, 0x64, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x02, 0x74, 0x78, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x52, 0x02, 0x74, 0x78, 0x3a, - 0x13, 0xd2, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, - 0x30, 0x2e, 0x34, 0x37, 0x22, 0x4d, 0x0a, 0x0f, 0x54, 0x78, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x02, 0x74, 0x78, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x52, 0x02, 0x74, 0x78, 0x3a, 0x13, + 0x6e, 0x73, 0x65, 0x22, 0x6c, 0x0a, 0x0f, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x02, 0x74, 0x78, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x42, 0x02, 0x18, 0x01, 0x52, 0x02, 0x74, + 0x78, 0x12, 0x2e, 0x0a, 0x08, 0x74, 0x78, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0c, 0x42, 0x13, 0xda, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, + 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x33, 0x52, 0x07, 0x74, 0x78, 0x42, 0x79, 0x74, 0x65, + 0x73, 0x22, 0x8a, 0x01, 0x0a, 0x10, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x08, 0x67, 0x61, 0x73, 0x5f, 0x69, 0x6e, + 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x47, 0x61, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x07, 0x67, 0x61, 0x73, + 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x38, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, + 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x22, + 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x54, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, + 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x61, + 0x73, 0x68, 0x22, 0x7d, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x02, 0x74, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x15, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x52, 0x02, 0x74, 0x78, 0x12, 0x45, 0x0a, 0x0b, 0x74, 0x78, + 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x24, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, + 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x74, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x8f, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x57, 0x69, + 0x74, 0x68, 0x54, 0x78, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, + 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, + 0x69, 0x67, 0x68, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x15, 0xd2, 0xb4, + 0x2d, 0x11, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, + 0x35, 0x2e, 0x32, 0x22, 0x87, 0x02, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x57, 0x69, 0x74, 0x68, 0x54, 0x78, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x27, 0x0a, 0x03, 0x74, 0x78, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x54, 0x78, 0x52, 0x03, 0x74, 0x78, 0x73, 0x12, 0x34, 0x0a, 0x08, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x74, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x64, 0x12, 0x2d, + 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, + 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x47, 0x0a, + 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, + 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, + 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x15, 0xd2, 0xb4, 0x2d, 0x11, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x35, 0x2e, 0x32, 0x22, 0x41, 0x0a, + 0x0f, 0x54, 0x78, 0x44, 0x65, 0x63, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x19, 0x0a, 0x08, 0x74, 0x78, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x07, 0x74, 0x78, 0x42, 0x79, 0x74, 0x65, 0x73, 0x3a, 0x13, 0xd2, 0xb4, 0x2d, + 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x37, + 0x22, 0x4e, 0x0a, 0x10, 0x54, 0x78, 0x44, 0x65, 0x63, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x02, 0x74, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x15, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x52, 0x02, 0x74, 0x78, 0x3a, 0x13, 0xd2, 0xb4, 0x2d, + 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x37, + 0x22, 0x4d, 0x0a, 0x0f, 0x54, 0x78, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x02, 0x74, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x15, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x52, 0x02, 0x74, 0x78, 0x3a, 0x13, 0xd2, 0xb4, 0x2d, 0x0f, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x37, 0x22, + 0x42, 0x0a, 0x10, 0x54, 0x78, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x78, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x74, 0x78, 0x42, 0x79, 0x74, 0x65, 0x73, 0x3a, 0x13, 0xd2, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, - 0x2e, 0x34, 0x37, 0x22, 0x42, 0x0a, 0x10, 0x54, 0x78, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x78, 0x5f, 0x62, 0x79, - 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x74, 0x78, 0x42, 0x79, 0x74, - 0x65, 0x73, 0x3a, 0x13, 0xd2, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, - 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x37, 0x22, 0x4a, 0x0a, 0x14, 0x54, 0x78, 0x45, 0x6e, 0x63, - 0x6f, 0x64, 0x65, 0x41, 0x6d, 0x69, 0x6e, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x1d, 0x0a, 0x0a, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x4a, 0x73, 0x6f, 0x6e, 0x3a, 0x13, - 0xd2, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, - 0x2e, 0x34, 0x37, 0x22, 0x4f, 0x0a, 0x15, 0x54, 0x78, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x41, - 0x6d, 0x69, 0x6e, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0c, - 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x5f, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x0b, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x3a, - 0x13, 0xd2, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, - 0x30, 0x2e, 0x34, 0x37, 0x22, 0x4e, 0x0a, 0x14, 0x54, 0x78, 0x44, 0x65, 0x63, 0x6f, 0x64, 0x65, - 0x41, 0x6d, 0x69, 0x6e, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, - 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x5f, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x0b, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x3a, - 0x13, 0xd2, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, - 0x30, 0x2e, 0x34, 0x37, 0x22, 0x4b, 0x0a, 0x15, 0x54, 0x78, 0x44, 0x65, 0x63, 0x6f, 0x64, 0x65, - 0x41, 0x6d, 0x69, 0x6e, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, - 0x0a, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x4a, 0x73, 0x6f, 0x6e, 0x3a, 0x13, 0xd2, 0xb4, - 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, - 0x37, 0x2a, 0x48, 0x0a, 0x07, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x12, 0x18, 0x0a, 0x14, - 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x42, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, - 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, - 0x42, 0x59, 0x5f, 0x41, 0x53, 0x43, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, 0x4f, 0x52, 0x44, 0x45, - 0x52, 0x5f, 0x42, 0x59, 0x5f, 0x44, 0x45, 0x53, 0x43, 0x10, 0x02, 0x2a, 0x80, 0x01, 0x0a, 0x0d, - 0x42, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x1e, 0x0a, - 0x1a, 0x42, 0x52, 0x4f, 0x41, 0x44, 0x43, 0x41, 0x53, 0x54, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, - 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1c, 0x0a, - 0x14, 0x42, 0x52, 0x4f, 0x41, 0x44, 0x43, 0x41, 0x53, 0x54, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, - 0x42, 0x4c, 0x4f, 0x43, 0x4b, 0x10, 0x01, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x42, - 0x52, 0x4f, 0x41, 0x44, 0x43, 0x41, 0x53, 0x54, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x53, 0x59, - 0x4e, 0x43, 0x10, 0x02, 0x12, 0x18, 0x0a, 0x14, 0x42, 0x52, 0x4f, 0x41, 0x44, 0x43, 0x41, 0x53, - 0x54, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x41, 0x53, 0x59, 0x4e, 0x43, 0x10, 0x03, 0x32, 0x8d, - 0x0a, 0x0a, 0x07, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x7b, 0x0a, 0x08, 0x53, 0x69, - 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x22, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x2e, 0x34, 0x37, 0x22, 0x4a, 0x0a, 0x14, 0x54, 0x78, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x41, + 0x6d, 0x69, 0x6e, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x61, + 0x6d, 0x69, 0x6e, 0x6f, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x4a, 0x73, 0x6f, 0x6e, 0x3a, 0x13, 0xd2, 0xb4, 0x2d, 0x0f, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x37, 0x22, + 0x4f, 0x0a, 0x15, 0x54, 0x78, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x41, 0x6d, 0x69, 0x6e, 0x6f, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x6d, 0x69, 0x6e, + 0x6f, 0x5f, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, + 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x3a, 0x13, 0xd2, 0xb4, 0x2d, + 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x37, + 0x22, 0x4e, 0x0a, 0x14, 0x54, 0x78, 0x44, 0x65, 0x63, 0x6f, 0x64, 0x65, 0x41, 0x6d, 0x69, 0x6e, + 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x6d, 0x69, 0x6e, + 0x6f, 0x5f, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, + 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x3a, 0x13, 0xd2, 0xb4, 0x2d, + 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x37, + 0x22, 0x4b, 0x0a, 0x15, 0x54, 0x78, 0x44, 0x65, 0x63, 0x6f, 0x64, 0x65, 0x41, 0x6d, 0x69, 0x6e, + 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x6d, 0x69, + 0x6e, 0x6f, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, + 0x6d, 0x69, 0x6e, 0x6f, 0x4a, 0x73, 0x6f, 0x6e, 0x3a, 0x13, 0xd2, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x37, 0x2a, 0x48, 0x0a, + 0x07, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x12, 0x18, 0x0a, 0x14, 0x4f, 0x52, 0x44, 0x45, + 0x52, 0x5f, 0x42, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, + 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x42, 0x59, 0x5f, 0x41, + 0x53, 0x43, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x42, 0x59, + 0x5f, 0x44, 0x45, 0x53, 0x43, 0x10, 0x02, 0x2a, 0x80, 0x01, 0x0a, 0x0d, 0x42, 0x72, 0x6f, 0x61, + 0x64, 0x63, 0x61, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x1e, 0x0a, 0x1a, 0x42, 0x52, 0x4f, + 0x41, 0x44, 0x43, 0x41, 0x53, 0x54, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, + 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1c, 0x0a, 0x14, 0x42, 0x52, 0x4f, + 0x41, 0x44, 0x43, 0x41, 0x53, 0x54, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x42, 0x4c, 0x4f, 0x43, + 0x4b, 0x10, 0x01, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x42, 0x52, 0x4f, 0x41, 0x44, + 0x43, 0x41, 0x53, 0x54, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x53, 0x59, 0x4e, 0x43, 0x10, 0x02, + 0x12, 0x18, 0x0a, 0x14, 0x42, 0x52, 0x4f, 0x41, 0x44, 0x43, 0x41, 0x53, 0x54, 0x5f, 0x4d, 0x4f, + 0x44, 0x45, 0x5f, 0x41, 0x53, 0x59, 0x4e, 0x43, 0x10, 0x03, 0x32, 0x8d, 0x0a, 0x0a, 0x07, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x7b, 0x0a, 0x08, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, + 0x74, 0x65, 0x12, 0x22, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x69, 0x6d, 0x75, 0x6c, - 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, - 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x3a, 0x01, 0x2a, 0x22, 0x1b, 0x2f, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2f, 0x74, 0x78, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, - 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x71, 0x0a, 0x05, 0x47, 0x65, 0x74, 0x54, 0x78, - 0x12, 0x1f, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x20, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x12, 0x1d, 0x2f, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x74, 0x78, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, - 0x74, 0x78, 0x73, 0x2f, 0x7b, 0x68, 0x61, 0x73, 0x68, 0x7d, 0x12, 0x7f, 0x0a, 0x0b, 0x42, 0x72, - 0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x54, 0x78, 0x12, 0x25, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x72, - 0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x54, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x54, 0x78, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, - 0x3a, 0x01, 0x2a, 0x22, 0x16, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x74, 0x78, 0x2f, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x78, 0x73, 0x12, 0x7c, 0x0a, 0x0b, 0x47, - 0x65, 0x74, 0x54, 0x78, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x25, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x54, 0x78, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x78, 0x73, 0x45, 0x76, 0x65, 0x6e, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x18, 0x12, 0x16, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x74, 0x78, 0x2f, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x78, 0x73, 0x12, 0xac, 0x01, 0x0a, 0x0f, 0x47, 0x65, - 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x57, 0x69, 0x74, 0x68, 0x54, 0x78, 0x73, 0x12, 0x29, 0x2e, + 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x20, 0x3a, 0x01, 0x2a, 0x22, 0x1b, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, + 0x74, 0x78, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x69, 0x6d, 0x75, 0x6c, + 0x61, 0x74, 0x65, 0x12, 0x71, 0x0a, 0x05, 0x47, 0x65, 0x74, 0x54, 0x78, 0x12, 0x1f, 0x2e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x47, 0x65, 0x74, 0x54, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x57, 0x69, 0x74, 0x68, 0x54, 0x78, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, - 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x57, 0x69, 0x74, 0x68, 0x54, 0x78, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x42, 0xca, 0xb4, 0x2d, 0x11, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x35, 0x2e, 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x27, 0x12, 0x25, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x74, 0x78, 0x2f, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x78, 0x73, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2f, - 0x7b, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, 0x8c, 0x01, 0x0a, 0x08, 0x54, 0x78, 0x44, - 0x65, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x22, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, + 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x12, 0x1d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2f, 0x74, 0x78, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x78, 0x73, 0x2f, + 0x7b, 0x68, 0x61, 0x73, 0x68, 0x7d, 0x12, 0x7f, 0x0a, 0x0b, 0x42, 0x72, 0x6f, 0x61, 0x64, 0x63, + 0x61, 0x73, 0x74, 0x54, 0x78, 0x12, 0x25, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, + 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x72, 0x6f, 0x61, 0x64, 0x63, + 0x61, 0x73, 0x74, 0x54, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x42, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x3a, 0x01, 0x2a, 0x22, + 0x16, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x74, 0x78, 0x2f, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2f, 0x74, 0x78, 0x73, 0x12, 0x7c, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x54, 0x78, + 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x25, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x78, + 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x78, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x12, 0x16, 0x2f, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x74, 0x78, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2f, 0x74, 0x78, 0x73, 0x12, 0xac, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x57, 0x69, 0x74, 0x68, 0x54, 0x78, 0x73, 0x12, 0x29, 0x2e, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, + 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x57, 0x69, 0x74, 0x68, 0x54, 0x78, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x57, 0x69, 0x74, 0x68, 0x54, 0x78, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x42, 0xca, 0xb4, 0x2d, 0x11, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, + 0x20, 0x30, 0x2e, 0x34, 0x35, 0x2e, 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, 0x25, 0x2f, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x74, 0x78, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2f, 0x74, 0x78, 0x73, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2f, 0x7b, 0x68, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x7d, 0x12, 0x8c, 0x01, 0x0a, 0x08, 0x54, 0x78, 0x44, 0x65, 0x63, 0x6f, 0x64, + 0x65, 0x12, 0x22, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x44, 0x65, 0x63, 0x6f, 0x64, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x44, 0x65, 0x63, 0x6f, - 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, - 0x44, 0x65, 0x63, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, - 0xca, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, - 0x2e, 0x34, 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x3a, 0x01, 0x2a, 0x22, 0x19, 0x2f, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x74, 0x78, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2f, 0x64, 0x65, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x8c, 0x01, 0x0a, 0x08, 0x54, 0x78, 0x45, 0x6e, - 0x63, 0x6f, 0x64, 0x65, 0x12, 0x22, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, + 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, 0xca, 0xb4, 0x2d, 0x0f, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x37, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x3a, 0x01, 0x2a, 0x22, 0x19, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2f, 0x74, 0x78, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x64, 0x65, 0x63, + 0x6f, 0x64, 0x65, 0x12, 0x8c, 0x01, 0x0a, 0x08, 0x54, 0x78, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x65, + 0x12, 0x22, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x45, 0x6e, 0x63, 0x6f, 0x64, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x45, - 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, 0xca, - 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, - 0x34, 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x3a, 0x01, 0x2a, 0x22, 0x19, 0x2f, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x74, 0x78, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, - 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x12, 0xa1, 0x01, 0x0a, 0x0d, 0x54, 0x78, 0x45, 0x6e, 0x63, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, 0xca, 0xb4, 0x2d, 0x0f, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x37, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x1e, 0x3a, 0x01, 0x2a, 0x22, 0x19, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2f, 0x74, 0x78, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x65, 0x6e, 0x63, 0x6f, + 0x64, 0x65, 0x12, 0xa1, 0x01, 0x0a, 0x0d, 0x54, 0x78, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x41, + 0x6d, 0x69, 0x6e, 0x6f, 0x12, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x45, 0x6e, 0x63, 0x6f, 0x64, + 0x65, 0x41, 0x6d, 0x69, 0x6e, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x54, 0x78, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x41, 0x6d, 0x69, 0x6e, 0x6f, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0xca, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x37, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x24, 0x3a, 0x01, 0x2a, 0x22, 0x1f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x74, + 0x78, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x65, + 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x12, 0xa1, 0x01, 0x0a, 0x0d, 0x54, 0x78, 0x44, 0x65, 0x63, 0x6f, 0x64, 0x65, 0x41, 0x6d, 0x69, 0x6e, 0x6f, 0x12, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x45, - 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x41, 0x6d, 0x69, 0x6e, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x44, + 0x65, 0x63, 0x6f, 0x64, 0x65, 0x41, 0x6d, 0x69, 0x6e, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x41, 0x6d, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x44, 0x65, 0x63, 0x6f, 0x64, 0x65, 0x41, 0x6d, 0x69, 0x6e, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0xca, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x3a, 0x01, 0x2a, 0x22, 0x1f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2f, 0x74, 0x78, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x65, 0x6e, - 0x63, 0x6f, 0x64, 0x65, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x12, 0xa1, 0x01, 0x0a, 0x0d, 0x54, - 0x78, 0x44, 0x65, 0x63, 0x6f, 0x64, 0x65, 0x41, 0x6d, 0x69, 0x6e, 0x6f, 0x12, 0x27, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x54, 0x78, 0x44, 0x65, 0x63, 0x6f, 0x64, 0x65, 0x41, 0x6d, 0x69, 0x6e, 0x6f, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, - 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x44, 0x65, 0x63, 0x6f, - 0x64, 0x65, 0x41, 0x6d, 0x69, 0x6e, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x3d, 0xca, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, - 0x30, 0x2e, 0x34, 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x3a, 0x01, 0x2a, 0x22, 0x1f, 0x2f, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x74, 0x78, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2f, 0x64, 0x65, 0x63, 0x6f, 0x64, 0x65, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x42, 0xb9, - 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2f, 0x74, 0x78, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x74, 0x78, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x54, 0x58, 0xaa, 0x02, 0x11, 0x43, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x54, 0x78, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0xca, 0x02, 0x11, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x54, 0x78, 0x5c, 0x56, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x1d, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x54, 0x78, - 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x54, - 0x78, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, + 0x6f, 0x73, 0x2f, 0x74, 0x78, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x64, 0x65, + 0x63, 0x6f, 0x64, 0x65, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x42, 0xb9, 0x01, 0x0a, 0x15, 0x63, + 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x42, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, + 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x74, 0x78, + 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x74, 0x78, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x54, 0x58, 0xaa, 0x02, 0x11, 0x43, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x54, 0x78, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x11, 0x43, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x54, 0x78, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0xe2, 0x02, 0x1d, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x54, 0x78, 0x5c, 0x56, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0xea, 0x02, 0x13, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x54, 0x78, 0x3a, 0x3a, 0x56, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -10282,8 +10281,8 @@ var file_cosmos_tx_v1beta1_service_proto_goTypes = []interface{}{ (*v1beta1.PageResponse)(nil), // 23: cosmos.base.query.v1beta1.PageResponse (*v1beta11.GasInfo)(nil), // 24: cosmos.base.abci.v1beta1.GasInfo (*v1beta11.Result)(nil), // 25: cosmos.base.abci.v1beta1.Result - (*v2.BlockID)(nil), // 26: cometbft.types.v2.BlockID - (*v2.Block)(nil), // 27: cometbft.types.v2.Block + (*types.BlockID)(nil), // 26: tendermint.types.BlockID + (*types.Block)(nil), // 27: tendermint.types.Block } var file_cosmos_tx_v1beta1_service_proto_depIdxs = []int32{ 20, // 0: cosmos.tx.v1beta1.GetTxsEventRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest @@ -10300,8 +10299,8 @@ var file_cosmos_tx_v1beta1_service_proto_depIdxs = []int32{ 22, // 11: cosmos.tx.v1beta1.GetTxResponse.tx_response:type_name -> cosmos.base.abci.v1beta1.TxResponse 20, // 12: cosmos.tx.v1beta1.GetBlockWithTxsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest 21, // 13: cosmos.tx.v1beta1.GetBlockWithTxsResponse.txs:type_name -> cosmos.tx.v1beta1.Tx - 26, // 14: cosmos.tx.v1beta1.GetBlockWithTxsResponse.block_id:type_name -> cometbft.types.v2.BlockID - 27, // 15: cosmos.tx.v1beta1.GetBlockWithTxsResponse.block:type_name -> cometbft.types.v2.Block + 26, // 14: cosmos.tx.v1beta1.GetBlockWithTxsResponse.block_id:type_name -> tendermint.types.BlockID + 27, // 15: cosmos.tx.v1beta1.GetBlockWithTxsResponse.block:type_name -> tendermint.types.Block 23, // 16: cosmos.tx.v1beta1.GetBlockWithTxsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse 21, // 17: cosmos.tx.v1beta1.TxDecodeResponse.tx:type_name -> cosmos.tx.v1beta1.Tx 21, // 18: cosmos.tx.v1beta1.TxEncodeRequest.tx:type_name -> cosmos.tx.v1beta1.Tx diff --git a/api/go.mod b/api/go.mod index a0afd8ea74..0fb1f1ec60 100644 --- a/api/go.mod +++ b/api/go.mod @@ -7,7 +7,7 @@ require ( github.com/cosmos/gogoproto v1.7.0 google.golang.org/genproto/googleapis/api v0.0.0-20250707201910-8d1bb00bc6a7 google.golang.org/grpc v1.75.0 - google.golang.org/protobuf v1.36.7 + google.golang.org/protobuf v1.36.8 ) require ( diff --git a/api/go.sum b/api/go.sum index 3ccc34377c..c63651e93e 100644 --- a/api/go.sum +++ b/api/go.sum @@ -38,5 +38,5 @@ google.golang.org/genproto/googleapis/rpc v0.0.0-20250707201910-8d1bb00bc6a7 h1: google.golang.org/genproto/googleapis/rpc v0.0.0-20250707201910-8d1bb00bc6a7/go.mod h1:qQ0YXyHHx3XkvlzUtpXDkS29lDSafHMZBAZDc03LQ3A= google.golang.org/grpc v1.75.0 h1:+TW+dqTd2Biwe6KKfhE5JpiYIBWq865PhKGSXiivqt4= google.golang.org/grpc v1.75.0/go.mod h1:JtPAzKiq4v1xcAB2hydNlWI2RnF85XXcV0mhKXr2ecQ= -google.golang.org/protobuf v1.36.7 h1:IgrO7UwFQGJdRNXH/sQux4R1Dj1WAKcLElzeeRaXV2A= -google.golang.org/protobuf v1.36.7/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY= +google.golang.org/protobuf v1.36.8 h1:xHScyCOEuuwZEc6UtSOvPbAT4zRh0xcNRYekJwfqyMc= +google.golang.org/protobuf v1.36.8/go.mod h1:fuxRtAxBytpl4zzqUh6/eyUujkJdNiuEkXntxiD/uRU= diff --git a/api/cometbft/abci/v2/types.pulsar.go b/api/tendermint/abci/types.pulsar.go similarity index 70% rename from api/cometbft/abci/v2/types.pulsar.go rename to api/tendermint/abci/types.pulsar.go index 4de73f9c9a..bfdc98d0bf 100644 --- a/api/cometbft/abci/v2/types.pulsar.go +++ b/api/tendermint/abci/types.pulsar.go @@ -1,20 +1,18 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package abciv2 +package abci import ( - v1 "cosmossdk.io/api/cometbft/crypto/v1" - v2 "cosmossdk.io/api/cometbft/types/v2" + crypto "cosmossdk.io/api/tendermint/crypto" + types "cosmossdk.io/api/tendermint/types" fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoiface "google.golang.org/protobuf/runtime/protoiface" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" timestamppb "google.golang.org/protobuf/types/known/timestamppb" io "io" reflect "reflect" - sort "sort" sync "sync" ) @@ -39,8 +37,8 @@ var ( ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_Request = File_cometbft_abci_v2_types_proto.Messages().ByName("Request") + file_tendermint_abci_types_proto_init() + md_Request = File_tendermint_abci_types_proto.Messages().ByName("Request") fd_Request_echo = md_Request.Fields().ByName("echo") fd_Request_flush = md_Request.Fields().ByName("flush") fd_Request_info = md_Request.Fields().ByName("info") @@ -68,7 +66,7 @@ func (x *Request) ProtoReflect() protoreflect.Message { } func (x *Request) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[0] + mi := &file_tendermint_abci_types_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -239,7 +237,7 @@ func (x *fastReflection_Request) Range(f func(protoreflect.FieldDescriptor, prot // a repeated field is populated if it is non-empty. func (x *fastReflection_Request) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.Request.echo": + case "tendermint.abci.Request.echo": if x.Value == nil { return false } else if _, ok := x.Value.(*Request_Echo); ok { @@ -247,7 +245,7 @@ func (x *fastReflection_Request) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "cometbft.abci.v2.Request.flush": + case "tendermint.abci.Request.flush": if x.Value == nil { return false } else if _, ok := x.Value.(*Request_Flush); ok { @@ -255,7 +253,7 @@ func (x *fastReflection_Request) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "cometbft.abci.v2.Request.info": + case "tendermint.abci.Request.info": if x.Value == nil { return false } else if _, ok := x.Value.(*Request_Info); ok { @@ -263,7 +261,7 @@ func (x *fastReflection_Request) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "cometbft.abci.v2.Request.init_chain": + case "tendermint.abci.Request.init_chain": if x.Value == nil { return false } else if _, ok := x.Value.(*Request_InitChain); ok { @@ -271,7 +269,7 @@ func (x *fastReflection_Request) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "cometbft.abci.v2.Request.query": + case "tendermint.abci.Request.query": if x.Value == nil { return false } else if _, ok := x.Value.(*Request_Query); ok { @@ -279,7 +277,7 @@ func (x *fastReflection_Request) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "cometbft.abci.v2.Request.check_tx": + case "tendermint.abci.Request.check_tx": if x.Value == nil { return false } else if _, ok := x.Value.(*Request_CheckTx); ok { @@ -287,7 +285,7 @@ func (x *fastReflection_Request) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "cometbft.abci.v2.Request.commit": + case "tendermint.abci.Request.commit": if x.Value == nil { return false } else if _, ok := x.Value.(*Request_Commit); ok { @@ -295,7 +293,7 @@ func (x *fastReflection_Request) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "cometbft.abci.v2.Request.list_snapshots": + case "tendermint.abci.Request.list_snapshots": if x.Value == nil { return false } else if _, ok := x.Value.(*Request_ListSnapshots); ok { @@ -303,7 +301,7 @@ func (x *fastReflection_Request) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "cometbft.abci.v2.Request.offer_snapshot": + case "tendermint.abci.Request.offer_snapshot": if x.Value == nil { return false } else if _, ok := x.Value.(*Request_OfferSnapshot); ok { @@ -311,7 +309,7 @@ func (x *fastReflection_Request) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "cometbft.abci.v2.Request.load_snapshot_chunk": + case "tendermint.abci.Request.load_snapshot_chunk": if x.Value == nil { return false } else if _, ok := x.Value.(*Request_LoadSnapshotChunk); ok { @@ -319,7 +317,7 @@ func (x *fastReflection_Request) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "cometbft.abci.v2.Request.apply_snapshot_chunk": + case "tendermint.abci.Request.apply_snapshot_chunk": if x.Value == nil { return false } else if _, ok := x.Value.(*Request_ApplySnapshotChunk); ok { @@ -327,7 +325,7 @@ func (x *fastReflection_Request) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "cometbft.abci.v2.Request.prepare_proposal": + case "tendermint.abci.Request.prepare_proposal": if x.Value == nil { return false } else if _, ok := x.Value.(*Request_PrepareProposal); ok { @@ -335,7 +333,7 @@ func (x *fastReflection_Request) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "cometbft.abci.v2.Request.process_proposal": + case "tendermint.abci.Request.process_proposal": if x.Value == nil { return false } else if _, ok := x.Value.(*Request_ProcessProposal); ok { @@ -343,7 +341,7 @@ func (x *fastReflection_Request) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "cometbft.abci.v2.Request.extend_vote": + case "tendermint.abci.Request.extend_vote": if x.Value == nil { return false } else if _, ok := x.Value.(*Request_ExtendVote); ok { @@ -351,7 +349,7 @@ func (x *fastReflection_Request) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "cometbft.abci.v2.Request.verify_vote_extension": + case "tendermint.abci.Request.verify_vote_extension": if x.Value == nil { return false } else if _, ok := x.Value.(*Request_VerifyVoteExtension); ok { @@ -359,7 +357,7 @@ func (x *fastReflection_Request) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "cometbft.abci.v2.Request.finalize_block": + case "tendermint.abci.Request.finalize_block": if x.Value == nil { return false } else if _, ok := x.Value.(*Request_FinalizeBlock); ok { @@ -369,9 +367,9 @@ func (x *fastReflection_Request) Has(fd protoreflect.FieldDescriptor) bool { } default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Request")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Request")) } - panic(fmt.Errorf("message cometbft.abci.v2.Request does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.Request does not contain field %s", fd.FullName())) } } @@ -383,43 +381,43 @@ func (x *fastReflection_Request) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Request) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.Request.echo": + case "tendermint.abci.Request.echo": x.Value = nil - case "cometbft.abci.v2.Request.flush": + case "tendermint.abci.Request.flush": x.Value = nil - case "cometbft.abci.v2.Request.info": + case "tendermint.abci.Request.info": x.Value = nil - case "cometbft.abci.v2.Request.init_chain": + case "tendermint.abci.Request.init_chain": x.Value = nil - case "cometbft.abci.v2.Request.query": + case "tendermint.abci.Request.query": x.Value = nil - case "cometbft.abci.v2.Request.check_tx": + case "tendermint.abci.Request.check_tx": x.Value = nil - case "cometbft.abci.v2.Request.commit": + case "tendermint.abci.Request.commit": x.Value = nil - case "cometbft.abci.v2.Request.list_snapshots": + case "tendermint.abci.Request.list_snapshots": x.Value = nil - case "cometbft.abci.v2.Request.offer_snapshot": + case "tendermint.abci.Request.offer_snapshot": x.Value = nil - case "cometbft.abci.v2.Request.load_snapshot_chunk": + case "tendermint.abci.Request.load_snapshot_chunk": x.Value = nil - case "cometbft.abci.v2.Request.apply_snapshot_chunk": + case "tendermint.abci.Request.apply_snapshot_chunk": x.Value = nil - case "cometbft.abci.v2.Request.prepare_proposal": + case "tendermint.abci.Request.prepare_proposal": x.Value = nil - case "cometbft.abci.v2.Request.process_proposal": + case "tendermint.abci.Request.process_proposal": x.Value = nil - case "cometbft.abci.v2.Request.extend_vote": + case "tendermint.abci.Request.extend_vote": x.Value = nil - case "cometbft.abci.v2.Request.verify_vote_extension": + case "tendermint.abci.Request.verify_vote_extension": x.Value = nil - case "cometbft.abci.v2.Request.finalize_block": + case "tendermint.abci.Request.finalize_block": x.Value = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Request")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Request")) } - panic(fmt.Errorf("message cometbft.abci.v2.Request does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.Request does not contain field %s", fd.FullName())) } } @@ -431,139 +429,139 @@ func (x *fastReflection_Request) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Request) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.Request.echo": + case "tendermint.abci.Request.echo": if x.Value == nil { - return protoreflect.ValueOfMessage((*EchoRequest)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestEcho)(nil).ProtoReflect()) } else if v, ok := x.Value.(*Request_Echo); ok { return protoreflect.ValueOfMessage(v.Echo.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*EchoRequest)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestEcho)(nil).ProtoReflect()) } - case "cometbft.abci.v2.Request.flush": + case "tendermint.abci.Request.flush": if x.Value == nil { - return protoreflect.ValueOfMessage((*FlushRequest)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestFlush)(nil).ProtoReflect()) } else if v, ok := x.Value.(*Request_Flush); ok { return protoreflect.ValueOfMessage(v.Flush.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*FlushRequest)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestFlush)(nil).ProtoReflect()) } - case "cometbft.abci.v2.Request.info": + case "tendermint.abci.Request.info": if x.Value == nil { - return protoreflect.ValueOfMessage((*InfoRequest)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestInfo)(nil).ProtoReflect()) } else if v, ok := x.Value.(*Request_Info); ok { return protoreflect.ValueOfMessage(v.Info.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*InfoRequest)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestInfo)(nil).ProtoReflect()) } - case "cometbft.abci.v2.Request.init_chain": + case "tendermint.abci.Request.init_chain": if x.Value == nil { - return protoreflect.ValueOfMessage((*InitChainRequest)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestInitChain)(nil).ProtoReflect()) } else if v, ok := x.Value.(*Request_InitChain); ok { return protoreflect.ValueOfMessage(v.InitChain.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*InitChainRequest)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestInitChain)(nil).ProtoReflect()) } - case "cometbft.abci.v2.Request.query": + case "tendermint.abci.Request.query": if x.Value == nil { - return protoreflect.ValueOfMessage((*QueryRequest)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestQuery)(nil).ProtoReflect()) } else if v, ok := x.Value.(*Request_Query); ok { return protoreflect.ValueOfMessage(v.Query.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*QueryRequest)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestQuery)(nil).ProtoReflect()) } - case "cometbft.abci.v2.Request.check_tx": + case "tendermint.abci.Request.check_tx": if x.Value == nil { - return protoreflect.ValueOfMessage((*CheckTxRequest)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestCheckTx)(nil).ProtoReflect()) } else if v, ok := x.Value.(*Request_CheckTx); ok { return protoreflect.ValueOfMessage(v.CheckTx.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*CheckTxRequest)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestCheckTx)(nil).ProtoReflect()) } - case "cometbft.abci.v2.Request.commit": + case "tendermint.abci.Request.commit": if x.Value == nil { - return protoreflect.ValueOfMessage((*CommitRequest)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestCommit)(nil).ProtoReflect()) } else if v, ok := x.Value.(*Request_Commit); ok { return protoreflect.ValueOfMessage(v.Commit.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*CommitRequest)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestCommit)(nil).ProtoReflect()) } - case "cometbft.abci.v2.Request.list_snapshots": + case "tendermint.abci.Request.list_snapshots": if x.Value == nil { - return protoreflect.ValueOfMessage((*ListSnapshotsRequest)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestListSnapshots)(nil).ProtoReflect()) } else if v, ok := x.Value.(*Request_ListSnapshots); ok { return protoreflect.ValueOfMessage(v.ListSnapshots.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*ListSnapshotsRequest)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestListSnapshots)(nil).ProtoReflect()) } - case "cometbft.abci.v2.Request.offer_snapshot": + case "tendermint.abci.Request.offer_snapshot": if x.Value == nil { - return protoreflect.ValueOfMessage((*OfferSnapshotRequest)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestOfferSnapshot)(nil).ProtoReflect()) } else if v, ok := x.Value.(*Request_OfferSnapshot); ok { return protoreflect.ValueOfMessage(v.OfferSnapshot.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*OfferSnapshotRequest)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestOfferSnapshot)(nil).ProtoReflect()) } - case "cometbft.abci.v2.Request.load_snapshot_chunk": + case "tendermint.abci.Request.load_snapshot_chunk": if x.Value == nil { - return protoreflect.ValueOfMessage((*LoadSnapshotChunkRequest)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestLoadSnapshotChunk)(nil).ProtoReflect()) } else if v, ok := x.Value.(*Request_LoadSnapshotChunk); ok { return protoreflect.ValueOfMessage(v.LoadSnapshotChunk.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*LoadSnapshotChunkRequest)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestLoadSnapshotChunk)(nil).ProtoReflect()) } - case "cometbft.abci.v2.Request.apply_snapshot_chunk": + case "tendermint.abci.Request.apply_snapshot_chunk": if x.Value == nil { - return protoreflect.ValueOfMessage((*ApplySnapshotChunkRequest)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestApplySnapshotChunk)(nil).ProtoReflect()) } else if v, ok := x.Value.(*Request_ApplySnapshotChunk); ok { return protoreflect.ValueOfMessage(v.ApplySnapshotChunk.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*ApplySnapshotChunkRequest)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestApplySnapshotChunk)(nil).ProtoReflect()) } - case "cometbft.abci.v2.Request.prepare_proposal": + case "tendermint.abci.Request.prepare_proposal": if x.Value == nil { - return protoreflect.ValueOfMessage((*PrepareProposalRequest)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestPrepareProposal)(nil).ProtoReflect()) } else if v, ok := x.Value.(*Request_PrepareProposal); ok { return protoreflect.ValueOfMessage(v.PrepareProposal.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*PrepareProposalRequest)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestPrepareProposal)(nil).ProtoReflect()) } - case "cometbft.abci.v2.Request.process_proposal": + case "tendermint.abci.Request.process_proposal": if x.Value == nil { - return protoreflect.ValueOfMessage((*ProcessProposalRequest)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestProcessProposal)(nil).ProtoReflect()) } else if v, ok := x.Value.(*Request_ProcessProposal); ok { return protoreflect.ValueOfMessage(v.ProcessProposal.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*ProcessProposalRequest)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestProcessProposal)(nil).ProtoReflect()) } - case "cometbft.abci.v2.Request.extend_vote": + case "tendermint.abci.Request.extend_vote": if x.Value == nil { - return protoreflect.ValueOfMessage((*ExtendVoteRequest)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestExtendVote)(nil).ProtoReflect()) } else if v, ok := x.Value.(*Request_ExtendVote); ok { return protoreflect.ValueOfMessage(v.ExtendVote.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*ExtendVoteRequest)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestExtendVote)(nil).ProtoReflect()) } - case "cometbft.abci.v2.Request.verify_vote_extension": + case "tendermint.abci.Request.verify_vote_extension": if x.Value == nil { - return protoreflect.ValueOfMessage((*VerifyVoteExtensionRequest)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestVerifyVoteExtension)(nil).ProtoReflect()) } else if v, ok := x.Value.(*Request_VerifyVoteExtension); ok { return protoreflect.ValueOfMessage(v.VerifyVoteExtension.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*VerifyVoteExtensionRequest)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestVerifyVoteExtension)(nil).ProtoReflect()) } - case "cometbft.abci.v2.Request.finalize_block": + case "tendermint.abci.Request.finalize_block": if x.Value == nil { - return protoreflect.ValueOfMessage((*FinalizeBlockRequest)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestFinalizeBlock)(nil).ProtoReflect()) } else if v, ok := x.Value.(*Request_FinalizeBlock); ok { return protoreflect.ValueOfMessage(v.FinalizeBlock.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*FinalizeBlockRequest)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestFinalizeBlock)(nil).ProtoReflect()) } default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Request")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Request")) } - panic(fmt.Errorf("message cometbft.abci.v2.Request does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.Request does not contain field %s", descriptor.FullName())) } } @@ -579,59 +577,59 @@ func (x *fastReflection_Request) Get(descriptor protoreflect.FieldDescriptor) pr // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Request) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.Request.echo": - cv := value.Message().Interface().(*EchoRequest) + case "tendermint.abci.Request.echo": + cv := value.Message().Interface().(*RequestEcho) x.Value = &Request_Echo{Echo: cv} - case "cometbft.abci.v2.Request.flush": - cv := value.Message().Interface().(*FlushRequest) + case "tendermint.abci.Request.flush": + cv := value.Message().Interface().(*RequestFlush) x.Value = &Request_Flush{Flush: cv} - case "cometbft.abci.v2.Request.info": - cv := value.Message().Interface().(*InfoRequest) + case "tendermint.abci.Request.info": + cv := value.Message().Interface().(*RequestInfo) x.Value = &Request_Info{Info: cv} - case "cometbft.abci.v2.Request.init_chain": - cv := value.Message().Interface().(*InitChainRequest) + case "tendermint.abci.Request.init_chain": + cv := value.Message().Interface().(*RequestInitChain) x.Value = &Request_InitChain{InitChain: cv} - case "cometbft.abci.v2.Request.query": - cv := value.Message().Interface().(*QueryRequest) + case "tendermint.abci.Request.query": + cv := value.Message().Interface().(*RequestQuery) x.Value = &Request_Query{Query: cv} - case "cometbft.abci.v2.Request.check_tx": - cv := value.Message().Interface().(*CheckTxRequest) + case "tendermint.abci.Request.check_tx": + cv := value.Message().Interface().(*RequestCheckTx) x.Value = &Request_CheckTx{CheckTx: cv} - case "cometbft.abci.v2.Request.commit": - cv := value.Message().Interface().(*CommitRequest) + case "tendermint.abci.Request.commit": + cv := value.Message().Interface().(*RequestCommit) x.Value = &Request_Commit{Commit: cv} - case "cometbft.abci.v2.Request.list_snapshots": - cv := value.Message().Interface().(*ListSnapshotsRequest) + case "tendermint.abci.Request.list_snapshots": + cv := value.Message().Interface().(*RequestListSnapshots) x.Value = &Request_ListSnapshots{ListSnapshots: cv} - case "cometbft.abci.v2.Request.offer_snapshot": - cv := value.Message().Interface().(*OfferSnapshotRequest) + case "tendermint.abci.Request.offer_snapshot": + cv := value.Message().Interface().(*RequestOfferSnapshot) x.Value = &Request_OfferSnapshot{OfferSnapshot: cv} - case "cometbft.abci.v2.Request.load_snapshot_chunk": - cv := value.Message().Interface().(*LoadSnapshotChunkRequest) + case "tendermint.abci.Request.load_snapshot_chunk": + cv := value.Message().Interface().(*RequestLoadSnapshotChunk) x.Value = &Request_LoadSnapshotChunk{LoadSnapshotChunk: cv} - case "cometbft.abci.v2.Request.apply_snapshot_chunk": - cv := value.Message().Interface().(*ApplySnapshotChunkRequest) + case "tendermint.abci.Request.apply_snapshot_chunk": + cv := value.Message().Interface().(*RequestApplySnapshotChunk) x.Value = &Request_ApplySnapshotChunk{ApplySnapshotChunk: cv} - case "cometbft.abci.v2.Request.prepare_proposal": - cv := value.Message().Interface().(*PrepareProposalRequest) + case "tendermint.abci.Request.prepare_proposal": + cv := value.Message().Interface().(*RequestPrepareProposal) x.Value = &Request_PrepareProposal{PrepareProposal: cv} - case "cometbft.abci.v2.Request.process_proposal": - cv := value.Message().Interface().(*ProcessProposalRequest) + case "tendermint.abci.Request.process_proposal": + cv := value.Message().Interface().(*RequestProcessProposal) x.Value = &Request_ProcessProposal{ProcessProposal: cv} - case "cometbft.abci.v2.Request.extend_vote": - cv := value.Message().Interface().(*ExtendVoteRequest) + case "tendermint.abci.Request.extend_vote": + cv := value.Message().Interface().(*RequestExtendVote) x.Value = &Request_ExtendVote{ExtendVote: cv} - case "cometbft.abci.v2.Request.verify_vote_extension": - cv := value.Message().Interface().(*VerifyVoteExtensionRequest) + case "tendermint.abci.Request.verify_vote_extension": + cv := value.Message().Interface().(*RequestVerifyVoteExtension) x.Value = &Request_VerifyVoteExtension{VerifyVoteExtension: cv} - case "cometbft.abci.v2.Request.finalize_block": - cv := value.Message().Interface().(*FinalizeBlockRequest) + case "tendermint.abci.Request.finalize_block": + cv := value.Message().Interface().(*RequestFinalizeBlock) x.Value = &Request_FinalizeBlock{FinalizeBlock: cv} default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Request")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Request")) } - panic(fmt.Errorf("message cometbft.abci.v2.Request does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.Request does not contain field %s", fd.FullName())) } } @@ -647,9 +645,9 @@ func (x *fastReflection_Request) Set(fd protoreflect.FieldDescriptor, value prot // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Request) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.Request.echo": + case "tendermint.abci.Request.echo": if x.Value == nil { - value := &EchoRequest{} + value := &RequestEcho{} oneofValue := &Request_Echo{Echo: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) @@ -658,14 +656,14 @@ func (x *fastReflection_Request) Mutable(fd protoreflect.FieldDescriptor) protor case *Request_Echo: return protoreflect.ValueOfMessage(m.Echo.ProtoReflect()) default: - value := &EchoRequest{} + value := &RequestEcho{} oneofValue := &Request_Echo{Echo: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "cometbft.abci.v2.Request.flush": + case "tendermint.abci.Request.flush": if x.Value == nil { - value := &FlushRequest{} + value := &RequestFlush{} oneofValue := &Request_Flush{Flush: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) @@ -674,14 +672,14 @@ func (x *fastReflection_Request) Mutable(fd protoreflect.FieldDescriptor) protor case *Request_Flush: return protoreflect.ValueOfMessage(m.Flush.ProtoReflect()) default: - value := &FlushRequest{} + value := &RequestFlush{} oneofValue := &Request_Flush{Flush: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "cometbft.abci.v2.Request.info": + case "tendermint.abci.Request.info": if x.Value == nil { - value := &InfoRequest{} + value := &RequestInfo{} oneofValue := &Request_Info{Info: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) @@ -690,14 +688,14 @@ func (x *fastReflection_Request) Mutable(fd protoreflect.FieldDescriptor) protor case *Request_Info: return protoreflect.ValueOfMessage(m.Info.ProtoReflect()) default: - value := &InfoRequest{} + value := &RequestInfo{} oneofValue := &Request_Info{Info: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "cometbft.abci.v2.Request.init_chain": + case "tendermint.abci.Request.init_chain": if x.Value == nil { - value := &InitChainRequest{} + value := &RequestInitChain{} oneofValue := &Request_InitChain{InitChain: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) @@ -706,14 +704,14 @@ func (x *fastReflection_Request) Mutable(fd protoreflect.FieldDescriptor) protor case *Request_InitChain: return protoreflect.ValueOfMessage(m.InitChain.ProtoReflect()) default: - value := &InitChainRequest{} + value := &RequestInitChain{} oneofValue := &Request_InitChain{InitChain: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "cometbft.abci.v2.Request.query": + case "tendermint.abci.Request.query": if x.Value == nil { - value := &QueryRequest{} + value := &RequestQuery{} oneofValue := &Request_Query{Query: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) @@ -722,14 +720,14 @@ func (x *fastReflection_Request) Mutable(fd protoreflect.FieldDescriptor) protor case *Request_Query: return protoreflect.ValueOfMessage(m.Query.ProtoReflect()) default: - value := &QueryRequest{} + value := &RequestQuery{} oneofValue := &Request_Query{Query: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "cometbft.abci.v2.Request.check_tx": + case "tendermint.abci.Request.check_tx": if x.Value == nil { - value := &CheckTxRequest{} + value := &RequestCheckTx{} oneofValue := &Request_CheckTx{CheckTx: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) @@ -738,14 +736,14 @@ func (x *fastReflection_Request) Mutable(fd protoreflect.FieldDescriptor) protor case *Request_CheckTx: return protoreflect.ValueOfMessage(m.CheckTx.ProtoReflect()) default: - value := &CheckTxRequest{} + value := &RequestCheckTx{} oneofValue := &Request_CheckTx{CheckTx: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "cometbft.abci.v2.Request.commit": + case "tendermint.abci.Request.commit": if x.Value == nil { - value := &CommitRequest{} + value := &RequestCommit{} oneofValue := &Request_Commit{Commit: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) @@ -754,14 +752,14 @@ func (x *fastReflection_Request) Mutable(fd protoreflect.FieldDescriptor) protor case *Request_Commit: return protoreflect.ValueOfMessage(m.Commit.ProtoReflect()) default: - value := &CommitRequest{} + value := &RequestCommit{} oneofValue := &Request_Commit{Commit: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "cometbft.abci.v2.Request.list_snapshots": + case "tendermint.abci.Request.list_snapshots": if x.Value == nil { - value := &ListSnapshotsRequest{} + value := &RequestListSnapshots{} oneofValue := &Request_ListSnapshots{ListSnapshots: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) @@ -770,14 +768,14 @@ func (x *fastReflection_Request) Mutable(fd protoreflect.FieldDescriptor) protor case *Request_ListSnapshots: return protoreflect.ValueOfMessage(m.ListSnapshots.ProtoReflect()) default: - value := &ListSnapshotsRequest{} + value := &RequestListSnapshots{} oneofValue := &Request_ListSnapshots{ListSnapshots: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "cometbft.abci.v2.Request.offer_snapshot": + case "tendermint.abci.Request.offer_snapshot": if x.Value == nil { - value := &OfferSnapshotRequest{} + value := &RequestOfferSnapshot{} oneofValue := &Request_OfferSnapshot{OfferSnapshot: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) @@ -786,14 +784,14 @@ func (x *fastReflection_Request) Mutable(fd protoreflect.FieldDescriptor) protor case *Request_OfferSnapshot: return protoreflect.ValueOfMessage(m.OfferSnapshot.ProtoReflect()) default: - value := &OfferSnapshotRequest{} + value := &RequestOfferSnapshot{} oneofValue := &Request_OfferSnapshot{OfferSnapshot: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "cometbft.abci.v2.Request.load_snapshot_chunk": + case "tendermint.abci.Request.load_snapshot_chunk": if x.Value == nil { - value := &LoadSnapshotChunkRequest{} + value := &RequestLoadSnapshotChunk{} oneofValue := &Request_LoadSnapshotChunk{LoadSnapshotChunk: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) @@ -802,14 +800,14 @@ func (x *fastReflection_Request) Mutable(fd protoreflect.FieldDescriptor) protor case *Request_LoadSnapshotChunk: return protoreflect.ValueOfMessage(m.LoadSnapshotChunk.ProtoReflect()) default: - value := &LoadSnapshotChunkRequest{} + value := &RequestLoadSnapshotChunk{} oneofValue := &Request_LoadSnapshotChunk{LoadSnapshotChunk: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "cometbft.abci.v2.Request.apply_snapshot_chunk": + case "tendermint.abci.Request.apply_snapshot_chunk": if x.Value == nil { - value := &ApplySnapshotChunkRequest{} + value := &RequestApplySnapshotChunk{} oneofValue := &Request_ApplySnapshotChunk{ApplySnapshotChunk: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) @@ -818,14 +816,14 @@ func (x *fastReflection_Request) Mutable(fd protoreflect.FieldDescriptor) protor case *Request_ApplySnapshotChunk: return protoreflect.ValueOfMessage(m.ApplySnapshotChunk.ProtoReflect()) default: - value := &ApplySnapshotChunkRequest{} + value := &RequestApplySnapshotChunk{} oneofValue := &Request_ApplySnapshotChunk{ApplySnapshotChunk: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "cometbft.abci.v2.Request.prepare_proposal": + case "tendermint.abci.Request.prepare_proposal": if x.Value == nil { - value := &PrepareProposalRequest{} + value := &RequestPrepareProposal{} oneofValue := &Request_PrepareProposal{PrepareProposal: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) @@ -834,14 +832,14 @@ func (x *fastReflection_Request) Mutable(fd protoreflect.FieldDescriptor) protor case *Request_PrepareProposal: return protoreflect.ValueOfMessage(m.PrepareProposal.ProtoReflect()) default: - value := &PrepareProposalRequest{} + value := &RequestPrepareProposal{} oneofValue := &Request_PrepareProposal{PrepareProposal: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "cometbft.abci.v2.Request.process_proposal": + case "tendermint.abci.Request.process_proposal": if x.Value == nil { - value := &ProcessProposalRequest{} + value := &RequestProcessProposal{} oneofValue := &Request_ProcessProposal{ProcessProposal: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) @@ -850,14 +848,14 @@ func (x *fastReflection_Request) Mutable(fd protoreflect.FieldDescriptor) protor case *Request_ProcessProposal: return protoreflect.ValueOfMessage(m.ProcessProposal.ProtoReflect()) default: - value := &ProcessProposalRequest{} + value := &RequestProcessProposal{} oneofValue := &Request_ProcessProposal{ProcessProposal: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "cometbft.abci.v2.Request.extend_vote": + case "tendermint.abci.Request.extend_vote": if x.Value == nil { - value := &ExtendVoteRequest{} + value := &RequestExtendVote{} oneofValue := &Request_ExtendVote{ExtendVote: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) @@ -866,14 +864,14 @@ func (x *fastReflection_Request) Mutable(fd protoreflect.FieldDescriptor) protor case *Request_ExtendVote: return protoreflect.ValueOfMessage(m.ExtendVote.ProtoReflect()) default: - value := &ExtendVoteRequest{} + value := &RequestExtendVote{} oneofValue := &Request_ExtendVote{ExtendVote: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "cometbft.abci.v2.Request.verify_vote_extension": + case "tendermint.abci.Request.verify_vote_extension": if x.Value == nil { - value := &VerifyVoteExtensionRequest{} + value := &RequestVerifyVoteExtension{} oneofValue := &Request_VerifyVoteExtension{VerifyVoteExtension: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) @@ -882,14 +880,14 @@ func (x *fastReflection_Request) Mutable(fd protoreflect.FieldDescriptor) protor case *Request_VerifyVoteExtension: return protoreflect.ValueOfMessage(m.VerifyVoteExtension.ProtoReflect()) default: - value := &VerifyVoteExtensionRequest{} + value := &RequestVerifyVoteExtension{} oneofValue := &Request_VerifyVoteExtension{VerifyVoteExtension: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "cometbft.abci.v2.Request.finalize_block": + case "tendermint.abci.Request.finalize_block": if x.Value == nil { - value := &FinalizeBlockRequest{} + value := &RequestFinalizeBlock{} oneofValue := &Request_FinalizeBlock{FinalizeBlock: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) @@ -898,16 +896,16 @@ func (x *fastReflection_Request) Mutable(fd protoreflect.FieldDescriptor) protor case *Request_FinalizeBlock: return protoreflect.ValueOfMessage(m.FinalizeBlock.ProtoReflect()) default: - value := &FinalizeBlockRequest{} + value := &RequestFinalizeBlock{} oneofValue := &Request_FinalizeBlock{FinalizeBlock: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Request")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Request")) } - panic(fmt.Errorf("message cometbft.abci.v2.Request does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.Request does not contain field %s", fd.FullName())) } } @@ -916,59 +914,59 @@ func (x *fastReflection_Request) Mutable(fd protoreflect.FieldDescriptor) protor // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Request) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.Request.echo": - value := &EchoRequest{} + case "tendermint.abci.Request.echo": + value := &RequestEcho{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.Request.flush": - value := &FlushRequest{} + case "tendermint.abci.Request.flush": + value := &RequestFlush{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.Request.info": - value := &InfoRequest{} + case "tendermint.abci.Request.info": + value := &RequestInfo{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.Request.init_chain": - value := &InitChainRequest{} + case "tendermint.abci.Request.init_chain": + value := &RequestInitChain{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.Request.query": - value := &QueryRequest{} + case "tendermint.abci.Request.query": + value := &RequestQuery{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.Request.check_tx": - value := &CheckTxRequest{} + case "tendermint.abci.Request.check_tx": + value := &RequestCheckTx{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.Request.commit": - value := &CommitRequest{} + case "tendermint.abci.Request.commit": + value := &RequestCommit{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.Request.list_snapshots": - value := &ListSnapshotsRequest{} + case "tendermint.abci.Request.list_snapshots": + value := &RequestListSnapshots{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.Request.offer_snapshot": - value := &OfferSnapshotRequest{} + case "tendermint.abci.Request.offer_snapshot": + value := &RequestOfferSnapshot{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.Request.load_snapshot_chunk": - value := &LoadSnapshotChunkRequest{} + case "tendermint.abci.Request.load_snapshot_chunk": + value := &RequestLoadSnapshotChunk{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.Request.apply_snapshot_chunk": - value := &ApplySnapshotChunkRequest{} + case "tendermint.abci.Request.apply_snapshot_chunk": + value := &RequestApplySnapshotChunk{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.Request.prepare_proposal": - value := &PrepareProposalRequest{} + case "tendermint.abci.Request.prepare_proposal": + value := &RequestPrepareProposal{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.Request.process_proposal": - value := &ProcessProposalRequest{} + case "tendermint.abci.Request.process_proposal": + value := &RequestProcessProposal{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.Request.extend_vote": - value := &ExtendVoteRequest{} + case "tendermint.abci.Request.extend_vote": + value := &RequestExtendVote{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.Request.verify_vote_extension": - value := &VerifyVoteExtensionRequest{} + case "tendermint.abci.Request.verify_vote_extension": + value := &RequestVerifyVoteExtension{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.Request.finalize_block": - value := &FinalizeBlockRequest{} + case "tendermint.abci.Request.finalize_block": + value := &RequestFinalizeBlock{} return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Request")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Request")) } - panic(fmt.Errorf("message cometbft.abci.v2.Request does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.Request does not contain field %s", fd.FullName())) } } @@ -977,7 +975,7 @@ func (x *fastReflection_Request) NewField(fd protoreflect.FieldDescriptor) proto // It panics if the oneof descriptor does not belong to this message. func (x *fastReflection_Request) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { - case "cometbft.abci.v2.Request.value": + case "tendermint.abci.Request.value": if x.Value == nil { return nil } @@ -1016,7 +1014,7 @@ func (x *fastReflection_Request) WhichOneof(d protoreflect.OneofDescriptor) prot return x.Descriptor().Fields().ByName("finalize_block") } default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.Request", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.Request", d.FullName())) } panic("unreachable") } @@ -1496,7 +1494,7 @@ func (x *fastReflection_Request) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &EchoRequest{} + v := &RequestEcho{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -1531,7 +1529,7 @@ func (x *fastReflection_Request) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &FlushRequest{} + v := &RequestFlush{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -1566,7 +1564,7 @@ func (x *fastReflection_Request) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &InfoRequest{} + v := &RequestInfo{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -1601,7 +1599,7 @@ func (x *fastReflection_Request) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &InitChainRequest{} + v := &RequestInitChain{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -1636,7 +1634,7 @@ func (x *fastReflection_Request) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &QueryRequest{} + v := &RequestQuery{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -1671,7 +1669,7 @@ func (x *fastReflection_Request) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &CheckTxRequest{} + v := &RequestCheckTx{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -1706,7 +1704,7 @@ func (x *fastReflection_Request) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &CommitRequest{} + v := &RequestCommit{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -1741,7 +1739,7 @@ func (x *fastReflection_Request) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &ListSnapshotsRequest{} + v := &RequestListSnapshots{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -1776,7 +1774,7 @@ func (x *fastReflection_Request) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &OfferSnapshotRequest{} + v := &RequestOfferSnapshot{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -1811,7 +1809,7 @@ func (x *fastReflection_Request) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &LoadSnapshotChunkRequest{} + v := &RequestLoadSnapshotChunk{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -1846,7 +1844,7 @@ func (x *fastReflection_Request) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &ApplySnapshotChunkRequest{} + v := &RequestApplySnapshotChunk{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -1881,7 +1879,7 @@ func (x *fastReflection_Request) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &PrepareProposalRequest{} + v := &RequestPrepareProposal{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -1916,7 +1914,7 @@ func (x *fastReflection_Request) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &ProcessProposalRequest{} + v := &RequestProcessProposal{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -1951,7 +1949,7 @@ func (x *fastReflection_Request) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &ExtendVoteRequest{} + v := &RequestExtendVote{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -1986,7 +1984,7 @@ func (x *fastReflection_Request) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &VerifyVoteExtensionRequest{} + v := &RequestVerifyVoteExtension{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -2021,7 +2019,7 @@ func (x *fastReflection_Request) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &FinalizeBlockRequest{} + v := &RequestFinalizeBlock{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -2063,26 +2061,26 @@ func (x *fastReflection_Request) ProtoMethods() *protoiface.Methods { } var ( - md_EchoRequest protoreflect.MessageDescriptor - fd_EchoRequest_message protoreflect.FieldDescriptor + md_RequestEcho protoreflect.MessageDescriptor + fd_RequestEcho_message protoreflect.FieldDescriptor ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_EchoRequest = File_cometbft_abci_v2_types_proto.Messages().ByName("EchoRequest") - fd_EchoRequest_message = md_EchoRequest.Fields().ByName("message") + file_tendermint_abci_types_proto_init() + md_RequestEcho = File_tendermint_abci_types_proto.Messages().ByName("RequestEcho") + fd_RequestEcho_message = md_RequestEcho.Fields().ByName("message") } -var _ protoreflect.Message = (*fastReflection_EchoRequest)(nil) +var _ protoreflect.Message = (*fastReflection_RequestEcho)(nil) -type fastReflection_EchoRequest EchoRequest +type fastReflection_RequestEcho RequestEcho -func (x *EchoRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_EchoRequest)(x) +func (x *RequestEcho) ProtoReflect() protoreflect.Message { + return (*fastReflection_RequestEcho)(x) } -func (x *EchoRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[1] +func (x *RequestEcho) slowProtoReflect() protoreflect.Message { + mi := &file_tendermint_abci_types_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2093,43 +2091,43 @@ func (x *EchoRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_EchoRequest_messageType fastReflection_EchoRequest_messageType -var _ protoreflect.MessageType = fastReflection_EchoRequest_messageType{} +var _fastReflection_RequestEcho_messageType fastReflection_RequestEcho_messageType +var _ protoreflect.MessageType = fastReflection_RequestEcho_messageType{} -type fastReflection_EchoRequest_messageType struct{} +type fastReflection_RequestEcho_messageType struct{} -func (x fastReflection_EchoRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_EchoRequest)(nil) +func (x fastReflection_RequestEcho_messageType) Zero() protoreflect.Message { + return (*fastReflection_RequestEcho)(nil) } -func (x fastReflection_EchoRequest_messageType) New() protoreflect.Message { - return new(fastReflection_EchoRequest) +func (x fastReflection_RequestEcho_messageType) New() protoreflect.Message { + return new(fastReflection_RequestEcho) } -func (x fastReflection_EchoRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EchoRequest +func (x fastReflection_RequestEcho_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_RequestEcho } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_EchoRequest) Descriptor() protoreflect.MessageDescriptor { - return md_EchoRequest +func (x *fastReflection_RequestEcho) Descriptor() protoreflect.MessageDescriptor { + return md_RequestEcho } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_EchoRequest) Type() protoreflect.MessageType { - return _fastReflection_EchoRequest_messageType +func (x *fastReflection_RequestEcho) Type() protoreflect.MessageType { + return _fastReflection_RequestEcho_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_EchoRequest) New() protoreflect.Message { - return new(fastReflection_EchoRequest) +func (x *fastReflection_RequestEcho) New() protoreflect.Message { + return new(fastReflection_RequestEcho) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_EchoRequest) Interface() protoreflect.ProtoMessage { - return (*EchoRequest)(x) +func (x *fastReflection_RequestEcho) Interface() protoreflect.ProtoMessage { + return (*RequestEcho)(x) } // Range iterates over every populated field in an undefined order, @@ -2137,10 +2135,10 @@ func (x *fastReflection_EchoRequest) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_EchoRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_RequestEcho) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Message != "" { value := protoreflect.ValueOfString(x.Message) - if !f(fd_EchoRequest_message, value) { + if !f(fd_RequestEcho_message, value) { return } } @@ -2157,15 +2155,15 @@ func (x *fastReflection_EchoRequest) Range(f func(protoreflect.FieldDescriptor, // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_EchoRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_RequestEcho) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.EchoRequest.message": + case "tendermint.abci.RequestEcho.message": return x.Message != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.EchoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestEcho")) } - panic(fmt.Errorf("message cometbft.abci.v2.EchoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestEcho does not contain field %s", fd.FullName())) } } @@ -2175,15 +2173,15 @@ func (x *fastReflection_EchoRequest) Has(fd protoreflect.FieldDescriptor) bool { // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EchoRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_RequestEcho) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.EchoRequest.message": + case "tendermint.abci.RequestEcho.message": x.Message = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.EchoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestEcho")) } - panic(fmt.Errorf("message cometbft.abci.v2.EchoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestEcho does not contain field %s", fd.FullName())) } } @@ -2193,16 +2191,16 @@ func (x *fastReflection_EchoRequest) Clear(fd protoreflect.FieldDescriptor) { // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_EchoRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestEcho) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.EchoRequest.message": + case "tendermint.abci.RequestEcho.message": value := x.Message return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.EchoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestEcho")) } - panic(fmt.Errorf("message cometbft.abci.v2.EchoRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestEcho does not contain field %s", descriptor.FullName())) } } @@ -2216,15 +2214,15 @@ func (x *fastReflection_EchoRequest) Get(descriptor protoreflect.FieldDescriptor // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EchoRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_RequestEcho) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.EchoRequest.message": + case "tendermint.abci.RequestEcho.message": x.Message = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.EchoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestEcho")) } - panic(fmt.Errorf("message cometbft.abci.v2.EchoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestEcho does not contain field %s", fd.FullName())) } } @@ -2238,40 +2236,40 @@ func (x *fastReflection_EchoRequest) Set(fd protoreflect.FieldDescriptor, value // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EchoRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestEcho) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.EchoRequest.message": - panic(fmt.Errorf("field message of message cometbft.abci.v2.EchoRequest is not mutable")) + case "tendermint.abci.RequestEcho.message": + panic(fmt.Errorf("field message of message tendermint.abci.RequestEcho is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.EchoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestEcho")) } - panic(fmt.Errorf("message cometbft.abci.v2.EchoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestEcho does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_EchoRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestEcho) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.EchoRequest.message": + case "tendermint.abci.RequestEcho.message": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.EchoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestEcho")) } - panic(fmt.Errorf("message cometbft.abci.v2.EchoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestEcho does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_EchoRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_RequestEcho) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.EchoRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.RequestEcho", d.FullName())) } panic("unreachable") } @@ -2279,7 +2277,7 @@ func (x *fastReflection_EchoRequest) WhichOneof(d protoreflect.OneofDescriptor) // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_EchoRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_RequestEcho) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2290,7 +2288,7 @@ func (x *fastReflection_EchoRequest) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EchoRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_RequestEcho) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2302,7 +2300,7 @@ func (x *fastReflection_EchoRequest) SetUnknown(fields protoreflect.RawFields) { // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_EchoRequest) IsValid() bool { +func (x *fastReflection_RequestEcho) IsValid() bool { return x != nil } @@ -2312,9 +2310,9 @@ func (x *fastReflection_EchoRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_EchoRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_RequestEcho) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EchoRequest) + x := input.Message.Interface().(*RequestEcho) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2340,7 +2338,7 @@ func (x *fastReflection_EchoRequest) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EchoRequest) + x := input.Message.Interface().(*RequestEcho) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2377,7 +2375,7 @@ func (x *fastReflection_EchoRequest) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EchoRequest) + x := input.Message.Interface().(*RequestEcho) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2409,10 +2407,10 @@ func (x *fastReflection_EchoRequest) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EchoRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestEcho: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EchoRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestEcho: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2483,24 +2481,24 @@ func (x *fastReflection_EchoRequest) ProtoMethods() *protoiface.Methods { } var ( - md_FlushRequest protoreflect.MessageDescriptor + md_RequestFlush protoreflect.MessageDescriptor ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_FlushRequest = File_cometbft_abci_v2_types_proto.Messages().ByName("FlushRequest") + file_tendermint_abci_types_proto_init() + md_RequestFlush = File_tendermint_abci_types_proto.Messages().ByName("RequestFlush") } -var _ protoreflect.Message = (*fastReflection_FlushRequest)(nil) +var _ protoreflect.Message = (*fastReflection_RequestFlush)(nil) -type fastReflection_FlushRequest FlushRequest +type fastReflection_RequestFlush RequestFlush -func (x *FlushRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_FlushRequest)(x) +func (x *RequestFlush) ProtoReflect() protoreflect.Message { + return (*fastReflection_RequestFlush)(x) } -func (x *FlushRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[2] +func (x *RequestFlush) slowProtoReflect() protoreflect.Message { + mi := &file_tendermint_abci_types_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2511,43 +2509,43 @@ func (x *FlushRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_FlushRequest_messageType fastReflection_FlushRequest_messageType -var _ protoreflect.MessageType = fastReflection_FlushRequest_messageType{} +var _fastReflection_RequestFlush_messageType fastReflection_RequestFlush_messageType +var _ protoreflect.MessageType = fastReflection_RequestFlush_messageType{} -type fastReflection_FlushRequest_messageType struct{} +type fastReflection_RequestFlush_messageType struct{} -func (x fastReflection_FlushRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_FlushRequest)(nil) +func (x fastReflection_RequestFlush_messageType) Zero() protoreflect.Message { + return (*fastReflection_RequestFlush)(nil) } -func (x fastReflection_FlushRequest_messageType) New() protoreflect.Message { - return new(fastReflection_FlushRequest) +func (x fastReflection_RequestFlush_messageType) New() protoreflect.Message { + return new(fastReflection_RequestFlush) } -func (x fastReflection_FlushRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_FlushRequest +func (x fastReflection_RequestFlush_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_RequestFlush } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_FlushRequest) Descriptor() protoreflect.MessageDescriptor { - return md_FlushRequest +func (x *fastReflection_RequestFlush) Descriptor() protoreflect.MessageDescriptor { + return md_RequestFlush } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_FlushRequest) Type() protoreflect.MessageType { - return _fastReflection_FlushRequest_messageType +func (x *fastReflection_RequestFlush) Type() protoreflect.MessageType { + return _fastReflection_RequestFlush_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_FlushRequest) New() protoreflect.Message { - return new(fastReflection_FlushRequest) +func (x *fastReflection_RequestFlush) New() protoreflect.Message { + return new(fastReflection_RequestFlush) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_FlushRequest) Interface() protoreflect.ProtoMessage { - return (*FlushRequest)(x) +func (x *fastReflection_RequestFlush) Interface() protoreflect.ProtoMessage { + return (*RequestFlush)(x) } // Range iterates over every populated field in an undefined order, @@ -2555,7 +2553,7 @@ func (x *fastReflection_FlushRequest) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_FlushRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_RequestFlush) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -2569,13 +2567,13 @@ func (x *fastReflection_FlushRequest) Range(f func(protoreflect.FieldDescriptor, // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_FlushRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_RequestFlush) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.FlushRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestFlush")) } - panic(fmt.Errorf("message cometbft.abci.v2.FlushRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestFlush does not contain field %s", fd.FullName())) } } @@ -2585,13 +2583,13 @@ func (x *fastReflection_FlushRequest) Has(fd protoreflect.FieldDescriptor) bool // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_FlushRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_RequestFlush) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.FlushRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestFlush")) } - panic(fmt.Errorf("message cometbft.abci.v2.FlushRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestFlush does not contain field %s", fd.FullName())) } } @@ -2601,13 +2599,13 @@ func (x *fastReflection_FlushRequest) Clear(fd protoreflect.FieldDescriptor) { // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_FlushRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestFlush) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.FlushRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestFlush")) } - panic(fmt.Errorf("message cometbft.abci.v2.FlushRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestFlush does not contain field %s", descriptor.FullName())) } } @@ -2621,13 +2619,13 @@ func (x *fastReflection_FlushRequest) Get(descriptor protoreflect.FieldDescripto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_FlushRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_RequestFlush) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.FlushRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestFlush")) } - panic(fmt.Errorf("message cometbft.abci.v2.FlushRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestFlush does not contain field %s", fd.FullName())) } } @@ -2641,36 +2639,36 @@ func (x *fastReflection_FlushRequest) Set(fd protoreflect.FieldDescriptor, value // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_FlushRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestFlush) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.FlushRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestFlush")) } - panic(fmt.Errorf("message cometbft.abci.v2.FlushRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestFlush does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_FlushRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestFlush) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.FlushRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestFlush")) } - panic(fmt.Errorf("message cometbft.abci.v2.FlushRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestFlush does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_FlushRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_RequestFlush) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.FlushRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.RequestFlush", d.FullName())) } panic("unreachable") } @@ -2678,7 +2676,7 @@ func (x *fastReflection_FlushRequest) WhichOneof(d protoreflect.OneofDescriptor) // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_FlushRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_RequestFlush) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2689,7 +2687,7 @@ func (x *fastReflection_FlushRequest) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_FlushRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_RequestFlush) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2701,7 +2699,7 @@ func (x *fastReflection_FlushRequest) SetUnknown(fields protoreflect.RawFields) // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_FlushRequest) IsValid() bool { +func (x *fastReflection_RequestFlush) IsValid() bool { return x != nil } @@ -2711,9 +2709,9 @@ func (x *fastReflection_FlushRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_FlushRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_RequestFlush) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*FlushRequest) + x := input.Message.Interface().(*RequestFlush) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2735,7 +2733,7 @@ func (x *fastReflection_FlushRequest) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*FlushRequest) + x := input.Message.Interface().(*RequestFlush) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2765,7 +2763,7 @@ func (x *fastReflection_FlushRequest) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*FlushRequest) + x := input.Message.Interface().(*RequestFlush) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2797,10 +2795,10 @@ func (x *fastReflection_FlushRequest) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: FlushRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestFlush: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: FlushRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestFlush: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -2839,32 +2837,32 @@ func (x *fastReflection_FlushRequest) ProtoMethods() *protoiface.Methods { } var ( - md_InfoRequest protoreflect.MessageDescriptor - fd_InfoRequest_version protoreflect.FieldDescriptor - fd_InfoRequest_block_version protoreflect.FieldDescriptor - fd_InfoRequest_p2p_version protoreflect.FieldDescriptor - fd_InfoRequest_abci_version protoreflect.FieldDescriptor + md_RequestInfo protoreflect.MessageDescriptor + fd_RequestInfo_version protoreflect.FieldDescriptor + fd_RequestInfo_block_version protoreflect.FieldDescriptor + fd_RequestInfo_p2p_version protoreflect.FieldDescriptor + fd_RequestInfo_abci_version protoreflect.FieldDescriptor ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_InfoRequest = File_cometbft_abci_v2_types_proto.Messages().ByName("InfoRequest") - fd_InfoRequest_version = md_InfoRequest.Fields().ByName("version") - fd_InfoRequest_block_version = md_InfoRequest.Fields().ByName("block_version") - fd_InfoRequest_p2p_version = md_InfoRequest.Fields().ByName("p2p_version") - fd_InfoRequest_abci_version = md_InfoRequest.Fields().ByName("abci_version") + file_tendermint_abci_types_proto_init() + md_RequestInfo = File_tendermint_abci_types_proto.Messages().ByName("RequestInfo") + fd_RequestInfo_version = md_RequestInfo.Fields().ByName("version") + fd_RequestInfo_block_version = md_RequestInfo.Fields().ByName("block_version") + fd_RequestInfo_p2p_version = md_RequestInfo.Fields().ByName("p2p_version") + fd_RequestInfo_abci_version = md_RequestInfo.Fields().ByName("abci_version") } -var _ protoreflect.Message = (*fastReflection_InfoRequest)(nil) +var _ protoreflect.Message = (*fastReflection_RequestInfo)(nil) -type fastReflection_InfoRequest InfoRequest +type fastReflection_RequestInfo RequestInfo -func (x *InfoRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_InfoRequest)(x) +func (x *RequestInfo) ProtoReflect() protoreflect.Message { + return (*fastReflection_RequestInfo)(x) } -func (x *InfoRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[3] +func (x *RequestInfo) slowProtoReflect() protoreflect.Message { + mi := &file_tendermint_abci_types_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2875,43 +2873,43 @@ func (x *InfoRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_InfoRequest_messageType fastReflection_InfoRequest_messageType -var _ protoreflect.MessageType = fastReflection_InfoRequest_messageType{} +var _fastReflection_RequestInfo_messageType fastReflection_RequestInfo_messageType +var _ protoreflect.MessageType = fastReflection_RequestInfo_messageType{} -type fastReflection_InfoRequest_messageType struct{} +type fastReflection_RequestInfo_messageType struct{} -func (x fastReflection_InfoRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_InfoRequest)(nil) +func (x fastReflection_RequestInfo_messageType) Zero() protoreflect.Message { + return (*fastReflection_RequestInfo)(nil) } -func (x fastReflection_InfoRequest_messageType) New() protoreflect.Message { - return new(fastReflection_InfoRequest) +func (x fastReflection_RequestInfo_messageType) New() protoreflect.Message { + return new(fastReflection_RequestInfo) } -func (x fastReflection_InfoRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_InfoRequest +func (x fastReflection_RequestInfo_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_RequestInfo } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_InfoRequest) Descriptor() protoreflect.MessageDescriptor { - return md_InfoRequest +func (x *fastReflection_RequestInfo) Descriptor() protoreflect.MessageDescriptor { + return md_RequestInfo } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_InfoRequest) Type() protoreflect.MessageType { - return _fastReflection_InfoRequest_messageType +func (x *fastReflection_RequestInfo) Type() protoreflect.MessageType { + return _fastReflection_RequestInfo_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_InfoRequest) New() protoreflect.Message { - return new(fastReflection_InfoRequest) +func (x *fastReflection_RequestInfo) New() protoreflect.Message { + return new(fastReflection_RequestInfo) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_InfoRequest) Interface() protoreflect.ProtoMessage { - return (*InfoRequest)(x) +func (x *fastReflection_RequestInfo) Interface() protoreflect.ProtoMessage { + return (*RequestInfo)(x) } // Range iterates over every populated field in an undefined order, @@ -2919,28 +2917,28 @@ func (x *fastReflection_InfoRequest) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_InfoRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_RequestInfo) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Version != "" { value := protoreflect.ValueOfString(x.Version) - if !f(fd_InfoRequest_version, value) { + if !f(fd_RequestInfo_version, value) { return } } if x.BlockVersion != uint64(0) { value := protoreflect.ValueOfUint64(x.BlockVersion) - if !f(fd_InfoRequest_block_version, value) { + if !f(fd_RequestInfo_block_version, value) { return } } if x.P2PVersion != uint64(0) { value := protoreflect.ValueOfUint64(x.P2PVersion) - if !f(fd_InfoRequest_p2p_version, value) { + if !f(fd_RequestInfo_p2p_version, value) { return } } if x.AbciVersion != "" { value := protoreflect.ValueOfString(x.AbciVersion) - if !f(fd_InfoRequest_abci_version, value) { + if !f(fd_RequestInfo_abci_version, value) { return } } @@ -2957,21 +2955,21 @@ func (x *fastReflection_InfoRequest) Range(f func(protoreflect.FieldDescriptor, // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_InfoRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_RequestInfo) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.InfoRequest.version": + case "tendermint.abci.RequestInfo.version": return x.Version != "" - case "cometbft.abci.v2.InfoRequest.block_version": + case "tendermint.abci.RequestInfo.block_version": return x.BlockVersion != uint64(0) - case "cometbft.abci.v2.InfoRequest.p2p_version": + case "tendermint.abci.RequestInfo.p2p_version": return x.P2PVersion != uint64(0) - case "cometbft.abci.v2.InfoRequest.abci_version": + case "tendermint.abci.RequestInfo.abci_version": return x.AbciVersion != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.InfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.InfoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestInfo does not contain field %s", fd.FullName())) } } @@ -2981,21 +2979,21 @@ func (x *fastReflection_InfoRequest) Has(fd protoreflect.FieldDescriptor) bool { // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_InfoRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_RequestInfo) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.InfoRequest.version": + case "tendermint.abci.RequestInfo.version": x.Version = "" - case "cometbft.abci.v2.InfoRequest.block_version": + case "tendermint.abci.RequestInfo.block_version": x.BlockVersion = uint64(0) - case "cometbft.abci.v2.InfoRequest.p2p_version": + case "tendermint.abci.RequestInfo.p2p_version": x.P2PVersion = uint64(0) - case "cometbft.abci.v2.InfoRequest.abci_version": + case "tendermint.abci.RequestInfo.abci_version": x.AbciVersion = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.InfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.InfoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestInfo does not contain field %s", fd.FullName())) } } @@ -3005,25 +3003,25 @@ func (x *fastReflection_InfoRequest) Clear(fd protoreflect.FieldDescriptor) { // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_InfoRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestInfo) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.InfoRequest.version": + case "tendermint.abci.RequestInfo.version": value := x.Version return protoreflect.ValueOfString(value) - case "cometbft.abci.v2.InfoRequest.block_version": + case "tendermint.abci.RequestInfo.block_version": value := x.BlockVersion return protoreflect.ValueOfUint64(value) - case "cometbft.abci.v2.InfoRequest.p2p_version": + case "tendermint.abci.RequestInfo.p2p_version": value := x.P2PVersion return protoreflect.ValueOfUint64(value) - case "cometbft.abci.v2.InfoRequest.abci_version": + case "tendermint.abci.RequestInfo.abci_version": value := x.AbciVersion return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.InfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.InfoRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestInfo does not contain field %s", descriptor.FullName())) } } @@ -3037,21 +3035,21 @@ func (x *fastReflection_InfoRequest) Get(descriptor protoreflect.FieldDescriptor // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_InfoRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_RequestInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.InfoRequest.version": + case "tendermint.abci.RequestInfo.version": x.Version = value.Interface().(string) - case "cometbft.abci.v2.InfoRequest.block_version": + case "tendermint.abci.RequestInfo.block_version": x.BlockVersion = value.Uint() - case "cometbft.abci.v2.InfoRequest.p2p_version": + case "tendermint.abci.RequestInfo.p2p_version": x.P2PVersion = value.Uint() - case "cometbft.abci.v2.InfoRequest.abci_version": + case "tendermint.abci.RequestInfo.abci_version": x.AbciVersion = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.InfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.InfoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestInfo does not contain field %s", fd.FullName())) } } @@ -3065,52 +3063,52 @@ func (x *fastReflection_InfoRequest) Set(fd protoreflect.FieldDescriptor, value // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_InfoRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestInfo) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.InfoRequest.version": - panic(fmt.Errorf("field version of message cometbft.abci.v2.InfoRequest is not mutable")) - case "cometbft.abci.v2.InfoRequest.block_version": - panic(fmt.Errorf("field block_version of message cometbft.abci.v2.InfoRequest is not mutable")) - case "cometbft.abci.v2.InfoRequest.p2p_version": - panic(fmt.Errorf("field p2p_version of message cometbft.abci.v2.InfoRequest is not mutable")) - case "cometbft.abci.v2.InfoRequest.abci_version": - panic(fmt.Errorf("field abci_version of message cometbft.abci.v2.InfoRequest is not mutable")) + case "tendermint.abci.RequestInfo.version": + panic(fmt.Errorf("field version of message tendermint.abci.RequestInfo is not mutable")) + case "tendermint.abci.RequestInfo.block_version": + panic(fmt.Errorf("field block_version of message tendermint.abci.RequestInfo is not mutable")) + case "tendermint.abci.RequestInfo.p2p_version": + panic(fmt.Errorf("field p2p_version of message tendermint.abci.RequestInfo is not mutable")) + case "tendermint.abci.RequestInfo.abci_version": + panic(fmt.Errorf("field abci_version of message tendermint.abci.RequestInfo is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.InfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.InfoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestInfo does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_InfoRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.InfoRequest.version": + case "tendermint.abci.RequestInfo.version": return protoreflect.ValueOfString("") - case "cometbft.abci.v2.InfoRequest.block_version": + case "tendermint.abci.RequestInfo.block_version": return protoreflect.ValueOfUint64(uint64(0)) - case "cometbft.abci.v2.InfoRequest.p2p_version": + case "tendermint.abci.RequestInfo.p2p_version": return protoreflect.ValueOfUint64(uint64(0)) - case "cometbft.abci.v2.InfoRequest.abci_version": + case "tendermint.abci.RequestInfo.abci_version": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.InfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.InfoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestInfo does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_InfoRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_RequestInfo) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.InfoRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.RequestInfo", d.FullName())) } panic("unreachable") } @@ -3118,7 +3116,7 @@ func (x *fastReflection_InfoRequest) WhichOneof(d protoreflect.OneofDescriptor) // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_InfoRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_RequestInfo) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -3129,7 +3127,7 @@ func (x *fastReflection_InfoRequest) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_InfoRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_RequestInfo) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -3141,7 +3139,7 @@ func (x *fastReflection_InfoRequest) SetUnknown(fields protoreflect.RawFields) { // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_InfoRequest) IsValid() bool { +func (x *fastReflection_RequestInfo) IsValid() bool { return x != nil } @@ -3151,9 +3149,9 @@ func (x *fastReflection_InfoRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_InfoRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_RequestInfo) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*InfoRequest) + x := input.Message.Interface().(*RequestInfo) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3189,7 +3187,7 @@ func (x *fastReflection_InfoRequest) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*InfoRequest) + x := input.Message.Interface().(*RequestInfo) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3243,7 +3241,7 @@ func (x *fastReflection_InfoRequest) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*InfoRequest) + x := input.Message.Interface().(*RequestInfo) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3275,10 +3273,10 @@ func (x *fastReflection_InfoRequest) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: InfoRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestInfo: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: InfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestInfo: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3418,88 +3416,88 @@ func (x *fastReflection_InfoRequest) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_InitChainRequest_4_list)(nil) +var _ protoreflect.List = (*_RequestInitChain_4_list)(nil) -type _InitChainRequest_4_list struct { +type _RequestInitChain_4_list struct { list *[]*ValidatorUpdate } -func (x *_InitChainRequest_4_list) Len() int { +func (x *_RequestInitChain_4_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_InitChainRequest_4_list) Get(i int) protoreflect.Value { +func (x *_RequestInitChain_4_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_InitChainRequest_4_list) Set(i int, value protoreflect.Value) { +func (x *_RequestInitChain_4_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*ValidatorUpdate) (*x.list)[i] = concreteValue } -func (x *_InitChainRequest_4_list) Append(value protoreflect.Value) { +func (x *_RequestInitChain_4_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*ValidatorUpdate) *x.list = append(*x.list, concreteValue) } -func (x *_InitChainRequest_4_list) AppendMutable() protoreflect.Value { +func (x *_RequestInitChain_4_list) AppendMutable() protoreflect.Value { v := new(ValidatorUpdate) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_InitChainRequest_4_list) Truncate(n int) { +func (x *_RequestInitChain_4_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_InitChainRequest_4_list) NewElement() protoreflect.Value { +func (x *_RequestInitChain_4_list) NewElement() protoreflect.Value { v := new(ValidatorUpdate) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_InitChainRequest_4_list) IsValid() bool { +func (x *_RequestInitChain_4_list) IsValid() bool { return x.list != nil } var ( - md_InitChainRequest protoreflect.MessageDescriptor - fd_InitChainRequest_time protoreflect.FieldDescriptor - fd_InitChainRequest_chain_id protoreflect.FieldDescriptor - fd_InitChainRequest_consensus_params protoreflect.FieldDescriptor - fd_InitChainRequest_validators protoreflect.FieldDescriptor - fd_InitChainRequest_app_state_bytes protoreflect.FieldDescriptor - fd_InitChainRequest_initial_height protoreflect.FieldDescriptor + md_RequestInitChain protoreflect.MessageDescriptor + fd_RequestInitChain_time protoreflect.FieldDescriptor + fd_RequestInitChain_chain_id protoreflect.FieldDescriptor + fd_RequestInitChain_consensus_params protoreflect.FieldDescriptor + fd_RequestInitChain_validators protoreflect.FieldDescriptor + fd_RequestInitChain_app_state_bytes protoreflect.FieldDescriptor + fd_RequestInitChain_initial_height protoreflect.FieldDescriptor ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_InitChainRequest = File_cometbft_abci_v2_types_proto.Messages().ByName("InitChainRequest") - fd_InitChainRequest_time = md_InitChainRequest.Fields().ByName("time") - fd_InitChainRequest_chain_id = md_InitChainRequest.Fields().ByName("chain_id") - fd_InitChainRequest_consensus_params = md_InitChainRequest.Fields().ByName("consensus_params") - fd_InitChainRequest_validators = md_InitChainRequest.Fields().ByName("validators") - fd_InitChainRequest_app_state_bytes = md_InitChainRequest.Fields().ByName("app_state_bytes") - fd_InitChainRequest_initial_height = md_InitChainRequest.Fields().ByName("initial_height") + file_tendermint_abci_types_proto_init() + md_RequestInitChain = File_tendermint_abci_types_proto.Messages().ByName("RequestInitChain") + fd_RequestInitChain_time = md_RequestInitChain.Fields().ByName("time") + fd_RequestInitChain_chain_id = md_RequestInitChain.Fields().ByName("chain_id") + fd_RequestInitChain_consensus_params = md_RequestInitChain.Fields().ByName("consensus_params") + fd_RequestInitChain_validators = md_RequestInitChain.Fields().ByName("validators") + fd_RequestInitChain_app_state_bytes = md_RequestInitChain.Fields().ByName("app_state_bytes") + fd_RequestInitChain_initial_height = md_RequestInitChain.Fields().ByName("initial_height") } -var _ protoreflect.Message = (*fastReflection_InitChainRequest)(nil) +var _ protoreflect.Message = (*fastReflection_RequestInitChain)(nil) -type fastReflection_InitChainRequest InitChainRequest +type fastReflection_RequestInitChain RequestInitChain -func (x *InitChainRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_InitChainRequest)(x) +func (x *RequestInitChain) ProtoReflect() protoreflect.Message { + return (*fastReflection_RequestInitChain)(x) } -func (x *InitChainRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[4] +func (x *RequestInitChain) slowProtoReflect() protoreflect.Message { + mi := &file_tendermint_abci_types_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3510,43 +3508,43 @@ func (x *InitChainRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_InitChainRequest_messageType fastReflection_InitChainRequest_messageType -var _ protoreflect.MessageType = fastReflection_InitChainRequest_messageType{} +var _fastReflection_RequestInitChain_messageType fastReflection_RequestInitChain_messageType +var _ protoreflect.MessageType = fastReflection_RequestInitChain_messageType{} -type fastReflection_InitChainRequest_messageType struct{} +type fastReflection_RequestInitChain_messageType struct{} -func (x fastReflection_InitChainRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_InitChainRequest)(nil) +func (x fastReflection_RequestInitChain_messageType) Zero() protoreflect.Message { + return (*fastReflection_RequestInitChain)(nil) } -func (x fastReflection_InitChainRequest_messageType) New() protoreflect.Message { - return new(fastReflection_InitChainRequest) +func (x fastReflection_RequestInitChain_messageType) New() protoreflect.Message { + return new(fastReflection_RequestInitChain) } -func (x fastReflection_InitChainRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_InitChainRequest +func (x fastReflection_RequestInitChain_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_RequestInitChain } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_InitChainRequest) Descriptor() protoreflect.MessageDescriptor { - return md_InitChainRequest +func (x *fastReflection_RequestInitChain) Descriptor() protoreflect.MessageDescriptor { + return md_RequestInitChain } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_InitChainRequest) Type() protoreflect.MessageType { - return _fastReflection_InitChainRequest_messageType +func (x *fastReflection_RequestInitChain) Type() protoreflect.MessageType { + return _fastReflection_RequestInitChain_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_InitChainRequest) New() protoreflect.Message { - return new(fastReflection_InitChainRequest) +func (x *fastReflection_RequestInitChain) New() protoreflect.Message { + return new(fastReflection_RequestInitChain) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_InitChainRequest) Interface() protoreflect.ProtoMessage { - return (*InitChainRequest)(x) +func (x *fastReflection_RequestInitChain) Interface() protoreflect.ProtoMessage { + return (*RequestInitChain)(x) } // Range iterates over every populated field in an undefined order, @@ -3554,40 +3552,40 @@ func (x *fastReflection_InitChainRequest) Interface() protoreflect.ProtoMessage // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_InitChainRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_RequestInitChain) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Time != nil { value := protoreflect.ValueOfMessage(x.Time.ProtoReflect()) - if !f(fd_InitChainRequest_time, value) { + if !f(fd_RequestInitChain_time, value) { return } } if x.ChainId != "" { value := protoreflect.ValueOfString(x.ChainId) - if !f(fd_InitChainRequest_chain_id, value) { + if !f(fd_RequestInitChain_chain_id, value) { return } } if x.ConsensusParams != nil { value := protoreflect.ValueOfMessage(x.ConsensusParams.ProtoReflect()) - if !f(fd_InitChainRequest_consensus_params, value) { + if !f(fd_RequestInitChain_consensus_params, value) { return } } if len(x.Validators) != 0 { - value := protoreflect.ValueOfList(&_InitChainRequest_4_list{list: &x.Validators}) - if !f(fd_InitChainRequest_validators, value) { + value := protoreflect.ValueOfList(&_RequestInitChain_4_list{list: &x.Validators}) + if !f(fd_RequestInitChain_validators, value) { return } } if len(x.AppStateBytes) != 0 { value := protoreflect.ValueOfBytes(x.AppStateBytes) - if !f(fd_InitChainRequest_app_state_bytes, value) { + if !f(fd_RequestInitChain_app_state_bytes, value) { return } } if x.InitialHeight != int64(0) { value := protoreflect.ValueOfInt64(x.InitialHeight) - if !f(fd_InitChainRequest_initial_height, value) { + if !f(fd_RequestInitChain_initial_height, value) { return } } @@ -3604,25 +3602,25 @@ func (x *fastReflection_InitChainRequest) Range(f func(protoreflect.FieldDescrip // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_InitChainRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_RequestInitChain) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.InitChainRequest.time": + case "tendermint.abci.RequestInitChain.time": return x.Time != nil - case "cometbft.abci.v2.InitChainRequest.chain_id": + case "tendermint.abci.RequestInitChain.chain_id": return x.ChainId != "" - case "cometbft.abci.v2.InitChainRequest.consensus_params": + case "tendermint.abci.RequestInitChain.consensus_params": return x.ConsensusParams != nil - case "cometbft.abci.v2.InitChainRequest.validators": + case "tendermint.abci.RequestInitChain.validators": return len(x.Validators) != 0 - case "cometbft.abci.v2.InitChainRequest.app_state_bytes": + case "tendermint.abci.RequestInitChain.app_state_bytes": return len(x.AppStateBytes) != 0 - case "cometbft.abci.v2.InitChainRequest.initial_height": + case "tendermint.abci.RequestInitChain.initial_height": return x.InitialHeight != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.InitChainRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestInitChain")) } - panic(fmt.Errorf("message cometbft.abci.v2.InitChainRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestInitChain does not contain field %s", fd.FullName())) } } @@ -3632,25 +3630,25 @@ func (x *fastReflection_InitChainRequest) Has(fd protoreflect.FieldDescriptor) b // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_InitChainRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_RequestInitChain) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.InitChainRequest.time": + case "tendermint.abci.RequestInitChain.time": x.Time = nil - case "cometbft.abci.v2.InitChainRequest.chain_id": + case "tendermint.abci.RequestInitChain.chain_id": x.ChainId = "" - case "cometbft.abci.v2.InitChainRequest.consensus_params": + case "tendermint.abci.RequestInitChain.consensus_params": x.ConsensusParams = nil - case "cometbft.abci.v2.InitChainRequest.validators": + case "tendermint.abci.RequestInitChain.validators": x.Validators = nil - case "cometbft.abci.v2.InitChainRequest.app_state_bytes": + case "tendermint.abci.RequestInitChain.app_state_bytes": x.AppStateBytes = nil - case "cometbft.abci.v2.InitChainRequest.initial_height": + case "tendermint.abci.RequestInitChain.initial_height": x.InitialHeight = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.InitChainRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestInitChain")) } - panic(fmt.Errorf("message cometbft.abci.v2.InitChainRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestInitChain does not contain field %s", fd.FullName())) } } @@ -3660,34 +3658,34 @@ func (x *fastReflection_InitChainRequest) Clear(fd protoreflect.FieldDescriptor) // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_InitChainRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestInitChain) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.InitChainRequest.time": + case "tendermint.abci.RequestInitChain.time": value := x.Time return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.InitChainRequest.chain_id": + case "tendermint.abci.RequestInitChain.chain_id": value := x.ChainId return protoreflect.ValueOfString(value) - case "cometbft.abci.v2.InitChainRequest.consensus_params": + case "tendermint.abci.RequestInitChain.consensus_params": value := x.ConsensusParams return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.InitChainRequest.validators": + case "tendermint.abci.RequestInitChain.validators": if len(x.Validators) == 0 { - return protoreflect.ValueOfList(&_InitChainRequest_4_list{}) + return protoreflect.ValueOfList(&_RequestInitChain_4_list{}) } - listValue := &_InitChainRequest_4_list{list: &x.Validators} + listValue := &_RequestInitChain_4_list{list: &x.Validators} return protoreflect.ValueOfList(listValue) - case "cometbft.abci.v2.InitChainRequest.app_state_bytes": + case "tendermint.abci.RequestInitChain.app_state_bytes": value := x.AppStateBytes return protoreflect.ValueOfBytes(value) - case "cometbft.abci.v2.InitChainRequest.initial_height": + case "tendermint.abci.RequestInitChain.initial_height": value := x.InitialHeight return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.InitChainRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestInitChain")) } - panic(fmt.Errorf("message cometbft.abci.v2.InitChainRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestInitChain does not contain field %s", descriptor.FullName())) } } @@ -3701,27 +3699,27 @@ func (x *fastReflection_InitChainRequest) Get(descriptor protoreflect.FieldDescr // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_InitChainRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_RequestInitChain) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.InitChainRequest.time": + case "tendermint.abci.RequestInitChain.time": x.Time = value.Message().Interface().(*timestamppb.Timestamp) - case "cometbft.abci.v2.InitChainRequest.chain_id": + case "tendermint.abci.RequestInitChain.chain_id": x.ChainId = value.Interface().(string) - case "cometbft.abci.v2.InitChainRequest.consensus_params": - x.ConsensusParams = value.Message().Interface().(*v2.ConsensusParams) - case "cometbft.abci.v2.InitChainRequest.validators": + case "tendermint.abci.RequestInitChain.consensus_params": + x.ConsensusParams = value.Message().Interface().(*types.ConsensusParams) + case "tendermint.abci.RequestInitChain.validators": lv := value.List() - clv := lv.(*_InitChainRequest_4_list) + clv := lv.(*_RequestInitChain_4_list) x.Validators = *clv.list - case "cometbft.abci.v2.InitChainRequest.app_state_bytes": + case "tendermint.abci.RequestInitChain.app_state_bytes": x.AppStateBytes = value.Bytes() - case "cometbft.abci.v2.InitChainRequest.initial_height": + case "tendermint.abci.RequestInitChain.initial_height": x.InitialHeight = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.InitChainRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestInitChain")) } - panic(fmt.Errorf("message cometbft.abci.v2.InitChainRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestInitChain does not contain field %s", fd.FullName())) } } @@ -3735,73 +3733,73 @@ func (x *fastReflection_InitChainRequest) Set(fd protoreflect.FieldDescriptor, v // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_InitChainRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestInitChain) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.InitChainRequest.time": + case "tendermint.abci.RequestInitChain.time": if x.Time == nil { x.Time = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.Time.ProtoReflect()) - case "cometbft.abci.v2.InitChainRequest.consensus_params": + case "tendermint.abci.RequestInitChain.consensus_params": if x.ConsensusParams == nil { - x.ConsensusParams = new(v2.ConsensusParams) + x.ConsensusParams = new(types.ConsensusParams) } return protoreflect.ValueOfMessage(x.ConsensusParams.ProtoReflect()) - case "cometbft.abci.v2.InitChainRequest.validators": + case "tendermint.abci.RequestInitChain.validators": if x.Validators == nil { x.Validators = []*ValidatorUpdate{} } - value := &_InitChainRequest_4_list{list: &x.Validators} + value := &_RequestInitChain_4_list{list: &x.Validators} return protoreflect.ValueOfList(value) - case "cometbft.abci.v2.InitChainRequest.chain_id": - panic(fmt.Errorf("field chain_id of message cometbft.abci.v2.InitChainRequest is not mutable")) - case "cometbft.abci.v2.InitChainRequest.app_state_bytes": - panic(fmt.Errorf("field app_state_bytes of message cometbft.abci.v2.InitChainRequest is not mutable")) - case "cometbft.abci.v2.InitChainRequest.initial_height": - panic(fmt.Errorf("field initial_height of message cometbft.abci.v2.InitChainRequest is not mutable")) + case "tendermint.abci.RequestInitChain.chain_id": + panic(fmt.Errorf("field chain_id of message tendermint.abci.RequestInitChain is not mutable")) + case "tendermint.abci.RequestInitChain.app_state_bytes": + panic(fmt.Errorf("field app_state_bytes of message tendermint.abci.RequestInitChain is not mutable")) + case "tendermint.abci.RequestInitChain.initial_height": + panic(fmt.Errorf("field initial_height of message tendermint.abci.RequestInitChain is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.InitChainRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestInitChain")) } - panic(fmt.Errorf("message cometbft.abci.v2.InitChainRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestInitChain does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_InitChainRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestInitChain) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.InitChainRequest.time": + case "tendermint.abci.RequestInitChain.time": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.abci.v2.InitChainRequest.chain_id": + case "tendermint.abci.RequestInitChain.chain_id": return protoreflect.ValueOfString("") - case "cometbft.abci.v2.InitChainRequest.consensus_params": - m := new(v2.ConsensusParams) + case "tendermint.abci.RequestInitChain.consensus_params": + m := new(types.ConsensusParams) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.abci.v2.InitChainRequest.validators": + case "tendermint.abci.RequestInitChain.validators": list := []*ValidatorUpdate{} - return protoreflect.ValueOfList(&_InitChainRequest_4_list{list: &list}) - case "cometbft.abci.v2.InitChainRequest.app_state_bytes": + return protoreflect.ValueOfList(&_RequestInitChain_4_list{list: &list}) + case "tendermint.abci.RequestInitChain.app_state_bytes": return protoreflect.ValueOfBytes(nil) - case "cometbft.abci.v2.InitChainRequest.initial_height": + case "tendermint.abci.RequestInitChain.initial_height": return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.InitChainRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestInitChain")) } - panic(fmt.Errorf("message cometbft.abci.v2.InitChainRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestInitChain does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_InitChainRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_RequestInitChain) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.InitChainRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.RequestInitChain", d.FullName())) } panic("unreachable") } @@ -3809,7 +3807,7 @@ func (x *fastReflection_InitChainRequest) WhichOneof(d protoreflect.OneofDescrip // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_InitChainRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_RequestInitChain) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -3820,7 +3818,7 @@ func (x *fastReflection_InitChainRequest) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_InitChainRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_RequestInitChain) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -3832,7 +3830,7 @@ func (x *fastReflection_InitChainRequest) SetUnknown(fields protoreflect.RawFiel // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_InitChainRequest) IsValid() bool { +func (x *fastReflection_RequestInitChain) IsValid() bool { return x != nil } @@ -3842,9 +3840,9 @@ func (x *fastReflection_InitChainRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_InitChainRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_RequestInitChain) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*InitChainRequest) + x := input.Message.Interface().(*RequestInitChain) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3891,7 +3889,7 @@ func (x *fastReflection_InitChainRequest) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*InitChainRequest) + x := input.Message.Interface().(*RequestInitChain) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3984,7 +3982,7 @@ func (x *fastReflection_InitChainRequest) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*InitChainRequest) + x := input.Message.Interface().(*RequestInitChain) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4016,10 +4014,10 @@ func (x *fastReflection_InitChainRequest) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: InitChainRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestInitChain: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: InitChainRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestInitChain: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4120,7 +4118,7 @@ func (x *fastReflection_InitChainRequest) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.ConsensusParams == nil { - x.ConsensusParams = &v2.ConsensusParams{} + x.ConsensusParams = &types.ConsensusParams{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ConsensusParams); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -4249,32 +4247,32 @@ func (x *fastReflection_InitChainRequest) ProtoMethods() *protoiface.Methods { } var ( - md_QueryRequest protoreflect.MessageDescriptor - fd_QueryRequest_data protoreflect.FieldDescriptor - fd_QueryRequest_path protoreflect.FieldDescriptor - fd_QueryRequest_height protoreflect.FieldDescriptor - fd_QueryRequest_prove protoreflect.FieldDescriptor + md_RequestQuery protoreflect.MessageDescriptor + fd_RequestQuery_data protoreflect.FieldDescriptor + fd_RequestQuery_path protoreflect.FieldDescriptor + fd_RequestQuery_height protoreflect.FieldDescriptor + fd_RequestQuery_prove protoreflect.FieldDescriptor ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_QueryRequest = File_cometbft_abci_v2_types_proto.Messages().ByName("QueryRequest") - fd_QueryRequest_data = md_QueryRequest.Fields().ByName("data") - fd_QueryRequest_path = md_QueryRequest.Fields().ByName("path") - fd_QueryRequest_height = md_QueryRequest.Fields().ByName("height") - fd_QueryRequest_prove = md_QueryRequest.Fields().ByName("prove") + file_tendermint_abci_types_proto_init() + md_RequestQuery = File_tendermint_abci_types_proto.Messages().ByName("RequestQuery") + fd_RequestQuery_data = md_RequestQuery.Fields().ByName("data") + fd_RequestQuery_path = md_RequestQuery.Fields().ByName("path") + fd_RequestQuery_height = md_RequestQuery.Fields().ByName("height") + fd_RequestQuery_prove = md_RequestQuery.Fields().ByName("prove") } -var _ protoreflect.Message = (*fastReflection_QueryRequest)(nil) +var _ protoreflect.Message = (*fastReflection_RequestQuery)(nil) -type fastReflection_QueryRequest QueryRequest +type fastReflection_RequestQuery RequestQuery -func (x *QueryRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryRequest)(x) +func (x *RequestQuery) ProtoReflect() protoreflect.Message { + return (*fastReflection_RequestQuery)(x) } -func (x *QueryRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[5] +func (x *RequestQuery) slowProtoReflect() protoreflect.Message { + mi := &file_tendermint_abci_types_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4285,43 +4283,43 @@ func (x *QueryRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryRequest_messageType fastReflection_QueryRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryRequest_messageType{} +var _fastReflection_RequestQuery_messageType fastReflection_RequestQuery_messageType +var _ protoreflect.MessageType = fastReflection_RequestQuery_messageType{} -type fastReflection_QueryRequest_messageType struct{} +type fastReflection_RequestQuery_messageType struct{} -func (x fastReflection_QueryRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryRequest)(nil) +func (x fastReflection_RequestQuery_messageType) Zero() protoreflect.Message { + return (*fastReflection_RequestQuery)(nil) } -func (x fastReflection_QueryRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryRequest) +func (x fastReflection_RequestQuery_messageType) New() protoreflect.Message { + return new(fastReflection_RequestQuery) } -func (x fastReflection_QueryRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryRequest +func (x fastReflection_RequestQuery_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_RequestQuery } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryRequest +func (x *fastReflection_RequestQuery) Descriptor() protoreflect.MessageDescriptor { + return md_RequestQuery } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryRequest_messageType +func (x *fastReflection_RequestQuery) Type() protoreflect.MessageType { + return _fastReflection_RequestQuery_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryRequest) New() protoreflect.Message { - return new(fastReflection_QueryRequest) +func (x *fastReflection_RequestQuery) New() protoreflect.Message { + return new(fastReflection_RequestQuery) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryRequest) Interface() protoreflect.ProtoMessage { - return (*QueryRequest)(x) +func (x *fastReflection_RequestQuery) Interface() protoreflect.ProtoMessage { + return (*RequestQuery)(x) } // Range iterates over every populated field in an undefined order, @@ -4329,28 +4327,28 @@ func (x *fastReflection_QueryRequest) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_RequestQuery) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if len(x.Data) != 0 { value := protoreflect.ValueOfBytes(x.Data) - if !f(fd_QueryRequest_data, value) { + if !f(fd_RequestQuery_data, value) { return } } if x.Path != "" { value := protoreflect.ValueOfString(x.Path) - if !f(fd_QueryRequest_path, value) { + if !f(fd_RequestQuery_path, value) { return } } if x.Height != int64(0) { value := protoreflect.ValueOfInt64(x.Height) - if !f(fd_QueryRequest_height, value) { + if !f(fd_RequestQuery_height, value) { return } } if x.Prove != false { value := protoreflect.ValueOfBool(x.Prove) - if !f(fd_QueryRequest_prove, value) { + if !f(fd_RequestQuery_prove, value) { return } } @@ -4367,21 +4365,21 @@ func (x *fastReflection_QueryRequest) Range(f func(protoreflect.FieldDescriptor, // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_RequestQuery) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.QueryRequest.data": + case "tendermint.abci.RequestQuery.data": return len(x.Data) != 0 - case "cometbft.abci.v2.QueryRequest.path": + case "tendermint.abci.RequestQuery.path": return x.Path != "" - case "cometbft.abci.v2.QueryRequest.height": + case "tendermint.abci.RequestQuery.height": return x.Height != int64(0) - case "cometbft.abci.v2.QueryRequest.prove": + case "tendermint.abci.RequestQuery.prove": return x.Prove != false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.QueryRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestQuery")) } - panic(fmt.Errorf("message cometbft.abci.v2.QueryRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestQuery does not contain field %s", fd.FullName())) } } @@ -4391,21 +4389,21 @@ func (x *fastReflection_QueryRequest) Has(fd protoreflect.FieldDescriptor) bool // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_RequestQuery) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.QueryRequest.data": + case "tendermint.abci.RequestQuery.data": x.Data = nil - case "cometbft.abci.v2.QueryRequest.path": + case "tendermint.abci.RequestQuery.path": x.Path = "" - case "cometbft.abci.v2.QueryRequest.height": + case "tendermint.abci.RequestQuery.height": x.Height = int64(0) - case "cometbft.abci.v2.QueryRequest.prove": + case "tendermint.abci.RequestQuery.prove": x.Prove = false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.QueryRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestQuery")) } - panic(fmt.Errorf("message cometbft.abci.v2.QueryRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestQuery does not contain field %s", fd.FullName())) } } @@ -4415,25 +4413,25 @@ func (x *fastReflection_QueryRequest) Clear(fd protoreflect.FieldDescriptor) { // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestQuery) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.QueryRequest.data": + case "tendermint.abci.RequestQuery.data": value := x.Data return protoreflect.ValueOfBytes(value) - case "cometbft.abci.v2.QueryRequest.path": + case "tendermint.abci.RequestQuery.path": value := x.Path return protoreflect.ValueOfString(value) - case "cometbft.abci.v2.QueryRequest.height": + case "tendermint.abci.RequestQuery.height": value := x.Height return protoreflect.ValueOfInt64(value) - case "cometbft.abci.v2.QueryRequest.prove": + case "tendermint.abci.RequestQuery.prove": value := x.Prove return protoreflect.ValueOfBool(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.QueryRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestQuery")) } - panic(fmt.Errorf("message cometbft.abci.v2.QueryRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestQuery does not contain field %s", descriptor.FullName())) } } @@ -4447,21 +4445,21 @@ func (x *fastReflection_QueryRequest) Get(descriptor protoreflect.FieldDescripto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_RequestQuery) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.QueryRequest.data": + case "tendermint.abci.RequestQuery.data": x.Data = value.Bytes() - case "cometbft.abci.v2.QueryRequest.path": + case "tendermint.abci.RequestQuery.path": x.Path = value.Interface().(string) - case "cometbft.abci.v2.QueryRequest.height": + case "tendermint.abci.RequestQuery.height": x.Height = value.Int() - case "cometbft.abci.v2.QueryRequest.prove": + case "tendermint.abci.RequestQuery.prove": x.Prove = value.Bool() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.QueryRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestQuery")) } - panic(fmt.Errorf("message cometbft.abci.v2.QueryRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestQuery does not contain field %s", fd.FullName())) } } @@ -4475,52 +4473,52 @@ func (x *fastReflection_QueryRequest) Set(fd protoreflect.FieldDescriptor, value // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestQuery) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.QueryRequest.data": - panic(fmt.Errorf("field data of message cometbft.abci.v2.QueryRequest is not mutable")) - case "cometbft.abci.v2.QueryRequest.path": - panic(fmt.Errorf("field path of message cometbft.abci.v2.QueryRequest is not mutable")) - case "cometbft.abci.v2.QueryRequest.height": - panic(fmt.Errorf("field height of message cometbft.abci.v2.QueryRequest is not mutable")) - case "cometbft.abci.v2.QueryRequest.prove": - panic(fmt.Errorf("field prove of message cometbft.abci.v2.QueryRequest is not mutable")) + case "tendermint.abci.RequestQuery.data": + panic(fmt.Errorf("field data of message tendermint.abci.RequestQuery is not mutable")) + case "tendermint.abci.RequestQuery.path": + panic(fmt.Errorf("field path of message tendermint.abci.RequestQuery is not mutable")) + case "tendermint.abci.RequestQuery.height": + panic(fmt.Errorf("field height of message tendermint.abci.RequestQuery is not mutable")) + case "tendermint.abci.RequestQuery.prove": + panic(fmt.Errorf("field prove of message tendermint.abci.RequestQuery is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.QueryRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestQuery")) } - panic(fmt.Errorf("message cometbft.abci.v2.QueryRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestQuery does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestQuery) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.QueryRequest.data": + case "tendermint.abci.RequestQuery.data": return protoreflect.ValueOfBytes(nil) - case "cometbft.abci.v2.QueryRequest.path": + case "tendermint.abci.RequestQuery.path": return protoreflect.ValueOfString("") - case "cometbft.abci.v2.QueryRequest.height": + case "tendermint.abci.RequestQuery.height": return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.abci.v2.QueryRequest.prove": + case "tendermint.abci.RequestQuery.prove": return protoreflect.ValueOfBool(false) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.QueryRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestQuery")) } - panic(fmt.Errorf("message cometbft.abci.v2.QueryRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestQuery does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_RequestQuery) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.QueryRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.RequestQuery", d.FullName())) } panic("unreachable") } @@ -4528,7 +4526,7 @@ func (x *fastReflection_QueryRequest) WhichOneof(d protoreflect.OneofDescriptor) // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_RequestQuery) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4539,7 +4537,7 @@ func (x *fastReflection_QueryRequest) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_RequestQuery) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4551,7 +4549,7 @@ func (x *fastReflection_QueryRequest) SetUnknown(fields protoreflect.RawFields) // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryRequest) IsValid() bool { +func (x *fastReflection_RequestQuery) IsValid() bool { return x != nil } @@ -4561,9 +4559,9 @@ func (x *fastReflection_QueryRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_RequestQuery) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryRequest) + x := input.Message.Interface().(*RequestQuery) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4599,7 +4597,7 @@ func (x *fastReflection_QueryRequest) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryRequest) + x := input.Message.Interface().(*RequestQuery) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4658,7 +4656,7 @@ func (x *fastReflection_QueryRequest) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryRequest) + x := input.Message.Interface().(*RequestQuery) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4690,10 +4688,10 @@ func (x *fastReflection_QueryRequest) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestQuery: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestQuery: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4837,28 +4835,28 @@ func (x *fastReflection_QueryRequest) ProtoMethods() *protoiface.Methods { } var ( - md_CheckTxRequest protoreflect.MessageDescriptor - fd_CheckTxRequest_tx protoreflect.FieldDescriptor - fd_CheckTxRequest_type protoreflect.FieldDescriptor + md_RequestCheckTx protoreflect.MessageDescriptor + fd_RequestCheckTx_tx protoreflect.FieldDescriptor + fd_RequestCheckTx_type protoreflect.FieldDescriptor ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_CheckTxRequest = File_cometbft_abci_v2_types_proto.Messages().ByName("CheckTxRequest") - fd_CheckTxRequest_tx = md_CheckTxRequest.Fields().ByName("tx") - fd_CheckTxRequest_type = md_CheckTxRequest.Fields().ByName("type") + file_tendermint_abci_types_proto_init() + md_RequestCheckTx = File_tendermint_abci_types_proto.Messages().ByName("RequestCheckTx") + fd_RequestCheckTx_tx = md_RequestCheckTx.Fields().ByName("tx") + fd_RequestCheckTx_type = md_RequestCheckTx.Fields().ByName("type") } -var _ protoreflect.Message = (*fastReflection_CheckTxRequest)(nil) +var _ protoreflect.Message = (*fastReflection_RequestCheckTx)(nil) -type fastReflection_CheckTxRequest CheckTxRequest +type fastReflection_RequestCheckTx RequestCheckTx -func (x *CheckTxRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_CheckTxRequest)(x) +func (x *RequestCheckTx) ProtoReflect() protoreflect.Message { + return (*fastReflection_RequestCheckTx)(x) } -func (x *CheckTxRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[6] +func (x *RequestCheckTx) slowProtoReflect() protoreflect.Message { + mi := &file_tendermint_abci_types_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4869,43 +4867,43 @@ func (x *CheckTxRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_CheckTxRequest_messageType fastReflection_CheckTxRequest_messageType -var _ protoreflect.MessageType = fastReflection_CheckTxRequest_messageType{} +var _fastReflection_RequestCheckTx_messageType fastReflection_RequestCheckTx_messageType +var _ protoreflect.MessageType = fastReflection_RequestCheckTx_messageType{} -type fastReflection_CheckTxRequest_messageType struct{} +type fastReflection_RequestCheckTx_messageType struct{} -func (x fastReflection_CheckTxRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_CheckTxRequest)(nil) +func (x fastReflection_RequestCheckTx_messageType) Zero() protoreflect.Message { + return (*fastReflection_RequestCheckTx)(nil) } -func (x fastReflection_CheckTxRequest_messageType) New() protoreflect.Message { - return new(fastReflection_CheckTxRequest) +func (x fastReflection_RequestCheckTx_messageType) New() protoreflect.Message { + return new(fastReflection_RequestCheckTx) } -func (x fastReflection_CheckTxRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_CheckTxRequest +func (x fastReflection_RequestCheckTx_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_RequestCheckTx } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_CheckTxRequest) Descriptor() protoreflect.MessageDescriptor { - return md_CheckTxRequest +func (x *fastReflection_RequestCheckTx) Descriptor() protoreflect.MessageDescriptor { + return md_RequestCheckTx } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_CheckTxRequest) Type() protoreflect.MessageType { - return _fastReflection_CheckTxRequest_messageType +func (x *fastReflection_RequestCheckTx) Type() protoreflect.MessageType { + return _fastReflection_RequestCheckTx_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_CheckTxRequest) New() protoreflect.Message { - return new(fastReflection_CheckTxRequest) +func (x *fastReflection_RequestCheckTx) New() protoreflect.Message { + return new(fastReflection_RequestCheckTx) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_CheckTxRequest) Interface() protoreflect.ProtoMessage { - return (*CheckTxRequest)(x) +func (x *fastReflection_RequestCheckTx) Interface() protoreflect.ProtoMessage { + return (*RequestCheckTx)(x) } // Range iterates over every populated field in an undefined order, @@ -4913,16 +4911,16 @@ func (x *fastReflection_CheckTxRequest) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_CheckTxRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_RequestCheckTx) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if len(x.Tx) != 0 { value := protoreflect.ValueOfBytes(x.Tx) - if !f(fd_CheckTxRequest_tx, value) { + if !f(fd_RequestCheckTx_tx, value) { return } } if x.Type_ != 0 { value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Type_)) - if !f(fd_CheckTxRequest_type, value) { + if !f(fd_RequestCheckTx_type, value) { return } } @@ -4939,17 +4937,17 @@ func (x *fastReflection_CheckTxRequest) Range(f func(protoreflect.FieldDescripto // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_CheckTxRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_RequestCheckTx) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.CheckTxRequest.tx": + case "tendermint.abci.RequestCheckTx.tx": return len(x.Tx) != 0 - case "cometbft.abci.v2.CheckTxRequest.type": + case "tendermint.abci.RequestCheckTx.type": return x.Type_ != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.CheckTxRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestCheckTx")) } - panic(fmt.Errorf("message cometbft.abci.v2.CheckTxRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestCheckTx does not contain field %s", fd.FullName())) } } @@ -4959,17 +4957,17 @@ func (x *fastReflection_CheckTxRequest) Has(fd protoreflect.FieldDescriptor) boo // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CheckTxRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_RequestCheckTx) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.CheckTxRequest.tx": + case "tendermint.abci.RequestCheckTx.tx": x.Tx = nil - case "cometbft.abci.v2.CheckTxRequest.type": + case "tendermint.abci.RequestCheckTx.type": x.Type_ = 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.CheckTxRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestCheckTx")) } - panic(fmt.Errorf("message cometbft.abci.v2.CheckTxRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestCheckTx does not contain field %s", fd.FullName())) } } @@ -4979,19 +4977,19 @@ func (x *fastReflection_CheckTxRequest) Clear(fd protoreflect.FieldDescriptor) { // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_CheckTxRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestCheckTx) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.CheckTxRequest.tx": + case "tendermint.abci.RequestCheckTx.tx": value := x.Tx return protoreflect.ValueOfBytes(value) - case "cometbft.abci.v2.CheckTxRequest.type": + case "tendermint.abci.RequestCheckTx.type": value := x.Type_ return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.CheckTxRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestCheckTx")) } - panic(fmt.Errorf("message cometbft.abci.v2.CheckTxRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestCheckTx does not contain field %s", descriptor.FullName())) } } @@ -5005,17 +5003,17 @@ func (x *fastReflection_CheckTxRequest) Get(descriptor protoreflect.FieldDescrip // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CheckTxRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_RequestCheckTx) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.CheckTxRequest.tx": + case "tendermint.abci.RequestCheckTx.tx": x.Tx = value.Bytes() - case "cometbft.abci.v2.CheckTxRequest.type": + case "tendermint.abci.RequestCheckTx.type": x.Type_ = (CheckTxType)(value.Enum()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.CheckTxRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestCheckTx")) } - panic(fmt.Errorf("message cometbft.abci.v2.CheckTxRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestCheckTx does not contain field %s", fd.FullName())) } } @@ -5029,44 +5027,44 @@ func (x *fastReflection_CheckTxRequest) Set(fd protoreflect.FieldDescriptor, val // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CheckTxRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestCheckTx) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.CheckTxRequest.tx": - panic(fmt.Errorf("field tx of message cometbft.abci.v2.CheckTxRequest is not mutable")) - case "cometbft.abci.v2.CheckTxRequest.type": - panic(fmt.Errorf("field type of message cometbft.abci.v2.CheckTxRequest is not mutable")) + case "tendermint.abci.RequestCheckTx.tx": + panic(fmt.Errorf("field tx of message tendermint.abci.RequestCheckTx is not mutable")) + case "tendermint.abci.RequestCheckTx.type": + panic(fmt.Errorf("field type of message tendermint.abci.RequestCheckTx is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.CheckTxRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestCheckTx")) } - panic(fmt.Errorf("message cometbft.abci.v2.CheckTxRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestCheckTx does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_CheckTxRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestCheckTx) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.CheckTxRequest.tx": + case "tendermint.abci.RequestCheckTx.tx": return protoreflect.ValueOfBytes(nil) - case "cometbft.abci.v2.CheckTxRequest.type": + case "tendermint.abci.RequestCheckTx.type": return protoreflect.ValueOfEnum(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.CheckTxRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestCheckTx")) } - panic(fmt.Errorf("message cometbft.abci.v2.CheckTxRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestCheckTx does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_CheckTxRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_RequestCheckTx) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.CheckTxRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.RequestCheckTx", d.FullName())) } panic("unreachable") } @@ -5074,7 +5072,7 @@ func (x *fastReflection_CheckTxRequest) WhichOneof(d protoreflect.OneofDescripto // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_CheckTxRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_RequestCheckTx) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -5085,7 +5083,7 @@ func (x *fastReflection_CheckTxRequest) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CheckTxRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_RequestCheckTx) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -5097,7 +5095,7 @@ func (x *fastReflection_CheckTxRequest) SetUnknown(fields protoreflect.RawFields // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_CheckTxRequest) IsValid() bool { +func (x *fastReflection_RequestCheckTx) IsValid() bool { return x != nil } @@ -5107,9 +5105,9 @@ func (x *fastReflection_CheckTxRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_CheckTxRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_RequestCheckTx) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*CheckTxRequest) + x := input.Message.Interface().(*RequestCheckTx) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5138,7 +5136,7 @@ func (x *fastReflection_CheckTxRequest) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*CheckTxRequest) + x := input.Message.Interface().(*RequestCheckTx) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5160,7 +5158,7 @@ func (x *fastReflection_CheckTxRequest) ProtoMethods() *protoiface.Methods { if x.Type_ != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.Type_)) i-- - dAtA[i] = 0x18 + dAtA[i] = 0x10 } if len(x.Tx) > 0 { i -= len(x.Tx) @@ -5180,7 +5178,7 @@ func (x *fastReflection_CheckTxRequest) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*CheckTxRequest) + x := input.Message.Interface().(*RequestCheckTx) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5212,10 +5210,10 @@ func (x *fastReflection_CheckTxRequest) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CheckTxRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestCheckTx: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CheckTxRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestCheckTx: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5252,7 +5250,7 @@ func (x *fastReflection_CheckTxRequest) ProtoMethods() *protoiface.Methods { x.Tx = []byte{} } iNdEx = postIndex - case 3: + case 2: if wireType != 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Type_", wireType) } @@ -5307,24 +5305,24 @@ func (x *fastReflection_CheckTxRequest) ProtoMethods() *protoiface.Methods { } var ( - md_CommitRequest protoreflect.MessageDescriptor + md_RequestCommit protoreflect.MessageDescriptor ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_CommitRequest = File_cometbft_abci_v2_types_proto.Messages().ByName("CommitRequest") + file_tendermint_abci_types_proto_init() + md_RequestCommit = File_tendermint_abci_types_proto.Messages().ByName("RequestCommit") } -var _ protoreflect.Message = (*fastReflection_CommitRequest)(nil) +var _ protoreflect.Message = (*fastReflection_RequestCommit)(nil) -type fastReflection_CommitRequest CommitRequest +type fastReflection_RequestCommit RequestCommit -func (x *CommitRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_CommitRequest)(x) +func (x *RequestCommit) ProtoReflect() protoreflect.Message { + return (*fastReflection_RequestCommit)(x) } -func (x *CommitRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[7] +func (x *RequestCommit) slowProtoReflect() protoreflect.Message { + mi := &file_tendermint_abci_types_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5335,43 +5333,43 @@ func (x *CommitRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_CommitRequest_messageType fastReflection_CommitRequest_messageType -var _ protoreflect.MessageType = fastReflection_CommitRequest_messageType{} +var _fastReflection_RequestCommit_messageType fastReflection_RequestCommit_messageType +var _ protoreflect.MessageType = fastReflection_RequestCommit_messageType{} -type fastReflection_CommitRequest_messageType struct{} +type fastReflection_RequestCommit_messageType struct{} -func (x fastReflection_CommitRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_CommitRequest)(nil) +func (x fastReflection_RequestCommit_messageType) Zero() protoreflect.Message { + return (*fastReflection_RequestCommit)(nil) } -func (x fastReflection_CommitRequest_messageType) New() protoreflect.Message { - return new(fastReflection_CommitRequest) +func (x fastReflection_RequestCommit_messageType) New() protoreflect.Message { + return new(fastReflection_RequestCommit) } -func (x fastReflection_CommitRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_CommitRequest +func (x fastReflection_RequestCommit_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_RequestCommit } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_CommitRequest) Descriptor() protoreflect.MessageDescriptor { - return md_CommitRequest +func (x *fastReflection_RequestCommit) Descriptor() protoreflect.MessageDescriptor { + return md_RequestCommit } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_CommitRequest) Type() protoreflect.MessageType { - return _fastReflection_CommitRequest_messageType +func (x *fastReflection_RequestCommit) Type() protoreflect.MessageType { + return _fastReflection_RequestCommit_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_CommitRequest) New() protoreflect.Message { - return new(fastReflection_CommitRequest) +func (x *fastReflection_RequestCommit) New() protoreflect.Message { + return new(fastReflection_RequestCommit) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_CommitRequest) Interface() protoreflect.ProtoMessage { - return (*CommitRequest)(x) +func (x *fastReflection_RequestCommit) Interface() protoreflect.ProtoMessage { + return (*RequestCommit)(x) } // Range iterates over every populated field in an undefined order, @@ -5379,7 +5377,7 @@ func (x *fastReflection_CommitRequest) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_CommitRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_RequestCommit) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -5393,13 +5391,13 @@ func (x *fastReflection_CommitRequest) Range(f func(protoreflect.FieldDescriptor // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_CommitRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_RequestCommit) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.CommitRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestCommit")) } - panic(fmt.Errorf("message cometbft.abci.v2.CommitRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestCommit does not contain field %s", fd.FullName())) } } @@ -5409,13 +5407,13 @@ func (x *fastReflection_CommitRequest) Has(fd protoreflect.FieldDescriptor) bool // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CommitRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_RequestCommit) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.CommitRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestCommit")) } - panic(fmt.Errorf("message cometbft.abci.v2.CommitRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestCommit does not contain field %s", fd.FullName())) } } @@ -5425,13 +5423,13 @@ func (x *fastReflection_CommitRequest) Clear(fd protoreflect.FieldDescriptor) { // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_CommitRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestCommit) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.CommitRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestCommit")) } - panic(fmt.Errorf("message cometbft.abci.v2.CommitRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestCommit does not contain field %s", descriptor.FullName())) } } @@ -5445,13 +5443,13 @@ func (x *fastReflection_CommitRequest) Get(descriptor protoreflect.FieldDescript // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CommitRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_RequestCommit) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.CommitRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestCommit")) } - panic(fmt.Errorf("message cometbft.abci.v2.CommitRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestCommit does not contain field %s", fd.FullName())) } } @@ -5465,36 +5463,36 @@ func (x *fastReflection_CommitRequest) Set(fd protoreflect.FieldDescriptor, valu // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CommitRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestCommit) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.CommitRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestCommit")) } - panic(fmt.Errorf("message cometbft.abci.v2.CommitRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestCommit does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_CommitRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestCommit) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.CommitRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestCommit")) } - panic(fmt.Errorf("message cometbft.abci.v2.CommitRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestCommit does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_CommitRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_RequestCommit) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.CommitRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.RequestCommit", d.FullName())) } panic("unreachable") } @@ -5502,7 +5500,7 @@ func (x *fastReflection_CommitRequest) WhichOneof(d protoreflect.OneofDescriptor // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_CommitRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_RequestCommit) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -5513,7 +5511,7 @@ func (x *fastReflection_CommitRequest) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CommitRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_RequestCommit) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -5525,7 +5523,7 @@ func (x *fastReflection_CommitRequest) SetUnknown(fields protoreflect.RawFields) // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_CommitRequest) IsValid() bool { +func (x *fastReflection_RequestCommit) IsValid() bool { return x != nil } @@ -5535,9 +5533,9 @@ func (x *fastReflection_CommitRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_CommitRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_RequestCommit) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*CommitRequest) + x := input.Message.Interface().(*RequestCommit) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5559,7 +5557,7 @@ func (x *fastReflection_CommitRequest) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*CommitRequest) + x := input.Message.Interface().(*RequestCommit) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5589,7 +5587,7 @@ func (x *fastReflection_CommitRequest) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*CommitRequest) + x := input.Message.Interface().(*RequestCommit) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5621,10 +5619,10 @@ func (x *fastReflection_CommitRequest) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CommitRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestCommit: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CommitRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestCommit: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -5663,24 +5661,24 @@ func (x *fastReflection_CommitRequest) ProtoMethods() *protoiface.Methods { } var ( - md_ListSnapshotsRequest protoreflect.MessageDescriptor + md_RequestListSnapshots protoreflect.MessageDescriptor ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_ListSnapshotsRequest = File_cometbft_abci_v2_types_proto.Messages().ByName("ListSnapshotsRequest") + file_tendermint_abci_types_proto_init() + md_RequestListSnapshots = File_tendermint_abci_types_proto.Messages().ByName("RequestListSnapshots") } -var _ protoreflect.Message = (*fastReflection_ListSnapshotsRequest)(nil) +var _ protoreflect.Message = (*fastReflection_RequestListSnapshots)(nil) -type fastReflection_ListSnapshotsRequest ListSnapshotsRequest +type fastReflection_RequestListSnapshots RequestListSnapshots -func (x *ListSnapshotsRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_ListSnapshotsRequest)(x) +func (x *RequestListSnapshots) ProtoReflect() protoreflect.Message { + return (*fastReflection_RequestListSnapshots)(x) } -func (x *ListSnapshotsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[8] +func (x *RequestListSnapshots) slowProtoReflect() protoreflect.Message { + mi := &file_tendermint_abci_types_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5691,43 +5689,43 @@ func (x *ListSnapshotsRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_ListSnapshotsRequest_messageType fastReflection_ListSnapshotsRequest_messageType -var _ protoreflect.MessageType = fastReflection_ListSnapshotsRequest_messageType{} +var _fastReflection_RequestListSnapshots_messageType fastReflection_RequestListSnapshots_messageType +var _ protoreflect.MessageType = fastReflection_RequestListSnapshots_messageType{} -type fastReflection_ListSnapshotsRequest_messageType struct{} +type fastReflection_RequestListSnapshots_messageType struct{} -func (x fastReflection_ListSnapshotsRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_ListSnapshotsRequest)(nil) +func (x fastReflection_RequestListSnapshots_messageType) Zero() protoreflect.Message { + return (*fastReflection_RequestListSnapshots)(nil) } -func (x fastReflection_ListSnapshotsRequest_messageType) New() protoreflect.Message { - return new(fastReflection_ListSnapshotsRequest) +func (x fastReflection_RequestListSnapshots_messageType) New() protoreflect.Message { + return new(fastReflection_RequestListSnapshots) } -func (x fastReflection_ListSnapshotsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_ListSnapshotsRequest +func (x fastReflection_RequestListSnapshots_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_RequestListSnapshots } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_ListSnapshotsRequest) Descriptor() protoreflect.MessageDescriptor { - return md_ListSnapshotsRequest +func (x *fastReflection_RequestListSnapshots) Descriptor() protoreflect.MessageDescriptor { + return md_RequestListSnapshots } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_ListSnapshotsRequest) Type() protoreflect.MessageType { - return _fastReflection_ListSnapshotsRequest_messageType +func (x *fastReflection_RequestListSnapshots) Type() protoreflect.MessageType { + return _fastReflection_RequestListSnapshots_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_ListSnapshotsRequest) New() protoreflect.Message { - return new(fastReflection_ListSnapshotsRequest) +func (x *fastReflection_RequestListSnapshots) New() protoreflect.Message { + return new(fastReflection_RequestListSnapshots) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_ListSnapshotsRequest) Interface() protoreflect.ProtoMessage { - return (*ListSnapshotsRequest)(x) +func (x *fastReflection_RequestListSnapshots) Interface() protoreflect.ProtoMessage { + return (*RequestListSnapshots)(x) } // Range iterates over every populated field in an undefined order, @@ -5735,7 +5733,7 @@ func (x *fastReflection_ListSnapshotsRequest) Interface() protoreflect.ProtoMess // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_ListSnapshotsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_RequestListSnapshots) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -5749,13 +5747,13 @@ func (x *fastReflection_ListSnapshotsRequest) Range(f func(protoreflect.FieldDes // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_ListSnapshotsRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_RequestListSnapshots) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ListSnapshotsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestListSnapshots")) } - panic(fmt.Errorf("message cometbft.abci.v2.ListSnapshotsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestListSnapshots does not contain field %s", fd.FullName())) } } @@ -5765,13 +5763,13 @@ func (x *fastReflection_ListSnapshotsRequest) Has(fd protoreflect.FieldDescripto // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ListSnapshotsRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_RequestListSnapshots) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ListSnapshotsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestListSnapshots")) } - panic(fmt.Errorf("message cometbft.abci.v2.ListSnapshotsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestListSnapshots does not contain field %s", fd.FullName())) } } @@ -5781,13 +5779,13 @@ func (x *fastReflection_ListSnapshotsRequest) Clear(fd protoreflect.FieldDescrip // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_ListSnapshotsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestListSnapshots) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ListSnapshotsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestListSnapshots")) } - panic(fmt.Errorf("message cometbft.abci.v2.ListSnapshotsRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestListSnapshots does not contain field %s", descriptor.FullName())) } } @@ -5801,13 +5799,13 @@ func (x *fastReflection_ListSnapshotsRequest) Get(descriptor protoreflect.FieldD // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ListSnapshotsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_RequestListSnapshots) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ListSnapshotsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestListSnapshots")) } - panic(fmt.Errorf("message cometbft.abci.v2.ListSnapshotsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestListSnapshots does not contain field %s", fd.FullName())) } } @@ -5821,36 +5819,36 @@ func (x *fastReflection_ListSnapshotsRequest) Set(fd protoreflect.FieldDescripto // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ListSnapshotsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestListSnapshots) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ListSnapshotsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestListSnapshots")) } - panic(fmt.Errorf("message cometbft.abci.v2.ListSnapshotsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestListSnapshots does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_ListSnapshotsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestListSnapshots) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ListSnapshotsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestListSnapshots")) } - panic(fmt.Errorf("message cometbft.abci.v2.ListSnapshotsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestListSnapshots does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_ListSnapshotsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_RequestListSnapshots) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.ListSnapshotsRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.RequestListSnapshots", d.FullName())) } panic("unreachable") } @@ -5858,7 +5856,7 @@ func (x *fastReflection_ListSnapshotsRequest) WhichOneof(d protoreflect.OneofDes // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_ListSnapshotsRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_RequestListSnapshots) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -5869,7 +5867,7 @@ func (x *fastReflection_ListSnapshotsRequest) GetUnknown() protoreflect.RawField // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ListSnapshotsRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_RequestListSnapshots) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -5881,7 +5879,7 @@ func (x *fastReflection_ListSnapshotsRequest) SetUnknown(fields protoreflect.Raw // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_ListSnapshotsRequest) IsValid() bool { +func (x *fastReflection_RequestListSnapshots) IsValid() bool { return x != nil } @@ -5891,9 +5889,9 @@ func (x *fastReflection_ListSnapshotsRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_ListSnapshotsRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_RequestListSnapshots) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*ListSnapshotsRequest) + x := input.Message.Interface().(*RequestListSnapshots) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5915,7 +5913,7 @@ func (x *fastReflection_ListSnapshotsRequest) ProtoMethods() *protoiface.Methods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*ListSnapshotsRequest) + x := input.Message.Interface().(*RequestListSnapshots) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5945,7 +5943,7 @@ func (x *fastReflection_ListSnapshotsRequest) ProtoMethods() *protoiface.Methods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*ListSnapshotsRequest) + x := input.Message.Interface().(*RequestListSnapshots) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5977,10 +5975,10 @@ func (x *fastReflection_ListSnapshotsRequest) ProtoMethods() *protoiface.Methods fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ListSnapshotsRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestListSnapshots: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ListSnapshotsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestListSnapshots: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -6019,28 +6017,28 @@ func (x *fastReflection_ListSnapshotsRequest) ProtoMethods() *protoiface.Methods } var ( - md_OfferSnapshotRequest protoreflect.MessageDescriptor - fd_OfferSnapshotRequest_snapshot protoreflect.FieldDescriptor - fd_OfferSnapshotRequest_app_hash protoreflect.FieldDescriptor + md_RequestOfferSnapshot protoreflect.MessageDescriptor + fd_RequestOfferSnapshot_snapshot protoreflect.FieldDescriptor + fd_RequestOfferSnapshot_app_hash protoreflect.FieldDescriptor ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_OfferSnapshotRequest = File_cometbft_abci_v2_types_proto.Messages().ByName("OfferSnapshotRequest") - fd_OfferSnapshotRequest_snapshot = md_OfferSnapshotRequest.Fields().ByName("snapshot") - fd_OfferSnapshotRequest_app_hash = md_OfferSnapshotRequest.Fields().ByName("app_hash") + file_tendermint_abci_types_proto_init() + md_RequestOfferSnapshot = File_tendermint_abci_types_proto.Messages().ByName("RequestOfferSnapshot") + fd_RequestOfferSnapshot_snapshot = md_RequestOfferSnapshot.Fields().ByName("snapshot") + fd_RequestOfferSnapshot_app_hash = md_RequestOfferSnapshot.Fields().ByName("app_hash") } -var _ protoreflect.Message = (*fastReflection_OfferSnapshotRequest)(nil) +var _ protoreflect.Message = (*fastReflection_RequestOfferSnapshot)(nil) -type fastReflection_OfferSnapshotRequest OfferSnapshotRequest +type fastReflection_RequestOfferSnapshot RequestOfferSnapshot -func (x *OfferSnapshotRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_OfferSnapshotRequest)(x) +func (x *RequestOfferSnapshot) ProtoReflect() protoreflect.Message { + return (*fastReflection_RequestOfferSnapshot)(x) } -func (x *OfferSnapshotRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[9] +func (x *RequestOfferSnapshot) slowProtoReflect() protoreflect.Message { + mi := &file_tendermint_abci_types_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6051,43 +6049,43 @@ func (x *OfferSnapshotRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_OfferSnapshotRequest_messageType fastReflection_OfferSnapshotRequest_messageType -var _ protoreflect.MessageType = fastReflection_OfferSnapshotRequest_messageType{} +var _fastReflection_RequestOfferSnapshot_messageType fastReflection_RequestOfferSnapshot_messageType +var _ protoreflect.MessageType = fastReflection_RequestOfferSnapshot_messageType{} -type fastReflection_OfferSnapshotRequest_messageType struct{} +type fastReflection_RequestOfferSnapshot_messageType struct{} -func (x fastReflection_OfferSnapshotRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_OfferSnapshotRequest)(nil) +func (x fastReflection_RequestOfferSnapshot_messageType) Zero() protoreflect.Message { + return (*fastReflection_RequestOfferSnapshot)(nil) } -func (x fastReflection_OfferSnapshotRequest_messageType) New() protoreflect.Message { - return new(fastReflection_OfferSnapshotRequest) +func (x fastReflection_RequestOfferSnapshot_messageType) New() protoreflect.Message { + return new(fastReflection_RequestOfferSnapshot) } -func (x fastReflection_OfferSnapshotRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_OfferSnapshotRequest +func (x fastReflection_RequestOfferSnapshot_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_RequestOfferSnapshot } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_OfferSnapshotRequest) Descriptor() protoreflect.MessageDescriptor { - return md_OfferSnapshotRequest +func (x *fastReflection_RequestOfferSnapshot) Descriptor() protoreflect.MessageDescriptor { + return md_RequestOfferSnapshot } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_OfferSnapshotRequest) Type() protoreflect.MessageType { - return _fastReflection_OfferSnapshotRequest_messageType +func (x *fastReflection_RequestOfferSnapshot) Type() protoreflect.MessageType { + return _fastReflection_RequestOfferSnapshot_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_OfferSnapshotRequest) New() protoreflect.Message { - return new(fastReflection_OfferSnapshotRequest) +func (x *fastReflection_RequestOfferSnapshot) New() protoreflect.Message { + return new(fastReflection_RequestOfferSnapshot) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_OfferSnapshotRequest) Interface() protoreflect.ProtoMessage { - return (*OfferSnapshotRequest)(x) +func (x *fastReflection_RequestOfferSnapshot) Interface() protoreflect.ProtoMessage { + return (*RequestOfferSnapshot)(x) } // Range iterates over every populated field in an undefined order, @@ -6095,16 +6093,16 @@ func (x *fastReflection_OfferSnapshotRequest) Interface() protoreflect.ProtoMess // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_OfferSnapshotRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_RequestOfferSnapshot) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Snapshot != nil { value := protoreflect.ValueOfMessage(x.Snapshot.ProtoReflect()) - if !f(fd_OfferSnapshotRequest_snapshot, value) { + if !f(fd_RequestOfferSnapshot_snapshot, value) { return } } if len(x.AppHash) != 0 { value := protoreflect.ValueOfBytes(x.AppHash) - if !f(fd_OfferSnapshotRequest_app_hash, value) { + if !f(fd_RequestOfferSnapshot_app_hash, value) { return } } @@ -6121,17 +6119,17 @@ func (x *fastReflection_OfferSnapshotRequest) Range(f func(protoreflect.FieldDes // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_OfferSnapshotRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_RequestOfferSnapshot) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.OfferSnapshotRequest.snapshot": + case "tendermint.abci.RequestOfferSnapshot.snapshot": return x.Snapshot != nil - case "cometbft.abci.v2.OfferSnapshotRequest.app_hash": + case "tendermint.abci.RequestOfferSnapshot.app_hash": return len(x.AppHash) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.OfferSnapshotRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestOfferSnapshot")) } - panic(fmt.Errorf("message cometbft.abci.v2.OfferSnapshotRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestOfferSnapshot does not contain field %s", fd.FullName())) } } @@ -6141,17 +6139,17 @@ func (x *fastReflection_OfferSnapshotRequest) Has(fd protoreflect.FieldDescripto // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_OfferSnapshotRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_RequestOfferSnapshot) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.OfferSnapshotRequest.snapshot": + case "tendermint.abci.RequestOfferSnapshot.snapshot": x.Snapshot = nil - case "cometbft.abci.v2.OfferSnapshotRequest.app_hash": + case "tendermint.abci.RequestOfferSnapshot.app_hash": x.AppHash = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.OfferSnapshotRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestOfferSnapshot")) } - panic(fmt.Errorf("message cometbft.abci.v2.OfferSnapshotRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestOfferSnapshot does not contain field %s", fd.FullName())) } } @@ -6161,19 +6159,19 @@ func (x *fastReflection_OfferSnapshotRequest) Clear(fd protoreflect.FieldDescrip // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_OfferSnapshotRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestOfferSnapshot) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.OfferSnapshotRequest.snapshot": + case "tendermint.abci.RequestOfferSnapshot.snapshot": value := x.Snapshot return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.OfferSnapshotRequest.app_hash": + case "tendermint.abci.RequestOfferSnapshot.app_hash": value := x.AppHash return protoreflect.ValueOfBytes(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.OfferSnapshotRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestOfferSnapshot")) } - panic(fmt.Errorf("message cometbft.abci.v2.OfferSnapshotRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestOfferSnapshot does not contain field %s", descriptor.FullName())) } } @@ -6187,17 +6185,17 @@ func (x *fastReflection_OfferSnapshotRequest) Get(descriptor protoreflect.FieldD // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_OfferSnapshotRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_RequestOfferSnapshot) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.OfferSnapshotRequest.snapshot": + case "tendermint.abci.RequestOfferSnapshot.snapshot": x.Snapshot = value.Message().Interface().(*Snapshot) - case "cometbft.abci.v2.OfferSnapshotRequest.app_hash": + case "tendermint.abci.RequestOfferSnapshot.app_hash": x.AppHash = value.Bytes() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.OfferSnapshotRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestOfferSnapshot")) } - panic(fmt.Errorf("message cometbft.abci.v2.OfferSnapshotRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestOfferSnapshot does not contain field %s", fd.FullName())) } } @@ -6211,48 +6209,48 @@ func (x *fastReflection_OfferSnapshotRequest) Set(fd protoreflect.FieldDescripto // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_OfferSnapshotRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestOfferSnapshot) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.OfferSnapshotRequest.snapshot": + case "tendermint.abci.RequestOfferSnapshot.snapshot": if x.Snapshot == nil { x.Snapshot = new(Snapshot) } return protoreflect.ValueOfMessage(x.Snapshot.ProtoReflect()) - case "cometbft.abci.v2.OfferSnapshotRequest.app_hash": - panic(fmt.Errorf("field app_hash of message cometbft.abci.v2.OfferSnapshotRequest is not mutable")) + case "tendermint.abci.RequestOfferSnapshot.app_hash": + panic(fmt.Errorf("field app_hash of message tendermint.abci.RequestOfferSnapshot is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.OfferSnapshotRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestOfferSnapshot")) } - panic(fmt.Errorf("message cometbft.abci.v2.OfferSnapshotRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestOfferSnapshot does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_OfferSnapshotRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestOfferSnapshot) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.OfferSnapshotRequest.snapshot": + case "tendermint.abci.RequestOfferSnapshot.snapshot": m := new(Snapshot) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.abci.v2.OfferSnapshotRequest.app_hash": + case "tendermint.abci.RequestOfferSnapshot.app_hash": return protoreflect.ValueOfBytes(nil) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.OfferSnapshotRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestOfferSnapshot")) } - panic(fmt.Errorf("message cometbft.abci.v2.OfferSnapshotRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestOfferSnapshot does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_OfferSnapshotRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_RequestOfferSnapshot) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.OfferSnapshotRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.RequestOfferSnapshot", d.FullName())) } panic("unreachable") } @@ -6260,7 +6258,7 @@ func (x *fastReflection_OfferSnapshotRequest) WhichOneof(d protoreflect.OneofDes // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_OfferSnapshotRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_RequestOfferSnapshot) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -6271,7 +6269,7 @@ func (x *fastReflection_OfferSnapshotRequest) GetUnknown() protoreflect.RawField // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_OfferSnapshotRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_RequestOfferSnapshot) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -6283,7 +6281,7 @@ func (x *fastReflection_OfferSnapshotRequest) SetUnknown(fields protoreflect.Raw // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_OfferSnapshotRequest) IsValid() bool { +func (x *fastReflection_RequestOfferSnapshot) IsValid() bool { return x != nil } @@ -6293,9 +6291,9 @@ func (x *fastReflection_OfferSnapshotRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_OfferSnapshotRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_RequestOfferSnapshot) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*OfferSnapshotRequest) + x := input.Message.Interface().(*RequestOfferSnapshot) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6325,7 +6323,7 @@ func (x *fastReflection_OfferSnapshotRequest) ProtoMethods() *protoiface.Methods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*OfferSnapshotRequest) + x := input.Message.Interface().(*RequestOfferSnapshot) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6376,7 +6374,7 @@ func (x *fastReflection_OfferSnapshotRequest) ProtoMethods() *protoiface.Methods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*OfferSnapshotRequest) + x := input.Message.Interface().(*RequestOfferSnapshot) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6408,10 +6406,10 @@ func (x *fastReflection_OfferSnapshotRequest) ProtoMethods() *protoiface.Methods fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: OfferSnapshotRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestOfferSnapshot: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: OfferSnapshotRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestOfferSnapshot: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -6520,30 +6518,30 @@ func (x *fastReflection_OfferSnapshotRequest) ProtoMethods() *protoiface.Methods } var ( - md_LoadSnapshotChunkRequest protoreflect.MessageDescriptor - fd_LoadSnapshotChunkRequest_height protoreflect.FieldDescriptor - fd_LoadSnapshotChunkRequest_format protoreflect.FieldDescriptor - fd_LoadSnapshotChunkRequest_chunk protoreflect.FieldDescriptor + md_RequestLoadSnapshotChunk protoreflect.MessageDescriptor + fd_RequestLoadSnapshotChunk_height protoreflect.FieldDescriptor + fd_RequestLoadSnapshotChunk_format protoreflect.FieldDescriptor + fd_RequestLoadSnapshotChunk_chunk protoreflect.FieldDescriptor ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_LoadSnapshotChunkRequest = File_cometbft_abci_v2_types_proto.Messages().ByName("LoadSnapshotChunkRequest") - fd_LoadSnapshotChunkRequest_height = md_LoadSnapshotChunkRequest.Fields().ByName("height") - fd_LoadSnapshotChunkRequest_format = md_LoadSnapshotChunkRequest.Fields().ByName("format") - fd_LoadSnapshotChunkRequest_chunk = md_LoadSnapshotChunkRequest.Fields().ByName("chunk") + file_tendermint_abci_types_proto_init() + md_RequestLoadSnapshotChunk = File_tendermint_abci_types_proto.Messages().ByName("RequestLoadSnapshotChunk") + fd_RequestLoadSnapshotChunk_height = md_RequestLoadSnapshotChunk.Fields().ByName("height") + fd_RequestLoadSnapshotChunk_format = md_RequestLoadSnapshotChunk.Fields().ByName("format") + fd_RequestLoadSnapshotChunk_chunk = md_RequestLoadSnapshotChunk.Fields().ByName("chunk") } -var _ protoreflect.Message = (*fastReflection_LoadSnapshotChunkRequest)(nil) +var _ protoreflect.Message = (*fastReflection_RequestLoadSnapshotChunk)(nil) -type fastReflection_LoadSnapshotChunkRequest LoadSnapshotChunkRequest +type fastReflection_RequestLoadSnapshotChunk RequestLoadSnapshotChunk -func (x *LoadSnapshotChunkRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_LoadSnapshotChunkRequest)(x) +func (x *RequestLoadSnapshotChunk) ProtoReflect() protoreflect.Message { + return (*fastReflection_RequestLoadSnapshotChunk)(x) } -func (x *LoadSnapshotChunkRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[10] +func (x *RequestLoadSnapshotChunk) slowProtoReflect() protoreflect.Message { + mi := &file_tendermint_abci_types_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6554,43 +6552,43 @@ func (x *LoadSnapshotChunkRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_LoadSnapshotChunkRequest_messageType fastReflection_LoadSnapshotChunkRequest_messageType -var _ protoreflect.MessageType = fastReflection_LoadSnapshotChunkRequest_messageType{} +var _fastReflection_RequestLoadSnapshotChunk_messageType fastReflection_RequestLoadSnapshotChunk_messageType +var _ protoreflect.MessageType = fastReflection_RequestLoadSnapshotChunk_messageType{} -type fastReflection_LoadSnapshotChunkRequest_messageType struct{} +type fastReflection_RequestLoadSnapshotChunk_messageType struct{} -func (x fastReflection_LoadSnapshotChunkRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_LoadSnapshotChunkRequest)(nil) +func (x fastReflection_RequestLoadSnapshotChunk_messageType) Zero() protoreflect.Message { + return (*fastReflection_RequestLoadSnapshotChunk)(nil) } -func (x fastReflection_LoadSnapshotChunkRequest_messageType) New() protoreflect.Message { - return new(fastReflection_LoadSnapshotChunkRequest) +func (x fastReflection_RequestLoadSnapshotChunk_messageType) New() protoreflect.Message { + return new(fastReflection_RequestLoadSnapshotChunk) } -func (x fastReflection_LoadSnapshotChunkRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_LoadSnapshotChunkRequest +func (x fastReflection_RequestLoadSnapshotChunk_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_RequestLoadSnapshotChunk } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_LoadSnapshotChunkRequest) Descriptor() protoreflect.MessageDescriptor { - return md_LoadSnapshotChunkRequest +func (x *fastReflection_RequestLoadSnapshotChunk) Descriptor() protoreflect.MessageDescriptor { + return md_RequestLoadSnapshotChunk } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_LoadSnapshotChunkRequest) Type() protoreflect.MessageType { - return _fastReflection_LoadSnapshotChunkRequest_messageType +func (x *fastReflection_RequestLoadSnapshotChunk) Type() protoreflect.MessageType { + return _fastReflection_RequestLoadSnapshotChunk_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_LoadSnapshotChunkRequest) New() protoreflect.Message { - return new(fastReflection_LoadSnapshotChunkRequest) +func (x *fastReflection_RequestLoadSnapshotChunk) New() protoreflect.Message { + return new(fastReflection_RequestLoadSnapshotChunk) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_LoadSnapshotChunkRequest) Interface() protoreflect.ProtoMessage { - return (*LoadSnapshotChunkRequest)(x) +func (x *fastReflection_RequestLoadSnapshotChunk) Interface() protoreflect.ProtoMessage { + return (*RequestLoadSnapshotChunk)(x) } // Range iterates over every populated field in an undefined order, @@ -6598,22 +6596,22 @@ func (x *fastReflection_LoadSnapshotChunkRequest) Interface() protoreflect.Proto // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_LoadSnapshotChunkRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_RequestLoadSnapshotChunk) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Height != uint64(0) { value := protoreflect.ValueOfUint64(x.Height) - if !f(fd_LoadSnapshotChunkRequest_height, value) { + if !f(fd_RequestLoadSnapshotChunk_height, value) { return } } if x.Format != uint32(0) { value := protoreflect.ValueOfUint32(x.Format) - if !f(fd_LoadSnapshotChunkRequest_format, value) { + if !f(fd_RequestLoadSnapshotChunk_format, value) { return } } if x.Chunk != uint32(0) { value := protoreflect.ValueOfUint32(x.Chunk) - if !f(fd_LoadSnapshotChunkRequest_chunk, value) { + if !f(fd_RequestLoadSnapshotChunk_chunk, value) { return } } @@ -6630,19 +6628,19 @@ func (x *fastReflection_LoadSnapshotChunkRequest) Range(f func(protoreflect.Fiel // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_LoadSnapshotChunkRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_RequestLoadSnapshotChunk) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.LoadSnapshotChunkRequest.height": + case "tendermint.abci.RequestLoadSnapshotChunk.height": return x.Height != uint64(0) - case "cometbft.abci.v2.LoadSnapshotChunkRequest.format": + case "tendermint.abci.RequestLoadSnapshotChunk.format": return x.Format != uint32(0) - case "cometbft.abci.v2.LoadSnapshotChunkRequest.chunk": + case "tendermint.abci.RequestLoadSnapshotChunk.chunk": return x.Chunk != uint32(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.LoadSnapshotChunkRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestLoadSnapshotChunk")) } - panic(fmt.Errorf("message cometbft.abci.v2.LoadSnapshotChunkRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestLoadSnapshotChunk does not contain field %s", fd.FullName())) } } @@ -6652,19 +6650,19 @@ func (x *fastReflection_LoadSnapshotChunkRequest) Has(fd protoreflect.FieldDescr // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_LoadSnapshotChunkRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_RequestLoadSnapshotChunk) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.LoadSnapshotChunkRequest.height": + case "tendermint.abci.RequestLoadSnapshotChunk.height": x.Height = uint64(0) - case "cometbft.abci.v2.LoadSnapshotChunkRequest.format": + case "tendermint.abci.RequestLoadSnapshotChunk.format": x.Format = uint32(0) - case "cometbft.abci.v2.LoadSnapshotChunkRequest.chunk": + case "tendermint.abci.RequestLoadSnapshotChunk.chunk": x.Chunk = uint32(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.LoadSnapshotChunkRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestLoadSnapshotChunk")) } - panic(fmt.Errorf("message cometbft.abci.v2.LoadSnapshotChunkRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestLoadSnapshotChunk does not contain field %s", fd.FullName())) } } @@ -6674,22 +6672,22 @@ func (x *fastReflection_LoadSnapshotChunkRequest) Clear(fd protoreflect.FieldDes // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_LoadSnapshotChunkRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestLoadSnapshotChunk) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.LoadSnapshotChunkRequest.height": + case "tendermint.abci.RequestLoadSnapshotChunk.height": value := x.Height return protoreflect.ValueOfUint64(value) - case "cometbft.abci.v2.LoadSnapshotChunkRequest.format": + case "tendermint.abci.RequestLoadSnapshotChunk.format": value := x.Format return protoreflect.ValueOfUint32(value) - case "cometbft.abci.v2.LoadSnapshotChunkRequest.chunk": + case "tendermint.abci.RequestLoadSnapshotChunk.chunk": value := x.Chunk return protoreflect.ValueOfUint32(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.LoadSnapshotChunkRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestLoadSnapshotChunk")) } - panic(fmt.Errorf("message cometbft.abci.v2.LoadSnapshotChunkRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestLoadSnapshotChunk does not contain field %s", descriptor.FullName())) } } @@ -6703,19 +6701,19 @@ func (x *fastReflection_LoadSnapshotChunkRequest) Get(descriptor protoreflect.Fi // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_LoadSnapshotChunkRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_RequestLoadSnapshotChunk) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.LoadSnapshotChunkRequest.height": + case "tendermint.abci.RequestLoadSnapshotChunk.height": x.Height = value.Uint() - case "cometbft.abci.v2.LoadSnapshotChunkRequest.format": + case "tendermint.abci.RequestLoadSnapshotChunk.format": x.Format = uint32(value.Uint()) - case "cometbft.abci.v2.LoadSnapshotChunkRequest.chunk": + case "tendermint.abci.RequestLoadSnapshotChunk.chunk": x.Chunk = uint32(value.Uint()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.LoadSnapshotChunkRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestLoadSnapshotChunk")) } - panic(fmt.Errorf("message cometbft.abci.v2.LoadSnapshotChunkRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestLoadSnapshotChunk does not contain field %s", fd.FullName())) } } @@ -6729,48 +6727,48 @@ func (x *fastReflection_LoadSnapshotChunkRequest) Set(fd protoreflect.FieldDescr // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_LoadSnapshotChunkRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestLoadSnapshotChunk) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.LoadSnapshotChunkRequest.height": - panic(fmt.Errorf("field height of message cometbft.abci.v2.LoadSnapshotChunkRequest is not mutable")) - case "cometbft.abci.v2.LoadSnapshotChunkRequest.format": - panic(fmt.Errorf("field format of message cometbft.abci.v2.LoadSnapshotChunkRequest is not mutable")) - case "cometbft.abci.v2.LoadSnapshotChunkRequest.chunk": - panic(fmt.Errorf("field chunk of message cometbft.abci.v2.LoadSnapshotChunkRequest is not mutable")) + case "tendermint.abci.RequestLoadSnapshotChunk.height": + panic(fmt.Errorf("field height of message tendermint.abci.RequestLoadSnapshotChunk is not mutable")) + case "tendermint.abci.RequestLoadSnapshotChunk.format": + panic(fmt.Errorf("field format of message tendermint.abci.RequestLoadSnapshotChunk is not mutable")) + case "tendermint.abci.RequestLoadSnapshotChunk.chunk": + panic(fmt.Errorf("field chunk of message tendermint.abci.RequestLoadSnapshotChunk is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.LoadSnapshotChunkRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestLoadSnapshotChunk")) } - panic(fmt.Errorf("message cometbft.abci.v2.LoadSnapshotChunkRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestLoadSnapshotChunk does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_LoadSnapshotChunkRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestLoadSnapshotChunk) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.LoadSnapshotChunkRequest.height": + case "tendermint.abci.RequestLoadSnapshotChunk.height": return protoreflect.ValueOfUint64(uint64(0)) - case "cometbft.abci.v2.LoadSnapshotChunkRequest.format": + case "tendermint.abci.RequestLoadSnapshotChunk.format": return protoreflect.ValueOfUint32(uint32(0)) - case "cometbft.abci.v2.LoadSnapshotChunkRequest.chunk": + case "tendermint.abci.RequestLoadSnapshotChunk.chunk": return protoreflect.ValueOfUint32(uint32(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.LoadSnapshotChunkRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestLoadSnapshotChunk")) } - panic(fmt.Errorf("message cometbft.abci.v2.LoadSnapshotChunkRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestLoadSnapshotChunk does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_LoadSnapshotChunkRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_RequestLoadSnapshotChunk) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.LoadSnapshotChunkRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.RequestLoadSnapshotChunk", d.FullName())) } panic("unreachable") } @@ -6778,7 +6776,7 @@ func (x *fastReflection_LoadSnapshotChunkRequest) WhichOneof(d protoreflect.Oneo // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_LoadSnapshotChunkRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_RequestLoadSnapshotChunk) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -6789,7 +6787,7 @@ func (x *fastReflection_LoadSnapshotChunkRequest) GetUnknown() protoreflect.RawF // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_LoadSnapshotChunkRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_RequestLoadSnapshotChunk) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -6801,7 +6799,7 @@ func (x *fastReflection_LoadSnapshotChunkRequest) SetUnknown(fields protoreflect // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_LoadSnapshotChunkRequest) IsValid() bool { +func (x *fastReflection_RequestLoadSnapshotChunk) IsValid() bool { return x != nil } @@ -6811,9 +6809,9 @@ func (x *fastReflection_LoadSnapshotChunkRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_LoadSnapshotChunkRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_RequestLoadSnapshotChunk) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*LoadSnapshotChunkRequest) + x := input.Message.Interface().(*RequestLoadSnapshotChunk) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6844,7 +6842,7 @@ func (x *fastReflection_LoadSnapshotChunkRequest) ProtoMethods() *protoiface.Met } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*LoadSnapshotChunkRequest) + x := input.Message.Interface().(*RequestLoadSnapshotChunk) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6889,7 +6887,7 @@ func (x *fastReflection_LoadSnapshotChunkRequest) ProtoMethods() *protoiface.Met }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*LoadSnapshotChunkRequest) + x := input.Message.Interface().(*RequestLoadSnapshotChunk) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6921,10 +6919,10 @@ func (x *fastReflection_LoadSnapshotChunkRequest) ProtoMethods() *protoiface.Met fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: LoadSnapshotChunkRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestLoadSnapshotChunk: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: LoadSnapshotChunkRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestLoadSnapshotChunk: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -7020,30 +7018,30 @@ func (x *fastReflection_LoadSnapshotChunkRequest) ProtoMethods() *protoiface.Met } var ( - md_ApplySnapshotChunkRequest protoreflect.MessageDescriptor - fd_ApplySnapshotChunkRequest_index protoreflect.FieldDescriptor - fd_ApplySnapshotChunkRequest_chunk protoreflect.FieldDescriptor - fd_ApplySnapshotChunkRequest_sender protoreflect.FieldDescriptor + md_RequestApplySnapshotChunk protoreflect.MessageDescriptor + fd_RequestApplySnapshotChunk_index protoreflect.FieldDescriptor + fd_RequestApplySnapshotChunk_chunk protoreflect.FieldDescriptor + fd_RequestApplySnapshotChunk_sender protoreflect.FieldDescriptor ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_ApplySnapshotChunkRequest = File_cometbft_abci_v2_types_proto.Messages().ByName("ApplySnapshotChunkRequest") - fd_ApplySnapshotChunkRequest_index = md_ApplySnapshotChunkRequest.Fields().ByName("index") - fd_ApplySnapshotChunkRequest_chunk = md_ApplySnapshotChunkRequest.Fields().ByName("chunk") - fd_ApplySnapshotChunkRequest_sender = md_ApplySnapshotChunkRequest.Fields().ByName("sender") + file_tendermint_abci_types_proto_init() + md_RequestApplySnapshotChunk = File_tendermint_abci_types_proto.Messages().ByName("RequestApplySnapshotChunk") + fd_RequestApplySnapshotChunk_index = md_RequestApplySnapshotChunk.Fields().ByName("index") + fd_RequestApplySnapshotChunk_chunk = md_RequestApplySnapshotChunk.Fields().ByName("chunk") + fd_RequestApplySnapshotChunk_sender = md_RequestApplySnapshotChunk.Fields().ByName("sender") } -var _ protoreflect.Message = (*fastReflection_ApplySnapshotChunkRequest)(nil) +var _ protoreflect.Message = (*fastReflection_RequestApplySnapshotChunk)(nil) -type fastReflection_ApplySnapshotChunkRequest ApplySnapshotChunkRequest +type fastReflection_RequestApplySnapshotChunk RequestApplySnapshotChunk -func (x *ApplySnapshotChunkRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_ApplySnapshotChunkRequest)(x) +func (x *RequestApplySnapshotChunk) ProtoReflect() protoreflect.Message { + return (*fastReflection_RequestApplySnapshotChunk)(x) } -func (x *ApplySnapshotChunkRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[11] +func (x *RequestApplySnapshotChunk) slowProtoReflect() protoreflect.Message { + mi := &file_tendermint_abci_types_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7054,43 +7052,43 @@ func (x *ApplySnapshotChunkRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_ApplySnapshotChunkRequest_messageType fastReflection_ApplySnapshotChunkRequest_messageType -var _ protoreflect.MessageType = fastReflection_ApplySnapshotChunkRequest_messageType{} +var _fastReflection_RequestApplySnapshotChunk_messageType fastReflection_RequestApplySnapshotChunk_messageType +var _ protoreflect.MessageType = fastReflection_RequestApplySnapshotChunk_messageType{} -type fastReflection_ApplySnapshotChunkRequest_messageType struct{} +type fastReflection_RequestApplySnapshotChunk_messageType struct{} -func (x fastReflection_ApplySnapshotChunkRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_ApplySnapshotChunkRequest)(nil) +func (x fastReflection_RequestApplySnapshotChunk_messageType) Zero() protoreflect.Message { + return (*fastReflection_RequestApplySnapshotChunk)(nil) } -func (x fastReflection_ApplySnapshotChunkRequest_messageType) New() protoreflect.Message { - return new(fastReflection_ApplySnapshotChunkRequest) +func (x fastReflection_RequestApplySnapshotChunk_messageType) New() protoreflect.Message { + return new(fastReflection_RequestApplySnapshotChunk) } -func (x fastReflection_ApplySnapshotChunkRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_ApplySnapshotChunkRequest +func (x fastReflection_RequestApplySnapshotChunk_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_RequestApplySnapshotChunk } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_ApplySnapshotChunkRequest) Descriptor() protoreflect.MessageDescriptor { - return md_ApplySnapshotChunkRequest +func (x *fastReflection_RequestApplySnapshotChunk) Descriptor() protoreflect.MessageDescriptor { + return md_RequestApplySnapshotChunk } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_ApplySnapshotChunkRequest) Type() protoreflect.MessageType { - return _fastReflection_ApplySnapshotChunkRequest_messageType +func (x *fastReflection_RequestApplySnapshotChunk) Type() protoreflect.MessageType { + return _fastReflection_RequestApplySnapshotChunk_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_ApplySnapshotChunkRequest) New() protoreflect.Message { - return new(fastReflection_ApplySnapshotChunkRequest) +func (x *fastReflection_RequestApplySnapshotChunk) New() protoreflect.Message { + return new(fastReflection_RequestApplySnapshotChunk) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_ApplySnapshotChunkRequest) Interface() protoreflect.ProtoMessage { - return (*ApplySnapshotChunkRequest)(x) +func (x *fastReflection_RequestApplySnapshotChunk) Interface() protoreflect.ProtoMessage { + return (*RequestApplySnapshotChunk)(x) } // Range iterates over every populated field in an undefined order, @@ -7098,22 +7096,22 @@ func (x *fastReflection_ApplySnapshotChunkRequest) Interface() protoreflect.Prot // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_ApplySnapshotChunkRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_RequestApplySnapshotChunk) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Index != uint32(0) { value := protoreflect.ValueOfUint32(x.Index) - if !f(fd_ApplySnapshotChunkRequest_index, value) { + if !f(fd_RequestApplySnapshotChunk_index, value) { return } } if len(x.Chunk) != 0 { value := protoreflect.ValueOfBytes(x.Chunk) - if !f(fd_ApplySnapshotChunkRequest_chunk, value) { + if !f(fd_RequestApplySnapshotChunk_chunk, value) { return } } if x.Sender != "" { value := protoreflect.ValueOfString(x.Sender) - if !f(fd_ApplySnapshotChunkRequest_sender, value) { + if !f(fd_RequestApplySnapshotChunk_sender, value) { return } } @@ -7130,19 +7128,19 @@ func (x *fastReflection_ApplySnapshotChunkRequest) Range(f func(protoreflect.Fie // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_ApplySnapshotChunkRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_RequestApplySnapshotChunk) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.ApplySnapshotChunkRequest.index": + case "tendermint.abci.RequestApplySnapshotChunk.index": return x.Index != uint32(0) - case "cometbft.abci.v2.ApplySnapshotChunkRequest.chunk": + case "tendermint.abci.RequestApplySnapshotChunk.chunk": return len(x.Chunk) != 0 - case "cometbft.abci.v2.ApplySnapshotChunkRequest.sender": + case "tendermint.abci.RequestApplySnapshotChunk.sender": return x.Sender != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ApplySnapshotChunkRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestApplySnapshotChunk")) } - panic(fmt.Errorf("message cometbft.abci.v2.ApplySnapshotChunkRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestApplySnapshotChunk does not contain field %s", fd.FullName())) } } @@ -7152,19 +7150,19 @@ func (x *fastReflection_ApplySnapshotChunkRequest) Has(fd protoreflect.FieldDesc // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ApplySnapshotChunkRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_RequestApplySnapshotChunk) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.ApplySnapshotChunkRequest.index": + case "tendermint.abci.RequestApplySnapshotChunk.index": x.Index = uint32(0) - case "cometbft.abci.v2.ApplySnapshotChunkRequest.chunk": + case "tendermint.abci.RequestApplySnapshotChunk.chunk": x.Chunk = nil - case "cometbft.abci.v2.ApplySnapshotChunkRequest.sender": + case "tendermint.abci.RequestApplySnapshotChunk.sender": x.Sender = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ApplySnapshotChunkRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestApplySnapshotChunk")) } - panic(fmt.Errorf("message cometbft.abci.v2.ApplySnapshotChunkRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestApplySnapshotChunk does not contain field %s", fd.FullName())) } } @@ -7174,22 +7172,22 @@ func (x *fastReflection_ApplySnapshotChunkRequest) Clear(fd protoreflect.FieldDe // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_ApplySnapshotChunkRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestApplySnapshotChunk) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.ApplySnapshotChunkRequest.index": + case "tendermint.abci.RequestApplySnapshotChunk.index": value := x.Index return protoreflect.ValueOfUint32(value) - case "cometbft.abci.v2.ApplySnapshotChunkRequest.chunk": + case "tendermint.abci.RequestApplySnapshotChunk.chunk": value := x.Chunk return protoreflect.ValueOfBytes(value) - case "cometbft.abci.v2.ApplySnapshotChunkRequest.sender": + case "tendermint.abci.RequestApplySnapshotChunk.sender": value := x.Sender return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ApplySnapshotChunkRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestApplySnapshotChunk")) } - panic(fmt.Errorf("message cometbft.abci.v2.ApplySnapshotChunkRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestApplySnapshotChunk does not contain field %s", descriptor.FullName())) } } @@ -7203,19 +7201,19 @@ func (x *fastReflection_ApplySnapshotChunkRequest) Get(descriptor protoreflect.F // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ApplySnapshotChunkRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_RequestApplySnapshotChunk) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.ApplySnapshotChunkRequest.index": + case "tendermint.abci.RequestApplySnapshotChunk.index": x.Index = uint32(value.Uint()) - case "cometbft.abci.v2.ApplySnapshotChunkRequest.chunk": + case "tendermint.abci.RequestApplySnapshotChunk.chunk": x.Chunk = value.Bytes() - case "cometbft.abci.v2.ApplySnapshotChunkRequest.sender": + case "tendermint.abci.RequestApplySnapshotChunk.sender": x.Sender = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ApplySnapshotChunkRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestApplySnapshotChunk")) } - panic(fmt.Errorf("message cometbft.abci.v2.ApplySnapshotChunkRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestApplySnapshotChunk does not contain field %s", fd.FullName())) } } @@ -7229,48 +7227,48 @@ func (x *fastReflection_ApplySnapshotChunkRequest) Set(fd protoreflect.FieldDesc // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ApplySnapshotChunkRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestApplySnapshotChunk) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.ApplySnapshotChunkRequest.index": - panic(fmt.Errorf("field index of message cometbft.abci.v2.ApplySnapshotChunkRequest is not mutable")) - case "cometbft.abci.v2.ApplySnapshotChunkRequest.chunk": - panic(fmt.Errorf("field chunk of message cometbft.abci.v2.ApplySnapshotChunkRequest is not mutable")) - case "cometbft.abci.v2.ApplySnapshotChunkRequest.sender": - panic(fmt.Errorf("field sender of message cometbft.abci.v2.ApplySnapshotChunkRequest is not mutable")) + case "tendermint.abci.RequestApplySnapshotChunk.index": + panic(fmt.Errorf("field index of message tendermint.abci.RequestApplySnapshotChunk is not mutable")) + case "tendermint.abci.RequestApplySnapshotChunk.chunk": + panic(fmt.Errorf("field chunk of message tendermint.abci.RequestApplySnapshotChunk is not mutable")) + case "tendermint.abci.RequestApplySnapshotChunk.sender": + panic(fmt.Errorf("field sender of message tendermint.abci.RequestApplySnapshotChunk is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ApplySnapshotChunkRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestApplySnapshotChunk")) } - panic(fmt.Errorf("message cometbft.abci.v2.ApplySnapshotChunkRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestApplySnapshotChunk does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_ApplySnapshotChunkRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestApplySnapshotChunk) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.ApplySnapshotChunkRequest.index": + case "tendermint.abci.RequestApplySnapshotChunk.index": return protoreflect.ValueOfUint32(uint32(0)) - case "cometbft.abci.v2.ApplySnapshotChunkRequest.chunk": + case "tendermint.abci.RequestApplySnapshotChunk.chunk": return protoreflect.ValueOfBytes(nil) - case "cometbft.abci.v2.ApplySnapshotChunkRequest.sender": + case "tendermint.abci.RequestApplySnapshotChunk.sender": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ApplySnapshotChunkRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestApplySnapshotChunk")) } - panic(fmt.Errorf("message cometbft.abci.v2.ApplySnapshotChunkRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestApplySnapshotChunk does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_ApplySnapshotChunkRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_RequestApplySnapshotChunk) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.ApplySnapshotChunkRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.RequestApplySnapshotChunk", d.FullName())) } panic("unreachable") } @@ -7278,7 +7276,7 @@ func (x *fastReflection_ApplySnapshotChunkRequest) WhichOneof(d protoreflect.One // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_ApplySnapshotChunkRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_RequestApplySnapshotChunk) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -7289,7 +7287,7 @@ func (x *fastReflection_ApplySnapshotChunkRequest) GetUnknown() protoreflect.Raw // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ApplySnapshotChunkRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_RequestApplySnapshotChunk) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -7301,7 +7299,7 @@ func (x *fastReflection_ApplySnapshotChunkRequest) SetUnknown(fields protoreflec // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_ApplySnapshotChunkRequest) IsValid() bool { +func (x *fastReflection_RequestApplySnapshotChunk) IsValid() bool { return x != nil } @@ -7311,9 +7309,9 @@ func (x *fastReflection_ApplySnapshotChunkRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_ApplySnapshotChunkRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_RequestApplySnapshotChunk) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*ApplySnapshotChunkRequest) + x := input.Message.Interface().(*RequestApplySnapshotChunk) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7346,7 +7344,7 @@ func (x *fastReflection_ApplySnapshotChunkRequest) ProtoMethods() *protoiface.Me } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*ApplySnapshotChunkRequest) + x := input.Message.Interface().(*RequestApplySnapshotChunk) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7395,7 +7393,7 @@ func (x *fastReflection_ApplySnapshotChunkRequest) ProtoMethods() *protoiface.Me }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*ApplySnapshotChunkRequest) + x := input.Message.Interface().(*RequestApplySnapshotChunk) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7427,10 +7425,10 @@ func (x *fastReflection_ApplySnapshotChunkRequest) ProtoMethods() *protoiface.Me fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ApplySnapshotChunkRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestApplySnapshotChunk: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ApplySnapshotChunkRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestApplySnapshotChunk: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -7553,138 +7551,138 @@ func (x *fastReflection_ApplySnapshotChunkRequest) ProtoMethods() *protoiface.Me } } -var _ protoreflect.List = (*_PrepareProposalRequest_2_list)(nil) +var _ protoreflect.List = (*_RequestPrepareProposal_2_list)(nil) -type _PrepareProposalRequest_2_list struct { +type _RequestPrepareProposal_2_list struct { list *[][]byte } -func (x *_PrepareProposalRequest_2_list) Len() int { +func (x *_RequestPrepareProposal_2_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_PrepareProposalRequest_2_list) Get(i int) protoreflect.Value { +func (x *_RequestPrepareProposal_2_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfBytes((*x.list)[i]) } -func (x *_PrepareProposalRequest_2_list) Set(i int, value protoreflect.Value) { +func (x *_RequestPrepareProposal_2_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Bytes() concreteValue := valueUnwrapped (*x.list)[i] = concreteValue } -func (x *_PrepareProposalRequest_2_list) Append(value protoreflect.Value) { +func (x *_RequestPrepareProposal_2_list) Append(value protoreflect.Value) { valueUnwrapped := value.Bytes() concreteValue := valueUnwrapped *x.list = append(*x.list, concreteValue) } -func (x *_PrepareProposalRequest_2_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message PrepareProposalRequest at list field Txs as it is not of Message kind")) +func (x *_RequestPrepareProposal_2_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message RequestPrepareProposal at list field Txs as it is not of Message kind")) } -func (x *_PrepareProposalRequest_2_list) Truncate(n int) { +func (x *_RequestPrepareProposal_2_list) Truncate(n int) { *x.list = (*x.list)[:n] } -func (x *_PrepareProposalRequest_2_list) NewElement() protoreflect.Value { +func (x *_RequestPrepareProposal_2_list) NewElement() protoreflect.Value { var v []byte return protoreflect.ValueOfBytes(v) } -func (x *_PrepareProposalRequest_2_list) IsValid() bool { +func (x *_RequestPrepareProposal_2_list) IsValid() bool { return x.list != nil } -var _ protoreflect.List = (*_PrepareProposalRequest_4_list)(nil) +var _ protoreflect.List = (*_RequestPrepareProposal_4_list)(nil) -type _PrepareProposalRequest_4_list struct { +type _RequestPrepareProposal_4_list struct { list *[]*Misbehavior } -func (x *_PrepareProposalRequest_4_list) Len() int { +func (x *_RequestPrepareProposal_4_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_PrepareProposalRequest_4_list) Get(i int) protoreflect.Value { +func (x *_RequestPrepareProposal_4_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_PrepareProposalRequest_4_list) Set(i int, value protoreflect.Value) { +func (x *_RequestPrepareProposal_4_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*Misbehavior) (*x.list)[i] = concreteValue } -func (x *_PrepareProposalRequest_4_list) Append(value protoreflect.Value) { +func (x *_RequestPrepareProposal_4_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*Misbehavior) *x.list = append(*x.list, concreteValue) } -func (x *_PrepareProposalRequest_4_list) AppendMutable() protoreflect.Value { +func (x *_RequestPrepareProposal_4_list) AppendMutable() protoreflect.Value { v := new(Misbehavior) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_PrepareProposalRequest_4_list) Truncate(n int) { +func (x *_RequestPrepareProposal_4_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_PrepareProposalRequest_4_list) NewElement() protoreflect.Value { +func (x *_RequestPrepareProposal_4_list) NewElement() protoreflect.Value { v := new(Misbehavior) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_PrepareProposalRequest_4_list) IsValid() bool { +func (x *_RequestPrepareProposal_4_list) IsValid() bool { return x.list != nil } var ( - md_PrepareProposalRequest protoreflect.MessageDescriptor - fd_PrepareProposalRequest_max_tx_bytes protoreflect.FieldDescriptor - fd_PrepareProposalRequest_txs protoreflect.FieldDescriptor - fd_PrepareProposalRequest_local_last_commit protoreflect.FieldDescriptor - fd_PrepareProposalRequest_misbehavior protoreflect.FieldDescriptor - fd_PrepareProposalRequest_height protoreflect.FieldDescriptor - fd_PrepareProposalRequest_time protoreflect.FieldDescriptor - fd_PrepareProposalRequest_next_validators_hash protoreflect.FieldDescriptor - fd_PrepareProposalRequest_proposer_address protoreflect.FieldDescriptor + md_RequestPrepareProposal protoreflect.MessageDescriptor + fd_RequestPrepareProposal_max_tx_bytes protoreflect.FieldDescriptor + fd_RequestPrepareProposal_txs protoreflect.FieldDescriptor + fd_RequestPrepareProposal_local_last_commit protoreflect.FieldDescriptor + fd_RequestPrepareProposal_misbehavior protoreflect.FieldDescriptor + fd_RequestPrepareProposal_height protoreflect.FieldDescriptor + fd_RequestPrepareProposal_time protoreflect.FieldDescriptor + fd_RequestPrepareProposal_next_validators_hash protoreflect.FieldDescriptor + fd_RequestPrepareProposal_proposer_address protoreflect.FieldDescriptor ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_PrepareProposalRequest = File_cometbft_abci_v2_types_proto.Messages().ByName("PrepareProposalRequest") - fd_PrepareProposalRequest_max_tx_bytes = md_PrepareProposalRequest.Fields().ByName("max_tx_bytes") - fd_PrepareProposalRequest_txs = md_PrepareProposalRequest.Fields().ByName("txs") - fd_PrepareProposalRequest_local_last_commit = md_PrepareProposalRequest.Fields().ByName("local_last_commit") - fd_PrepareProposalRequest_misbehavior = md_PrepareProposalRequest.Fields().ByName("misbehavior") - fd_PrepareProposalRequest_height = md_PrepareProposalRequest.Fields().ByName("height") - fd_PrepareProposalRequest_time = md_PrepareProposalRequest.Fields().ByName("time") - fd_PrepareProposalRequest_next_validators_hash = md_PrepareProposalRequest.Fields().ByName("next_validators_hash") - fd_PrepareProposalRequest_proposer_address = md_PrepareProposalRequest.Fields().ByName("proposer_address") + file_tendermint_abci_types_proto_init() + md_RequestPrepareProposal = File_tendermint_abci_types_proto.Messages().ByName("RequestPrepareProposal") + fd_RequestPrepareProposal_max_tx_bytes = md_RequestPrepareProposal.Fields().ByName("max_tx_bytes") + fd_RequestPrepareProposal_txs = md_RequestPrepareProposal.Fields().ByName("txs") + fd_RequestPrepareProposal_local_last_commit = md_RequestPrepareProposal.Fields().ByName("local_last_commit") + fd_RequestPrepareProposal_misbehavior = md_RequestPrepareProposal.Fields().ByName("misbehavior") + fd_RequestPrepareProposal_height = md_RequestPrepareProposal.Fields().ByName("height") + fd_RequestPrepareProposal_time = md_RequestPrepareProposal.Fields().ByName("time") + fd_RequestPrepareProposal_next_validators_hash = md_RequestPrepareProposal.Fields().ByName("next_validators_hash") + fd_RequestPrepareProposal_proposer_address = md_RequestPrepareProposal.Fields().ByName("proposer_address") } -var _ protoreflect.Message = (*fastReflection_PrepareProposalRequest)(nil) +var _ protoreflect.Message = (*fastReflection_RequestPrepareProposal)(nil) -type fastReflection_PrepareProposalRequest PrepareProposalRequest +type fastReflection_RequestPrepareProposal RequestPrepareProposal -func (x *PrepareProposalRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_PrepareProposalRequest)(x) +func (x *RequestPrepareProposal) ProtoReflect() protoreflect.Message { + return (*fastReflection_RequestPrepareProposal)(x) } -func (x *PrepareProposalRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[12] +func (x *RequestPrepareProposal) slowProtoReflect() protoreflect.Message { + mi := &file_tendermint_abci_types_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7695,43 +7693,43 @@ func (x *PrepareProposalRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_PrepareProposalRequest_messageType fastReflection_PrepareProposalRequest_messageType -var _ protoreflect.MessageType = fastReflection_PrepareProposalRequest_messageType{} +var _fastReflection_RequestPrepareProposal_messageType fastReflection_RequestPrepareProposal_messageType +var _ protoreflect.MessageType = fastReflection_RequestPrepareProposal_messageType{} -type fastReflection_PrepareProposalRequest_messageType struct{} +type fastReflection_RequestPrepareProposal_messageType struct{} -func (x fastReflection_PrepareProposalRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_PrepareProposalRequest)(nil) +func (x fastReflection_RequestPrepareProposal_messageType) Zero() protoreflect.Message { + return (*fastReflection_RequestPrepareProposal)(nil) } -func (x fastReflection_PrepareProposalRequest_messageType) New() protoreflect.Message { - return new(fastReflection_PrepareProposalRequest) +func (x fastReflection_RequestPrepareProposal_messageType) New() protoreflect.Message { + return new(fastReflection_RequestPrepareProposal) } -func (x fastReflection_PrepareProposalRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_PrepareProposalRequest +func (x fastReflection_RequestPrepareProposal_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_RequestPrepareProposal } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_PrepareProposalRequest) Descriptor() protoreflect.MessageDescriptor { - return md_PrepareProposalRequest +func (x *fastReflection_RequestPrepareProposal) Descriptor() protoreflect.MessageDescriptor { + return md_RequestPrepareProposal } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_PrepareProposalRequest) Type() protoreflect.MessageType { - return _fastReflection_PrepareProposalRequest_messageType +func (x *fastReflection_RequestPrepareProposal) Type() protoreflect.MessageType { + return _fastReflection_RequestPrepareProposal_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_PrepareProposalRequest) New() protoreflect.Message { - return new(fastReflection_PrepareProposalRequest) +func (x *fastReflection_RequestPrepareProposal) New() protoreflect.Message { + return new(fastReflection_RequestPrepareProposal) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_PrepareProposalRequest) Interface() protoreflect.ProtoMessage { - return (*PrepareProposalRequest)(x) +func (x *fastReflection_RequestPrepareProposal) Interface() protoreflect.ProtoMessage { + return (*RequestPrepareProposal)(x) } // Range iterates over every populated field in an undefined order, @@ -7739,52 +7737,52 @@ func (x *fastReflection_PrepareProposalRequest) Interface() protoreflect.ProtoMe // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_PrepareProposalRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_RequestPrepareProposal) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.MaxTxBytes != int64(0) { value := protoreflect.ValueOfInt64(x.MaxTxBytes) - if !f(fd_PrepareProposalRequest_max_tx_bytes, value) { + if !f(fd_RequestPrepareProposal_max_tx_bytes, value) { return } } if len(x.Txs) != 0 { - value := protoreflect.ValueOfList(&_PrepareProposalRequest_2_list{list: &x.Txs}) - if !f(fd_PrepareProposalRequest_txs, value) { + value := protoreflect.ValueOfList(&_RequestPrepareProposal_2_list{list: &x.Txs}) + if !f(fd_RequestPrepareProposal_txs, value) { return } } if x.LocalLastCommit != nil { value := protoreflect.ValueOfMessage(x.LocalLastCommit.ProtoReflect()) - if !f(fd_PrepareProposalRequest_local_last_commit, value) { + if !f(fd_RequestPrepareProposal_local_last_commit, value) { return } } if len(x.Misbehavior) != 0 { - value := protoreflect.ValueOfList(&_PrepareProposalRequest_4_list{list: &x.Misbehavior}) - if !f(fd_PrepareProposalRequest_misbehavior, value) { + value := protoreflect.ValueOfList(&_RequestPrepareProposal_4_list{list: &x.Misbehavior}) + if !f(fd_RequestPrepareProposal_misbehavior, value) { return } } if x.Height != int64(0) { value := protoreflect.ValueOfInt64(x.Height) - if !f(fd_PrepareProposalRequest_height, value) { + if !f(fd_RequestPrepareProposal_height, value) { return } } if x.Time != nil { value := protoreflect.ValueOfMessage(x.Time.ProtoReflect()) - if !f(fd_PrepareProposalRequest_time, value) { + if !f(fd_RequestPrepareProposal_time, value) { return } } if len(x.NextValidatorsHash) != 0 { value := protoreflect.ValueOfBytes(x.NextValidatorsHash) - if !f(fd_PrepareProposalRequest_next_validators_hash, value) { + if !f(fd_RequestPrepareProposal_next_validators_hash, value) { return } } if len(x.ProposerAddress) != 0 { value := protoreflect.ValueOfBytes(x.ProposerAddress) - if !f(fd_PrepareProposalRequest_proposer_address, value) { + if !f(fd_RequestPrepareProposal_proposer_address, value) { return } } @@ -7801,29 +7799,29 @@ func (x *fastReflection_PrepareProposalRequest) Range(f func(protoreflect.FieldD // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_PrepareProposalRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_RequestPrepareProposal) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.PrepareProposalRequest.max_tx_bytes": + case "tendermint.abci.RequestPrepareProposal.max_tx_bytes": return x.MaxTxBytes != int64(0) - case "cometbft.abci.v2.PrepareProposalRequest.txs": + case "tendermint.abci.RequestPrepareProposal.txs": return len(x.Txs) != 0 - case "cometbft.abci.v2.PrepareProposalRequest.local_last_commit": + case "tendermint.abci.RequestPrepareProposal.local_last_commit": return x.LocalLastCommit != nil - case "cometbft.abci.v2.PrepareProposalRequest.misbehavior": + case "tendermint.abci.RequestPrepareProposal.misbehavior": return len(x.Misbehavior) != 0 - case "cometbft.abci.v2.PrepareProposalRequest.height": + case "tendermint.abci.RequestPrepareProposal.height": return x.Height != int64(0) - case "cometbft.abci.v2.PrepareProposalRequest.time": + case "tendermint.abci.RequestPrepareProposal.time": return x.Time != nil - case "cometbft.abci.v2.PrepareProposalRequest.next_validators_hash": + case "tendermint.abci.RequestPrepareProposal.next_validators_hash": return len(x.NextValidatorsHash) != 0 - case "cometbft.abci.v2.PrepareProposalRequest.proposer_address": + case "tendermint.abci.RequestPrepareProposal.proposer_address": return len(x.ProposerAddress) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.PrepareProposalRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestPrepareProposal")) } - panic(fmt.Errorf("message cometbft.abci.v2.PrepareProposalRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestPrepareProposal does not contain field %s", fd.FullName())) } } @@ -7833,29 +7831,29 @@ func (x *fastReflection_PrepareProposalRequest) Has(fd protoreflect.FieldDescrip // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PrepareProposalRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_RequestPrepareProposal) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.PrepareProposalRequest.max_tx_bytes": + case "tendermint.abci.RequestPrepareProposal.max_tx_bytes": x.MaxTxBytes = int64(0) - case "cometbft.abci.v2.PrepareProposalRequest.txs": + case "tendermint.abci.RequestPrepareProposal.txs": x.Txs = nil - case "cometbft.abci.v2.PrepareProposalRequest.local_last_commit": + case "tendermint.abci.RequestPrepareProposal.local_last_commit": x.LocalLastCommit = nil - case "cometbft.abci.v2.PrepareProposalRequest.misbehavior": + case "tendermint.abci.RequestPrepareProposal.misbehavior": x.Misbehavior = nil - case "cometbft.abci.v2.PrepareProposalRequest.height": + case "tendermint.abci.RequestPrepareProposal.height": x.Height = int64(0) - case "cometbft.abci.v2.PrepareProposalRequest.time": + case "tendermint.abci.RequestPrepareProposal.time": x.Time = nil - case "cometbft.abci.v2.PrepareProposalRequest.next_validators_hash": + case "tendermint.abci.RequestPrepareProposal.next_validators_hash": x.NextValidatorsHash = nil - case "cometbft.abci.v2.PrepareProposalRequest.proposer_address": + case "tendermint.abci.RequestPrepareProposal.proposer_address": x.ProposerAddress = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.PrepareProposalRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestPrepareProposal")) } - panic(fmt.Errorf("message cometbft.abci.v2.PrepareProposalRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestPrepareProposal does not contain field %s", fd.FullName())) } } @@ -7865,43 +7863,43 @@ func (x *fastReflection_PrepareProposalRequest) Clear(fd protoreflect.FieldDescr // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_PrepareProposalRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestPrepareProposal) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.PrepareProposalRequest.max_tx_bytes": + case "tendermint.abci.RequestPrepareProposal.max_tx_bytes": value := x.MaxTxBytes return protoreflect.ValueOfInt64(value) - case "cometbft.abci.v2.PrepareProposalRequest.txs": + case "tendermint.abci.RequestPrepareProposal.txs": if len(x.Txs) == 0 { - return protoreflect.ValueOfList(&_PrepareProposalRequest_2_list{}) + return protoreflect.ValueOfList(&_RequestPrepareProposal_2_list{}) } - listValue := &_PrepareProposalRequest_2_list{list: &x.Txs} + listValue := &_RequestPrepareProposal_2_list{list: &x.Txs} return protoreflect.ValueOfList(listValue) - case "cometbft.abci.v2.PrepareProposalRequest.local_last_commit": + case "tendermint.abci.RequestPrepareProposal.local_last_commit": value := x.LocalLastCommit return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.PrepareProposalRequest.misbehavior": + case "tendermint.abci.RequestPrepareProposal.misbehavior": if len(x.Misbehavior) == 0 { - return protoreflect.ValueOfList(&_PrepareProposalRequest_4_list{}) + return protoreflect.ValueOfList(&_RequestPrepareProposal_4_list{}) } - listValue := &_PrepareProposalRequest_4_list{list: &x.Misbehavior} + listValue := &_RequestPrepareProposal_4_list{list: &x.Misbehavior} return protoreflect.ValueOfList(listValue) - case "cometbft.abci.v2.PrepareProposalRequest.height": + case "tendermint.abci.RequestPrepareProposal.height": value := x.Height return protoreflect.ValueOfInt64(value) - case "cometbft.abci.v2.PrepareProposalRequest.time": + case "tendermint.abci.RequestPrepareProposal.time": value := x.Time return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.PrepareProposalRequest.next_validators_hash": + case "tendermint.abci.RequestPrepareProposal.next_validators_hash": value := x.NextValidatorsHash return protoreflect.ValueOfBytes(value) - case "cometbft.abci.v2.PrepareProposalRequest.proposer_address": + case "tendermint.abci.RequestPrepareProposal.proposer_address": value := x.ProposerAddress return protoreflect.ValueOfBytes(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.PrepareProposalRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestPrepareProposal")) } - panic(fmt.Errorf("message cometbft.abci.v2.PrepareProposalRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestPrepareProposal does not contain field %s", descriptor.FullName())) } } @@ -7915,33 +7913,33 @@ func (x *fastReflection_PrepareProposalRequest) Get(descriptor protoreflect.Fiel // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PrepareProposalRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_RequestPrepareProposal) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.PrepareProposalRequest.max_tx_bytes": + case "tendermint.abci.RequestPrepareProposal.max_tx_bytes": x.MaxTxBytes = value.Int() - case "cometbft.abci.v2.PrepareProposalRequest.txs": + case "tendermint.abci.RequestPrepareProposal.txs": lv := value.List() - clv := lv.(*_PrepareProposalRequest_2_list) + clv := lv.(*_RequestPrepareProposal_2_list) x.Txs = *clv.list - case "cometbft.abci.v2.PrepareProposalRequest.local_last_commit": + case "tendermint.abci.RequestPrepareProposal.local_last_commit": x.LocalLastCommit = value.Message().Interface().(*ExtendedCommitInfo) - case "cometbft.abci.v2.PrepareProposalRequest.misbehavior": + case "tendermint.abci.RequestPrepareProposal.misbehavior": lv := value.List() - clv := lv.(*_PrepareProposalRequest_4_list) + clv := lv.(*_RequestPrepareProposal_4_list) x.Misbehavior = *clv.list - case "cometbft.abci.v2.PrepareProposalRequest.height": + case "tendermint.abci.RequestPrepareProposal.height": x.Height = value.Int() - case "cometbft.abci.v2.PrepareProposalRequest.time": + case "tendermint.abci.RequestPrepareProposal.time": x.Time = value.Message().Interface().(*timestamppb.Timestamp) - case "cometbft.abci.v2.PrepareProposalRequest.next_validators_hash": + case "tendermint.abci.RequestPrepareProposal.next_validators_hash": x.NextValidatorsHash = value.Bytes() - case "cometbft.abci.v2.PrepareProposalRequest.proposer_address": + case "tendermint.abci.RequestPrepareProposal.proposer_address": x.ProposerAddress = value.Bytes() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.PrepareProposalRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestPrepareProposal")) } - panic(fmt.Errorf("message cometbft.abci.v2.PrepareProposalRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestPrepareProposal does not contain field %s", fd.FullName())) } } @@ -7955,86 +7953,86 @@ func (x *fastReflection_PrepareProposalRequest) Set(fd protoreflect.FieldDescrip // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PrepareProposalRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestPrepareProposal) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.PrepareProposalRequest.txs": + case "tendermint.abci.RequestPrepareProposal.txs": if x.Txs == nil { x.Txs = [][]byte{} } - value := &_PrepareProposalRequest_2_list{list: &x.Txs} + value := &_RequestPrepareProposal_2_list{list: &x.Txs} return protoreflect.ValueOfList(value) - case "cometbft.abci.v2.PrepareProposalRequest.local_last_commit": + case "tendermint.abci.RequestPrepareProposal.local_last_commit": if x.LocalLastCommit == nil { x.LocalLastCommit = new(ExtendedCommitInfo) } return protoreflect.ValueOfMessage(x.LocalLastCommit.ProtoReflect()) - case "cometbft.abci.v2.PrepareProposalRequest.misbehavior": + case "tendermint.abci.RequestPrepareProposal.misbehavior": if x.Misbehavior == nil { x.Misbehavior = []*Misbehavior{} } - value := &_PrepareProposalRequest_4_list{list: &x.Misbehavior} + value := &_RequestPrepareProposal_4_list{list: &x.Misbehavior} return protoreflect.ValueOfList(value) - case "cometbft.abci.v2.PrepareProposalRequest.time": + case "tendermint.abci.RequestPrepareProposal.time": if x.Time == nil { x.Time = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.Time.ProtoReflect()) - case "cometbft.abci.v2.PrepareProposalRequest.max_tx_bytes": - panic(fmt.Errorf("field max_tx_bytes of message cometbft.abci.v2.PrepareProposalRequest is not mutable")) - case "cometbft.abci.v2.PrepareProposalRequest.height": - panic(fmt.Errorf("field height of message cometbft.abci.v2.PrepareProposalRequest is not mutable")) - case "cometbft.abci.v2.PrepareProposalRequest.next_validators_hash": - panic(fmt.Errorf("field next_validators_hash of message cometbft.abci.v2.PrepareProposalRequest is not mutable")) - case "cometbft.abci.v2.PrepareProposalRequest.proposer_address": - panic(fmt.Errorf("field proposer_address of message cometbft.abci.v2.PrepareProposalRequest is not mutable")) + case "tendermint.abci.RequestPrepareProposal.max_tx_bytes": + panic(fmt.Errorf("field max_tx_bytes of message tendermint.abci.RequestPrepareProposal is not mutable")) + case "tendermint.abci.RequestPrepareProposal.height": + panic(fmt.Errorf("field height of message tendermint.abci.RequestPrepareProposal is not mutable")) + case "tendermint.abci.RequestPrepareProposal.next_validators_hash": + panic(fmt.Errorf("field next_validators_hash of message tendermint.abci.RequestPrepareProposal is not mutable")) + case "tendermint.abci.RequestPrepareProposal.proposer_address": + panic(fmt.Errorf("field proposer_address of message tendermint.abci.RequestPrepareProposal is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.PrepareProposalRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestPrepareProposal")) } - panic(fmt.Errorf("message cometbft.abci.v2.PrepareProposalRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestPrepareProposal does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_PrepareProposalRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestPrepareProposal) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.PrepareProposalRequest.max_tx_bytes": + case "tendermint.abci.RequestPrepareProposal.max_tx_bytes": return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.abci.v2.PrepareProposalRequest.txs": + case "tendermint.abci.RequestPrepareProposal.txs": list := [][]byte{} - return protoreflect.ValueOfList(&_PrepareProposalRequest_2_list{list: &list}) - case "cometbft.abci.v2.PrepareProposalRequest.local_last_commit": + return protoreflect.ValueOfList(&_RequestPrepareProposal_2_list{list: &list}) + case "tendermint.abci.RequestPrepareProposal.local_last_commit": m := new(ExtendedCommitInfo) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.abci.v2.PrepareProposalRequest.misbehavior": + case "tendermint.abci.RequestPrepareProposal.misbehavior": list := []*Misbehavior{} - return protoreflect.ValueOfList(&_PrepareProposalRequest_4_list{list: &list}) - case "cometbft.abci.v2.PrepareProposalRequest.height": + return protoreflect.ValueOfList(&_RequestPrepareProposal_4_list{list: &list}) + case "tendermint.abci.RequestPrepareProposal.height": return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.abci.v2.PrepareProposalRequest.time": + case "tendermint.abci.RequestPrepareProposal.time": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.abci.v2.PrepareProposalRequest.next_validators_hash": + case "tendermint.abci.RequestPrepareProposal.next_validators_hash": return protoreflect.ValueOfBytes(nil) - case "cometbft.abci.v2.PrepareProposalRequest.proposer_address": + case "tendermint.abci.RequestPrepareProposal.proposer_address": return protoreflect.ValueOfBytes(nil) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.PrepareProposalRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestPrepareProposal")) } - panic(fmt.Errorf("message cometbft.abci.v2.PrepareProposalRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestPrepareProposal does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_PrepareProposalRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_RequestPrepareProposal) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.PrepareProposalRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.RequestPrepareProposal", d.FullName())) } panic("unreachable") } @@ -8042,7 +8040,7 @@ func (x *fastReflection_PrepareProposalRequest) WhichOneof(d protoreflect.OneofD // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_PrepareProposalRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_RequestPrepareProposal) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -8053,7 +8051,7 @@ func (x *fastReflection_PrepareProposalRequest) GetUnknown() protoreflect.RawFie // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PrepareProposalRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_RequestPrepareProposal) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -8065,7 +8063,7 @@ func (x *fastReflection_PrepareProposalRequest) SetUnknown(fields protoreflect.R // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_PrepareProposalRequest) IsValid() bool { +func (x *fastReflection_RequestPrepareProposal) IsValid() bool { return x != nil } @@ -8075,9 +8073,9 @@ func (x *fastReflection_PrepareProposalRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_PrepareProposalRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_RequestPrepareProposal) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*PrepareProposalRequest) + x := input.Message.Interface().(*RequestPrepareProposal) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8133,7 +8131,7 @@ func (x *fastReflection_PrepareProposalRequest) ProtoMethods() *protoiface.Metho } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*PrepareProposalRequest) + x := input.Message.Interface().(*RequestPrepareProposal) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8240,7 +8238,7 @@ func (x *fastReflection_PrepareProposalRequest) ProtoMethods() *protoiface.Metho }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*PrepareProposalRequest) + x := input.Message.Interface().(*RequestPrepareProposal) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8272,10 +8270,10 @@ func (x *fastReflection_PrepareProposalRequest) ProtoMethods() *protoiface.Metho fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PrepareProposalRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestPrepareProposal: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PrepareProposalRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestPrepareProposal: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -8557,138 +8555,138 @@ func (x *fastReflection_PrepareProposalRequest) ProtoMethods() *protoiface.Metho } } -var _ protoreflect.List = (*_ProcessProposalRequest_1_list)(nil) +var _ protoreflect.List = (*_RequestProcessProposal_1_list)(nil) -type _ProcessProposalRequest_1_list struct { +type _RequestProcessProposal_1_list struct { list *[][]byte } -func (x *_ProcessProposalRequest_1_list) Len() int { +func (x *_RequestProcessProposal_1_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_ProcessProposalRequest_1_list) Get(i int) protoreflect.Value { +func (x *_RequestProcessProposal_1_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfBytes((*x.list)[i]) } -func (x *_ProcessProposalRequest_1_list) Set(i int, value protoreflect.Value) { +func (x *_RequestProcessProposal_1_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Bytes() concreteValue := valueUnwrapped (*x.list)[i] = concreteValue } -func (x *_ProcessProposalRequest_1_list) Append(value protoreflect.Value) { +func (x *_RequestProcessProposal_1_list) Append(value protoreflect.Value) { valueUnwrapped := value.Bytes() concreteValue := valueUnwrapped *x.list = append(*x.list, concreteValue) } -func (x *_ProcessProposalRequest_1_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message ProcessProposalRequest at list field Txs as it is not of Message kind")) +func (x *_RequestProcessProposal_1_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message RequestProcessProposal at list field Txs as it is not of Message kind")) } -func (x *_ProcessProposalRequest_1_list) Truncate(n int) { +func (x *_RequestProcessProposal_1_list) Truncate(n int) { *x.list = (*x.list)[:n] } -func (x *_ProcessProposalRequest_1_list) NewElement() protoreflect.Value { +func (x *_RequestProcessProposal_1_list) NewElement() protoreflect.Value { var v []byte return protoreflect.ValueOfBytes(v) } -func (x *_ProcessProposalRequest_1_list) IsValid() bool { +func (x *_RequestProcessProposal_1_list) IsValid() bool { return x.list != nil } -var _ protoreflect.List = (*_ProcessProposalRequest_3_list)(nil) +var _ protoreflect.List = (*_RequestProcessProposal_3_list)(nil) -type _ProcessProposalRequest_3_list struct { +type _RequestProcessProposal_3_list struct { list *[]*Misbehavior } -func (x *_ProcessProposalRequest_3_list) Len() int { +func (x *_RequestProcessProposal_3_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_ProcessProposalRequest_3_list) Get(i int) protoreflect.Value { +func (x *_RequestProcessProposal_3_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_ProcessProposalRequest_3_list) Set(i int, value protoreflect.Value) { +func (x *_RequestProcessProposal_3_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*Misbehavior) (*x.list)[i] = concreteValue } -func (x *_ProcessProposalRequest_3_list) Append(value protoreflect.Value) { +func (x *_RequestProcessProposal_3_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*Misbehavior) *x.list = append(*x.list, concreteValue) } -func (x *_ProcessProposalRequest_3_list) AppendMutable() protoreflect.Value { +func (x *_RequestProcessProposal_3_list) AppendMutable() protoreflect.Value { v := new(Misbehavior) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_ProcessProposalRequest_3_list) Truncate(n int) { +func (x *_RequestProcessProposal_3_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_ProcessProposalRequest_3_list) NewElement() protoreflect.Value { +func (x *_RequestProcessProposal_3_list) NewElement() protoreflect.Value { v := new(Misbehavior) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_ProcessProposalRequest_3_list) IsValid() bool { +func (x *_RequestProcessProposal_3_list) IsValid() bool { return x.list != nil } var ( - md_ProcessProposalRequest protoreflect.MessageDescriptor - fd_ProcessProposalRequest_txs protoreflect.FieldDescriptor - fd_ProcessProposalRequest_proposed_last_commit protoreflect.FieldDescriptor - fd_ProcessProposalRequest_misbehavior protoreflect.FieldDescriptor - fd_ProcessProposalRequest_hash protoreflect.FieldDescriptor - fd_ProcessProposalRequest_height protoreflect.FieldDescriptor - fd_ProcessProposalRequest_time protoreflect.FieldDescriptor - fd_ProcessProposalRequest_next_validators_hash protoreflect.FieldDescriptor - fd_ProcessProposalRequest_proposer_address protoreflect.FieldDescriptor + md_RequestProcessProposal protoreflect.MessageDescriptor + fd_RequestProcessProposal_txs protoreflect.FieldDescriptor + fd_RequestProcessProposal_proposed_last_commit protoreflect.FieldDescriptor + fd_RequestProcessProposal_misbehavior protoreflect.FieldDescriptor + fd_RequestProcessProposal_hash protoreflect.FieldDescriptor + fd_RequestProcessProposal_height protoreflect.FieldDescriptor + fd_RequestProcessProposal_time protoreflect.FieldDescriptor + fd_RequestProcessProposal_next_validators_hash protoreflect.FieldDescriptor + fd_RequestProcessProposal_proposer_address protoreflect.FieldDescriptor ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_ProcessProposalRequest = File_cometbft_abci_v2_types_proto.Messages().ByName("ProcessProposalRequest") - fd_ProcessProposalRequest_txs = md_ProcessProposalRequest.Fields().ByName("txs") - fd_ProcessProposalRequest_proposed_last_commit = md_ProcessProposalRequest.Fields().ByName("proposed_last_commit") - fd_ProcessProposalRequest_misbehavior = md_ProcessProposalRequest.Fields().ByName("misbehavior") - fd_ProcessProposalRequest_hash = md_ProcessProposalRequest.Fields().ByName("hash") - fd_ProcessProposalRequest_height = md_ProcessProposalRequest.Fields().ByName("height") - fd_ProcessProposalRequest_time = md_ProcessProposalRequest.Fields().ByName("time") - fd_ProcessProposalRequest_next_validators_hash = md_ProcessProposalRequest.Fields().ByName("next_validators_hash") - fd_ProcessProposalRequest_proposer_address = md_ProcessProposalRequest.Fields().ByName("proposer_address") + file_tendermint_abci_types_proto_init() + md_RequestProcessProposal = File_tendermint_abci_types_proto.Messages().ByName("RequestProcessProposal") + fd_RequestProcessProposal_txs = md_RequestProcessProposal.Fields().ByName("txs") + fd_RequestProcessProposal_proposed_last_commit = md_RequestProcessProposal.Fields().ByName("proposed_last_commit") + fd_RequestProcessProposal_misbehavior = md_RequestProcessProposal.Fields().ByName("misbehavior") + fd_RequestProcessProposal_hash = md_RequestProcessProposal.Fields().ByName("hash") + fd_RequestProcessProposal_height = md_RequestProcessProposal.Fields().ByName("height") + fd_RequestProcessProposal_time = md_RequestProcessProposal.Fields().ByName("time") + fd_RequestProcessProposal_next_validators_hash = md_RequestProcessProposal.Fields().ByName("next_validators_hash") + fd_RequestProcessProposal_proposer_address = md_RequestProcessProposal.Fields().ByName("proposer_address") } -var _ protoreflect.Message = (*fastReflection_ProcessProposalRequest)(nil) +var _ protoreflect.Message = (*fastReflection_RequestProcessProposal)(nil) -type fastReflection_ProcessProposalRequest ProcessProposalRequest +type fastReflection_RequestProcessProposal RequestProcessProposal -func (x *ProcessProposalRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_ProcessProposalRequest)(x) +func (x *RequestProcessProposal) ProtoReflect() protoreflect.Message { + return (*fastReflection_RequestProcessProposal)(x) } -func (x *ProcessProposalRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[13] +func (x *RequestProcessProposal) slowProtoReflect() protoreflect.Message { + mi := &file_tendermint_abci_types_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8699,43 +8697,43 @@ func (x *ProcessProposalRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_ProcessProposalRequest_messageType fastReflection_ProcessProposalRequest_messageType -var _ protoreflect.MessageType = fastReflection_ProcessProposalRequest_messageType{} +var _fastReflection_RequestProcessProposal_messageType fastReflection_RequestProcessProposal_messageType +var _ protoreflect.MessageType = fastReflection_RequestProcessProposal_messageType{} -type fastReflection_ProcessProposalRequest_messageType struct{} +type fastReflection_RequestProcessProposal_messageType struct{} -func (x fastReflection_ProcessProposalRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_ProcessProposalRequest)(nil) +func (x fastReflection_RequestProcessProposal_messageType) Zero() protoreflect.Message { + return (*fastReflection_RequestProcessProposal)(nil) } -func (x fastReflection_ProcessProposalRequest_messageType) New() protoreflect.Message { - return new(fastReflection_ProcessProposalRequest) +func (x fastReflection_RequestProcessProposal_messageType) New() protoreflect.Message { + return new(fastReflection_RequestProcessProposal) } -func (x fastReflection_ProcessProposalRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_ProcessProposalRequest +func (x fastReflection_RequestProcessProposal_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_RequestProcessProposal } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_ProcessProposalRequest) Descriptor() protoreflect.MessageDescriptor { - return md_ProcessProposalRequest +func (x *fastReflection_RequestProcessProposal) Descriptor() protoreflect.MessageDescriptor { + return md_RequestProcessProposal } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_ProcessProposalRequest) Type() protoreflect.MessageType { - return _fastReflection_ProcessProposalRequest_messageType +func (x *fastReflection_RequestProcessProposal) Type() protoreflect.MessageType { + return _fastReflection_RequestProcessProposal_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_ProcessProposalRequest) New() protoreflect.Message { - return new(fastReflection_ProcessProposalRequest) +func (x *fastReflection_RequestProcessProposal) New() protoreflect.Message { + return new(fastReflection_RequestProcessProposal) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_ProcessProposalRequest) Interface() protoreflect.ProtoMessage { - return (*ProcessProposalRequest)(x) +func (x *fastReflection_RequestProcessProposal) Interface() protoreflect.ProtoMessage { + return (*RequestProcessProposal)(x) } // Range iterates over every populated field in an undefined order, @@ -8743,52 +8741,52 @@ func (x *fastReflection_ProcessProposalRequest) Interface() protoreflect.ProtoMe // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_ProcessProposalRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_RequestProcessProposal) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if len(x.Txs) != 0 { - value := protoreflect.ValueOfList(&_ProcessProposalRequest_1_list{list: &x.Txs}) - if !f(fd_ProcessProposalRequest_txs, value) { + value := protoreflect.ValueOfList(&_RequestProcessProposal_1_list{list: &x.Txs}) + if !f(fd_RequestProcessProposal_txs, value) { return } } if x.ProposedLastCommit != nil { value := protoreflect.ValueOfMessage(x.ProposedLastCommit.ProtoReflect()) - if !f(fd_ProcessProposalRequest_proposed_last_commit, value) { + if !f(fd_RequestProcessProposal_proposed_last_commit, value) { return } } if len(x.Misbehavior) != 0 { - value := protoreflect.ValueOfList(&_ProcessProposalRequest_3_list{list: &x.Misbehavior}) - if !f(fd_ProcessProposalRequest_misbehavior, value) { + value := protoreflect.ValueOfList(&_RequestProcessProposal_3_list{list: &x.Misbehavior}) + if !f(fd_RequestProcessProposal_misbehavior, value) { return } } if len(x.Hash) != 0 { value := protoreflect.ValueOfBytes(x.Hash) - if !f(fd_ProcessProposalRequest_hash, value) { + if !f(fd_RequestProcessProposal_hash, value) { return } } if x.Height != int64(0) { value := protoreflect.ValueOfInt64(x.Height) - if !f(fd_ProcessProposalRequest_height, value) { + if !f(fd_RequestProcessProposal_height, value) { return } } if x.Time != nil { value := protoreflect.ValueOfMessage(x.Time.ProtoReflect()) - if !f(fd_ProcessProposalRequest_time, value) { + if !f(fd_RequestProcessProposal_time, value) { return } } if len(x.NextValidatorsHash) != 0 { value := protoreflect.ValueOfBytes(x.NextValidatorsHash) - if !f(fd_ProcessProposalRequest_next_validators_hash, value) { + if !f(fd_RequestProcessProposal_next_validators_hash, value) { return } } if len(x.ProposerAddress) != 0 { value := protoreflect.ValueOfBytes(x.ProposerAddress) - if !f(fd_ProcessProposalRequest_proposer_address, value) { + if !f(fd_RequestProcessProposal_proposer_address, value) { return } } @@ -8805,29 +8803,29 @@ func (x *fastReflection_ProcessProposalRequest) Range(f func(protoreflect.FieldD // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_ProcessProposalRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_RequestProcessProposal) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.ProcessProposalRequest.txs": + case "tendermint.abci.RequestProcessProposal.txs": return len(x.Txs) != 0 - case "cometbft.abci.v2.ProcessProposalRequest.proposed_last_commit": + case "tendermint.abci.RequestProcessProposal.proposed_last_commit": return x.ProposedLastCommit != nil - case "cometbft.abci.v2.ProcessProposalRequest.misbehavior": + case "tendermint.abci.RequestProcessProposal.misbehavior": return len(x.Misbehavior) != 0 - case "cometbft.abci.v2.ProcessProposalRequest.hash": + case "tendermint.abci.RequestProcessProposal.hash": return len(x.Hash) != 0 - case "cometbft.abci.v2.ProcessProposalRequest.height": + case "tendermint.abci.RequestProcessProposal.height": return x.Height != int64(0) - case "cometbft.abci.v2.ProcessProposalRequest.time": + case "tendermint.abci.RequestProcessProposal.time": return x.Time != nil - case "cometbft.abci.v2.ProcessProposalRequest.next_validators_hash": + case "tendermint.abci.RequestProcessProposal.next_validators_hash": return len(x.NextValidatorsHash) != 0 - case "cometbft.abci.v2.ProcessProposalRequest.proposer_address": + case "tendermint.abci.RequestProcessProposal.proposer_address": return len(x.ProposerAddress) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ProcessProposalRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestProcessProposal")) } - panic(fmt.Errorf("message cometbft.abci.v2.ProcessProposalRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestProcessProposal does not contain field %s", fd.FullName())) } } @@ -8837,29 +8835,29 @@ func (x *fastReflection_ProcessProposalRequest) Has(fd protoreflect.FieldDescrip // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ProcessProposalRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_RequestProcessProposal) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.ProcessProposalRequest.txs": + case "tendermint.abci.RequestProcessProposal.txs": x.Txs = nil - case "cometbft.abci.v2.ProcessProposalRequest.proposed_last_commit": + case "tendermint.abci.RequestProcessProposal.proposed_last_commit": x.ProposedLastCommit = nil - case "cometbft.abci.v2.ProcessProposalRequest.misbehavior": + case "tendermint.abci.RequestProcessProposal.misbehavior": x.Misbehavior = nil - case "cometbft.abci.v2.ProcessProposalRequest.hash": + case "tendermint.abci.RequestProcessProposal.hash": x.Hash = nil - case "cometbft.abci.v2.ProcessProposalRequest.height": + case "tendermint.abci.RequestProcessProposal.height": x.Height = int64(0) - case "cometbft.abci.v2.ProcessProposalRequest.time": + case "tendermint.abci.RequestProcessProposal.time": x.Time = nil - case "cometbft.abci.v2.ProcessProposalRequest.next_validators_hash": + case "tendermint.abci.RequestProcessProposal.next_validators_hash": x.NextValidatorsHash = nil - case "cometbft.abci.v2.ProcessProposalRequest.proposer_address": + case "tendermint.abci.RequestProcessProposal.proposer_address": x.ProposerAddress = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ProcessProposalRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestProcessProposal")) } - panic(fmt.Errorf("message cometbft.abci.v2.ProcessProposalRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestProcessProposal does not contain field %s", fd.FullName())) } } @@ -8869,43 +8867,43 @@ func (x *fastReflection_ProcessProposalRequest) Clear(fd protoreflect.FieldDescr // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_ProcessProposalRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestProcessProposal) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.ProcessProposalRequest.txs": + case "tendermint.abci.RequestProcessProposal.txs": if len(x.Txs) == 0 { - return protoreflect.ValueOfList(&_ProcessProposalRequest_1_list{}) + return protoreflect.ValueOfList(&_RequestProcessProposal_1_list{}) } - listValue := &_ProcessProposalRequest_1_list{list: &x.Txs} + listValue := &_RequestProcessProposal_1_list{list: &x.Txs} return protoreflect.ValueOfList(listValue) - case "cometbft.abci.v2.ProcessProposalRequest.proposed_last_commit": + case "tendermint.abci.RequestProcessProposal.proposed_last_commit": value := x.ProposedLastCommit return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.ProcessProposalRequest.misbehavior": + case "tendermint.abci.RequestProcessProposal.misbehavior": if len(x.Misbehavior) == 0 { - return protoreflect.ValueOfList(&_ProcessProposalRequest_3_list{}) + return protoreflect.ValueOfList(&_RequestProcessProposal_3_list{}) } - listValue := &_ProcessProposalRequest_3_list{list: &x.Misbehavior} + listValue := &_RequestProcessProposal_3_list{list: &x.Misbehavior} return protoreflect.ValueOfList(listValue) - case "cometbft.abci.v2.ProcessProposalRequest.hash": + case "tendermint.abci.RequestProcessProposal.hash": value := x.Hash return protoreflect.ValueOfBytes(value) - case "cometbft.abci.v2.ProcessProposalRequest.height": + case "tendermint.abci.RequestProcessProposal.height": value := x.Height return protoreflect.ValueOfInt64(value) - case "cometbft.abci.v2.ProcessProposalRequest.time": + case "tendermint.abci.RequestProcessProposal.time": value := x.Time return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.ProcessProposalRequest.next_validators_hash": + case "tendermint.abci.RequestProcessProposal.next_validators_hash": value := x.NextValidatorsHash return protoreflect.ValueOfBytes(value) - case "cometbft.abci.v2.ProcessProposalRequest.proposer_address": + case "tendermint.abci.RequestProcessProposal.proposer_address": value := x.ProposerAddress return protoreflect.ValueOfBytes(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ProcessProposalRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestProcessProposal")) } - panic(fmt.Errorf("message cometbft.abci.v2.ProcessProposalRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestProcessProposal does not contain field %s", descriptor.FullName())) } } @@ -8919,33 +8917,33 @@ func (x *fastReflection_ProcessProposalRequest) Get(descriptor protoreflect.Fiel // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ProcessProposalRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_RequestProcessProposal) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.ProcessProposalRequest.txs": + case "tendermint.abci.RequestProcessProposal.txs": lv := value.List() - clv := lv.(*_ProcessProposalRequest_1_list) + clv := lv.(*_RequestProcessProposal_1_list) x.Txs = *clv.list - case "cometbft.abci.v2.ProcessProposalRequest.proposed_last_commit": + case "tendermint.abci.RequestProcessProposal.proposed_last_commit": x.ProposedLastCommit = value.Message().Interface().(*CommitInfo) - case "cometbft.abci.v2.ProcessProposalRequest.misbehavior": + case "tendermint.abci.RequestProcessProposal.misbehavior": lv := value.List() - clv := lv.(*_ProcessProposalRequest_3_list) + clv := lv.(*_RequestProcessProposal_3_list) x.Misbehavior = *clv.list - case "cometbft.abci.v2.ProcessProposalRequest.hash": + case "tendermint.abci.RequestProcessProposal.hash": x.Hash = value.Bytes() - case "cometbft.abci.v2.ProcessProposalRequest.height": + case "tendermint.abci.RequestProcessProposal.height": x.Height = value.Int() - case "cometbft.abci.v2.ProcessProposalRequest.time": + case "tendermint.abci.RequestProcessProposal.time": x.Time = value.Message().Interface().(*timestamppb.Timestamp) - case "cometbft.abci.v2.ProcessProposalRequest.next_validators_hash": + case "tendermint.abci.RequestProcessProposal.next_validators_hash": x.NextValidatorsHash = value.Bytes() - case "cometbft.abci.v2.ProcessProposalRequest.proposer_address": + case "tendermint.abci.RequestProcessProposal.proposer_address": x.ProposerAddress = value.Bytes() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ProcessProposalRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestProcessProposal")) } - panic(fmt.Errorf("message cometbft.abci.v2.ProcessProposalRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestProcessProposal does not contain field %s", fd.FullName())) } } @@ -8959,86 +8957,86 @@ func (x *fastReflection_ProcessProposalRequest) Set(fd protoreflect.FieldDescrip // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ProcessProposalRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestProcessProposal) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.ProcessProposalRequest.txs": + case "tendermint.abci.RequestProcessProposal.txs": if x.Txs == nil { x.Txs = [][]byte{} } - value := &_ProcessProposalRequest_1_list{list: &x.Txs} + value := &_RequestProcessProposal_1_list{list: &x.Txs} return protoreflect.ValueOfList(value) - case "cometbft.abci.v2.ProcessProposalRequest.proposed_last_commit": + case "tendermint.abci.RequestProcessProposal.proposed_last_commit": if x.ProposedLastCommit == nil { x.ProposedLastCommit = new(CommitInfo) } return protoreflect.ValueOfMessage(x.ProposedLastCommit.ProtoReflect()) - case "cometbft.abci.v2.ProcessProposalRequest.misbehavior": + case "tendermint.abci.RequestProcessProposal.misbehavior": if x.Misbehavior == nil { x.Misbehavior = []*Misbehavior{} } - value := &_ProcessProposalRequest_3_list{list: &x.Misbehavior} + value := &_RequestProcessProposal_3_list{list: &x.Misbehavior} return protoreflect.ValueOfList(value) - case "cometbft.abci.v2.ProcessProposalRequest.time": + case "tendermint.abci.RequestProcessProposal.time": if x.Time == nil { x.Time = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.Time.ProtoReflect()) - case "cometbft.abci.v2.ProcessProposalRequest.hash": - panic(fmt.Errorf("field hash of message cometbft.abci.v2.ProcessProposalRequest is not mutable")) - case "cometbft.abci.v2.ProcessProposalRequest.height": - panic(fmt.Errorf("field height of message cometbft.abci.v2.ProcessProposalRequest is not mutable")) - case "cometbft.abci.v2.ProcessProposalRequest.next_validators_hash": - panic(fmt.Errorf("field next_validators_hash of message cometbft.abci.v2.ProcessProposalRequest is not mutable")) - case "cometbft.abci.v2.ProcessProposalRequest.proposer_address": - panic(fmt.Errorf("field proposer_address of message cometbft.abci.v2.ProcessProposalRequest is not mutable")) + case "tendermint.abci.RequestProcessProposal.hash": + panic(fmt.Errorf("field hash of message tendermint.abci.RequestProcessProposal is not mutable")) + case "tendermint.abci.RequestProcessProposal.height": + panic(fmt.Errorf("field height of message tendermint.abci.RequestProcessProposal is not mutable")) + case "tendermint.abci.RequestProcessProposal.next_validators_hash": + panic(fmt.Errorf("field next_validators_hash of message tendermint.abci.RequestProcessProposal is not mutable")) + case "tendermint.abci.RequestProcessProposal.proposer_address": + panic(fmt.Errorf("field proposer_address of message tendermint.abci.RequestProcessProposal is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ProcessProposalRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestProcessProposal")) } - panic(fmt.Errorf("message cometbft.abci.v2.ProcessProposalRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestProcessProposal does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_ProcessProposalRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestProcessProposal) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.ProcessProposalRequest.txs": + case "tendermint.abci.RequestProcessProposal.txs": list := [][]byte{} - return protoreflect.ValueOfList(&_ProcessProposalRequest_1_list{list: &list}) - case "cometbft.abci.v2.ProcessProposalRequest.proposed_last_commit": + return protoreflect.ValueOfList(&_RequestProcessProposal_1_list{list: &list}) + case "tendermint.abci.RequestProcessProposal.proposed_last_commit": m := new(CommitInfo) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.abci.v2.ProcessProposalRequest.misbehavior": + case "tendermint.abci.RequestProcessProposal.misbehavior": list := []*Misbehavior{} - return protoreflect.ValueOfList(&_ProcessProposalRequest_3_list{list: &list}) - case "cometbft.abci.v2.ProcessProposalRequest.hash": + return protoreflect.ValueOfList(&_RequestProcessProposal_3_list{list: &list}) + case "tendermint.abci.RequestProcessProposal.hash": return protoreflect.ValueOfBytes(nil) - case "cometbft.abci.v2.ProcessProposalRequest.height": + case "tendermint.abci.RequestProcessProposal.height": return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.abci.v2.ProcessProposalRequest.time": + case "tendermint.abci.RequestProcessProposal.time": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.abci.v2.ProcessProposalRequest.next_validators_hash": + case "tendermint.abci.RequestProcessProposal.next_validators_hash": return protoreflect.ValueOfBytes(nil) - case "cometbft.abci.v2.ProcessProposalRequest.proposer_address": + case "tendermint.abci.RequestProcessProposal.proposer_address": return protoreflect.ValueOfBytes(nil) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ProcessProposalRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestProcessProposal")) } - panic(fmt.Errorf("message cometbft.abci.v2.ProcessProposalRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestProcessProposal does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_ProcessProposalRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_RequestProcessProposal) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.ProcessProposalRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.RequestProcessProposal", d.FullName())) } panic("unreachable") } @@ -9046,7 +9044,7 @@ func (x *fastReflection_ProcessProposalRequest) WhichOneof(d protoreflect.OneofD // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_ProcessProposalRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_RequestProcessProposal) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -9057,7 +9055,7 @@ func (x *fastReflection_ProcessProposalRequest) GetUnknown() protoreflect.RawFie // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ProcessProposalRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_RequestProcessProposal) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -9069,7 +9067,7 @@ func (x *fastReflection_ProcessProposalRequest) SetUnknown(fields protoreflect.R // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_ProcessProposalRequest) IsValid() bool { +func (x *fastReflection_RequestProcessProposal) IsValid() bool { return x != nil } @@ -9079,9 +9077,9 @@ func (x *fastReflection_ProcessProposalRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_ProcessProposalRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_RequestProcessProposal) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*ProcessProposalRequest) + x := input.Message.Interface().(*RequestProcessProposal) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9138,7 +9136,7 @@ func (x *fastReflection_ProcessProposalRequest) ProtoMethods() *protoiface.Metho } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*ProcessProposalRequest) + x := input.Message.Interface().(*RequestProcessProposal) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9247,7 +9245,7 @@ func (x *fastReflection_ProcessProposalRequest) ProtoMethods() *protoiface.Metho }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*ProcessProposalRequest) + x := input.Message.Interface().(*RequestProcessProposal) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9279,10 +9277,10 @@ func (x *fastReflection_ProcessProposalRequest) ProtoMethods() *protoiface.Metho fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ProcessProposalRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestProcessProposal: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ProcessProposalRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestProcessProposal: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -9579,138 +9577,138 @@ func (x *fastReflection_ProcessProposalRequest) ProtoMethods() *protoiface.Metho } } -var _ protoreflect.List = (*_ExtendVoteRequest_4_list)(nil) +var _ protoreflect.List = (*_RequestExtendVote_4_list)(nil) -type _ExtendVoteRequest_4_list struct { +type _RequestExtendVote_4_list struct { list *[][]byte } -func (x *_ExtendVoteRequest_4_list) Len() int { +func (x *_RequestExtendVote_4_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_ExtendVoteRequest_4_list) Get(i int) protoreflect.Value { +func (x *_RequestExtendVote_4_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfBytes((*x.list)[i]) } -func (x *_ExtendVoteRequest_4_list) Set(i int, value protoreflect.Value) { +func (x *_RequestExtendVote_4_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Bytes() concreteValue := valueUnwrapped (*x.list)[i] = concreteValue } -func (x *_ExtendVoteRequest_4_list) Append(value protoreflect.Value) { +func (x *_RequestExtendVote_4_list) Append(value protoreflect.Value) { valueUnwrapped := value.Bytes() concreteValue := valueUnwrapped *x.list = append(*x.list, concreteValue) } -func (x *_ExtendVoteRequest_4_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message ExtendVoteRequest at list field Txs as it is not of Message kind")) +func (x *_RequestExtendVote_4_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message RequestExtendVote at list field Txs as it is not of Message kind")) } -func (x *_ExtendVoteRequest_4_list) Truncate(n int) { +func (x *_RequestExtendVote_4_list) Truncate(n int) { *x.list = (*x.list)[:n] } -func (x *_ExtendVoteRequest_4_list) NewElement() protoreflect.Value { +func (x *_RequestExtendVote_4_list) NewElement() protoreflect.Value { var v []byte return protoreflect.ValueOfBytes(v) } -func (x *_ExtendVoteRequest_4_list) IsValid() bool { +func (x *_RequestExtendVote_4_list) IsValid() bool { return x.list != nil } -var _ protoreflect.List = (*_ExtendVoteRequest_6_list)(nil) +var _ protoreflect.List = (*_RequestExtendVote_6_list)(nil) -type _ExtendVoteRequest_6_list struct { +type _RequestExtendVote_6_list struct { list *[]*Misbehavior } -func (x *_ExtendVoteRequest_6_list) Len() int { +func (x *_RequestExtendVote_6_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_ExtendVoteRequest_6_list) Get(i int) protoreflect.Value { +func (x *_RequestExtendVote_6_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_ExtendVoteRequest_6_list) Set(i int, value protoreflect.Value) { +func (x *_RequestExtendVote_6_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*Misbehavior) (*x.list)[i] = concreteValue } -func (x *_ExtendVoteRequest_6_list) Append(value protoreflect.Value) { +func (x *_RequestExtendVote_6_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*Misbehavior) *x.list = append(*x.list, concreteValue) } -func (x *_ExtendVoteRequest_6_list) AppendMutable() protoreflect.Value { +func (x *_RequestExtendVote_6_list) AppendMutable() protoreflect.Value { v := new(Misbehavior) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_ExtendVoteRequest_6_list) Truncate(n int) { +func (x *_RequestExtendVote_6_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_ExtendVoteRequest_6_list) NewElement() protoreflect.Value { +func (x *_RequestExtendVote_6_list) NewElement() protoreflect.Value { v := new(Misbehavior) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_ExtendVoteRequest_6_list) IsValid() bool { +func (x *_RequestExtendVote_6_list) IsValid() bool { return x.list != nil } var ( - md_ExtendVoteRequest protoreflect.MessageDescriptor - fd_ExtendVoteRequest_hash protoreflect.FieldDescriptor - fd_ExtendVoteRequest_height protoreflect.FieldDescriptor - fd_ExtendVoteRequest_time protoreflect.FieldDescriptor - fd_ExtendVoteRequest_txs protoreflect.FieldDescriptor - fd_ExtendVoteRequest_proposed_last_commit protoreflect.FieldDescriptor - fd_ExtendVoteRequest_misbehavior protoreflect.FieldDescriptor - fd_ExtendVoteRequest_next_validators_hash protoreflect.FieldDescriptor - fd_ExtendVoteRequest_proposer_address protoreflect.FieldDescriptor + md_RequestExtendVote protoreflect.MessageDescriptor + fd_RequestExtendVote_hash protoreflect.FieldDescriptor + fd_RequestExtendVote_height protoreflect.FieldDescriptor + fd_RequestExtendVote_time protoreflect.FieldDescriptor + fd_RequestExtendVote_txs protoreflect.FieldDescriptor + fd_RequestExtendVote_proposed_last_commit protoreflect.FieldDescriptor + fd_RequestExtendVote_misbehavior protoreflect.FieldDescriptor + fd_RequestExtendVote_next_validators_hash protoreflect.FieldDescriptor + fd_RequestExtendVote_proposer_address protoreflect.FieldDescriptor ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_ExtendVoteRequest = File_cometbft_abci_v2_types_proto.Messages().ByName("ExtendVoteRequest") - fd_ExtendVoteRequest_hash = md_ExtendVoteRequest.Fields().ByName("hash") - fd_ExtendVoteRequest_height = md_ExtendVoteRequest.Fields().ByName("height") - fd_ExtendVoteRequest_time = md_ExtendVoteRequest.Fields().ByName("time") - fd_ExtendVoteRequest_txs = md_ExtendVoteRequest.Fields().ByName("txs") - fd_ExtendVoteRequest_proposed_last_commit = md_ExtendVoteRequest.Fields().ByName("proposed_last_commit") - fd_ExtendVoteRequest_misbehavior = md_ExtendVoteRequest.Fields().ByName("misbehavior") - fd_ExtendVoteRequest_next_validators_hash = md_ExtendVoteRequest.Fields().ByName("next_validators_hash") - fd_ExtendVoteRequest_proposer_address = md_ExtendVoteRequest.Fields().ByName("proposer_address") + file_tendermint_abci_types_proto_init() + md_RequestExtendVote = File_tendermint_abci_types_proto.Messages().ByName("RequestExtendVote") + fd_RequestExtendVote_hash = md_RequestExtendVote.Fields().ByName("hash") + fd_RequestExtendVote_height = md_RequestExtendVote.Fields().ByName("height") + fd_RequestExtendVote_time = md_RequestExtendVote.Fields().ByName("time") + fd_RequestExtendVote_txs = md_RequestExtendVote.Fields().ByName("txs") + fd_RequestExtendVote_proposed_last_commit = md_RequestExtendVote.Fields().ByName("proposed_last_commit") + fd_RequestExtendVote_misbehavior = md_RequestExtendVote.Fields().ByName("misbehavior") + fd_RequestExtendVote_next_validators_hash = md_RequestExtendVote.Fields().ByName("next_validators_hash") + fd_RequestExtendVote_proposer_address = md_RequestExtendVote.Fields().ByName("proposer_address") } -var _ protoreflect.Message = (*fastReflection_ExtendVoteRequest)(nil) +var _ protoreflect.Message = (*fastReflection_RequestExtendVote)(nil) -type fastReflection_ExtendVoteRequest ExtendVoteRequest +type fastReflection_RequestExtendVote RequestExtendVote -func (x *ExtendVoteRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_ExtendVoteRequest)(x) +func (x *RequestExtendVote) ProtoReflect() protoreflect.Message { + return (*fastReflection_RequestExtendVote)(x) } -func (x *ExtendVoteRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[14] +func (x *RequestExtendVote) slowProtoReflect() protoreflect.Message { + mi := &file_tendermint_abci_types_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9721,43 +9719,43 @@ func (x *ExtendVoteRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_ExtendVoteRequest_messageType fastReflection_ExtendVoteRequest_messageType -var _ protoreflect.MessageType = fastReflection_ExtendVoteRequest_messageType{} +var _fastReflection_RequestExtendVote_messageType fastReflection_RequestExtendVote_messageType +var _ protoreflect.MessageType = fastReflection_RequestExtendVote_messageType{} -type fastReflection_ExtendVoteRequest_messageType struct{} +type fastReflection_RequestExtendVote_messageType struct{} -func (x fastReflection_ExtendVoteRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_ExtendVoteRequest)(nil) +func (x fastReflection_RequestExtendVote_messageType) Zero() protoreflect.Message { + return (*fastReflection_RequestExtendVote)(nil) } -func (x fastReflection_ExtendVoteRequest_messageType) New() protoreflect.Message { - return new(fastReflection_ExtendVoteRequest) +func (x fastReflection_RequestExtendVote_messageType) New() protoreflect.Message { + return new(fastReflection_RequestExtendVote) } -func (x fastReflection_ExtendVoteRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_ExtendVoteRequest +func (x fastReflection_RequestExtendVote_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_RequestExtendVote } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_ExtendVoteRequest) Descriptor() protoreflect.MessageDescriptor { - return md_ExtendVoteRequest +func (x *fastReflection_RequestExtendVote) Descriptor() protoreflect.MessageDescriptor { + return md_RequestExtendVote } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_ExtendVoteRequest) Type() protoreflect.MessageType { - return _fastReflection_ExtendVoteRequest_messageType +func (x *fastReflection_RequestExtendVote) Type() protoreflect.MessageType { + return _fastReflection_RequestExtendVote_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_ExtendVoteRequest) New() protoreflect.Message { - return new(fastReflection_ExtendVoteRequest) +func (x *fastReflection_RequestExtendVote) New() protoreflect.Message { + return new(fastReflection_RequestExtendVote) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_ExtendVoteRequest) Interface() protoreflect.ProtoMessage { - return (*ExtendVoteRequest)(x) +func (x *fastReflection_RequestExtendVote) Interface() protoreflect.ProtoMessage { + return (*RequestExtendVote)(x) } // Range iterates over every populated field in an undefined order, @@ -9765,52 +9763,52 @@ func (x *fastReflection_ExtendVoteRequest) Interface() protoreflect.ProtoMessage // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_ExtendVoteRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_RequestExtendVote) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if len(x.Hash) != 0 { value := protoreflect.ValueOfBytes(x.Hash) - if !f(fd_ExtendVoteRequest_hash, value) { + if !f(fd_RequestExtendVote_hash, value) { return } } if x.Height != int64(0) { value := protoreflect.ValueOfInt64(x.Height) - if !f(fd_ExtendVoteRequest_height, value) { + if !f(fd_RequestExtendVote_height, value) { return } } if x.Time != nil { value := protoreflect.ValueOfMessage(x.Time.ProtoReflect()) - if !f(fd_ExtendVoteRequest_time, value) { + if !f(fd_RequestExtendVote_time, value) { return } } if len(x.Txs) != 0 { - value := protoreflect.ValueOfList(&_ExtendVoteRequest_4_list{list: &x.Txs}) - if !f(fd_ExtendVoteRequest_txs, value) { + value := protoreflect.ValueOfList(&_RequestExtendVote_4_list{list: &x.Txs}) + if !f(fd_RequestExtendVote_txs, value) { return } } if x.ProposedLastCommit != nil { value := protoreflect.ValueOfMessage(x.ProposedLastCommit.ProtoReflect()) - if !f(fd_ExtendVoteRequest_proposed_last_commit, value) { + if !f(fd_RequestExtendVote_proposed_last_commit, value) { return } } if len(x.Misbehavior) != 0 { - value := protoreflect.ValueOfList(&_ExtendVoteRequest_6_list{list: &x.Misbehavior}) - if !f(fd_ExtendVoteRequest_misbehavior, value) { + value := protoreflect.ValueOfList(&_RequestExtendVote_6_list{list: &x.Misbehavior}) + if !f(fd_RequestExtendVote_misbehavior, value) { return } } if len(x.NextValidatorsHash) != 0 { value := protoreflect.ValueOfBytes(x.NextValidatorsHash) - if !f(fd_ExtendVoteRequest_next_validators_hash, value) { + if !f(fd_RequestExtendVote_next_validators_hash, value) { return } } if len(x.ProposerAddress) != 0 { value := protoreflect.ValueOfBytes(x.ProposerAddress) - if !f(fd_ExtendVoteRequest_proposer_address, value) { + if !f(fd_RequestExtendVote_proposer_address, value) { return } } @@ -9827,29 +9825,29 @@ func (x *fastReflection_ExtendVoteRequest) Range(f func(protoreflect.FieldDescri // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_ExtendVoteRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_RequestExtendVote) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.ExtendVoteRequest.hash": + case "tendermint.abci.RequestExtendVote.hash": return len(x.Hash) != 0 - case "cometbft.abci.v2.ExtendVoteRequest.height": + case "tendermint.abci.RequestExtendVote.height": return x.Height != int64(0) - case "cometbft.abci.v2.ExtendVoteRequest.time": + case "tendermint.abci.RequestExtendVote.time": return x.Time != nil - case "cometbft.abci.v2.ExtendVoteRequest.txs": + case "tendermint.abci.RequestExtendVote.txs": return len(x.Txs) != 0 - case "cometbft.abci.v2.ExtendVoteRequest.proposed_last_commit": + case "tendermint.abci.RequestExtendVote.proposed_last_commit": return x.ProposedLastCommit != nil - case "cometbft.abci.v2.ExtendVoteRequest.misbehavior": + case "tendermint.abci.RequestExtendVote.misbehavior": return len(x.Misbehavior) != 0 - case "cometbft.abci.v2.ExtendVoteRequest.next_validators_hash": + case "tendermint.abci.RequestExtendVote.next_validators_hash": return len(x.NextValidatorsHash) != 0 - case "cometbft.abci.v2.ExtendVoteRequest.proposer_address": + case "tendermint.abci.RequestExtendVote.proposer_address": return len(x.ProposerAddress) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExtendVoteRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestExtendVote")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExtendVoteRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestExtendVote does not contain field %s", fd.FullName())) } } @@ -9859,29 +9857,29 @@ func (x *fastReflection_ExtendVoteRequest) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExtendVoteRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_RequestExtendVote) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.ExtendVoteRequest.hash": + case "tendermint.abci.RequestExtendVote.hash": x.Hash = nil - case "cometbft.abci.v2.ExtendVoteRequest.height": + case "tendermint.abci.RequestExtendVote.height": x.Height = int64(0) - case "cometbft.abci.v2.ExtendVoteRequest.time": + case "tendermint.abci.RequestExtendVote.time": x.Time = nil - case "cometbft.abci.v2.ExtendVoteRequest.txs": + case "tendermint.abci.RequestExtendVote.txs": x.Txs = nil - case "cometbft.abci.v2.ExtendVoteRequest.proposed_last_commit": + case "tendermint.abci.RequestExtendVote.proposed_last_commit": x.ProposedLastCommit = nil - case "cometbft.abci.v2.ExtendVoteRequest.misbehavior": + case "tendermint.abci.RequestExtendVote.misbehavior": x.Misbehavior = nil - case "cometbft.abci.v2.ExtendVoteRequest.next_validators_hash": + case "tendermint.abci.RequestExtendVote.next_validators_hash": x.NextValidatorsHash = nil - case "cometbft.abci.v2.ExtendVoteRequest.proposer_address": + case "tendermint.abci.RequestExtendVote.proposer_address": x.ProposerAddress = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExtendVoteRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestExtendVote")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExtendVoteRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestExtendVote does not contain field %s", fd.FullName())) } } @@ -9891,43 +9889,43 @@ func (x *fastReflection_ExtendVoteRequest) Clear(fd protoreflect.FieldDescriptor // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_ExtendVoteRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestExtendVote) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.ExtendVoteRequest.hash": + case "tendermint.abci.RequestExtendVote.hash": value := x.Hash return protoreflect.ValueOfBytes(value) - case "cometbft.abci.v2.ExtendVoteRequest.height": + case "tendermint.abci.RequestExtendVote.height": value := x.Height return protoreflect.ValueOfInt64(value) - case "cometbft.abci.v2.ExtendVoteRequest.time": + case "tendermint.abci.RequestExtendVote.time": value := x.Time return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.ExtendVoteRequest.txs": + case "tendermint.abci.RequestExtendVote.txs": if len(x.Txs) == 0 { - return protoreflect.ValueOfList(&_ExtendVoteRequest_4_list{}) + return protoreflect.ValueOfList(&_RequestExtendVote_4_list{}) } - listValue := &_ExtendVoteRequest_4_list{list: &x.Txs} + listValue := &_RequestExtendVote_4_list{list: &x.Txs} return protoreflect.ValueOfList(listValue) - case "cometbft.abci.v2.ExtendVoteRequest.proposed_last_commit": + case "tendermint.abci.RequestExtendVote.proposed_last_commit": value := x.ProposedLastCommit return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.ExtendVoteRequest.misbehavior": + case "tendermint.abci.RequestExtendVote.misbehavior": if len(x.Misbehavior) == 0 { - return protoreflect.ValueOfList(&_ExtendVoteRequest_6_list{}) + return protoreflect.ValueOfList(&_RequestExtendVote_6_list{}) } - listValue := &_ExtendVoteRequest_6_list{list: &x.Misbehavior} + listValue := &_RequestExtendVote_6_list{list: &x.Misbehavior} return protoreflect.ValueOfList(listValue) - case "cometbft.abci.v2.ExtendVoteRequest.next_validators_hash": + case "tendermint.abci.RequestExtendVote.next_validators_hash": value := x.NextValidatorsHash return protoreflect.ValueOfBytes(value) - case "cometbft.abci.v2.ExtendVoteRequest.proposer_address": + case "tendermint.abci.RequestExtendVote.proposer_address": value := x.ProposerAddress return protoreflect.ValueOfBytes(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExtendVoteRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestExtendVote")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExtendVoteRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestExtendVote does not contain field %s", descriptor.FullName())) } } @@ -9941,33 +9939,33 @@ func (x *fastReflection_ExtendVoteRequest) Get(descriptor protoreflect.FieldDesc // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExtendVoteRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_RequestExtendVote) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.ExtendVoteRequest.hash": + case "tendermint.abci.RequestExtendVote.hash": x.Hash = value.Bytes() - case "cometbft.abci.v2.ExtendVoteRequest.height": + case "tendermint.abci.RequestExtendVote.height": x.Height = value.Int() - case "cometbft.abci.v2.ExtendVoteRequest.time": + case "tendermint.abci.RequestExtendVote.time": x.Time = value.Message().Interface().(*timestamppb.Timestamp) - case "cometbft.abci.v2.ExtendVoteRequest.txs": + case "tendermint.abci.RequestExtendVote.txs": lv := value.List() - clv := lv.(*_ExtendVoteRequest_4_list) + clv := lv.(*_RequestExtendVote_4_list) x.Txs = *clv.list - case "cometbft.abci.v2.ExtendVoteRequest.proposed_last_commit": + case "tendermint.abci.RequestExtendVote.proposed_last_commit": x.ProposedLastCommit = value.Message().Interface().(*CommitInfo) - case "cometbft.abci.v2.ExtendVoteRequest.misbehavior": + case "tendermint.abci.RequestExtendVote.misbehavior": lv := value.List() - clv := lv.(*_ExtendVoteRequest_6_list) + clv := lv.(*_RequestExtendVote_6_list) x.Misbehavior = *clv.list - case "cometbft.abci.v2.ExtendVoteRequest.next_validators_hash": + case "tendermint.abci.RequestExtendVote.next_validators_hash": x.NextValidatorsHash = value.Bytes() - case "cometbft.abci.v2.ExtendVoteRequest.proposer_address": + case "tendermint.abci.RequestExtendVote.proposer_address": x.ProposerAddress = value.Bytes() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExtendVoteRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestExtendVote")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExtendVoteRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestExtendVote does not contain field %s", fd.FullName())) } } @@ -9981,86 +9979,86 @@ func (x *fastReflection_ExtendVoteRequest) Set(fd protoreflect.FieldDescriptor, // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExtendVoteRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestExtendVote) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.ExtendVoteRequest.time": + case "tendermint.abci.RequestExtendVote.time": if x.Time == nil { x.Time = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.Time.ProtoReflect()) - case "cometbft.abci.v2.ExtendVoteRequest.txs": + case "tendermint.abci.RequestExtendVote.txs": if x.Txs == nil { x.Txs = [][]byte{} } - value := &_ExtendVoteRequest_4_list{list: &x.Txs} + value := &_RequestExtendVote_4_list{list: &x.Txs} return protoreflect.ValueOfList(value) - case "cometbft.abci.v2.ExtendVoteRequest.proposed_last_commit": + case "tendermint.abci.RequestExtendVote.proposed_last_commit": if x.ProposedLastCommit == nil { x.ProposedLastCommit = new(CommitInfo) } return protoreflect.ValueOfMessage(x.ProposedLastCommit.ProtoReflect()) - case "cometbft.abci.v2.ExtendVoteRequest.misbehavior": + case "tendermint.abci.RequestExtendVote.misbehavior": if x.Misbehavior == nil { x.Misbehavior = []*Misbehavior{} } - value := &_ExtendVoteRequest_6_list{list: &x.Misbehavior} + value := &_RequestExtendVote_6_list{list: &x.Misbehavior} return protoreflect.ValueOfList(value) - case "cometbft.abci.v2.ExtendVoteRequest.hash": - panic(fmt.Errorf("field hash of message cometbft.abci.v2.ExtendVoteRequest is not mutable")) - case "cometbft.abci.v2.ExtendVoteRequest.height": - panic(fmt.Errorf("field height of message cometbft.abci.v2.ExtendVoteRequest is not mutable")) - case "cometbft.abci.v2.ExtendVoteRequest.next_validators_hash": - panic(fmt.Errorf("field next_validators_hash of message cometbft.abci.v2.ExtendVoteRequest is not mutable")) - case "cometbft.abci.v2.ExtendVoteRequest.proposer_address": - panic(fmt.Errorf("field proposer_address of message cometbft.abci.v2.ExtendVoteRequest is not mutable")) + case "tendermint.abci.RequestExtendVote.hash": + panic(fmt.Errorf("field hash of message tendermint.abci.RequestExtendVote is not mutable")) + case "tendermint.abci.RequestExtendVote.height": + panic(fmt.Errorf("field height of message tendermint.abci.RequestExtendVote is not mutable")) + case "tendermint.abci.RequestExtendVote.next_validators_hash": + panic(fmt.Errorf("field next_validators_hash of message tendermint.abci.RequestExtendVote is not mutable")) + case "tendermint.abci.RequestExtendVote.proposer_address": + panic(fmt.Errorf("field proposer_address of message tendermint.abci.RequestExtendVote is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExtendVoteRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestExtendVote")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExtendVoteRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestExtendVote does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_ExtendVoteRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestExtendVote) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.ExtendVoteRequest.hash": + case "tendermint.abci.RequestExtendVote.hash": return protoreflect.ValueOfBytes(nil) - case "cometbft.abci.v2.ExtendVoteRequest.height": + case "tendermint.abci.RequestExtendVote.height": return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.abci.v2.ExtendVoteRequest.time": + case "tendermint.abci.RequestExtendVote.time": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.abci.v2.ExtendVoteRequest.txs": + case "tendermint.abci.RequestExtendVote.txs": list := [][]byte{} - return protoreflect.ValueOfList(&_ExtendVoteRequest_4_list{list: &list}) - case "cometbft.abci.v2.ExtendVoteRequest.proposed_last_commit": + return protoreflect.ValueOfList(&_RequestExtendVote_4_list{list: &list}) + case "tendermint.abci.RequestExtendVote.proposed_last_commit": m := new(CommitInfo) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.abci.v2.ExtendVoteRequest.misbehavior": + case "tendermint.abci.RequestExtendVote.misbehavior": list := []*Misbehavior{} - return protoreflect.ValueOfList(&_ExtendVoteRequest_6_list{list: &list}) - case "cometbft.abci.v2.ExtendVoteRequest.next_validators_hash": + return protoreflect.ValueOfList(&_RequestExtendVote_6_list{list: &list}) + case "tendermint.abci.RequestExtendVote.next_validators_hash": return protoreflect.ValueOfBytes(nil) - case "cometbft.abci.v2.ExtendVoteRequest.proposer_address": + case "tendermint.abci.RequestExtendVote.proposer_address": return protoreflect.ValueOfBytes(nil) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExtendVoteRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestExtendVote")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExtendVoteRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestExtendVote does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_ExtendVoteRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_RequestExtendVote) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.ExtendVoteRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.RequestExtendVote", d.FullName())) } panic("unreachable") } @@ -10068,7 +10066,7 @@ func (x *fastReflection_ExtendVoteRequest) WhichOneof(d protoreflect.OneofDescri // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_ExtendVoteRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_RequestExtendVote) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -10079,7 +10077,7 @@ func (x *fastReflection_ExtendVoteRequest) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExtendVoteRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_RequestExtendVote) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -10091,7 +10089,7 @@ func (x *fastReflection_ExtendVoteRequest) SetUnknown(fields protoreflect.RawFie // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_ExtendVoteRequest) IsValid() bool { +func (x *fastReflection_RequestExtendVote) IsValid() bool { return x != nil } @@ -10101,9 +10099,9 @@ func (x *fastReflection_ExtendVoteRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_ExtendVoteRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_RequestExtendVote) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*ExtendVoteRequest) + x := input.Message.Interface().(*RequestExtendVote) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10160,7 +10158,7 @@ func (x *fastReflection_ExtendVoteRequest) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*ExtendVoteRequest) + x := input.Message.Interface().(*RequestExtendVote) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10269,7 +10267,7 @@ func (x *fastReflection_ExtendVoteRequest) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*ExtendVoteRequest) + x := input.Message.Interface().(*RequestExtendVote) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10301,10 +10299,10 @@ func (x *fastReflection_ExtendVoteRequest) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ExtendVoteRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestExtendVote: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ExtendVoteRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestExtendVote: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -10602,34 +10600,32 @@ func (x *fastReflection_ExtendVoteRequest) ProtoMethods() *protoiface.Methods { } var ( - md_VerifyVoteExtensionRequest protoreflect.MessageDescriptor - fd_VerifyVoteExtensionRequest_hash protoreflect.FieldDescriptor - fd_VerifyVoteExtensionRequest_validator_address protoreflect.FieldDescriptor - fd_VerifyVoteExtensionRequest_height protoreflect.FieldDescriptor - fd_VerifyVoteExtensionRequest_vote_extension protoreflect.FieldDescriptor - fd_VerifyVoteExtensionRequest_non_rp_vote_extension protoreflect.FieldDescriptor + md_RequestVerifyVoteExtension protoreflect.MessageDescriptor + fd_RequestVerifyVoteExtension_hash protoreflect.FieldDescriptor + fd_RequestVerifyVoteExtension_validator_address protoreflect.FieldDescriptor + fd_RequestVerifyVoteExtension_height protoreflect.FieldDescriptor + fd_RequestVerifyVoteExtension_vote_extension protoreflect.FieldDescriptor ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_VerifyVoteExtensionRequest = File_cometbft_abci_v2_types_proto.Messages().ByName("VerifyVoteExtensionRequest") - fd_VerifyVoteExtensionRequest_hash = md_VerifyVoteExtensionRequest.Fields().ByName("hash") - fd_VerifyVoteExtensionRequest_validator_address = md_VerifyVoteExtensionRequest.Fields().ByName("validator_address") - fd_VerifyVoteExtensionRequest_height = md_VerifyVoteExtensionRequest.Fields().ByName("height") - fd_VerifyVoteExtensionRequest_vote_extension = md_VerifyVoteExtensionRequest.Fields().ByName("vote_extension") - fd_VerifyVoteExtensionRequest_non_rp_vote_extension = md_VerifyVoteExtensionRequest.Fields().ByName("non_rp_vote_extension") + file_tendermint_abci_types_proto_init() + md_RequestVerifyVoteExtension = File_tendermint_abci_types_proto.Messages().ByName("RequestVerifyVoteExtension") + fd_RequestVerifyVoteExtension_hash = md_RequestVerifyVoteExtension.Fields().ByName("hash") + fd_RequestVerifyVoteExtension_validator_address = md_RequestVerifyVoteExtension.Fields().ByName("validator_address") + fd_RequestVerifyVoteExtension_height = md_RequestVerifyVoteExtension.Fields().ByName("height") + fd_RequestVerifyVoteExtension_vote_extension = md_RequestVerifyVoteExtension.Fields().ByName("vote_extension") } -var _ protoreflect.Message = (*fastReflection_VerifyVoteExtensionRequest)(nil) +var _ protoreflect.Message = (*fastReflection_RequestVerifyVoteExtension)(nil) -type fastReflection_VerifyVoteExtensionRequest VerifyVoteExtensionRequest +type fastReflection_RequestVerifyVoteExtension RequestVerifyVoteExtension -func (x *VerifyVoteExtensionRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_VerifyVoteExtensionRequest)(x) +func (x *RequestVerifyVoteExtension) ProtoReflect() protoreflect.Message { + return (*fastReflection_RequestVerifyVoteExtension)(x) } -func (x *VerifyVoteExtensionRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[15] +func (x *RequestVerifyVoteExtension) slowProtoReflect() protoreflect.Message { + mi := &file_tendermint_abci_types_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10640,43 +10636,43 @@ func (x *VerifyVoteExtensionRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_VerifyVoteExtensionRequest_messageType fastReflection_VerifyVoteExtensionRequest_messageType -var _ protoreflect.MessageType = fastReflection_VerifyVoteExtensionRequest_messageType{} +var _fastReflection_RequestVerifyVoteExtension_messageType fastReflection_RequestVerifyVoteExtension_messageType +var _ protoreflect.MessageType = fastReflection_RequestVerifyVoteExtension_messageType{} -type fastReflection_VerifyVoteExtensionRequest_messageType struct{} +type fastReflection_RequestVerifyVoteExtension_messageType struct{} -func (x fastReflection_VerifyVoteExtensionRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_VerifyVoteExtensionRequest)(nil) +func (x fastReflection_RequestVerifyVoteExtension_messageType) Zero() protoreflect.Message { + return (*fastReflection_RequestVerifyVoteExtension)(nil) } -func (x fastReflection_VerifyVoteExtensionRequest_messageType) New() protoreflect.Message { - return new(fastReflection_VerifyVoteExtensionRequest) +func (x fastReflection_RequestVerifyVoteExtension_messageType) New() protoreflect.Message { + return new(fastReflection_RequestVerifyVoteExtension) } -func (x fastReflection_VerifyVoteExtensionRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_VerifyVoteExtensionRequest +func (x fastReflection_RequestVerifyVoteExtension_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_RequestVerifyVoteExtension } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_VerifyVoteExtensionRequest) Descriptor() protoreflect.MessageDescriptor { - return md_VerifyVoteExtensionRequest +func (x *fastReflection_RequestVerifyVoteExtension) Descriptor() protoreflect.MessageDescriptor { + return md_RequestVerifyVoteExtension } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_VerifyVoteExtensionRequest) Type() protoreflect.MessageType { - return _fastReflection_VerifyVoteExtensionRequest_messageType +func (x *fastReflection_RequestVerifyVoteExtension) Type() protoreflect.MessageType { + return _fastReflection_RequestVerifyVoteExtension_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_VerifyVoteExtensionRequest) New() protoreflect.Message { - return new(fastReflection_VerifyVoteExtensionRequest) +func (x *fastReflection_RequestVerifyVoteExtension) New() protoreflect.Message { + return new(fastReflection_RequestVerifyVoteExtension) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_VerifyVoteExtensionRequest) Interface() protoreflect.ProtoMessage { - return (*VerifyVoteExtensionRequest)(x) +func (x *fastReflection_RequestVerifyVoteExtension) Interface() protoreflect.ProtoMessage { + return (*RequestVerifyVoteExtension)(x) } // Range iterates over every populated field in an undefined order, @@ -10684,34 +10680,28 @@ func (x *fastReflection_VerifyVoteExtensionRequest) Interface() protoreflect.Pro // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_VerifyVoteExtensionRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_RequestVerifyVoteExtension) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if len(x.Hash) != 0 { value := protoreflect.ValueOfBytes(x.Hash) - if !f(fd_VerifyVoteExtensionRequest_hash, value) { + if !f(fd_RequestVerifyVoteExtension_hash, value) { return } } if len(x.ValidatorAddress) != 0 { value := protoreflect.ValueOfBytes(x.ValidatorAddress) - if !f(fd_VerifyVoteExtensionRequest_validator_address, value) { + if !f(fd_RequestVerifyVoteExtension_validator_address, value) { return } } if x.Height != int64(0) { value := protoreflect.ValueOfInt64(x.Height) - if !f(fd_VerifyVoteExtensionRequest_height, value) { + if !f(fd_RequestVerifyVoteExtension_height, value) { return } } if len(x.VoteExtension) != 0 { value := protoreflect.ValueOfBytes(x.VoteExtension) - if !f(fd_VerifyVoteExtensionRequest_vote_extension, value) { - return - } - } - if len(x.NonRpVoteExtension) != 0 { - value := protoreflect.ValueOfBytes(x.NonRpVoteExtension) - if !f(fd_VerifyVoteExtensionRequest_non_rp_vote_extension, value) { + if !f(fd_RequestVerifyVoteExtension_vote_extension, value) { return } } @@ -10728,23 +10718,21 @@ func (x *fastReflection_VerifyVoteExtensionRequest) Range(f func(protoreflect.Fi // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_VerifyVoteExtensionRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_RequestVerifyVoteExtension) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.VerifyVoteExtensionRequest.hash": + case "tendermint.abci.RequestVerifyVoteExtension.hash": return len(x.Hash) != 0 - case "cometbft.abci.v2.VerifyVoteExtensionRequest.validator_address": + case "tendermint.abci.RequestVerifyVoteExtension.validator_address": return len(x.ValidatorAddress) != 0 - case "cometbft.abci.v2.VerifyVoteExtensionRequest.height": + case "tendermint.abci.RequestVerifyVoteExtension.height": return x.Height != int64(0) - case "cometbft.abci.v2.VerifyVoteExtensionRequest.vote_extension": + case "tendermint.abci.RequestVerifyVoteExtension.vote_extension": return len(x.VoteExtension) != 0 - case "cometbft.abci.v2.VerifyVoteExtensionRequest.non_rp_vote_extension": - return len(x.NonRpVoteExtension) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.VerifyVoteExtensionRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestVerifyVoteExtension")) } - panic(fmt.Errorf("message cometbft.abci.v2.VerifyVoteExtensionRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestVerifyVoteExtension does not contain field %s", fd.FullName())) } } @@ -10754,23 +10742,21 @@ func (x *fastReflection_VerifyVoteExtensionRequest) Has(fd protoreflect.FieldDes // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_VerifyVoteExtensionRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_RequestVerifyVoteExtension) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.VerifyVoteExtensionRequest.hash": + case "tendermint.abci.RequestVerifyVoteExtension.hash": x.Hash = nil - case "cometbft.abci.v2.VerifyVoteExtensionRequest.validator_address": + case "tendermint.abci.RequestVerifyVoteExtension.validator_address": x.ValidatorAddress = nil - case "cometbft.abci.v2.VerifyVoteExtensionRequest.height": + case "tendermint.abci.RequestVerifyVoteExtension.height": x.Height = int64(0) - case "cometbft.abci.v2.VerifyVoteExtensionRequest.vote_extension": + case "tendermint.abci.RequestVerifyVoteExtension.vote_extension": x.VoteExtension = nil - case "cometbft.abci.v2.VerifyVoteExtensionRequest.non_rp_vote_extension": - x.NonRpVoteExtension = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.VerifyVoteExtensionRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestVerifyVoteExtension")) } - panic(fmt.Errorf("message cometbft.abci.v2.VerifyVoteExtensionRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestVerifyVoteExtension does not contain field %s", fd.FullName())) } } @@ -10780,28 +10766,25 @@ func (x *fastReflection_VerifyVoteExtensionRequest) Clear(fd protoreflect.FieldD // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_VerifyVoteExtensionRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestVerifyVoteExtension) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.VerifyVoteExtensionRequest.hash": + case "tendermint.abci.RequestVerifyVoteExtension.hash": value := x.Hash return protoreflect.ValueOfBytes(value) - case "cometbft.abci.v2.VerifyVoteExtensionRequest.validator_address": + case "tendermint.abci.RequestVerifyVoteExtension.validator_address": value := x.ValidatorAddress return protoreflect.ValueOfBytes(value) - case "cometbft.abci.v2.VerifyVoteExtensionRequest.height": + case "tendermint.abci.RequestVerifyVoteExtension.height": value := x.Height return protoreflect.ValueOfInt64(value) - case "cometbft.abci.v2.VerifyVoteExtensionRequest.vote_extension": + case "tendermint.abci.RequestVerifyVoteExtension.vote_extension": value := x.VoteExtension return protoreflect.ValueOfBytes(value) - case "cometbft.abci.v2.VerifyVoteExtensionRequest.non_rp_vote_extension": - value := x.NonRpVoteExtension - return protoreflect.ValueOfBytes(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.VerifyVoteExtensionRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestVerifyVoteExtension")) } - panic(fmt.Errorf("message cometbft.abci.v2.VerifyVoteExtensionRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestVerifyVoteExtension does not contain field %s", descriptor.FullName())) } } @@ -10815,23 +10798,21 @@ func (x *fastReflection_VerifyVoteExtensionRequest) Get(descriptor protoreflect. // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_VerifyVoteExtensionRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_RequestVerifyVoteExtension) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.VerifyVoteExtensionRequest.hash": + case "tendermint.abci.RequestVerifyVoteExtension.hash": x.Hash = value.Bytes() - case "cometbft.abci.v2.VerifyVoteExtensionRequest.validator_address": + case "tendermint.abci.RequestVerifyVoteExtension.validator_address": x.ValidatorAddress = value.Bytes() - case "cometbft.abci.v2.VerifyVoteExtensionRequest.height": + case "tendermint.abci.RequestVerifyVoteExtension.height": x.Height = value.Int() - case "cometbft.abci.v2.VerifyVoteExtensionRequest.vote_extension": + case "tendermint.abci.RequestVerifyVoteExtension.vote_extension": x.VoteExtension = value.Bytes() - case "cometbft.abci.v2.VerifyVoteExtensionRequest.non_rp_vote_extension": - x.NonRpVoteExtension = value.Bytes() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.VerifyVoteExtensionRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestVerifyVoteExtension")) } - panic(fmt.Errorf("message cometbft.abci.v2.VerifyVoteExtensionRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestVerifyVoteExtension does not contain field %s", fd.FullName())) } } @@ -10845,56 +10826,52 @@ func (x *fastReflection_VerifyVoteExtensionRequest) Set(fd protoreflect.FieldDes // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_VerifyVoteExtensionRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestVerifyVoteExtension) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.VerifyVoteExtensionRequest.hash": - panic(fmt.Errorf("field hash of message cometbft.abci.v2.VerifyVoteExtensionRequest is not mutable")) - case "cometbft.abci.v2.VerifyVoteExtensionRequest.validator_address": - panic(fmt.Errorf("field validator_address of message cometbft.abci.v2.VerifyVoteExtensionRequest is not mutable")) - case "cometbft.abci.v2.VerifyVoteExtensionRequest.height": - panic(fmt.Errorf("field height of message cometbft.abci.v2.VerifyVoteExtensionRequest is not mutable")) - case "cometbft.abci.v2.VerifyVoteExtensionRequest.vote_extension": - panic(fmt.Errorf("field vote_extension of message cometbft.abci.v2.VerifyVoteExtensionRequest is not mutable")) - case "cometbft.abci.v2.VerifyVoteExtensionRequest.non_rp_vote_extension": - panic(fmt.Errorf("field non_rp_vote_extension of message cometbft.abci.v2.VerifyVoteExtensionRequest is not mutable")) + case "tendermint.abci.RequestVerifyVoteExtension.hash": + panic(fmt.Errorf("field hash of message tendermint.abci.RequestVerifyVoteExtension is not mutable")) + case "tendermint.abci.RequestVerifyVoteExtension.validator_address": + panic(fmt.Errorf("field validator_address of message tendermint.abci.RequestVerifyVoteExtension is not mutable")) + case "tendermint.abci.RequestVerifyVoteExtension.height": + panic(fmt.Errorf("field height of message tendermint.abci.RequestVerifyVoteExtension is not mutable")) + case "tendermint.abci.RequestVerifyVoteExtension.vote_extension": + panic(fmt.Errorf("field vote_extension of message tendermint.abci.RequestVerifyVoteExtension is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.VerifyVoteExtensionRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestVerifyVoteExtension")) } - panic(fmt.Errorf("message cometbft.abci.v2.VerifyVoteExtensionRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestVerifyVoteExtension does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_VerifyVoteExtensionRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestVerifyVoteExtension) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.VerifyVoteExtensionRequest.hash": + case "tendermint.abci.RequestVerifyVoteExtension.hash": return protoreflect.ValueOfBytes(nil) - case "cometbft.abci.v2.VerifyVoteExtensionRequest.validator_address": + case "tendermint.abci.RequestVerifyVoteExtension.validator_address": return protoreflect.ValueOfBytes(nil) - case "cometbft.abci.v2.VerifyVoteExtensionRequest.height": + case "tendermint.abci.RequestVerifyVoteExtension.height": return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.abci.v2.VerifyVoteExtensionRequest.vote_extension": - return protoreflect.ValueOfBytes(nil) - case "cometbft.abci.v2.VerifyVoteExtensionRequest.non_rp_vote_extension": + case "tendermint.abci.RequestVerifyVoteExtension.vote_extension": return protoreflect.ValueOfBytes(nil) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.VerifyVoteExtensionRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestVerifyVoteExtension")) } - panic(fmt.Errorf("message cometbft.abci.v2.VerifyVoteExtensionRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestVerifyVoteExtension does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_VerifyVoteExtensionRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_RequestVerifyVoteExtension) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.VerifyVoteExtensionRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.RequestVerifyVoteExtension", d.FullName())) } panic("unreachable") } @@ -10902,7 +10879,7 @@ func (x *fastReflection_VerifyVoteExtensionRequest) WhichOneof(d protoreflect.On // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_VerifyVoteExtensionRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_RequestVerifyVoteExtension) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -10913,7 +10890,7 @@ func (x *fastReflection_VerifyVoteExtensionRequest) GetUnknown() protoreflect.Ra // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_VerifyVoteExtensionRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_RequestVerifyVoteExtension) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -10925,7 +10902,7 @@ func (x *fastReflection_VerifyVoteExtensionRequest) SetUnknown(fields protorefle // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_VerifyVoteExtensionRequest) IsValid() bool { +func (x *fastReflection_RequestVerifyVoteExtension) IsValid() bool { return x != nil } @@ -10935,9 +10912,9 @@ func (x *fastReflection_VerifyVoteExtensionRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_VerifyVoteExtensionRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_RequestVerifyVoteExtension) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*VerifyVoteExtensionRequest) + x := input.Message.Interface().(*RequestVerifyVoteExtension) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10964,10 +10941,6 @@ func (x *fastReflection_VerifyVoteExtensionRequest) ProtoMethods() *protoiface.M if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.NonRpVoteExtension) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -10978,7 +10951,7 @@ func (x *fastReflection_VerifyVoteExtensionRequest) ProtoMethods() *protoiface.M } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*VerifyVoteExtensionRequest) + x := input.Message.Interface().(*RequestVerifyVoteExtension) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10997,13 +10970,6 @@ func (x *fastReflection_VerifyVoteExtensionRequest) ProtoMethods() *protoiface.M i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.NonRpVoteExtension) > 0 { - i -= len(x.NonRpVoteExtension) - copy(dAtA[i:], x.NonRpVoteExtension) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NonRpVoteExtension))) - i-- - dAtA[i] = 0x2a - } if len(x.VoteExtension) > 0 { i -= len(x.VoteExtension) copy(dAtA[i:], x.VoteExtension) @@ -11041,7 +11007,7 @@ func (x *fastReflection_VerifyVoteExtensionRequest) ProtoMethods() *protoiface.M }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*VerifyVoteExtensionRequest) + x := input.Message.Interface().(*RequestVerifyVoteExtension) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11073,10 +11039,10 @@ func (x *fastReflection_VerifyVoteExtensionRequest) ProtoMethods() *protoiface.M fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: VerifyVoteExtensionRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestVerifyVoteExtension: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: VerifyVoteExtensionRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestVerifyVoteExtension: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -11200,40 +11166,6 @@ func (x *fastReflection_VerifyVoteExtensionRequest) ProtoMethods() *protoiface.M x.VoteExtension = []byte{} } iNdEx = postIndex - case 5: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NonRpVoteExtension", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.NonRpVoteExtension = append(x.NonRpVoteExtension[:0], dAtA[iNdEx:postIndex]...) - if x.NonRpVoteExtension == nil { - x.NonRpVoteExtension = []byte{} - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -11269,140 +11201,138 @@ func (x *fastReflection_VerifyVoteExtensionRequest) ProtoMethods() *protoiface.M } } -var _ protoreflect.List = (*_FinalizeBlockRequest_1_list)(nil) +var _ protoreflect.List = (*_RequestFinalizeBlock_1_list)(nil) -type _FinalizeBlockRequest_1_list struct { +type _RequestFinalizeBlock_1_list struct { list *[][]byte } -func (x *_FinalizeBlockRequest_1_list) Len() int { +func (x *_RequestFinalizeBlock_1_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_FinalizeBlockRequest_1_list) Get(i int) protoreflect.Value { +func (x *_RequestFinalizeBlock_1_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfBytes((*x.list)[i]) } -func (x *_FinalizeBlockRequest_1_list) Set(i int, value protoreflect.Value) { +func (x *_RequestFinalizeBlock_1_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Bytes() concreteValue := valueUnwrapped (*x.list)[i] = concreteValue } -func (x *_FinalizeBlockRequest_1_list) Append(value protoreflect.Value) { +func (x *_RequestFinalizeBlock_1_list) Append(value protoreflect.Value) { valueUnwrapped := value.Bytes() concreteValue := valueUnwrapped *x.list = append(*x.list, concreteValue) } -func (x *_FinalizeBlockRequest_1_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message FinalizeBlockRequest at list field Txs as it is not of Message kind")) +func (x *_RequestFinalizeBlock_1_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message RequestFinalizeBlock at list field Txs as it is not of Message kind")) } -func (x *_FinalizeBlockRequest_1_list) Truncate(n int) { +func (x *_RequestFinalizeBlock_1_list) Truncate(n int) { *x.list = (*x.list)[:n] } -func (x *_FinalizeBlockRequest_1_list) NewElement() protoreflect.Value { +func (x *_RequestFinalizeBlock_1_list) NewElement() protoreflect.Value { var v []byte return protoreflect.ValueOfBytes(v) } -func (x *_FinalizeBlockRequest_1_list) IsValid() bool { +func (x *_RequestFinalizeBlock_1_list) IsValid() bool { return x.list != nil } -var _ protoreflect.List = (*_FinalizeBlockRequest_3_list)(nil) +var _ protoreflect.List = (*_RequestFinalizeBlock_3_list)(nil) -type _FinalizeBlockRequest_3_list struct { +type _RequestFinalizeBlock_3_list struct { list *[]*Misbehavior } -func (x *_FinalizeBlockRequest_3_list) Len() int { +func (x *_RequestFinalizeBlock_3_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_FinalizeBlockRequest_3_list) Get(i int) protoreflect.Value { +func (x *_RequestFinalizeBlock_3_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_FinalizeBlockRequest_3_list) Set(i int, value protoreflect.Value) { +func (x *_RequestFinalizeBlock_3_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*Misbehavior) (*x.list)[i] = concreteValue } -func (x *_FinalizeBlockRequest_3_list) Append(value protoreflect.Value) { +func (x *_RequestFinalizeBlock_3_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*Misbehavior) *x.list = append(*x.list, concreteValue) } -func (x *_FinalizeBlockRequest_3_list) AppendMutable() protoreflect.Value { +func (x *_RequestFinalizeBlock_3_list) AppendMutable() protoreflect.Value { v := new(Misbehavior) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_FinalizeBlockRequest_3_list) Truncate(n int) { +func (x *_RequestFinalizeBlock_3_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_FinalizeBlockRequest_3_list) NewElement() protoreflect.Value { +func (x *_RequestFinalizeBlock_3_list) NewElement() protoreflect.Value { v := new(Misbehavior) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_FinalizeBlockRequest_3_list) IsValid() bool { +func (x *_RequestFinalizeBlock_3_list) IsValid() bool { return x.list != nil } var ( - md_FinalizeBlockRequest protoreflect.MessageDescriptor - fd_FinalizeBlockRequest_txs protoreflect.FieldDescriptor - fd_FinalizeBlockRequest_decided_last_commit protoreflect.FieldDescriptor - fd_FinalizeBlockRequest_misbehavior protoreflect.FieldDescriptor - fd_FinalizeBlockRequest_hash protoreflect.FieldDescriptor - fd_FinalizeBlockRequest_height protoreflect.FieldDescriptor - fd_FinalizeBlockRequest_time protoreflect.FieldDescriptor - fd_FinalizeBlockRequest_next_validators_hash protoreflect.FieldDescriptor - fd_FinalizeBlockRequest_proposer_address protoreflect.FieldDescriptor - fd_FinalizeBlockRequest_syncing_to_height protoreflect.FieldDescriptor + md_RequestFinalizeBlock protoreflect.MessageDescriptor + fd_RequestFinalizeBlock_txs protoreflect.FieldDescriptor + fd_RequestFinalizeBlock_decided_last_commit protoreflect.FieldDescriptor + fd_RequestFinalizeBlock_misbehavior protoreflect.FieldDescriptor + fd_RequestFinalizeBlock_hash protoreflect.FieldDescriptor + fd_RequestFinalizeBlock_height protoreflect.FieldDescriptor + fd_RequestFinalizeBlock_time protoreflect.FieldDescriptor + fd_RequestFinalizeBlock_next_validators_hash protoreflect.FieldDescriptor + fd_RequestFinalizeBlock_proposer_address protoreflect.FieldDescriptor ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_FinalizeBlockRequest = File_cometbft_abci_v2_types_proto.Messages().ByName("FinalizeBlockRequest") - fd_FinalizeBlockRequest_txs = md_FinalizeBlockRequest.Fields().ByName("txs") - fd_FinalizeBlockRequest_decided_last_commit = md_FinalizeBlockRequest.Fields().ByName("decided_last_commit") - fd_FinalizeBlockRequest_misbehavior = md_FinalizeBlockRequest.Fields().ByName("misbehavior") - fd_FinalizeBlockRequest_hash = md_FinalizeBlockRequest.Fields().ByName("hash") - fd_FinalizeBlockRequest_height = md_FinalizeBlockRequest.Fields().ByName("height") - fd_FinalizeBlockRequest_time = md_FinalizeBlockRequest.Fields().ByName("time") - fd_FinalizeBlockRequest_next_validators_hash = md_FinalizeBlockRequest.Fields().ByName("next_validators_hash") - fd_FinalizeBlockRequest_proposer_address = md_FinalizeBlockRequest.Fields().ByName("proposer_address") - fd_FinalizeBlockRequest_syncing_to_height = md_FinalizeBlockRequest.Fields().ByName("syncing_to_height") + file_tendermint_abci_types_proto_init() + md_RequestFinalizeBlock = File_tendermint_abci_types_proto.Messages().ByName("RequestFinalizeBlock") + fd_RequestFinalizeBlock_txs = md_RequestFinalizeBlock.Fields().ByName("txs") + fd_RequestFinalizeBlock_decided_last_commit = md_RequestFinalizeBlock.Fields().ByName("decided_last_commit") + fd_RequestFinalizeBlock_misbehavior = md_RequestFinalizeBlock.Fields().ByName("misbehavior") + fd_RequestFinalizeBlock_hash = md_RequestFinalizeBlock.Fields().ByName("hash") + fd_RequestFinalizeBlock_height = md_RequestFinalizeBlock.Fields().ByName("height") + fd_RequestFinalizeBlock_time = md_RequestFinalizeBlock.Fields().ByName("time") + fd_RequestFinalizeBlock_next_validators_hash = md_RequestFinalizeBlock.Fields().ByName("next_validators_hash") + fd_RequestFinalizeBlock_proposer_address = md_RequestFinalizeBlock.Fields().ByName("proposer_address") } -var _ protoreflect.Message = (*fastReflection_FinalizeBlockRequest)(nil) +var _ protoreflect.Message = (*fastReflection_RequestFinalizeBlock)(nil) -type fastReflection_FinalizeBlockRequest FinalizeBlockRequest +type fastReflection_RequestFinalizeBlock RequestFinalizeBlock -func (x *FinalizeBlockRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_FinalizeBlockRequest)(x) +func (x *RequestFinalizeBlock) ProtoReflect() protoreflect.Message { + return (*fastReflection_RequestFinalizeBlock)(x) } -func (x *FinalizeBlockRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[16] +func (x *RequestFinalizeBlock) slowProtoReflect() protoreflect.Message { + mi := &file_tendermint_abci_types_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11413,43 +11343,43 @@ func (x *FinalizeBlockRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_FinalizeBlockRequest_messageType fastReflection_FinalizeBlockRequest_messageType -var _ protoreflect.MessageType = fastReflection_FinalizeBlockRequest_messageType{} +var _fastReflection_RequestFinalizeBlock_messageType fastReflection_RequestFinalizeBlock_messageType +var _ protoreflect.MessageType = fastReflection_RequestFinalizeBlock_messageType{} -type fastReflection_FinalizeBlockRequest_messageType struct{} +type fastReflection_RequestFinalizeBlock_messageType struct{} -func (x fastReflection_FinalizeBlockRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_FinalizeBlockRequest)(nil) +func (x fastReflection_RequestFinalizeBlock_messageType) Zero() protoreflect.Message { + return (*fastReflection_RequestFinalizeBlock)(nil) } -func (x fastReflection_FinalizeBlockRequest_messageType) New() protoreflect.Message { - return new(fastReflection_FinalizeBlockRequest) +func (x fastReflection_RequestFinalizeBlock_messageType) New() protoreflect.Message { + return new(fastReflection_RequestFinalizeBlock) } -func (x fastReflection_FinalizeBlockRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_FinalizeBlockRequest +func (x fastReflection_RequestFinalizeBlock_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_RequestFinalizeBlock } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_FinalizeBlockRequest) Descriptor() protoreflect.MessageDescriptor { - return md_FinalizeBlockRequest +func (x *fastReflection_RequestFinalizeBlock) Descriptor() protoreflect.MessageDescriptor { + return md_RequestFinalizeBlock } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_FinalizeBlockRequest) Type() protoreflect.MessageType { - return _fastReflection_FinalizeBlockRequest_messageType +func (x *fastReflection_RequestFinalizeBlock) Type() protoreflect.MessageType { + return _fastReflection_RequestFinalizeBlock_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_FinalizeBlockRequest) New() protoreflect.Message { - return new(fastReflection_FinalizeBlockRequest) +func (x *fastReflection_RequestFinalizeBlock) New() protoreflect.Message { + return new(fastReflection_RequestFinalizeBlock) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_FinalizeBlockRequest) Interface() protoreflect.ProtoMessage { - return (*FinalizeBlockRequest)(x) +func (x *fastReflection_RequestFinalizeBlock) Interface() protoreflect.ProtoMessage { + return (*RequestFinalizeBlock)(x) } // Range iterates over every populated field in an undefined order, @@ -11457,58 +11387,52 @@ func (x *fastReflection_FinalizeBlockRequest) Interface() protoreflect.ProtoMess // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_FinalizeBlockRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_RequestFinalizeBlock) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if len(x.Txs) != 0 { - value := protoreflect.ValueOfList(&_FinalizeBlockRequest_1_list{list: &x.Txs}) - if !f(fd_FinalizeBlockRequest_txs, value) { + value := protoreflect.ValueOfList(&_RequestFinalizeBlock_1_list{list: &x.Txs}) + if !f(fd_RequestFinalizeBlock_txs, value) { return } } if x.DecidedLastCommit != nil { value := protoreflect.ValueOfMessage(x.DecidedLastCommit.ProtoReflect()) - if !f(fd_FinalizeBlockRequest_decided_last_commit, value) { + if !f(fd_RequestFinalizeBlock_decided_last_commit, value) { return } } if len(x.Misbehavior) != 0 { - value := protoreflect.ValueOfList(&_FinalizeBlockRequest_3_list{list: &x.Misbehavior}) - if !f(fd_FinalizeBlockRequest_misbehavior, value) { + value := protoreflect.ValueOfList(&_RequestFinalizeBlock_3_list{list: &x.Misbehavior}) + if !f(fd_RequestFinalizeBlock_misbehavior, value) { return } } if len(x.Hash) != 0 { value := protoreflect.ValueOfBytes(x.Hash) - if !f(fd_FinalizeBlockRequest_hash, value) { + if !f(fd_RequestFinalizeBlock_hash, value) { return } } if x.Height != int64(0) { value := protoreflect.ValueOfInt64(x.Height) - if !f(fd_FinalizeBlockRequest_height, value) { + if !f(fd_RequestFinalizeBlock_height, value) { return } } if x.Time != nil { value := protoreflect.ValueOfMessage(x.Time.ProtoReflect()) - if !f(fd_FinalizeBlockRequest_time, value) { + if !f(fd_RequestFinalizeBlock_time, value) { return } } if len(x.NextValidatorsHash) != 0 { value := protoreflect.ValueOfBytes(x.NextValidatorsHash) - if !f(fd_FinalizeBlockRequest_next_validators_hash, value) { + if !f(fd_RequestFinalizeBlock_next_validators_hash, value) { return } } if len(x.ProposerAddress) != 0 { value := protoreflect.ValueOfBytes(x.ProposerAddress) - if !f(fd_FinalizeBlockRequest_proposer_address, value) { - return - } - } - if x.SyncingToHeight != int64(0) { - value := protoreflect.ValueOfInt64(x.SyncingToHeight) - if !f(fd_FinalizeBlockRequest_syncing_to_height, value) { + if !f(fd_RequestFinalizeBlock_proposer_address, value) { return } } @@ -11525,31 +11449,29 @@ func (x *fastReflection_FinalizeBlockRequest) Range(f func(protoreflect.FieldDes // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_FinalizeBlockRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_RequestFinalizeBlock) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.FinalizeBlockRequest.txs": + case "tendermint.abci.RequestFinalizeBlock.txs": return len(x.Txs) != 0 - case "cometbft.abci.v2.FinalizeBlockRequest.decided_last_commit": + case "tendermint.abci.RequestFinalizeBlock.decided_last_commit": return x.DecidedLastCommit != nil - case "cometbft.abci.v2.FinalizeBlockRequest.misbehavior": + case "tendermint.abci.RequestFinalizeBlock.misbehavior": return len(x.Misbehavior) != 0 - case "cometbft.abci.v2.FinalizeBlockRequest.hash": + case "tendermint.abci.RequestFinalizeBlock.hash": return len(x.Hash) != 0 - case "cometbft.abci.v2.FinalizeBlockRequest.height": + case "tendermint.abci.RequestFinalizeBlock.height": return x.Height != int64(0) - case "cometbft.abci.v2.FinalizeBlockRequest.time": + case "tendermint.abci.RequestFinalizeBlock.time": return x.Time != nil - case "cometbft.abci.v2.FinalizeBlockRequest.next_validators_hash": + case "tendermint.abci.RequestFinalizeBlock.next_validators_hash": return len(x.NextValidatorsHash) != 0 - case "cometbft.abci.v2.FinalizeBlockRequest.proposer_address": + case "tendermint.abci.RequestFinalizeBlock.proposer_address": return len(x.ProposerAddress) != 0 - case "cometbft.abci.v2.FinalizeBlockRequest.syncing_to_height": - return x.SyncingToHeight != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.FinalizeBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestFinalizeBlock")) } - panic(fmt.Errorf("message cometbft.abci.v2.FinalizeBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestFinalizeBlock does not contain field %s", fd.FullName())) } } @@ -11559,31 +11481,29 @@ func (x *fastReflection_FinalizeBlockRequest) Has(fd protoreflect.FieldDescripto // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_FinalizeBlockRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_RequestFinalizeBlock) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.FinalizeBlockRequest.txs": + case "tendermint.abci.RequestFinalizeBlock.txs": x.Txs = nil - case "cometbft.abci.v2.FinalizeBlockRequest.decided_last_commit": + case "tendermint.abci.RequestFinalizeBlock.decided_last_commit": x.DecidedLastCommit = nil - case "cometbft.abci.v2.FinalizeBlockRequest.misbehavior": + case "tendermint.abci.RequestFinalizeBlock.misbehavior": x.Misbehavior = nil - case "cometbft.abci.v2.FinalizeBlockRequest.hash": + case "tendermint.abci.RequestFinalizeBlock.hash": x.Hash = nil - case "cometbft.abci.v2.FinalizeBlockRequest.height": + case "tendermint.abci.RequestFinalizeBlock.height": x.Height = int64(0) - case "cometbft.abci.v2.FinalizeBlockRequest.time": + case "tendermint.abci.RequestFinalizeBlock.time": x.Time = nil - case "cometbft.abci.v2.FinalizeBlockRequest.next_validators_hash": + case "tendermint.abci.RequestFinalizeBlock.next_validators_hash": x.NextValidatorsHash = nil - case "cometbft.abci.v2.FinalizeBlockRequest.proposer_address": + case "tendermint.abci.RequestFinalizeBlock.proposer_address": x.ProposerAddress = nil - case "cometbft.abci.v2.FinalizeBlockRequest.syncing_to_height": - x.SyncingToHeight = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.FinalizeBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestFinalizeBlock")) } - panic(fmt.Errorf("message cometbft.abci.v2.FinalizeBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestFinalizeBlock does not contain field %s", fd.FullName())) } } @@ -11593,46 +11513,43 @@ func (x *fastReflection_FinalizeBlockRequest) Clear(fd protoreflect.FieldDescrip // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_FinalizeBlockRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestFinalizeBlock) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.FinalizeBlockRequest.txs": + case "tendermint.abci.RequestFinalizeBlock.txs": if len(x.Txs) == 0 { - return protoreflect.ValueOfList(&_FinalizeBlockRequest_1_list{}) + return protoreflect.ValueOfList(&_RequestFinalizeBlock_1_list{}) } - listValue := &_FinalizeBlockRequest_1_list{list: &x.Txs} + listValue := &_RequestFinalizeBlock_1_list{list: &x.Txs} return protoreflect.ValueOfList(listValue) - case "cometbft.abci.v2.FinalizeBlockRequest.decided_last_commit": + case "tendermint.abci.RequestFinalizeBlock.decided_last_commit": value := x.DecidedLastCommit return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.FinalizeBlockRequest.misbehavior": + case "tendermint.abci.RequestFinalizeBlock.misbehavior": if len(x.Misbehavior) == 0 { - return protoreflect.ValueOfList(&_FinalizeBlockRequest_3_list{}) + return protoreflect.ValueOfList(&_RequestFinalizeBlock_3_list{}) } - listValue := &_FinalizeBlockRequest_3_list{list: &x.Misbehavior} + listValue := &_RequestFinalizeBlock_3_list{list: &x.Misbehavior} return protoreflect.ValueOfList(listValue) - case "cometbft.abci.v2.FinalizeBlockRequest.hash": + case "tendermint.abci.RequestFinalizeBlock.hash": value := x.Hash return protoreflect.ValueOfBytes(value) - case "cometbft.abci.v2.FinalizeBlockRequest.height": + case "tendermint.abci.RequestFinalizeBlock.height": value := x.Height return protoreflect.ValueOfInt64(value) - case "cometbft.abci.v2.FinalizeBlockRequest.time": + case "tendermint.abci.RequestFinalizeBlock.time": value := x.Time return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.FinalizeBlockRequest.next_validators_hash": + case "tendermint.abci.RequestFinalizeBlock.next_validators_hash": value := x.NextValidatorsHash return protoreflect.ValueOfBytes(value) - case "cometbft.abci.v2.FinalizeBlockRequest.proposer_address": + case "tendermint.abci.RequestFinalizeBlock.proposer_address": value := x.ProposerAddress return protoreflect.ValueOfBytes(value) - case "cometbft.abci.v2.FinalizeBlockRequest.syncing_to_height": - value := x.SyncingToHeight - return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.FinalizeBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestFinalizeBlock")) } - panic(fmt.Errorf("message cometbft.abci.v2.FinalizeBlockRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestFinalizeBlock does not contain field %s", descriptor.FullName())) } } @@ -11646,35 +11563,33 @@ func (x *fastReflection_FinalizeBlockRequest) Get(descriptor protoreflect.FieldD // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_FinalizeBlockRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_RequestFinalizeBlock) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.FinalizeBlockRequest.txs": + case "tendermint.abci.RequestFinalizeBlock.txs": lv := value.List() - clv := lv.(*_FinalizeBlockRequest_1_list) + clv := lv.(*_RequestFinalizeBlock_1_list) x.Txs = *clv.list - case "cometbft.abci.v2.FinalizeBlockRequest.decided_last_commit": + case "tendermint.abci.RequestFinalizeBlock.decided_last_commit": x.DecidedLastCommit = value.Message().Interface().(*CommitInfo) - case "cometbft.abci.v2.FinalizeBlockRequest.misbehavior": + case "tendermint.abci.RequestFinalizeBlock.misbehavior": lv := value.List() - clv := lv.(*_FinalizeBlockRequest_3_list) + clv := lv.(*_RequestFinalizeBlock_3_list) x.Misbehavior = *clv.list - case "cometbft.abci.v2.FinalizeBlockRequest.hash": + case "tendermint.abci.RequestFinalizeBlock.hash": x.Hash = value.Bytes() - case "cometbft.abci.v2.FinalizeBlockRequest.height": + case "tendermint.abci.RequestFinalizeBlock.height": x.Height = value.Int() - case "cometbft.abci.v2.FinalizeBlockRequest.time": + case "tendermint.abci.RequestFinalizeBlock.time": x.Time = value.Message().Interface().(*timestamppb.Timestamp) - case "cometbft.abci.v2.FinalizeBlockRequest.next_validators_hash": + case "tendermint.abci.RequestFinalizeBlock.next_validators_hash": x.NextValidatorsHash = value.Bytes() - case "cometbft.abci.v2.FinalizeBlockRequest.proposer_address": + case "tendermint.abci.RequestFinalizeBlock.proposer_address": x.ProposerAddress = value.Bytes() - case "cometbft.abci.v2.FinalizeBlockRequest.syncing_to_height": - x.SyncingToHeight = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.FinalizeBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestFinalizeBlock")) } - panic(fmt.Errorf("message cometbft.abci.v2.FinalizeBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestFinalizeBlock does not contain field %s", fd.FullName())) } } @@ -11688,90 +11603,86 @@ func (x *fastReflection_FinalizeBlockRequest) Set(fd protoreflect.FieldDescripto // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_FinalizeBlockRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestFinalizeBlock) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.FinalizeBlockRequest.txs": + case "tendermint.abci.RequestFinalizeBlock.txs": if x.Txs == nil { x.Txs = [][]byte{} } - value := &_FinalizeBlockRequest_1_list{list: &x.Txs} + value := &_RequestFinalizeBlock_1_list{list: &x.Txs} return protoreflect.ValueOfList(value) - case "cometbft.abci.v2.FinalizeBlockRequest.decided_last_commit": + case "tendermint.abci.RequestFinalizeBlock.decided_last_commit": if x.DecidedLastCommit == nil { x.DecidedLastCommit = new(CommitInfo) } return protoreflect.ValueOfMessage(x.DecidedLastCommit.ProtoReflect()) - case "cometbft.abci.v2.FinalizeBlockRequest.misbehavior": + case "tendermint.abci.RequestFinalizeBlock.misbehavior": if x.Misbehavior == nil { x.Misbehavior = []*Misbehavior{} } - value := &_FinalizeBlockRequest_3_list{list: &x.Misbehavior} + value := &_RequestFinalizeBlock_3_list{list: &x.Misbehavior} return protoreflect.ValueOfList(value) - case "cometbft.abci.v2.FinalizeBlockRequest.time": + case "tendermint.abci.RequestFinalizeBlock.time": if x.Time == nil { x.Time = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.Time.ProtoReflect()) - case "cometbft.abci.v2.FinalizeBlockRequest.hash": - panic(fmt.Errorf("field hash of message cometbft.abci.v2.FinalizeBlockRequest is not mutable")) - case "cometbft.abci.v2.FinalizeBlockRequest.height": - panic(fmt.Errorf("field height of message cometbft.abci.v2.FinalizeBlockRequest is not mutable")) - case "cometbft.abci.v2.FinalizeBlockRequest.next_validators_hash": - panic(fmt.Errorf("field next_validators_hash of message cometbft.abci.v2.FinalizeBlockRequest is not mutable")) - case "cometbft.abci.v2.FinalizeBlockRequest.proposer_address": - panic(fmt.Errorf("field proposer_address of message cometbft.abci.v2.FinalizeBlockRequest is not mutable")) - case "cometbft.abci.v2.FinalizeBlockRequest.syncing_to_height": - panic(fmt.Errorf("field syncing_to_height of message cometbft.abci.v2.FinalizeBlockRequest is not mutable")) + case "tendermint.abci.RequestFinalizeBlock.hash": + panic(fmt.Errorf("field hash of message tendermint.abci.RequestFinalizeBlock is not mutable")) + case "tendermint.abci.RequestFinalizeBlock.height": + panic(fmt.Errorf("field height of message tendermint.abci.RequestFinalizeBlock is not mutable")) + case "tendermint.abci.RequestFinalizeBlock.next_validators_hash": + panic(fmt.Errorf("field next_validators_hash of message tendermint.abci.RequestFinalizeBlock is not mutable")) + case "tendermint.abci.RequestFinalizeBlock.proposer_address": + panic(fmt.Errorf("field proposer_address of message tendermint.abci.RequestFinalizeBlock is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.FinalizeBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestFinalizeBlock")) } - panic(fmt.Errorf("message cometbft.abci.v2.FinalizeBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestFinalizeBlock does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_FinalizeBlockRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestFinalizeBlock) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.FinalizeBlockRequest.txs": + case "tendermint.abci.RequestFinalizeBlock.txs": list := [][]byte{} - return protoreflect.ValueOfList(&_FinalizeBlockRequest_1_list{list: &list}) - case "cometbft.abci.v2.FinalizeBlockRequest.decided_last_commit": + return protoreflect.ValueOfList(&_RequestFinalizeBlock_1_list{list: &list}) + case "tendermint.abci.RequestFinalizeBlock.decided_last_commit": m := new(CommitInfo) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.abci.v2.FinalizeBlockRequest.misbehavior": + case "tendermint.abci.RequestFinalizeBlock.misbehavior": list := []*Misbehavior{} - return protoreflect.ValueOfList(&_FinalizeBlockRequest_3_list{list: &list}) - case "cometbft.abci.v2.FinalizeBlockRequest.hash": + return protoreflect.ValueOfList(&_RequestFinalizeBlock_3_list{list: &list}) + case "tendermint.abci.RequestFinalizeBlock.hash": return protoreflect.ValueOfBytes(nil) - case "cometbft.abci.v2.FinalizeBlockRequest.height": + case "tendermint.abci.RequestFinalizeBlock.height": return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.abci.v2.FinalizeBlockRequest.time": + case "tendermint.abci.RequestFinalizeBlock.time": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.abci.v2.FinalizeBlockRequest.next_validators_hash": + case "tendermint.abci.RequestFinalizeBlock.next_validators_hash": return protoreflect.ValueOfBytes(nil) - case "cometbft.abci.v2.FinalizeBlockRequest.proposer_address": + case "tendermint.abci.RequestFinalizeBlock.proposer_address": return protoreflect.ValueOfBytes(nil) - case "cometbft.abci.v2.FinalizeBlockRequest.syncing_to_height": - return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.FinalizeBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.RequestFinalizeBlock")) } - panic(fmt.Errorf("message cometbft.abci.v2.FinalizeBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.RequestFinalizeBlock does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_FinalizeBlockRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_RequestFinalizeBlock) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.FinalizeBlockRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.RequestFinalizeBlock", d.FullName())) } panic("unreachable") } @@ -11779,7 +11690,7 @@ func (x *fastReflection_FinalizeBlockRequest) WhichOneof(d protoreflect.OneofDes // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_FinalizeBlockRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_RequestFinalizeBlock) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -11790,7 +11701,7 @@ func (x *fastReflection_FinalizeBlockRequest) GetUnknown() protoreflect.RawField // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_FinalizeBlockRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_RequestFinalizeBlock) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -11802,7 +11713,7 @@ func (x *fastReflection_FinalizeBlockRequest) SetUnknown(fields protoreflect.Raw // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_FinalizeBlockRequest) IsValid() bool { +func (x *fastReflection_RequestFinalizeBlock) IsValid() bool { return x != nil } @@ -11812,9 +11723,9 @@ func (x *fastReflection_FinalizeBlockRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_FinalizeBlockRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_RequestFinalizeBlock) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*FinalizeBlockRequest) + x := input.Message.Interface().(*RequestFinalizeBlock) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11861,9 +11772,6 @@ func (x *fastReflection_FinalizeBlockRequest) ProtoMethods() *protoiface.Methods if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.SyncingToHeight != 0 { - n += 1 + runtime.Sov(uint64(x.SyncingToHeight)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -11874,7 +11782,7 @@ func (x *fastReflection_FinalizeBlockRequest) ProtoMethods() *protoiface.Methods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*FinalizeBlockRequest) + x := input.Message.Interface().(*RequestFinalizeBlock) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11893,11 +11801,6 @@ func (x *fastReflection_FinalizeBlockRequest) ProtoMethods() *protoiface.Methods i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.SyncingToHeight != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.SyncingToHeight)) - i-- - dAtA[i] = 0x48 - } if len(x.ProposerAddress) > 0 { i -= len(x.ProposerAddress) copy(dAtA[i:], x.ProposerAddress) @@ -11988,7 +11891,7 @@ func (x *fastReflection_FinalizeBlockRequest) ProtoMethods() *protoiface.Methods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*FinalizeBlockRequest) + x := input.Message.Interface().(*RequestFinalizeBlock) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12020,10 +11923,10 @@ func (x *fastReflection_FinalizeBlockRequest) ProtoMethods() *protoiface.Methods fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: FinalizeBlockRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestFinalizeBlock: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: FinalizeBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestFinalizeBlock: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -12285,25 +12188,6 @@ func (x *fastReflection_FinalizeBlockRequest) ProtoMethods() *protoiface.Methods x.ProposerAddress = []byte{} } iNdEx = postIndex - case 9: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SyncingToHeight", wireType) - } - x.SyncingToHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.SyncingToHeight |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -12361,8 +12245,8 @@ var ( ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_Response = File_cometbft_abci_v2_types_proto.Messages().ByName("Response") + file_tendermint_abci_types_proto_init() + md_Response = File_tendermint_abci_types_proto.Messages().ByName("Response") fd_Response_exception = md_Response.Fields().ByName("exception") fd_Response_echo = md_Response.Fields().ByName("echo") fd_Response_flush = md_Response.Fields().ByName("flush") @@ -12391,7 +12275,7 @@ func (x *Response) ProtoReflect() protoreflect.Message { } func (x *Response) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[17] + mi := &file_tendermint_abci_types_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12568,7 +12452,7 @@ func (x *fastReflection_Response) Range(f func(protoreflect.FieldDescriptor, pro // a repeated field is populated if it is non-empty. func (x *fastReflection_Response) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.Response.exception": + case "tendermint.abci.Response.exception": if x.Value == nil { return false } else if _, ok := x.Value.(*Response_Exception); ok { @@ -12576,7 +12460,7 @@ func (x *fastReflection_Response) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "cometbft.abci.v2.Response.echo": + case "tendermint.abci.Response.echo": if x.Value == nil { return false } else if _, ok := x.Value.(*Response_Echo); ok { @@ -12584,7 +12468,7 @@ func (x *fastReflection_Response) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "cometbft.abci.v2.Response.flush": + case "tendermint.abci.Response.flush": if x.Value == nil { return false } else if _, ok := x.Value.(*Response_Flush); ok { @@ -12592,7 +12476,7 @@ func (x *fastReflection_Response) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "cometbft.abci.v2.Response.info": + case "tendermint.abci.Response.info": if x.Value == nil { return false } else if _, ok := x.Value.(*Response_Info); ok { @@ -12600,7 +12484,7 @@ func (x *fastReflection_Response) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "cometbft.abci.v2.Response.init_chain": + case "tendermint.abci.Response.init_chain": if x.Value == nil { return false } else if _, ok := x.Value.(*Response_InitChain); ok { @@ -12608,7 +12492,7 @@ func (x *fastReflection_Response) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "cometbft.abci.v2.Response.query": + case "tendermint.abci.Response.query": if x.Value == nil { return false } else if _, ok := x.Value.(*Response_Query); ok { @@ -12616,7 +12500,7 @@ func (x *fastReflection_Response) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "cometbft.abci.v2.Response.check_tx": + case "tendermint.abci.Response.check_tx": if x.Value == nil { return false } else if _, ok := x.Value.(*Response_CheckTx); ok { @@ -12624,7 +12508,7 @@ func (x *fastReflection_Response) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "cometbft.abci.v2.Response.commit": + case "tendermint.abci.Response.commit": if x.Value == nil { return false } else if _, ok := x.Value.(*Response_Commit); ok { @@ -12632,7 +12516,7 @@ func (x *fastReflection_Response) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "cometbft.abci.v2.Response.list_snapshots": + case "tendermint.abci.Response.list_snapshots": if x.Value == nil { return false } else if _, ok := x.Value.(*Response_ListSnapshots); ok { @@ -12640,7 +12524,7 @@ func (x *fastReflection_Response) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "cometbft.abci.v2.Response.offer_snapshot": + case "tendermint.abci.Response.offer_snapshot": if x.Value == nil { return false } else if _, ok := x.Value.(*Response_OfferSnapshot); ok { @@ -12648,7 +12532,7 @@ func (x *fastReflection_Response) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "cometbft.abci.v2.Response.load_snapshot_chunk": + case "tendermint.abci.Response.load_snapshot_chunk": if x.Value == nil { return false } else if _, ok := x.Value.(*Response_LoadSnapshotChunk); ok { @@ -12656,7 +12540,7 @@ func (x *fastReflection_Response) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "cometbft.abci.v2.Response.apply_snapshot_chunk": + case "tendermint.abci.Response.apply_snapshot_chunk": if x.Value == nil { return false } else if _, ok := x.Value.(*Response_ApplySnapshotChunk); ok { @@ -12664,7 +12548,7 @@ func (x *fastReflection_Response) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "cometbft.abci.v2.Response.prepare_proposal": + case "tendermint.abci.Response.prepare_proposal": if x.Value == nil { return false } else if _, ok := x.Value.(*Response_PrepareProposal); ok { @@ -12672,7 +12556,7 @@ func (x *fastReflection_Response) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "cometbft.abci.v2.Response.process_proposal": + case "tendermint.abci.Response.process_proposal": if x.Value == nil { return false } else if _, ok := x.Value.(*Response_ProcessProposal); ok { @@ -12680,7 +12564,7 @@ func (x *fastReflection_Response) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "cometbft.abci.v2.Response.extend_vote": + case "tendermint.abci.Response.extend_vote": if x.Value == nil { return false } else if _, ok := x.Value.(*Response_ExtendVote); ok { @@ -12688,7 +12572,7 @@ func (x *fastReflection_Response) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "cometbft.abci.v2.Response.verify_vote_extension": + case "tendermint.abci.Response.verify_vote_extension": if x.Value == nil { return false } else if _, ok := x.Value.(*Response_VerifyVoteExtension); ok { @@ -12696,7 +12580,7 @@ func (x *fastReflection_Response) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "cometbft.abci.v2.Response.finalize_block": + case "tendermint.abci.Response.finalize_block": if x.Value == nil { return false } else if _, ok := x.Value.(*Response_FinalizeBlock); ok { @@ -12706,9 +12590,9 @@ func (x *fastReflection_Response) Has(fd protoreflect.FieldDescriptor) bool { } default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Response")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Response")) } - panic(fmt.Errorf("message cometbft.abci.v2.Response does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.Response does not contain field %s", fd.FullName())) } } @@ -12720,45 +12604,45 @@ func (x *fastReflection_Response) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Response) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.Response.exception": + case "tendermint.abci.Response.exception": x.Value = nil - case "cometbft.abci.v2.Response.echo": + case "tendermint.abci.Response.echo": x.Value = nil - case "cometbft.abci.v2.Response.flush": + case "tendermint.abci.Response.flush": x.Value = nil - case "cometbft.abci.v2.Response.info": + case "tendermint.abci.Response.info": x.Value = nil - case "cometbft.abci.v2.Response.init_chain": + case "tendermint.abci.Response.init_chain": x.Value = nil - case "cometbft.abci.v2.Response.query": + case "tendermint.abci.Response.query": x.Value = nil - case "cometbft.abci.v2.Response.check_tx": + case "tendermint.abci.Response.check_tx": x.Value = nil - case "cometbft.abci.v2.Response.commit": + case "tendermint.abci.Response.commit": x.Value = nil - case "cometbft.abci.v2.Response.list_snapshots": + case "tendermint.abci.Response.list_snapshots": x.Value = nil - case "cometbft.abci.v2.Response.offer_snapshot": + case "tendermint.abci.Response.offer_snapshot": x.Value = nil - case "cometbft.abci.v2.Response.load_snapshot_chunk": + case "tendermint.abci.Response.load_snapshot_chunk": x.Value = nil - case "cometbft.abci.v2.Response.apply_snapshot_chunk": + case "tendermint.abci.Response.apply_snapshot_chunk": x.Value = nil - case "cometbft.abci.v2.Response.prepare_proposal": + case "tendermint.abci.Response.prepare_proposal": x.Value = nil - case "cometbft.abci.v2.Response.process_proposal": + case "tendermint.abci.Response.process_proposal": x.Value = nil - case "cometbft.abci.v2.Response.extend_vote": + case "tendermint.abci.Response.extend_vote": x.Value = nil - case "cometbft.abci.v2.Response.verify_vote_extension": + case "tendermint.abci.Response.verify_vote_extension": x.Value = nil - case "cometbft.abci.v2.Response.finalize_block": + case "tendermint.abci.Response.finalize_block": x.Value = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Response")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Response")) } - panic(fmt.Errorf("message cometbft.abci.v2.Response does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.Response does not contain field %s", fd.FullName())) } } @@ -12770,147 +12654,147 @@ func (x *fastReflection_Response) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Response) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.Response.exception": + case "tendermint.abci.Response.exception": if x.Value == nil { - return protoreflect.ValueOfMessage((*ExceptionResponse)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*ResponseException)(nil).ProtoReflect()) } else if v, ok := x.Value.(*Response_Exception); ok { return protoreflect.ValueOfMessage(v.Exception.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*ExceptionResponse)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*ResponseException)(nil).ProtoReflect()) } - case "cometbft.abci.v2.Response.echo": + case "tendermint.abci.Response.echo": if x.Value == nil { - return protoreflect.ValueOfMessage((*EchoResponse)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*ResponseEcho)(nil).ProtoReflect()) } else if v, ok := x.Value.(*Response_Echo); ok { return protoreflect.ValueOfMessage(v.Echo.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*EchoResponse)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*ResponseEcho)(nil).ProtoReflect()) } - case "cometbft.abci.v2.Response.flush": + case "tendermint.abci.Response.flush": if x.Value == nil { - return protoreflect.ValueOfMessage((*FlushResponse)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*ResponseFlush)(nil).ProtoReflect()) } else if v, ok := x.Value.(*Response_Flush); ok { return protoreflect.ValueOfMessage(v.Flush.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*FlushResponse)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*ResponseFlush)(nil).ProtoReflect()) } - case "cometbft.abci.v2.Response.info": + case "tendermint.abci.Response.info": if x.Value == nil { - return protoreflect.ValueOfMessage((*InfoResponse)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*ResponseInfo)(nil).ProtoReflect()) } else if v, ok := x.Value.(*Response_Info); ok { return protoreflect.ValueOfMessage(v.Info.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*InfoResponse)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*ResponseInfo)(nil).ProtoReflect()) } - case "cometbft.abci.v2.Response.init_chain": + case "tendermint.abci.Response.init_chain": if x.Value == nil { - return protoreflect.ValueOfMessage((*InitChainResponse)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*ResponseInitChain)(nil).ProtoReflect()) } else if v, ok := x.Value.(*Response_InitChain); ok { return protoreflect.ValueOfMessage(v.InitChain.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*InitChainResponse)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*ResponseInitChain)(nil).ProtoReflect()) } - case "cometbft.abci.v2.Response.query": + case "tendermint.abci.Response.query": if x.Value == nil { - return protoreflect.ValueOfMessage((*QueryResponse)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*ResponseQuery)(nil).ProtoReflect()) } else if v, ok := x.Value.(*Response_Query); ok { return protoreflect.ValueOfMessage(v.Query.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*QueryResponse)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*ResponseQuery)(nil).ProtoReflect()) } - case "cometbft.abci.v2.Response.check_tx": + case "tendermint.abci.Response.check_tx": if x.Value == nil { - return protoreflect.ValueOfMessage((*CheckTxResponse)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*ResponseCheckTx)(nil).ProtoReflect()) } else if v, ok := x.Value.(*Response_CheckTx); ok { return protoreflect.ValueOfMessage(v.CheckTx.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*CheckTxResponse)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*ResponseCheckTx)(nil).ProtoReflect()) } - case "cometbft.abci.v2.Response.commit": + case "tendermint.abci.Response.commit": if x.Value == nil { - return protoreflect.ValueOfMessage((*CommitResponse)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*ResponseCommit)(nil).ProtoReflect()) } else if v, ok := x.Value.(*Response_Commit); ok { return protoreflect.ValueOfMessage(v.Commit.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*CommitResponse)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*ResponseCommit)(nil).ProtoReflect()) } - case "cometbft.abci.v2.Response.list_snapshots": + case "tendermint.abci.Response.list_snapshots": if x.Value == nil { - return protoreflect.ValueOfMessage((*ListSnapshotsResponse)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*ResponseListSnapshots)(nil).ProtoReflect()) } else if v, ok := x.Value.(*Response_ListSnapshots); ok { return protoreflect.ValueOfMessage(v.ListSnapshots.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*ListSnapshotsResponse)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*ResponseListSnapshots)(nil).ProtoReflect()) } - case "cometbft.abci.v2.Response.offer_snapshot": + case "tendermint.abci.Response.offer_snapshot": if x.Value == nil { - return protoreflect.ValueOfMessage((*OfferSnapshotResponse)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*ResponseOfferSnapshot)(nil).ProtoReflect()) } else if v, ok := x.Value.(*Response_OfferSnapshot); ok { return protoreflect.ValueOfMessage(v.OfferSnapshot.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*OfferSnapshotResponse)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*ResponseOfferSnapshot)(nil).ProtoReflect()) } - case "cometbft.abci.v2.Response.load_snapshot_chunk": + case "tendermint.abci.Response.load_snapshot_chunk": if x.Value == nil { - return protoreflect.ValueOfMessage((*LoadSnapshotChunkResponse)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*ResponseLoadSnapshotChunk)(nil).ProtoReflect()) } else if v, ok := x.Value.(*Response_LoadSnapshotChunk); ok { return protoreflect.ValueOfMessage(v.LoadSnapshotChunk.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*LoadSnapshotChunkResponse)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*ResponseLoadSnapshotChunk)(nil).ProtoReflect()) } - case "cometbft.abci.v2.Response.apply_snapshot_chunk": + case "tendermint.abci.Response.apply_snapshot_chunk": if x.Value == nil { - return protoreflect.ValueOfMessage((*ApplySnapshotChunkResponse)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*ResponseApplySnapshotChunk)(nil).ProtoReflect()) } else if v, ok := x.Value.(*Response_ApplySnapshotChunk); ok { return protoreflect.ValueOfMessage(v.ApplySnapshotChunk.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*ApplySnapshotChunkResponse)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*ResponseApplySnapshotChunk)(nil).ProtoReflect()) } - case "cometbft.abci.v2.Response.prepare_proposal": + case "tendermint.abci.Response.prepare_proposal": if x.Value == nil { - return protoreflect.ValueOfMessage((*PrepareProposalResponse)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*ResponsePrepareProposal)(nil).ProtoReflect()) } else if v, ok := x.Value.(*Response_PrepareProposal); ok { return protoreflect.ValueOfMessage(v.PrepareProposal.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*PrepareProposalResponse)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*ResponsePrepareProposal)(nil).ProtoReflect()) } - case "cometbft.abci.v2.Response.process_proposal": + case "tendermint.abci.Response.process_proposal": if x.Value == nil { - return protoreflect.ValueOfMessage((*ProcessProposalResponse)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*ResponseProcessProposal)(nil).ProtoReflect()) } else if v, ok := x.Value.(*Response_ProcessProposal); ok { return protoreflect.ValueOfMessage(v.ProcessProposal.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*ProcessProposalResponse)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*ResponseProcessProposal)(nil).ProtoReflect()) } - case "cometbft.abci.v2.Response.extend_vote": + case "tendermint.abci.Response.extend_vote": if x.Value == nil { - return protoreflect.ValueOfMessage((*ExtendVoteResponse)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*ResponseExtendVote)(nil).ProtoReflect()) } else if v, ok := x.Value.(*Response_ExtendVote); ok { return protoreflect.ValueOfMessage(v.ExtendVote.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*ExtendVoteResponse)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*ResponseExtendVote)(nil).ProtoReflect()) } - case "cometbft.abci.v2.Response.verify_vote_extension": + case "tendermint.abci.Response.verify_vote_extension": if x.Value == nil { - return protoreflect.ValueOfMessage((*VerifyVoteExtensionResponse)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*ResponseVerifyVoteExtension)(nil).ProtoReflect()) } else if v, ok := x.Value.(*Response_VerifyVoteExtension); ok { return protoreflect.ValueOfMessage(v.VerifyVoteExtension.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*VerifyVoteExtensionResponse)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*ResponseVerifyVoteExtension)(nil).ProtoReflect()) } - case "cometbft.abci.v2.Response.finalize_block": + case "tendermint.abci.Response.finalize_block": if x.Value == nil { - return protoreflect.ValueOfMessage((*FinalizeBlockResponse)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*ResponseFinalizeBlock)(nil).ProtoReflect()) } else if v, ok := x.Value.(*Response_FinalizeBlock); ok { return protoreflect.ValueOfMessage(v.FinalizeBlock.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*FinalizeBlockResponse)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*ResponseFinalizeBlock)(nil).ProtoReflect()) } default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Response")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Response")) } - panic(fmt.Errorf("message cometbft.abci.v2.Response does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.Response does not contain field %s", descriptor.FullName())) } } @@ -12926,62 +12810,62 @@ func (x *fastReflection_Response) Get(descriptor protoreflect.FieldDescriptor) p // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Response) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.Response.exception": - cv := value.Message().Interface().(*ExceptionResponse) + case "tendermint.abci.Response.exception": + cv := value.Message().Interface().(*ResponseException) x.Value = &Response_Exception{Exception: cv} - case "cometbft.abci.v2.Response.echo": - cv := value.Message().Interface().(*EchoResponse) + case "tendermint.abci.Response.echo": + cv := value.Message().Interface().(*ResponseEcho) x.Value = &Response_Echo{Echo: cv} - case "cometbft.abci.v2.Response.flush": - cv := value.Message().Interface().(*FlushResponse) + case "tendermint.abci.Response.flush": + cv := value.Message().Interface().(*ResponseFlush) x.Value = &Response_Flush{Flush: cv} - case "cometbft.abci.v2.Response.info": - cv := value.Message().Interface().(*InfoResponse) + case "tendermint.abci.Response.info": + cv := value.Message().Interface().(*ResponseInfo) x.Value = &Response_Info{Info: cv} - case "cometbft.abci.v2.Response.init_chain": - cv := value.Message().Interface().(*InitChainResponse) + case "tendermint.abci.Response.init_chain": + cv := value.Message().Interface().(*ResponseInitChain) x.Value = &Response_InitChain{InitChain: cv} - case "cometbft.abci.v2.Response.query": - cv := value.Message().Interface().(*QueryResponse) + case "tendermint.abci.Response.query": + cv := value.Message().Interface().(*ResponseQuery) x.Value = &Response_Query{Query: cv} - case "cometbft.abci.v2.Response.check_tx": - cv := value.Message().Interface().(*CheckTxResponse) + case "tendermint.abci.Response.check_tx": + cv := value.Message().Interface().(*ResponseCheckTx) x.Value = &Response_CheckTx{CheckTx: cv} - case "cometbft.abci.v2.Response.commit": - cv := value.Message().Interface().(*CommitResponse) + case "tendermint.abci.Response.commit": + cv := value.Message().Interface().(*ResponseCommit) x.Value = &Response_Commit{Commit: cv} - case "cometbft.abci.v2.Response.list_snapshots": - cv := value.Message().Interface().(*ListSnapshotsResponse) + case "tendermint.abci.Response.list_snapshots": + cv := value.Message().Interface().(*ResponseListSnapshots) x.Value = &Response_ListSnapshots{ListSnapshots: cv} - case "cometbft.abci.v2.Response.offer_snapshot": - cv := value.Message().Interface().(*OfferSnapshotResponse) + case "tendermint.abci.Response.offer_snapshot": + cv := value.Message().Interface().(*ResponseOfferSnapshot) x.Value = &Response_OfferSnapshot{OfferSnapshot: cv} - case "cometbft.abci.v2.Response.load_snapshot_chunk": - cv := value.Message().Interface().(*LoadSnapshotChunkResponse) + case "tendermint.abci.Response.load_snapshot_chunk": + cv := value.Message().Interface().(*ResponseLoadSnapshotChunk) x.Value = &Response_LoadSnapshotChunk{LoadSnapshotChunk: cv} - case "cometbft.abci.v2.Response.apply_snapshot_chunk": - cv := value.Message().Interface().(*ApplySnapshotChunkResponse) + case "tendermint.abci.Response.apply_snapshot_chunk": + cv := value.Message().Interface().(*ResponseApplySnapshotChunk) x.Value = &Response_ApplySnapshotChunk{ApplySnapshotChunk: cv} - case "cometbft.abci.v2.Response.prepare_proposal": - cv := value.Message().Interface().(*PrepareProposalResponse) + case "tendermint.abci.Response.prepare_proposal": + cv := value.Message().Interface().(*ResponsePrepareProposal) x.Value = &Response_PrepareProposal{PrepareProposal: cv} - case "cometbft.abci.v2.Response.process_proposal": - cv := value.Message().Interface().(*ProcessProposalResponse) + case "tendermint.abci.Response.process_proposal": + cv := value.Message().Interface().(*ResponseProcessProposal) x.Value = &Response_ProcessProposal{ProcessProposal: cv} - case "cometbft.abci.v2.Response.extend_vote": - cv := value.Message().Interface().(*ExtendVoteResponse) + case "tendermint.abci.Response.extend_vote": + cv := value.Message().Interface().(*ResponseExtendVote) x.Value = &Response_ExtendVote{ExtendVote: cv} - case "cometbft.abci.v2.Response.verify_vote_extension": - cv := value.Message().Interface().(*VerifyVoteExtensionResponse) + case "tendermint.abci.Response.verify_vote_extension": + cv := value.Message().Interface().(*ResponseVerifyVoteExtension) x.Value = &Response_VerifyVoteExtension{VerifyVoteExtension: cv} - case "cometbft.abci.v2.Response.finalize_block": - cv := value.Message().Interface().(*FinalizeBlockResponse) + case "tendermint.abci.Response.finalize_block": + cv := value.Message().Interface().(*ResponseFinalizeBlock) x.Value = &Response_FinalizeBlock{FinalizeBlock: cv} default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Response")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Response")) } - panic(fmt.Errorf("message cometbft.abci.v2.Response does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.Response does not contain field %s", fd.FullName())) } } @@ -12997,9 +12881,9 @@ func (x *fastReflection_Response) Set(fd protoreflect.FieldDescriptor, value pro // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Response) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.Response.exception": + case "tendermint.abci.Response.exception": if x.Value == nil { - value := &ExceptionResponse{} + value := &ResponseException{} oneofValue := &Response_Exception{Exception: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) @@ -13008,14 +12892,14 @@ func (x *fastReflection_Response) Mutable(fd protoreflect.FieldDescriptor) proto case *Response_Exception: return protoreflect.ValueOfMessage(m.Exception.ProtoReflect()) default: - value := &ExceptionResponse{} + value := &ResponseException{} oneofValue := &Response_Exception{Exception: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "cometbft.abci.v2.Response.echo": + case "tendermint.abci.Response.echo": if x.Value == nil { - value := &EchoResponse{} + value := &ResponseEcho{} oneofValue := &Response_Echo{Echo: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) @@ -13024,14 +12908,14 @@ func (x *fastReflection_Response) Mutable(fd protoreflect.FieldDescriptor) proto case *Response_Echo: return protoreflect.ValueOfMessage(m.Echo.ProtoReflect()) default: - value := &EchoResponse{} + value := &ResponseEcho{} oneofValue := &Response_Echo{Echo: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "cometbft.abci.v2.Response.flush": + case "tendermint.abci.Response.flush": if x.Value == nil { - value := &FlushResponse{} + value := &ResponseFlush{} oneofValue := &Response_Flush{Flush: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) @@ -13040,14 +12924,14 @@ func (x *fastReflection_Response) Mutable(fd protoreflect.FieldDescriptor) proto case *Response_Flush: return protoreflect.ValueOfMessage(m.Flush.ProtoReflect()) default: - value := &FlushResponse{} + value := &ResponseFlush{} oneofValue := &Response_Flush{Flush: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "cometbft.abci.v2.Response.info": + case "tendermint.abci.Response.info": if x.Value == nil { - value := &InfoResponse{} + value := &ResponseInfo{} oneofValue := &Response_Info{Info: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) @@ -13056,14 +12940,14 @@ func (x *fastReflection_Response) Mutable(fd protoreflect.FieldDescriptor) proto case *Response_Info: return protoreflect.ValueOfMessage(m.Info.ProtoReflect()) default: - value := &InfoResponse{} + value := &ResponseInfo{} oneofValue := &Response_Info{Info: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "cometbft.abci.v2.Response.init_chain": + case "tendermint.abci.Response.init_chain": if x.Value == nil { - value := &InitChainResponse{} + value := &ResponseInitChain{} oneofValue := &Response_InitChain{InitChain: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) @@ -13072,14 +12956,14 @@ func (x *fastReflection_Response) Mutable(fd protoreflect.FieldDescriptor) proto case *Response_InitChain: return protoreflect.ValueOfMessage(m.InitChain.ProtoReflect()) default: - value := &InitChainResponse{} + value := &ResponseInitChain{} oneofValue := &Response_InitChain{InitChain: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "cometbft.abci.v2.Response.query": + case "tendermint.abci.Response.query": if x.Value == nil { - value := &QueryResponse{} + value := &ResponseQuery{} oneofValue := &Response_Query{Query: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) @@ -13088,14 +12972,14 @@ func (x *fastReflection_Response) Mutable(fd protoreflect.FieldDescriptor) proto case *Response_Query: return protoreflect.ValueOfMessage(m.Query.ProtoReflect()) default: - value := &QueryResponse{} + value := &ResponseQuery{} oneofValue := &Response_Query{Query: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "cometbft.abci.v2.Response.check_tx": + case "tendermint.abci.Response.check_tx": if x.Value == nil { - value := &CheckTxResponse{} + value := &ResponseCheckTx{} oneofValue := &Response_CheckTx{CheckTx: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) @@ -13104,14 +12988,14 @@ func (x *fastReflection_Response) Mutable(fd protoreflect.FieldDescriptor) proto case *Response_CheckTx: return protoreflect.ValueOfMessage(m.CheckTx.ProtoReflect()) default: - value := &CheckTxResponse{} + value := &ResponseCheckTx{} oneofValue := &Response_CheckTx{CheckTx: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "cometbft.abci.v2.Response.commit": + case "tendermint.abci.Response.commit": if x.Value == nil { - value := &CommitResponse{} + value := &ResponseCommit{} oneofValue := &Response_Commit{Commit: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) @@ -13120,14 +13004,14 @@ func (x *fastReflection_Response) Mutable(fd protoreflect.FieldDescriptor) proto case *Response_Commit: return protoreflect.ValueOfMessage(m.Commit.ProtoReflect()) default: - value := &CommitResponse{} + value := &ResponseCommit{} oneofValue := &Response_Commit{Commit: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "cometbft.abci.v2.Response.list_snapshots": + case "tendermint.abci.Response.list_snapshots": if x.Value == nil { - value := &ListSnapshotsResponse{} + value := &ResponseListSnapshots{} oneofValue := &Response_ListSnapshots{ListSnapshots: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) @@ -13136,14 +13020,14 @@ func (x *fastReflection_Response) Mutable(fd protoreflect.FieldDescriptor) proto case *Response_ListSnapshots: return protoreflect.ValueOfMessage(m.ListSnapshots.ProtoReflect()) default: - value := &ListSnapshotsResponse{} + value := &ResponseListSnapshots{} oneofValue := &Response_ListSnapshots{ListSnapshots: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "cometbft.abci.v2.Response.offer_snapshot": + case "tendermint.abci.Response.offer_snapshot": if x.Value == nil { - value := &OfferSnapshotResponse{} + value := &ResponseOfferSnapshot{} oneofValue := &Response_OfferSnapshot{OfferSnapshot: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) @@ -13152,14 +13036,14 @@ func (x *fastReflection_Response) Mutable(fd protoreflect.FieldDescriptor) proto case *Response_OfferSnapshot: return protoreflect.ValueOfMessage(m.OfferSnapshot.ProtoReflect()) default: - value := &OfferSnapshotResponse{} + value := &ResponseOfferSnapshot{} oneofValue := &Response_OfferSnapshot{OfferSnapshot: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "cometbft.abci.v2.Response.load_snapshot_chunk": + case "tendermint.abci.Response.load_snapshot_chunk": if x.Value == nil { - value := &LoadSnapshotChunkResponse{} + value := &ResponseLoadSnapshotChunk{} oneofValue := &Response_LoadSnapshotChunk{LoadSnapshotChunk: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) @@ -13168,14 +13052,14 @@ func (x *fastReflection_Response) Mutable(fd protoreflect.FieldDescriptor) proto case *Response_LoadSnapshotChunk: return protoreflect.ValueOfMessage(m.LoadSnapshotChunk.ProtoReflect()) default: - value := &LoadSnapshotChunkResponse{} + value := &ResponseLoadSnapshotChunk{} oneofValue := &Response_LoadSnapshotChunk{LoadSnapshotChunk: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "cometbft.abci.v2.Response.apply_snapshot_chunk": + case "tendermint.abci.Response.apply_snapshot_chunk": if x.Value == nil { - value := &ApplySnapshotChunkResponse{} + value := &ResponseApplySnapshotChunk{} oneofValue := &Response_ApplySnapshotChunk{ApplySnapshotChunk: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) @@ -13184,14 +13068,14 @@ func (x *fastReflection_Response) Mutable(fd protoreflect.FieldDescriptor) proto case *Response_ApplySnapshotChunk: return protoreflect.ValueOfMessage(m.ApplySnapshotChunk.ProtoReflect()) default: - value := &ApplySnapshotChunkResponse{} + value := &ResponseApplySnapshotChunk{} oneofValue := &Response_ApplySnapshotChunk{ApplySnapshotChunk: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "cometbft.abci.v2.Response.prepare_proposal": + case "tendermint.abci.Response.prepare_proposal": if x.Value == nil { - value := &PrepareProposalResponse{} + value := &ResponsePrepareProposal{} oneofValue := &Response_PrepareProposal{PrepareProposal: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) @@ -13200,14 +13084,14 @@ func (x *fastReflection_Response) Mutable(fd protoreflect.FieldDescriptor) proto case *Response_PrepareProposal: return protoreflect.ValueOfMessage(m.PrepareProposal.ProtoReflect()) default: - value := &PrepareProposalResponse{} + value := &ResponsePrepareProposal{} oneofValue := &Response_PrepareProposal{PrepareProposal: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "cometbft.abci.v2.Response.process_proposal": + case "tendermint.abci.Response.process_proposal": if x.Value == nil { - value := &ProcessProposalResponse{} + value := &ResponseProcessProposal{} oneofValue := &Response_ProcessProposal{ProcessProposal: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) @@ -13216,14 +13100,14 @@ func (x *fastReflection_Response) Mutable(fd protoreflect.FieldDescriptor) proto case *Response_ProcessProposal: return protoreflect.ValueOfMessage(m.ProcessProposal.ProtoReflect()) default: - value := &ProcessProposalResponse{} + value := &ResponseProcessProposal{} oneofValue := &Response_ProcessProposal{ProcessProposal: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "cometbft.abci.v2.Response.extend_vote": + case "tendermint.abci.Response.extend_vote": if x.Value == nil { - value := &ExtendVoteResponse{} + value := &ResponseExtendVote{} oneofValue := &Response_ExtendVote{ExtendVote: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) @@ -13232,14 +13116,14 @@ func (x *fastReflection_Response) Mutable(fd protoreflect.FieldDescriptor) proto case *Response_ExtendVote: return protoreflect.ValueOfMessage(m.ExtendVote.ProtoReflect()) default: - value := &ExtendVoteResponse{} + value := &ResponseExtendVote{} oneofValue := &Response_ExtendVote{ExtendVote: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "cometbft.abci.v2.Response.verify_vote_extension": + case "tendermint.abci.Response.verify_vote_extension": if x.Value == nil { - value := &VerifyVoteExtensionResponse{} + value := &ResponseVerifyVoteExtension{} oneofValue := &Response_VerifyVoteExtension{VerifyVoteExtension: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) @@ -13248,14 +13132,14 @@ func (x *fastReflection_Response) Mutable(fd protoreflect.FieldDescriptor) proto case *Response_VerifyVoteExtension: return protoreflect.ValueOfMessage(m.VerifyVoteExtension.ProtoReflect()) default: - value := &VerifyVoteExtensionResponse{} + value := &ResponseVerifyVoteExtension{} oneofValue := &Response_VerifyVoteExtension{VerifyVoteExtension: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "cometbft.abci.v2.Response.finalize_block": + case "tendermint.abci.Response.finalize_block": if x.Value == nil { - value := &FinalizeBlockResponse{} + value := &ResponseFinalizeBlock{} oneofValue := &Response_FinalizeBlock{FinalizeBlock: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) @@ -13264,16 +13148,16 @@ func (x *fastReflection_Response) Mutable(fd protoreflect.FieldDescriptor) proto case *Response_FinalizeBlock: return protoreflect.ValueOfMessage(m.FinalizeBlock.ProtoReflect()) default: - value := &FinalizeBlockResponse{} + value := &ResponseFinalizeBlock{} oneofValue := &Response_FinalizeBlock{FinalizeBlock: value} x.Value = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Response")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Response")) } - panic(fmt.Errorf("message cometbft.abci.v2.Response does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.Response does not contain field %s", fd.FullName())) } } @@ -13282,62 +13166,62 @@ func (x *fastReflection_Response) Mutable(fd protoreflect.FieldDescriptor) proto // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Response) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.Response.exception": - value := &ExceptionResponse{} + case "tendermint.abci.Response.exception": + value := &ResponseException{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.Response.echo": - value := &EchoResponse{} + case "tendermint.abci.Response.echo": + value := &ResponseEcho{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.Response.flush": - value := &FlushResponse{} + case "tendermint.abci.Response.flush": + value := &ResponseFlush{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.Response.info": - value := &InfoResponse{} + case "tendermint.abci.Response.info": + value := &ResponseInfo{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.Response.init_chain": - value := &InitChainResponse{} + case "tendermint.abci.Response.init_chain": + value := &ResponseInitChain{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.Response.query": - value := &QueryResponse{} + case "tendermint.abci.Response.query": + value := &ResponseQuery{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.Response.check_tx": - value := &CheckTxResponse{} + case "tendermint.abci.Response.check_tx": + value := &ResponseCheckTx{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.Response.commit": - value := &CommitResponse{} + case "tendermint.abci.Response.commit": + value := &ResponseCommit{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.Response.list_snapshots": - value := &ListSnapshotsResponse{} + case "tendermint.abci.Response.list_snapshots": + value := &ResponseListSnapshots{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.Response.offer_snapshot": - value := &OfferSnapshotResponse{} + case "tendermint.abci.Response.offer_snapshot": + value := &ResponseOfferSnapshot{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.Response.load_snapshot_chunk": - value := &LoadSnapshotChunkResponse{} + case "tendermint.abci.Response.load_snapshot_chunk": + value := &ResponseLoadSnapshotChunk{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.Response.apply_snapshot_chunk": - value := &ApplySnapshotChunkResponse{} + case "tendermint.abci.Response.apply_snapshot_chunk": + value := &ResponseApplySnapshotChunk{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.Response.prepare_proposal": - value := &PrepareProposalResponse{} + case "tendermint.abci.Response.prepare_proposal": + value := &ResponsePrepareProposal{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.Response.process_proposal": - value := &ProcessProposalResponse{} + case "tendermint.abci.Response.process_proposal": + value := &ResponseProcessProposal{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.Response.extend_vote": - value := &ExtendVoteResponse{} + case "tendermint.abci.Response.extend_vote": + value := &ResponseExtendVote{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.Response.verify_vote_extension": - value := &VerifyVoteExtensionResponse{} + case "tendermint.abci.Response.verify_vote_extension": + value := &ResponseVerifyVoteExtension{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.Response.finalize_block": - value := &FinalizeBlockResponse{} + case "tendermint.abci.Response.finalize_block": + value := &ResponseFinalizeBlock{} return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Response")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Response")) } - panic(fmt.Errorf("message cometbft.abci.v2.Response does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.Response does not contain field %s", fd.FullName())) } } @@ -13346,7 +13230,7 @@ func (x *fastReflection_Response) NewField(fd protoreflect.FieldDescriptor) prot // It panics if the oneof descriptor does not belong to this message. func (x *fastReflection_Response) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { - case "cometbft.abci.v2.Response.value": + case "tendermint.abci.Response.value": if x.Value == nil { return nil } @@ -13387,7 +13271,7 @@ func (x *fastReflection_Response) WhichOneof(d protoreflect.OneofDescriptor) pro return x.Descriptor().Fields().ByName("finalize_block") } default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.Response", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.Response", d.FullName())) } panic("unreachable") } @@ -13888,7 +13772,7 @@ func (x *fastReflection_Response) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &ExceptionResponse{} + v := &ResponseException{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -13923,7 +13807,7 @@ func (x *fastReflection_Response) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &EchoResponse{} + v := &ResponseEcho{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -13958,7 +13842,7 @@ func (x *fastReflection_Response) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &FlushResponse{} + v := &ResponseFlush{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -13993,7 +13877,7 @@ func (x *fastReflection_Response) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &InfoResponse{} + v := &ResponseInfo{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -14028,7 +13912,7 @@ func (x *fastReflection_Response) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &InitChainResponse{} + v := &ResponseInitChain{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -14063,7 +13947,7 @@ func (x *fastReflection_Response) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &QueryResponse{} + v := &ResponseQuery{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -14098,7 +13982,7 @@ func (x *fastReflection_Response) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &CheckTxResponse{} + v := &ResponseCheckTx{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -14133,7 +14017,7 @@ func (x *fastReflection_Response) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &CommitResponse{} + v := &ResponseCommit{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -14168,7 +14052,7 @@ func (x *fastReflection_Response) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &ListSnapshotsResponse{} + v := &ResponseListSnapshots{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -14203,7 +14087,7 @@ func (x *fastReflection_Response) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &OfferSnapshotResponse{} + v := &ResponseOfferSnapshot{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -14238,7 +14122,7 @@ func (x *fastReflection_Response) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &LoadSnapshotChunkResponse{} + v := &ResponseLoadSnapshotChunk{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -14273,7 +14157,7 @@ func (x *fastReflection_Response) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &ApplySnapshotChunkResponse{} + v := &ResponseApplySnapshotChunk{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -14308,7 +14192,7 @@ func (x *fastReflection_Response) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &PrepareProposalResponse{} + v := &ResponsePrepareProposal{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -14343,7 +14227,7 @@ func (x *fastReflection_Response) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &ProcessProposalResponse{} + v := &ResponseProcessProposal{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -14378,7 +14262,7 @@ func (x *fastReflection_Response) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &ExtendVoteResponse{} + v := &ResponseExtendVote{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -14413,7 +14297,7 @@ func (x *fastReflection_Response) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &VerifyVoteExtensionResponse{} + v := &ResponseVerifyVoteExtension{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -14448,7 +14332,7 @@ func (x *fastReflection_Response) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &FinalizeBlockResponse{} + v := &ResponseFinalizeBlock{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -14490,26 +14374,26 @@ func (x *fastReflection_Response) ProtoMethods() *protoiface.Methods { } var ( - md_ExceptionResponse protoreflect.MessageDescriptor - fd_ExceptionResponse_error protoreflect.FieldDescriptor + md_ResponseException protoreflect.MessageDescriptor + fd_ResponseException_error protoreflect.FieldDescriptor ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_ExceptionResponse = File_cometbft_abci_v2_types_proto.Messages().ByName("ExceptionResponse") - fd_ExceptionResponse_error = md_ExceptionResponse.Fields().ByName("error") + file_tendermint_abci_types_proto_init() + md_ResponseException = File_tendermint_abci_types_proto.Messages().ByName("ResponseException") + fd_ResponseException_error = md_ResponseException.Fields().ByName("error") } -var _ protoreflect.Message = (*fastReflection_ExceptionResponse)(nil) +var _ protoreflect.Message = (*fastReflection_ResponseException)(nil) -type fastReflection_ExceptionResponse ExceptionResponse +type fastReflection_ResponseException ResponseException -func (x *ExceptionResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_ExceptionResponse)(x) +func (x *ResponseException) ProtoReflect() protoreflect.Message { + return (*fastReflection_ResponseException)(x) } -func (x *ExceptionResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[18] +func (x *ResponseException) slowProtoReflect() protoreflect.Message { + mi := &file_tendermint_abci_types_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14520,43 +14404,43 @@ func (x *ExceptionResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_ExceptionResponse_messageType fastReflection_ExceptionResponse_messageType -var _ protoreflect.MessageType = fastReflection_ExceptionResponse_messageType{} +var _fastReflection_ResponseException_messageType fastReflection_ResponseException_messageType +var _ protoreflect.MessageType = fastReflection_ResponseException_messageType{} -type fastReflection_ExceptionResponse_messageType struct{} +type fastReflection_ResponseException_messageType struct{} -func (x fastReflection_ExceptionResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_ExceptionResponse)(nil) +func (x fastReflection_ResponseException_messageType) Zero() protoreflect.Message { + return (*fastReflection_ResponseException)(nil) } -func (x fastReflection_ExceptionResponse_messageType) New() protoreflect.Message { - return new(fastReflection_ExceptionResponse) +func (x fastReflection_ResponseException_messageType) New() protoreflect.Message { + return new(fastReflection_ResponseException) } -func (x fastReflection_ExceptionResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_ExceptionResponse +func (x fastReflection_ResponseException_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ResponseException } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_ExceptionResponse) Descriptor() protoreflect.MessageDescriptor { - return md_ExceptionResponse +func (x *fastReflection_ResponseException) Descriptor() protoreflect.MessageDescriptor { + return md_ResponseException } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_ExceptionResponse) Type() protoreflect.MessageType { - return _fastReflection_ExceptionResponse_messageType +func (x *fastReflection_ResponseException) Type() protoreflect.MessageType { + return _fastReflection_ResponseException_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_ExceptionResponse) New() protoreflect.Message { - return new(fastReflection_ExceptionResponse) +func (x *fastReflection_ResponseException) New() protoreflect.Message { + return new(fastReflection_ResponseException) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_ExceptionResponse) Interface() protoreflect.ProtoMessage { - return (*ExceptionResponse)(x) +func (x *fastReflection_ResponseException) Interface() protoreflect.ProtoMessage { + return (*ResponseException)(x) } // Range iterates over every populated field in an undefined order, @@ -14564,10 +14448,10 @@ func (x *fastReflection_ExceptionResponse) Interface() protoreflect.ProtoMessage // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_ExceptionResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_ResponseException) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Error != "" { value := protoreflect.ValueOfString(x.Error) - if !f(fd_ExceptionResponse_error, value) { + if !f(fd_ResponseException_error, value) { return } } @@ -14584,15 +14468,15 @@ func (x *fastReflection_ExceptionResponse) Range(f func(protoreflect.FieldDescri // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_ExceptionResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_ResponseException) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.ExceptionResponse.error": + case "tendermint.abci.ResponseException.error": return x.Error != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExceptionResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseException")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExceptionResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseException does not contain field %s", fd.FullName())) } } @@ -14602,15 +14486,15 @@ func (x *fastReflection_ExceptionResponse) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExceptionResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_ResponseException) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.ExceptionResponse.error": + case "tendermint.abci.ResponseException.error": x.Error = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExceptionResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseException")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExceptionResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseException does not contain field %s", fd.FullName())) } } @@ -14620,16 +14504,16 @@ func (x *fastReflection_ExceptionResponse) Clear(fd protoreflect.FieldDescriptor // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_ExceptionResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseException) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.ExceptionResponse.error": + case "tendermint.abci.ResponseException.error": value := x.Error return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExceptionResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseException")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExceptionResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseException does not contain field %s", descriptor.FullName())) } } @@ -14643,15 +14527,15 @@ func (x *fastReflection_ExceptionResponse) Get(descriptor protoreflect.FieldDesc // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExceptionResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_ResponseException) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.ExceptionResponse.error": + case "tendermint.abci.ResponseException.error": x.Error = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExceptionResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseException")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExceptionResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseException does not contain field %s", fd.FullName())) } } @@ -14665,40 +14549,40 @@ func (x *fastReflection_ExceptionResponse) Set(fd protoreflect.FieldDescriptor, // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExceptionResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseException) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.ExceptionResponse.error": - panic(fmt.Errorf("field error of message cometbft.abci.v2.ExceptionResponse is not mutable")) + case "tendermint.abci.ResponseException.error": + panic(fmt.Errorf("field error of message tendermint.abci.ResponseException is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExceptionResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseException")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExceptionResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseException does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_ExceptionResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseException) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.ExceptionResponse.error": + case "tendermint.abci.ResponseException.error": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExceptionResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseException")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExceptionResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseException does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_ExceptionResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_ResponseException) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.ExceptionResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.ResponseException", d.FullName())) } panic("unreachable") } @@ -14706,7 +14590,7 @@ func (x *fastReflection_ExceptionResponse) WhichOneof(d protoreflect.OneofDescri // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_ExceptionResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_ResponseException) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -14717,7 +14601,7 @@ func (x *fastReflection_ExceptionResponse) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExceptionResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_ResponseException) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -14729,7 +14613,7 @@ func (x *fastReflection_ExceptionResponse) SetUnknown(fields protoreflect.RawFie // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_ExceptionResponse) IsValid() bool { +func (x *fastReflection_ResponseException) IsValid() bool { return x != nil } @@ -14739,9 +14623,9 @@ func (x *fastReflection_ExceptionResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_ExceptionResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_ResponseException) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*ExceptionResponse) + x := input.Message.Interface().(*ResponseException) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -14767,7 +14651,7 @@ func (x *fastReflection_ExceptionResponse) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*ExceptionResponse) + x := input.Message.Interface().(*ResponseException) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -14804,7 +14688,7 @@ func (x *fastReflection_ExceptionResponse) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*ExceptionResponse) + x := input.Message.Interface().(*ResponseException) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -14836,10 +14720,10 @@ func (x *fastReflection_ExceptionResponse) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ExceptionResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ResponseException: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ExceptionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ResponseException: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -14910,26 +14794,26 @@ func (x *fastReflection_ExceptionResponse) ProtoMethods() *protoiface.Methods { } var ( - md_EchoResponse protoreflect.MessageDescriptor - fd_EchoResponse_message protoreflect.FieldDescriptor + md_ResponseEcho protoreflect.MessageDescriptor + fd_ResponseEcho_message protoreflect.FieldDescriptor ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_EchoResponse = File_cometbft_abci_v2_types_proto.Messages().ByName("EchoResponse") - fd_EchoResponse_message = md_EchoResponse.Fields().ByName("message") + file_tendermint_abci_types_proto_init() + md_ResponseEcho = File_tendermint_abci_types_proto.Messages().ByName("ResponseEcho") + fd_ResponseEcho_message = md_ResponseEcho.Fields().ByName("message") } -var _ protoreflect.Message = (*fastReflection_EchoResponse)(nil) +var _ protoreflect.Message = (*fastReflection_ResponseEcho)(nil) -type fastReflection_EchoResponse EchoResponse +type fastReflection_ResponseEcho ResponseEcho -func (x *EchoResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_EchoResponse)(x) +func (x *ResponseEcho) ProtoReflect() protoreflect.Message { + return (*fastReflection_ResponseEcho)(x) } -func (x *EchoResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[19] +func (x *ResponseEcho) slowProtoReflect() protoreflect.Message { + mi := &file_tendermint_abci_types_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14940,43 +14824,43 @@ func (x *EchoResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_EchoResponse_messageType fastReflection_EchoResponse_messageType -var _ protoreflect.MessageType = fastReflection_EchoResponse_messageType{} +var _fastReflection_ResponseEcho_messageType fastReflection_ResponseEcho_messageType +var _ protoreflect.MessageType = fastReflection_ResponseEcho_messageType{} -type fastReflection_EchoResponse_messageType struct{} +type fastReflection_ResponseEcho_messageType struct{} -func (x fastReflection_EchoResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_EchoResponse)(nil) +func (x fastReflection_ResponseEcho_messageType) Zero() protoreflect.Message { + return (*fastReflection_ResponseEcho)(nil) } -func (x fastReflection_EchoResponse_messageType) New() protoreflect.Message { - return new(fastReflection_EchoResponse) +func (x fastReflection_ResponseEcho_messageType) New() protoreflect.Message { + return new(fastReflection_ResponseEcho) } -func (x fastReflection_EchoResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EchoResponse +func (x fastReflection_ResponseEcho_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ResponseEcho } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_EchoResponse) Descriptor() protoreflect.MessageDescriptor { - return md_EchoResponse +func (x *fastReflection_ResponseEcho) Descriptor() protoreflect.MessageDescriptor { + return md_ResponseEcho } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_EchoResponse) Type() protoreflect.MessageType { - return _fastReflection_EchoResponse_messageType +func (x *fastReflection_ResponseEcho) Type() protoreflect.MessageType { + return _fastReflection_ResponseEcho_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_EchoResponse) New() protoreflect.Message { - return new(fastReflection_EchoResponse) +func (x *fastReflection_ResponseEcho) New() protoreflect.Message { + return new(fastReflection_ResponseEcho) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_EchoResponse) Interface() protoreflect.ProtoMessage { - return (*EchoResponse)(x) +func (x *fastReflection_ResponseEcho) Interface() protoreflect.ProtoMessage { + return (*ResponseEcho)(x) } // Range iterates over every populated field in an undefined order, @@ -14984,10 +14868,10 @@ func (x *fastReflection_EchoResponse) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_EchoResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_ResponseEcho) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Message != "" { value := protoreflect.ValueOfString(x.Message) - if !f(fd_EchoResponse_message, value) { + if !f(fd_ResponseEcho_message, value) { return } } @@ -15004,15 +14888,15 @@ func (x *fastReflection_EchoResponse) Range(f func(protoreflect.FieldDescriptor, // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_EchoResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_ResponseEcho) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.EchoResponse.message": + case "tendermint.abci.ResponseEcho.message": return x.Message != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.EchoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseEcho")) } - panic(fmt.Errorf("message cometbft.abci.v2.EchoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseEcho does not contain field %s", fd.FullName())) } } @@ -15022,15 +14906,15 @@ func (x *fastReflection_EchoResponse) Has(fd protoreflect.FieldDescriptor) bool // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EchoResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_ResponseEcho) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.EchoResponse.message": + case "tendermint.abci.ResponseEcho.message": x.Message = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.EchoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseEcho")) } - panic(fmt.Errorf("message cometbft.abci.v2.EchoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseEcho does not contain field %s", fd.FullName())) } } @@ -15040,16 +14924,16 @@ func (x *fastReflection_EchoResponse) Clear(fd protoreflect.FieldDescriptor) { // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_EchoResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseEcho) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.EchoResponse.message": + case "tendermint.abci.ResponseEcho.message": value := x.Message return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.EchoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseEcho")) } - panic(fmt.Errorf("message cometbft.abci.v2.EchoResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseEcho does not contain field %s", descriptor.FullName())) } } @@ -15063,15 +14947,15 @@ func (x *fastReflection_EchoResponse) Get(descriptor protoreflect.FieldDescripto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EchoResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_ResponseEcho) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.EchoResponse.message": + case "tendermint.abci.ResponseEcho.message": x.Message = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.EchoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseEcho")) } - panic(fmt.Errorf("message cometbft.abci.v2.EchoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseEcho does not contain field %s", fd.FullName())) } } @@ -15085,40 +14969,40 @@ func (x *fastReflection_EchoResponse) Set(fd protoreflect.FieldDescriptor, value // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EchoResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseEcho) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.EchoResponse.message": - panic(fmt.Errorf("field message of message cometbft.abci.v2.EchoResponse is not mutable")) + case "tendermint.abci.ResponseEcho.message": + panic(fmt.Errorf("field message of message tendermint.abci.ResponseEcho is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.EchoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseEcho")) } - panic(fmt.Errorf("message cometbft.abci.v2.EchoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseEcho does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_EchoResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseEcho) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.EchoResponse.message": + case "tendermint.abci.ResponseEcho.message": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.EchoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseEcho")) } - panic(fmt.Errorf("message cometbft.abci.v2.EchoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseEcho does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_EchoResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_ResponseEcho) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.EchoResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.ResponseEcho", d.FullName())) } panic("unreachable") } @@ -15126,7 +15010,7 @@ func (x *fastReflection_EchoResponse) WhichOneof(d protoreflect.OneofDescriptor) // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_EchoResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_ResponseEcho) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -15137,7 +15021,7 @@ func (x *fastReflection_EchoResponse) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EchoResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_ResponseEcho) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -15149,7 +15033,7 @@ func (x *fastReflection_EchoResponse) SetUnknown(fields protoreflect.RawFields) // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_EchoResponse) IsValid() bool { +func (x *fastReflection_ResponseEcho) IsValid() bool { return x != nil } @@ -15159,9 +15043,9 @@ func (x *fastReflection_EchoResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_EchoResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_ResponseEcho) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EchoResponse) + x := input.Message.Interface().(*ResponseEcho) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -15187,7 +15071,7 @@ func (x *fastReflection_EchoResponse) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EchoResponse) + x := input.Message.Interface().(*ResponseEcho) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -15224,7 +15108,7 @@ func (x *fastReflection_EchoResponse) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EchoResponse) + x := input.Message.Interface().(*ResponseEcho) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -15256,10 +15140,10 @@ func (x *fastReflection_EchoResponse) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EchoResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ResponseEcho: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EchoResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ResponseEcho: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -15330,24 +15214,24 @@ func (x *fastReflection_EchoResponse) ProtoMethods() *protoiface.Methods { } var ( - md_FlushResponse protoreflect.MessageDescriptor + md_ResponseFlush protoreflect.MessageDescriptor ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_FlushResponse = File_cometbft_abci_v2_types_proto.Messages().ByName("FlushResponse") + file_tendermint_abci_types_proto_init() + md_ResponseFlush = File_tendermint_abci_types_proto.Messages().ByName("ResponseFlush") } -var _ protoreflect.Message = (*fastReflection_FlushResponse)(nil) +var _ protoreflect.Message = (*fastReflection_ResponseFlush)(nil) -type fastReflection_FlushResponse FlushResponse +type fastReflection_ResponseFlush ResponseFlush -func (x *FlushResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_FlushResponse)(x) +func (x *ResponseFlush) ProtoReflect() protoreflect.Message { + return (*fastReflection_ResponseFlush)(x) } -func (x *FlushResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[20] +func (x *ResponseFlush) slowProtoReflect() protoreflect.Message { + mi := &file_tendermint_abci_types_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15358,43 +15242,43 @@ func (x *FlushResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_FlushResponse_messageType fastReflection_FlushResponse_messageType -var _ protoreflect.MessageType = fastReflection_FlushResponse_messageType{} +var _fastReflection_ResponseFlush_messageType fastReflection_ResponseFlush_messageType +var _ protoreflect.MessageType = fastReflection_ResponseFlush_messageType{} -type fastReflection_FlushResponse_messageType struct{} +type fastReflection_ResponseFlush_messageType struct{} -func (x fastReflection_FlushResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_FlushResponse)(nil) +func (x fastReflection_ResponseFlush_messageType) Zero() protoreflect.Message { + return (*fastReflection_ResponseFlush)(nil) } -func (x fastReflection_FlushResponse_messageType) New() protoreflect.Message { - return new(fastReflection_FlushResponse) +func (x fastReflection_ResponseFlush_messageType) New() protoreflect.Message { + return new(fastReflection_ResponseFlush) } -func (x fastReflection_FlushResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_FlushResponse +func (x fastReflection_ResponseFlush_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ResponseFlush } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_FlushResponse) Descriptor() protoreflect.MessageDescriptor { - return md_FlushResponse +func (x *fastReflection_ResponseFlush) Descriptor() protoreflect.MessageDescriptor { + return md_ResponseFlush } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_FlushResponse) Type() protoreflect.MessageType { - return _fastReflection_FlushResponse_messageType +func (x *fastReflection_ResponseFlush) Type() protoreflect.MessageType { + return _fastReflection_ResponseFlush_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_FlushResponse) New() protoreflect.Message { - return new(fastReflection_FlushResponse) +func (x *fastReflection_ResponseFlush) New() protoreflect.Message { + return new(fastReflection_ResponseFlush) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_FlushResponse) Interface() protoreflect.ProtoMessage { - return (*FlushResponse)(x) +func (x *fastReflection_ResponseFlush) Interface() protoreflect.ProtoMessage { + return (*ResponseFlush)(x) } // Range iterates over every populated field in an undefined order, @@ -15402,7 +15286,7 @@ func (x *fastReflection_FlushResponse) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_FlushResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_ResponseFlush) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -15416,13 +15300,13 @@ func (x *fastReflection_FlushResponse) Range(f func(protoreflect.FieldDescriptor // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_FlushResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_ResponseFlush) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.FlushResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseFlush")) } - panic(fmt.Errorf("message cometbft.abci.v2.FlushResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseFlush does not contain field %s", fd.FullName())) } } @@ -15432,13 +15316,13 @@ func (x *fastReflection_FlushResponse) Has(fd protoreflect.FieldDescriptor) bool // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_FlushResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_ResponseFlush) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.FlushResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseFlush")) } - panic(fmt.Errorf("message cometbft.abci.v2.FlushResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseFlush does not contain field %s", fd.FullName())) } } @@ -15448,13 +15332,13 @@ func (x *fastReflection_FlushResponse) Clear(fd protoreflect.FieldDescriptor) { // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_FlushResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseFlush) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.FlushResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseFlush")) } - panic(fmt.Errorf("message cometbft.abci.v2.FlushResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseFlush does not contain field %s", descriptor.FullName())) } } @@ -15468,13 +15352,13 @@ func (x *fastReflection_FlushResponse) Get(descriptor protoreflect.FieldDescript // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_FlushResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_ResponseFlush) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.FlushResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseFlush")) } - panic(fmt.Errorf("message cometbft.abci.v2.FlushResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseFlush does not contain field %s", fd.FullName())) } } @@ -15488,36 +15372,36 @@ func (x *fastReflection_FlushResponse) Set(fd protoreflect.FieldDescriptor, valu // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_FlushResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseFlush) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.FlushResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseFlush")) } - panic(fmt.Errorf("message cometbft.abci.v2.FlushResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseFlush does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_FlushResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseFlush) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.FlushResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseFlush")) } - panic(fmt.Errorf("message cometbft.abci.v2.FlushResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseFlush does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_FlushResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_ResponseFlush) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.FlushResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.ResponseFlush", d.FullName())) } panic("unreachable") } @@ -15525,7 +15409,7 @@ func (x *fastReflection_FlushResponse) WhichOneof(d protoreflect.OneofDescriptor // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_FlushResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_ResponseFlush) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -15536,7 +15420,7 @@ func (x *fastReflection_FlushResponse) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_FlushResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_ResponseFlush) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -15548,7 +15432,7 @@ func (x *fastReflection_FlushResponse) SetUnknown(fields protoreflect.RawFields) // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_FlushResponse) IsValid() bool { +func (x *fastReflection_ResponseFlush) IsValid() bool { return x != nil } @@ -15558,9 +15442,9 @@ func (x *fastReflection_FlushResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_FlushResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_ResponseFlush) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*FlushResponse) + x := input.Message.Interface().(*ResponseFlush) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -15582,7 +15466,7 @@ func (x *fastReflection_FlushResponse) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*FlushResponse) + x := input.Message.Interface().(*ResponseFlush) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -15612,7 +15496,7 @@ func (x *fastReflection_FlushResponse) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*FlushResponse) + x := input.Message.Interface().(*ResponseFlush) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -15644,10 +15528,10 @@ func (x *fastReflection_FlushResponse) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: FlushResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ResponseFlush: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: FlushResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ResponseFlush: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -15685,121 +15569,35 @@ func (x *fastReflection_FlushResponse) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.Map = (*_InfoResponse_6_map)(nil) - -type _InfoResponse_6_map struct { - m *map[string]uint32 -} - -func (x *_InfoResponse_6_map) Len() int { - if x.m == nil { - return 0 - } - return len(*x.m) -} - -func (x *_InfoResponse_6_map) Range(f func(protoreflect.MapKey, protoreflect.Value) bool) { - if x.m == nil { - return - } - for k, v := range *x.m { - mapKey := (protoreflect.MapKey)(protoreflect.ValueOfString(k)) - mapValue := protoreflect.ValueOfUint32(v) - if !f(mapKey, mapValue) { - break - } - } -} - -func (x *_InfoResponse_6_map) Has(key protoreflect.MapKey) bool { - if x.m == nil { - return false - } - keyUnwrapped := key.String() - concreteValue := keyUnwrapped - _, ok := (*x.m)[concreteValue] - return ok -} - -func (x *_InfoResponse_6_map) Clear(key protoreflect.MapKey) { - if x.m == nil { - return - } - keyUnwrapped := key.String() - concreteKey := keyUnwrapped - delete(*x.m, concreteKey) -} - -func (x *_InfoResponse_6_map) Get(key protoreflect.MapKey) protoreflect.Value { - if x.m == nil { - return protoreflect.Value{} - } - keyUnwrapped := key.String() - concreteKey := keyUnwrapped - v, ok := (*x.m)[concreteKey] - if !ok { - return protoreflect.Value{} - } - return protoreflect.ValueOfUint32(v) -} - -func (x *_InfoResponse_6_map) Set(key protoreflect.MapKey, value protoreflect.Value) { - if !key.IsValid() || !value.IsValid() { - panic("invalid key or value provided") - } - keyUnwrapped := key.String() - concreteKey := keyUnwrapped - valueUnwrapped := value.Uint() - concreteValue := (uint32)(valueUnwrapped) - (*x.m)[concreteKey] = concreteValue -} - -func (x *_InfoResponse_6_map) Mutable(key protoreflect.MapKey) protoreflect.Value { - panic("should not call Mutable on protoreflect.Map whose value is not of type protoreflect.Message") -} - -func (x *_InfoResponse_6_map) NewValue() protoreflect.Value { - v := uint32(0) - return protoreflect.ValueOfUint32(v) -} - -func (x *_InfoResponse_6_map) IsValid() bool { - return x.m != nil -} - var ( - md_InfoResponse protoreflect.MessageDescriptor - fd_InfoResponse_data protoreflect.FieldDescriptor - fd_InfoResponse_version protoreflect.FieldDescriptor - fd_InfoResponse_app_version protoreflect.FieldDescriptor - fd_InfoResponse_last_block_height protoreflect.FieldDescriptor - fd_InfoResponse_last_block_app_hash protoreflect.FieldDescriptor - fd_InfoResponse_lane_priorities protoreflect.FieldDescriptor - fd_InfoResponse_default_lane protoreflect.FieldDescriptor + md_ResponseInfo protoreflect.MessageDescriptor + fd_ResponseInfo_data protoreflect.FieldDescriptor + fd_ResponseInfo_version protoreflect.FieldDescriptor + fd_ResponseInfo_app_version protoreflect.FieldDescriptor + fd_ResponseInfo_last_block_height protoreflect.FieldDescriptor + fd_ResponseInfo_last_block_app_hash protoreflect.FieldDescriptor ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_InfoResponse = File_cometbft_abci_v2_types_proto.Messages().ByName("InfoResponse") - fd_InfoResponse_data = md_InfoResponse.Fields().ByName("data") - fd_InfoResponse_version = md_InfoResponse.Fields().ByName("version") - fd_InfoResponse_app_version = md_InfoResponse.Fields().ByName("app_version") - fd_InfoResponse_last_block_height = md_InfoResponse.Fields().ByName("last_block_height") - fd_InfoResponse_last_block_app_hash = md_InfoResponse.Fields().ByName("last_block_app_hash") - fd_InfoResponse_lane_priorities = md_InfoResponse.Fields().ByName("lane_priorities") - fd_InfoResponse_default_lane = md_InfoResponse.Fields().ByName("default_lane") + file_tendermint_abci_types_proto_init() + md_ResponseInfo = File_tendermint_abci_types_proto.Messages().ByName("ResponseInfo") + fd_ResponseInfo_data = md_ResponseInfo.Fields().ByName("data") + fd_ResponseInfo_version = md_ResponseInfo.Fields().ByName("version") + fd_ResponseInfo_app_version = md_ResponseInfo.Fields().ByName("app_version") + fd_ResponseInfo_last_block_height = md_ResponseInfo.Fields().ByName("last_block_height") + fd_ResponseInfo_last_block_app_hash = md_ResponseInfo.Fields().ByName("last_block_app_hash") } -var _ protoreflect.Message = (*fastReflection_InfoResponse)(nil) +var _ protoreflect.Message = (*fastReflection_ResponseInfo)(nil) -type fastReflection_InfoResponse InfoResponse +type fastReflection_ResponseInfo ResponseInfo -func (x *InfoResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_InfoResponse)(x) +func (x *ResponseInfo) ProtoReflect() protoreflect.Message { + return (*fastReflection_ResponseInfo)(x) } -func (x *InfoResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[21] +func (x *ResponseInfo) slowProtoReflect() protoreflect.Message { + mi := &file_tendermint_abci_types_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15810,43 +15608,43 @@ func (x *InfoResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_InfoResponse_messageType fastReflection_InfoResponse_messageType -var _ protoreflect.MessageType = fastReflection_InfoResponse_messageType{} +var _fastReflection_ResponseInfo_messageType fastReflection_ResponseInfo_messageType +var _ protoreflect.MessageType = fastReflection_ResponseInfo_messageType{} -type fastReflection_InfoResponse_messageType struct{} +type fastReflection_ResponseInfo_messageType struct{} -func (x fastReflection_InfoResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_InfoResponse)(nil) +func (x fastReflection_ResponseInfo_messageType) Zero() protoreflect.Message { + return (*fastReflection_ResponseInfo)(nil) } -func (x fastReflection_InfoResponse_messageType) New() protoreflect.Message { - return new(fastReflection_InfoResponse) +func (x fastReflection_ResponseInfo_messageType) New() protoreflect.Message { + return new(fastReflection_ResponseInfo) } -func (x fastReflection_InfoResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_InfoResponse +func (x fastReflection_ResponseInfo_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ResponseInfo } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_InfoResponse) Descriptor() protoreflect.MessageDescriptor { - return md_InfoResponse +func (x *fastReflection_ResponseInfo) Descriptor() protoreflect.MessageDescriptor { + return md_ResponseInfo } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_InfoResponse) Type() protoreflect.MessageType { - return _fastReflection_InfoResponse_messageType +func (x *fastReflection_ResponseInfo) Type() protoreflect.MessageType { + return _fastReflection_ResponseInfo_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_InfoResponse) New() protoreflect.Message { - return new(fastReflection_InfoResponse) +func (x *fastReflection_ResponseInfo) New() protoreflect.Message { + return new(fastReflection_ResponseInfo) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_InfoResponse) Interface() protoreflect.ProtoMessage { - return (*InfoResponse)(x) +func (x *fastReflection_ResponseInfo) Interface() protoreflect.ProtoMessage { + return (*ResponseInfo)(x) } // Range iterates over every populated field in an undefined order, @@ -15854,46 +15652,34 @@ func (x *fastReflection_InfoResponse) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_InfoResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_ResponseInfo) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Data != "" { value := protoreflect.ValueOfString(x.Data) - if !f(fd_InfoResponse_data, value) { + if !f(fd_ResponseInfo_data, value) { return } } if x.Version != "" { value := protoreflect.ValueOfString(x.Version) - if !f(fd_InfoResponse_version, value) { + if !f(fd_ResponseInfo_version, value) { return } } if x.AppVersion != uint64(0) { value := protoreflect.ValueOfUint64(x.AppVersion) - if !f(fd_InfoResponse_app_version, value) { + if !f(fd_ResponseInfo_app_version, value) { return } } if x.LastBlockHeight != int64(0) { value := protoreflect.ValueOfInt64(x.LastBlockHeight) - if !f(fd_InfoResponse_last_block_height, value) { + if !f(fd_ResponseInfo_last_block_height, value) { return } } if len(x.LastBlockAppHash) != 0 { value := protoreflect.ValueOfBytes(x.LastBlockAppHash) - if !f(fd_InfoResponse_last_block_app_hash, value) { - return - } - } - if len(x.LanePriorities) != 0 { - value := protoreflect.ValueOfMap(&_InfoResponse_6_map{m: &x.LanePriorities}) - if !f(fd_InfoResponse_lane_priorities, value) { - return - } - } - if x.DefaultLane != "" { - value := protoreflect.ValueOfString(x.DefaultLane) - if !f(fd_InfoResponse_default_lane, value) { + if !f(fd_ResponseInfo_last_block_app_hash, value) { return } } @@ -15910,27 +15696,23 @@ func (x *fastReflection_InfoResponse) Range(f func(protoreflect.FieldDescriptor, // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_InfoResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_ResponseInfo) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.InfoResponse.data": + case "tendermint.abci.ResponseInfo.data": return x.Data != "" - case "cometbft.abci.v2.InfoResponse.version": + case "tendermint.abci.ResponseInfo.version": return x.Version != "" - case "cometbft.abci.v2.InfoResponse.app_version": + case "tendermint.abci.ResponseInfo.app_version": return x.AppVersion != uint64(0) - case "cometbft.abci.v2.InfoResponse.last_block_height": + case "tendermint.abci.ResponseInfo.last_block_height": return x.LastBlockHeight != int64(0) - case "cometbft.abci.v2.InfoResponse.last_block_app_hash": + case "tendermint.abci.ResponseInfo.last_block_app_hash": return len(x.LastBlockAppHash) != 0 - case "cometbft.abci.v2.InfoResponse.lane_priorities": - return len(x.LanePriorities) != 0 - case "cometbft.abci.v2.InfoResponse.default_lane": - return x.DefaultLane != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.InfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.InfoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseInfo does not contain field %s", fd.FullName())) } } @@ -15940,27 +15722,23 @@ func (x *fastReflection_InfoResponse) Has(fd protoreflect.FieldDescriptor) bool // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_InfoResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_ResponseInfo) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.InfoResponse.data": + case "tendermint.abci.ResponseInfo.data": x.Data = "" - case "cometbft.abci.v2.InfoResponse.version": + case "tendermint.abci.ResponseInfo.version": x.Version = "" - case "cometbft.abci.v2.InfoResponse.app_version": + case "tendermint.abci.ResponseInfo.app_version": x.AppVersion = uint64(0) - case "cometbft.abci.v2.InfoResponse.last_block_height": + case "tendermint.abci.ResponseInfo.last_block_height": x.LastBlockHeight = int64(0) - case "cometbft.abci.v2.InfoResponse.last_block_app_hash": + case "tendermint.abci.ResponseInfo.last_block_app_hash": x.LastBlockAppHash = nil - case "cometbft.abci.v2.InfoResponse.lane_priorities": - x.LanePriorities = nil - case "cometbft.abci.v2.InfoResponse.default_lane": - x.DefaultLane = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.InfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.InfoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseInfo does not contain field %s", fd.FullName())) } } @@ -15970,37 +15748,28 @@ func (x *fastReflection_InfoResponse) Clear(fd protoreflect.FieldDescriptor) { // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_InfoResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseInfo) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.InfoResponse.data": + case "tendermint.abci.ResponseInfo.data": value := x.Data return protoreflect.ValueOfString(value) - case "cometbft.abci.v2.InfoResponse.version": + case "tendermint.abci.ResponseInfo.version": value := x.Version return protoreflect.ValueOfString(value) - case "cometbft.abci.v2.InfoResponse.app_version": + case "tendermint.abci.ResponseInfo.app_version": value := x.AppVersion return protoreflect.ValueOfUint64(value) - case "cometbft.abci.v2.InfoResponse.last_block_height": + case "tendermint.abci.ResponseInfo.last_block_height": value := x.LastBlockHeight return protoreflect.ValueOfInt64(value) - case "cometbft.abci.v2.InfoResponse.last_block_app_hash": + case "tendermint.abci.ResponseInfo.last_block_app_hash": value := x.LastBlockAppHash return protoreflect.ValueOfBytes(value) - case "cometbft.abci.v2.InfoResponse.lane_priorities": - if len(x.LanePriorities) == 0 { - return protoreflect.ValueOfMap(&_InfoResponse_6_map{}) - } - mapValue := &_InfoResponse_6_map{m: &x.LanePriorities} - return protoreflect.ValueOfMap(mapValue) - case "cometbft.abci.v2.InfoResponse.default_lane": - value := x.DefaultLane - return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.InfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.InfoResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseInfo does not contain field %s", descriptor.FullName())) } } @@ -16014,29 +15783,23 @@ func (x *fastReflection_InfoResponse) Get(descriptor protoreflect.FieldDescripto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_InfoResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_ResponseInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.InfoResponse.data": + case "tendermint.abci.ResponseInfo.data": x.Data = value.Interface().(string) - case "cometbft.abci.v2.InfoResponse.version": + case "tendermint.abci.ResponseInfo.version": x.Version = value.Interface().(string) - case "cometbft.abci.v2.InfoResponse.app_version": + case "tendermint.abci.ResponseInfo.app_version": x.AppVersion = value.Uint() - case "cometbft.abci.v2.InfoResponse.last_block_height": + case "tendermint.abci.ResponseInfo.last_block_height": x.LastBlockHeight = value.Int() - case "cometbft.abci.v2.InfoResponse.last_block_app_hash": + case "tendermint.abci.ResponseInfo.last_block_app_hash": x.LastBlockAppHash = value.Bytes() - case "cometbft.abci.v2.InfoResponse.lane_priorities": - mv := value.Map() - cmv := mv.(*_InfoResponse_6_map) - x.LanePriorities = *cmv.m - case "cometbft.abci.v2.InfoResponse.default_lane": - x.DefaultLane = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.InfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.InfoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseInfo does not contain field %s", fd.FullName())) } } @@ -16050,69 +15813,56 @@ func (x *fastReflection_InfoResponse) Set(fd protoreflect.FieldDescriptor, value // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_InfoResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseInfo) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.InfoResponse.lane_priorities": - if x.LanePriorities == nil { - x.LanePriorities = make(map[string]uint32) - } - value := &_InfoResponse_6_map{m: &x.LanePriorities} - return protoreflect.ValueOfMap(value) - case "cometbft.abci.v2.InfoResponse.data": - panic(fmt.Errorf("field data of message cometbft.abci.v2.InfoResponse is not mutable")) - case "cometbft.abci.v2.InfoResponse.version": - panic(fmt.Errorf("field version of message cometbft.abci.v2.InfoResponse is not mutable")) - case "cometbft.abci.v2.InfoResponse.app_version": - panic(fmt.Errorf("field app_version of message cometbft.abci.v2.InfoResponse is not mutable")) - case "cometbft.abci.v2.InfoResponse.last_block_height": - panic(fmt.Errorf("field last_block_height of message cometbft.abci.v2.InfoResponse is not mutable")) - case "cometbft.abci.v2.InfoResponse.last_block_app_hash": - panic(fmt.Errorf("field last_block_app_hash of message cometbft.abci.v2.InfoResponse is not mutable")) - case "cometbft.abci.v2.InfoResponse.default_lane": - panic(fmt.Errorf("field default_lane of message cometbft.abci.v2.InfoResponse is not mutable")) + case "tendermint.abci.ResponseInfo.data": + panic(fmt.Errorf("field data of message tendermint.abci.ResponseInfo is not mutable")) + case "tendermint.abci.ResponseInfo.version": + panic(fmt.Errorf("field version of message tendermint.abci.ResponseInfo is not mutable")) + case "tendermint.abci.ResponseInfo.app_version": + panic(fmt.Errorf("field app_version of message tendermint.abci.ResponseInfo is not mutable")) + case "tendermint.abci.ResponseInfo.last_block_height": + panic(fmt.Errorf("field last_block_height of message tendermint.abci.ResponseInfo is not mutable")) + case "tendermint.abci.ResponseInfo.last_block_app_hash": + panic(fmt.Errorf("field last_block_app_hash of message tendermint.abci.ResponseInfo is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.InfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.InfoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseInfo does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_InfoResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.InfoResponse.data": + case "tendermint.abci.ResponseInfo.data": return protoreflect.ValueOfString("") - case "cometbft.abci.v2.InfoResponse.version": + case "tendermint.abci.ResponseInfo.version": return protoreflect.ValueOfString("") - case "cometbft.abci.v2.InfoResponse.app_version": + case "tendermint.abci.ResponseInfo.app_version": return protoreflect.ValueOfUint64(uint64(0)) - case "cometbft.abci.v2.InfoResponse.last_block_height": + case "tendermint.abci.ResponseInfo.last_block_height": return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.abci.v2.InfoResponse.last_block_app_hash": + case "tendermint.abci.ResponseInfo.last_block_app_hash": return protoreflect.ValueOfBytes(nil) - case "cometbft.abci.v2.InfoResponse.lane_priorities": - m := make(map[string]uint32) - return protoreflect.ValueOfMap(&_InfoResponse_6_map{m: &m}) - case "cometbft.abci.v2.InfoResponse.default_lane": - return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.InfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.InfoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseInfo does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_InfoResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_ResponseInfo) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.InfoResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.ResponseInfo", d.FullName())) } panic("unreachable") } @@ -16120,7 +15870,7 @@ func (x *fastReflection_InfoResponse) WhichOneof(d protoreflect.OneofDescriptor) // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_InfoResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_ResponseInfo) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -16131,7 +15881,7 @@ func (x *fastReflection_InfoResponse) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_InfoResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_ResponseInfo) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -16143,7 +15893,7 @@ func (x *fastReflection_InfoResponse) SetUnknown(fields protoreflect.RawFields) // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_InfoResponse) IsValid() bool { +func (x *fastReflection_ResponseInfo) IsValid() bool { return x != nil } @@ -16153,9 +15903,9 @@ func (x *fastReflection_InfoResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_InfoResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_ResponseInfo) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*InfoResponse) + x := input.Message.Interface().(*ResponseInfo) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -16185,31 +15935,6 @@ func (x *fastReflection_InfoResponse) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if len(x.LanePriorities) > 0 { - SiZeMaP := func(k string, v uint32) { - mapEntrySize := 1 + len(k) + runtime.Sov(uint64(len(k))) + 1 + runtime.Sov(uint64(v)) - n += mapEntrySize + 1 + runtime.Sov(uint64(mapEntrySize)) - } - if options.Deterministic { - sortme := make([]string, 0, len(x.LanePriorities)) - for k := range x.LanePriorities { - sortme = append(sortme, k) - } - sort.Strings(sortme) - for _, k := range sortme { - v := x.LanePriorities[k] - SiZeMaP(k, v) - } - } else { - for k, v := range x.LanePriorities { - SiZeMaP(k, v) - } - } - } - l = len(x.DefaultLane) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -16220,7 +15945,7 @@ func (x *fastReflection_InfoResponse) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*InfoResponse) + x := input.Message.Interface().(*ResponseInfo) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -16239,54 +15964,6 @@ func (x *fastReflection_InfoResponse) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.DefaultLane) > 0 { - i -= len(x.DefaultLane) - copy(dAtA[i:], x.DefaultLane) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DefaultLane))) - i-- - dAtA[i] = 0x3a - } - if len(x.LanePriorities) > 0 { - MaRsHaLmAp := func(k string, v uint32) (protoiface.MarshalOutput, error) { - baseI := i - i = runtime.EncodeVarint(dAtA, i, uint64(v)) - i-- - dAtA[i] = 0x10 - i -= len(k) - copy(dAtA[i:], k) - i = runtime.EncodeVarint(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = runtime.EncodeVarint(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x32 - return protoiface.MarshalOutput{}, nil - } - if options.Deterministic { - keysForLanePriorities := make([]string, 0, len(x.LanePriorities)) - for k := range x.LanePriorities { - keysForLanePriorities = append(keysForLanePriorities, string(k)) - } - sort.Slice(keysForLanePriorities, func(i, j int) bool { - return keysForLanePriorities[i] < keysForLanePriorities[j] - }) - for iNdEx := len(keysForLanePriorities) - 1; iNdEx >= 0; iNdEx-- { - v := x.LanePriorities[string(keysForLanePriorities[iNdEx])] - out, err := MaRsHaLmAp(keysForLanePriorities[iNdEx], v) - if err != nil { - return out, err - } - } - } else { - for k := range x.LanePriorities { - v := x.LanePriorities[k] - out, err := MaRsHaLmAp(k, v) - if err != nil { - return out, err - } - } - } - } if len(x.LastBlockAppHash) > 0 { i -= len(x.LastBlockAppHash) copy(dAtA[i:], x.LastBlockAppHash) @@ -16329,7 +16006,7 @@ func (x *fastReflection_InfoResponse) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*InfoResponse) + x := input.Message.Interface().(*ResponseInfo) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -16361,10 +16038,10 @@ func (x *fastReflection_InfoResponse) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: InfoResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ResponseInfo: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: InfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ResponseInfo: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -16503,151 +16180,6 @@ func (x *fastReflection_InfoResponse) ProtoMethods() *protoiface.Methods { x.LastBlockAppHash = []byte{} } iNdEx = postIndex - case 6: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LanePriorities", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.LanePriorities == nil { - x.LanePriorities = make(map[string]uint32) - } - var mapkey string - var mapvalue uint32 - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postStringIndexmapkey > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapvalue |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - } else { - iNdEx = entryPreIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > postIndex { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - x.LanePriorities[mapkey] = mapvalue - iNdEx = postIndex - case 7: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DefaultLane", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.DefaultLane = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -16683,82 +16215,82 @@ func (x *fastReflection_InfoResponse) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_InitChainResponse_2_list)(nil) +var _ protoreflect.List = (*_ResponseInitChain_2_list)(nil) -type _InitChainResponse_2_list struct { +type _ResponseInitChain_2_list struct { list *[]*ValidatorUpdate } -func (x *_InitChainResponse_2_list) Len() int { +func (x *_ResponseInitChain_2_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_InitChainResponse_2_list) Get(i int) protoreflect.Value { +func (x *_ResponseInitChain_2_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_InitChainResponse_2_list) Set(i int, value protoreflect.Value) { +func (x *_ResponseInitChain_2_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*ValidatorUpdate) (*x.list)[i] = concreteValue } -func (x *_InitChainResponse_2_list) Append(value protoreflect.Value) { +func (x *_ResponseInitChain_2_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*ValidatorUpdate) *x.list = append(*x.list, concreteValue) } -func (x *_InitChainResponse_2_list) AppendMutable() protoreflect.Value { +func (x *_ResponseInitChain_2_list) AppendMutable() protoreflect.Value { v := new(ValidatorUpdate) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_InitChainResponse_2_list) Truncate(n int) { +func (x *_ResponseInitChain_2_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_InitChainResponse_2_list) NewElement() protoreflect.Value { +func (x *_ResponseInitChain_2_list) NewElement() protoreflect.Value { v := new(ValidatorUpdate) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_InitChainResponse_2_list) IsValid() bool { +func (x *_ResponseInitChain_2_list) IsValid() bool { return x.list != nil } var ( - md_InitChainResponse protoreflect.MessageDescriptor - fd_InitChainResponse_consensus_params protoreflect.FieldDescriptor - fd_InitChainResponse_validators protoreflect.FieldDescriptor - fd_InitChainResponse_app_hash protoreflect.FieldDescriptor + md_ResponseInitChain protoreflect.MessageDescriptor + fd_ResponseInitChain_consensus_params protoreflect.FieldDescriptor + fd_ResponseInitChain_validators protoreflect.FieldDescriptor + fd_ResponseInitChain_app_hash protoreflect.FieldDescriptor ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_InitChainResponse = File_cometbft_abci_v2_types_proto.Messages().ByName("InitChainResponse") - fd_InitChainResponse_consensus_params = md_InitChainResponse.Fields().ByName("consensus_params") - fd_InitChainResponse_validators = md_InitChainResponse.Fields().ByName("validators") - fd_InitChainResponse_app_hash = md_InitChainResponse.Fields().ByName("app_hash") + file_tendermint_abci_types_proto_init() + md_ResponseInitChain = File_tendermint_abci_types_proto.Messages().ByName("ResponseInitChain") + fd_ResponseInitChain_consensus_params = md_ResponseInitChain.Fields().ByName("consensus_params") + fd_ResponseInitChain_validators = md_ResponseInitChain.Fields().ByName("validators") + fd_ResponseInitChain_app_hash = md_ResponseInitChain.Fields().ByName("app_hash") } -var _ protoreflect.Message = (*fastReflection_InitChainResponse)(nil) +var _ protoreflect.Message = (*fastReflection_ResponseInitChain)(nil) -type fastReflection_InitChainResponse InitChainResponse +type fastReflection_ResponseInitChain ResponseInitChain -func (x *InitChainResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_InitChainResponse)(x) +func (x *ResponseInitChain) ProtoReflect() protoreflect.Message { + return (*fastReflection_ResponseInitChain)(x) } -func (x *InitChainResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[22] +func (x *ResponseInitChain) slowProtoReflect() protoreflect.Message { + mi := &file_tendermint_abci_types_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16769,43 +16301,43 @@ func (x *InitChainResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_InitChainResponse_messageType fastReflection_InitChainResponse_messageType -var _ protoreflect.MessageType = fastReflection_InitChainResponse_messageType{} +var _fastReflection_ResponseInitChain_messageType fastReflection_ResponseInitChain_messageType +var _ protoreflect.MessageType = fastReflection_ResponseInitChain_messageType{} -type fastReflection_InitChainResponse_messageType struct{} +type fastReflection_ResponseInitChain_messageType struct{} -func (x fastReflection_InitChainResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_InitChainResponse)(nil) +func (x fastReflection_ResponseInitChain_messageType) Zero() protoreflect.Message { + return (*fastReflection_ResponseInitChain)(nil) } -func (x fastReflection_InitChainResponse_messageType) New() protoreflect.Message { - return new(fastReflection_InitChainResponse) +func (x fastReflection_ResponseInitChain_messageType) New() protoreflect.Message { + return new(fastReflection_ResponseInitChain) } -func (x fastReflection_InitChainResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_InitChainResponse +func (x fastReflection_ResponseInitChain_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ResponseInitChain } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_InitChainResponse) Descriptor() protoreflect.MessageDescriptor { - return md_InitChainResponse +func (x *fastReflection_ResponseInitChain) Descriptor() protoreflect.MessageDescriptor { + return md_ResponseInitChain } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_InitChainResponse) Type() protoreflect.MessageType { - return _fastReflection_InitChainResponse_messageType +func (x *fastReflection_ResponseInitChain) Type() protoreflect.MessageType { + return _fastReflection_ResponseInitChain_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_InitChainResponse) New() protoreflect.Message { - return new(fastReflection_InitChainResponse) +func (x *fastReflection_ResponseInitChain) New() protoreflect.Message { + return new(fastReflection_ResponseInitChain) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_InitChainResponse) Interface() protoreflect.ProtoMessage { - return (*InitChainResponse)(x) +func (x *fastReflection_ResponseInitChain) Interface() protoreflect.ProtoMessage { + return (*ResponseInitChain)(x) } // Range iterates over every populated field in an undefined order, @@ -16813,22 +16345,22 @@ func (x *fastReflection_InitChainResponse) Interface() protoreflect.ProtoMessage // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_InitChainResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_ResponseInitChain) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ConsensusParams != nil { value := protoreflect.ValueOfMessage(x.ConsensusParams.ProtoReflect()) - if !f(fd_InitChainResponse_consensus_params, value) { + if !f(fd_ResponseInitChain_consensus_params, value) { return } } if len(x.Validators) != 0 { - value := protoreflect.ValueOfList(&_InitChainResponse_2_list{list: &x.Validators}) - if !f(fd_InitChainResponse_validators, value) { + value := protoreflect.ValueOfList(&_ResponseInitChain_2_list{list: &x.Validators}) + if !f(fd_ResponseInitChain_validators, value) { return } } if len(x.AppHash) != 0 { value := protoreflect.ValueOfBytes(x.AppHash) - if !f(fd_InitChainResponse_app_hash, value) { + if !f(fd_ResponseInitChain_app_hash, value) { return } } @@ -16845,19 +16377,19 @@ func (x *fastReflection_InitChainResponse) Range(f func(protoreflect.FieldDescri // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_InitChainResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_ResponseInitChain) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.InitChainResponse.consensus_params": + case "tendermint.abci.ResponseInitChain.consensus_params": return x.ConsensusParams != nil - case "cometbft.abci.v2.InitChainResponse.validators": + case "tendermint.abci.ResponseInitChain.validators": return len(x.Validators) != 0 - case "cometbft.abci.v2.InitChainResponse.app_hash": + case "tendermint.abci.ResponseInitChain.app_hash": return len(x.AppHash) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.InitChainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseInitChain")) } - panic(fmt.Errorf("message cometbft.abci.v2.InitChainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseInitChain does not contain field %s", fd.FullName())) } } @@ -16867,19 +16399,19 @@ func (x *fastReflection_InitChainResponse) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_InitChainResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_ResponseInitChain) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.InitChainResponse.consensus_params": + case "tendermint.abci.ResponseInitChain.consensus_params": x.ConsensusParams = nil - case "cometbft.abci.v2.InitChainResponse.validators": + case "tendermint.abci.ResponseInitChain.validators": x.Validators = nil - case "cometbft.abci.v2.InitChainResponse.app_hash": + case "tendermint.abci.ResponseInitChain.app_hash": x.AppHash = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.InitChainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseInitChain")) } - panic(fmt.Errorf("message cometbft.abci.v2.InitChainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseInitChain does not contain field %s", fd.FullName())) } } @@ -16889,25 +16421,25 @@ func (x *fastReflection_InitChainResponse) Clear(fd protoreflect.FieldDescriptor // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_InitChainResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseInitChain) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.InitChainResponse.consensus_params": + case "tendermint.abci.ResponseInitChain.consensus_params": value := x.ConsensusParams return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.InitChainResponse.validators": + case "tendermint.abci.ResponseInitChain.validators": if len(x.Validators) == 0 { - return protoreflect.ValueOfList(&_InitChainResponse_2_list{}) + return protoreflect.ValueOfList(&_ResponseInitChain_2_list{}) } - listValue := &_InitChainResponse_2_list{list: &x.Validators} + listValue := &_ResponseInitChain_2_list{list: &x.Validators} return protoreflect.ValueOfList(listValue) - case "cometbft.abci.v2.InitChainResponse.app_hash": + case "tendermint.abci.ResponseInitChain.app_hash": value := x.AppHash return protoreflect.ValueOfBytes(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.InitChainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseInitChain")) } - panic(fmt.Errorf("message cometbft.abci.v2.InitChainResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseInitChain does not contain field %s", descriptor.FullName())) } } @@ -16921,21 +16453,21 @@ func (x *fastReflection_InitChainResponse) Get(descriptor protoreflect.FieldDesc // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_InitChainResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_ResponseInitChain) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.InitChainResponse.consensus_params": - x.ConsensusParams = value.Message().Interface().(*v2.ConsensusParams) - case "cometbft.abci.v2.InitChainResponse.validators": + case "tendermint.abci.ResponseInitChain.consensus_params": + x.ConsensusParams = value.Message().Interface().(*types.ConsensusParams) + case "tendermint.abci.ResponseInitChain.validators": lv := value.List() - clv := lv.(*_InitChainResponse_2_list) + clv := lv.(*_ResponseInitChain_2_list) x.Validators = *clv.list - case "cometbft.abci.v2.InitChainResponse.app_hash": + case "tendermint.abci.ResponseInitChain.app_hash": x.AppHash = value.Bytes() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.InitChainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseInitChain")) } - panic(fmt.Errorf("message cometbft.abci.v2.InitChainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseInitChain does not contain field %s", fd.FullName())) } } @@ -16949,57 +16481,57 @@ func (x *fastReflection_InitChainResponse) Set(fd protoreflect.FieldDescriptor, // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_InitChainResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseInitChain) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.InitChainResponse.consensus_params": + case "tendermint.abci.ResponseInitChain.consensus_params": if x.ConsensusParams == nil { - x.ConsensusParams = new(v2.ConsensusParams) + x.ConsensusParams = new(types.ConsensusParams) } return protoreflect.ValueOfMessage(x.ConsensusParams.ProtoReflect()) - case "cometbft.abci.v2.InitChainResponse.validators": + case "tendermint.abci.ResponseInitChain.validators": if x.Validators == nil { x.Validators = []*ValidatorUpdate{} } - value := &_InitChainResponse_2_list{list: &x.Validators} + value := &_ResponseInitChain_2_list{list: &x.Validators} return protoreflect.ValueOfList(value) - case "cometbft.abci.v2.InitChainResponse.app_hash": - panic(fmt.Errorf("field app_hash of message cometbft.abci.v2.InitChainResponse is not mutable")) + case "tendermint.abci.ResponseInitChain.app_hash": + panic(fmt.Errorf("field app_hash of message tendermint.abci.ResponseInitChain is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.InitChainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseInitChain")) } - panic(fmt.Errorf("message cometbft.abci.v2.InitChainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseInitChain does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_InitChainResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseInitChain) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.InitChainResponse.consensus_params": - m := new(v2.ConsensusParams) + case "tendermint.abci.ResponseInitChain.consensus_params": + m := new(types.ConsensusParams) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.abci.v2.InitChainResponse.validators": + case "tendermint.abci.ResponseInitChain.validators": list := []*ValidatorUpdate{} - return protoreflect.ValueOfList(&_InitChainResponse_2_list{list: &list}) - case "cometbft.abci.v2.InitChainResponse.app_hash": + return protoreflect.ValueOfList(&_ResponseInitChain_2_list{list: &list}) + case "tendermint.abci.ResponseInitChain.app_hash": return protoreflect.ValueOfBytes(nil) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.InitChainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseInitChain")) } - panic(fmt.Errorf("message cometbft.abci.v2.InitChainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseInitChain does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_InitChainResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_ResponseInitChain) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.InitChainResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.ResponseInitChain", d.FullName())) } panic("unreachable") } @@ -17007,7 +16539,7 @@ func (x *fastReflection_InitChainResponse) WhichOneof(d protoreflect.OneofDescri // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_InitChainResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_ResponseInitChain) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -17018,7 +16550,7 @@ func (x *fastReflection_InitChainResponse) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_InitChainResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_ResponseInitChain) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -17030,7 +16562,7 @@ func (x *fastReflection_InitChainResponse) SetUnknown(fields protoreflect.RawFie // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_InitChainResponse) IsValid() bool { +func (x *fastReflection_ResponseInitChain) IsValid() bool { return x != nil } @@ -17040,9 +16572,9 @@ func (x *fastReflection_InitChainResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_InitChainResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_ResponseInitChain) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*InitChainResponse) + x := input.Message.Interface().(*ResponseInitChain) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -17078,7 +16610,7 @@ func (x *fastReflection_InitChainResponse) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*InitChainResponse) + x := input.Message.Interface().(*ResponseInitChain) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -17145,7 +16677,7 @@ func (x *fastReflection_InitChainResponse) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*InitChainResponse) + x := input.Message.Interface().(*ResponseInitChain) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -17177,10 +16709,10 @@ func (x *fastReflection_InitChainResponse) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: InitChainResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ResponseInitChain: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: InitChainResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ResponseInitChain: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -17213,7 +16745,7 @@ func (x *fastReflection_InitChainResponse) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.ConsensusParams == nil { - x.ConsensusParams = &v2.ConsensusParams{} + x.ConsensusParams = &types.ConsensusParams{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ConsensusParams); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -17323,42 +16855,42 @@ func (x *fastReflection_InitChainResponse) ProtoMethods() *protoiface.Methods { } var ( - md_QueryResponse protoreflect.MessageDescriptor - fd_QueryResponse_code protoreflect.FieldDescriptor - fd_QueryResponse_log protoreflect.FieldDescriptor - fd_QueryResponse_info protoreflect.FieldDescriptor - fd_QueryResponse_index protoreflect.FieldDescriptor - fd_QueryResponse_key protoreflect.FieldDescriptor - fd_QueryResponse_value protoreflect.FieldDescriptor - fd_QueryResponse_proof_ops protoreflect.FieldDescriptor - fd_QueryResponse_height protoreflect.FieldDescriptor - fd_QueryResponse_codespace protoreflect.FieldDescriptor + md_ResponseQuery protoreflect.MessageDescriptor + fd_ResponseQuery_code protoreflect.FieldDescriptor + fd_ResponseQuery_log protoreflect.FieldDescriptor + fd_ResponseQuery_info protoreflect.FieldDescriptor + fd_ResponseQuery_index protoreflect.FieldDescriptor + fd_ResponseQuery_key protoreflect.FieldDescriptor + fd_ResponseQuery_value protoreflect.FieldDescriptor + fd_ResponseQuery_proof_ops protoreflect.FieldDescriptor + fd_ResponseQuery_height protoreflect.FieldDescriptor + fd_ResponseQuery_codespace protoreflect.FieldDescriptor ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_QueryResponse = File_cometbft_abci_v2_types_proto.Messages().ByName("QueryResponse") - fd_QueryResponse_code = md_QueryResponse.Fields().ByName("code") - fd_QueryResponse_log = md_QueryResponse.Fields().ByName("log") - fd_QueryResponse_info = md_QueryResponse.Fields().ByName("info") - fd_QueryResponse_index = md_QueryResponse.Fields().ByName("index") - fd_QueryResponse_key = md_QueryResponse.Fields().ByName("key") - fd_QueryResponse_value = md_QueryResponse.Fields().ByName("value") - fd_QueryResponse_proof_ops = md_QueryResponse.Fields().ByName("proof_ops") - fd_QueryResponse_height = md_QueryResponse.Fields().ByName("height") - fd_QueryResponse_codespace = md_QueryResponse.Fields().ByName("codespace") + file_tendermint_abci_types_proto_init() + md_ResponseQuery = File_tendermint_abci_types_proto.Messages().ByName("ResponseQuery") + fd_ResponseQuery_code = md_ResponseQuery.Fields().ByName("code") + fd_ResponseQuery_log = md_ResponseQuery.Fields().ByName("log") + fd_ResponseQuery_info = md_ResponseQuery.Fields().ByName("info") + fd_ResponseQuery_index = md_ResponseQuery.Fields().ByName("index") + fd_ResponseQuery_key = md_ResponseQuery.Fields().ByName("key") + fd_ResponseQuery_value = md_ResponseQuery.Fields().ByName("value") + fd_ResponseQuery_proof_ops = md_ResponseQuery.Fields().ByName("proof_ops") + fd_ResponseQuery_height = md_ResponseQuery.Fields().ByName("height") + fd_ResponseQuery_codespace = md_ResponseQuery.Fields().ByName("codespace") } -var _ protoreflect.Message = (*fastReflection_QueryResponse)(nil) +var _ protoreflect.Message = (*fastReflection_ResponseQuery)(nil) -type fastReflection_QueryResponse QueryResponse +type fastReflection_ResponseQuery ResponseQuery -func (x *QueryResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryResponse)(x) +func (x *ResponseQuery) ProtoReflect() protoreflect.Message { + return (*fastReflection_ResponseQuery)(x) } -func (x *QueryResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[23] +func (x *ResponseQuery) slowProtoReflect() protoreflect.Message { + mi := &file_tendermint_abci_types_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17369,43 +16901,43 @@ func (x *QueryResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryResponse_messageType fastReflection_QueryResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryResponse_messageType{} +var _fastReflection_ResponseQuery_messageType fastReflection_ResponseQuery_messageType +var _ protoreflect.MessageType = fastReflection_ResponseQuery_messageType{} -type fastReflection_QueryResponse_messageType struct{} +type fastReflection_ResponseQuery_messageType struct{} -func (x fastReflection_QueryResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryResponse)(nil) +func (x fastReflection_ResponseQuery_messageType) Zero() protoreflect.Message { + return (*fastReflection_ResponseQuery)(nil) } -func (x fastReflection_QueryResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryResponse) +func (x fastReflection_ResponseQuery_messageType) New() protoreflect.Message { + return new(fastReflection_ResponseQuery) } -func (x fastReflection_QueryResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryResponse +func (x fastReflection_ResponseQuery_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ResponseQuery } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryResponse +func (x *fastReflection_ResponseQuery) Descriptor() protoreflect.MessageDescriptor { + return md_ResponseQuery } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryResponse_messageType +func (x *fastReflection_ResponseQuery) Type() protoreflect.MessageType { + return _fastReflection_ResponseQuery_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryResponse) New() protoreflect.Message { - return new(fastReflection_QueryResponse) +func (x *fastReflection_ResponseQuery) New() protoreflect.Message { + return new(fastReflection_ResponseQuery) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryResponse) Interface() protoreflect.ProtoMessage { - return (*QueryResponse)(x) +func (x *fastReflection_ResponseQuery) Interface() protoreflect.ProtoMessage { + return (*ResponseQuery)(x) } // Range iterates over every populated field in an undefined order, @@ -17413,58 +16945,58 @@ func (x *fastReflection_QueryResponse) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_ResponseQuery) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Code != uint32(0) { value := protoreflect.ValueOfUint32(x.Code) - if !f(fd_QueryResponse_code, value) { + if !f(fd_ResponseQuery_code, value) { return } } if x.Log != "" { value := protoreflect.ValueOfString(x.Log) - if !f(fd_QueryResponse_log, value) { + if !f(fd_ResponseQuery_log, value) { return } } if x.Info != "" { value := protoreflect.ValueOfString(x.Info) - if !f(fd_QueryResponse_info, value) { + if !f(fd_ResponseQuery_info, value) { return } } if x.Index != int64(0) { value := protoreflect.ValueOfInt64(x.Index) - if !f(fd_QueryResponse_index, value) { + if !f(fd_ResponseQuery_index, value) { return } } if len(x.Key) != 0 { value := protoreflect.ValueOfBytes(x.Key) - if !f(fd_QueryResponse_key, value) { + if !f(fd_ResponseQuery_key, value) { return } } if len(x.Value) != 0 { value := protoreflect.ValueOfBytes(x.Value) - if !f(fd_QueryResponse_value, value) { + if !f(fd_ResponseQuery_value, value) { return } } if x.ProofOps != nil { value := protoreflect.ValueOfMessage(x.ProofOps.ProtoReflect()) - if !f(fd_QueryResponse_proof_ops, value) { + if !f(fd_ResponseQuery_proof_ops, value) { return } } if x.Height != int64(0) { value := protoreflect.ValueOfInt64(x.Height) - if !f(fd_QueryResponse_height, value) { + if !f(fd_ResponseQuery_height, value) { return } } if x.Codespace != "" { value := protoreflect.ValueOfString(x.Codespace) - if !f(fd_QueryResponse_codespace, value) { + if !f(fd_ResponseQuery_codespace, value) { return } } @@ -17481,31 +17013,31 @@ func (x *fastReflection_QueryResponse) Range(f func(protoreflect.FieldDescriptor // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_ResponseQuery) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.QueryResponse.code": + case "tendermint.abci.ResponseQuery.code": return x.Code != uint32(0) - case "cometbft.abci.v2.QueryResponse.log": + case "tendermint.abci.ResponseQuery.log": return x.Log != "" - case "cometbft.abci.v2.QueryResponse.info": + case "tendermint.abci.ResponseQuery.info": return x.Info != "" - case "cometbft.abci.v2.QueryResponse.index": + case "tendermint.abci.ResponseQuery.index": return x.Index != int64(0) - case "cometbft.abci.v2.QueryResponse.key": + case "tendermint.abci.ResponseQuery.key": return len(x.Key) != 0 - case "cometbft.abci.v2.QueryResponse.value": + case "tendermint.abci.ResponseQuery.value": return len(x.Value) != 0 - case "cometbft.abci.v2.QueryResponse.proof_ops": + case "tendermint.abci.ResponseQuery.proof_ops": return x.ProofOps != nil - case "cometbft.abci.v2.QueryResponse.height": + case "tendermint.abci.ResponseQuery.height": return x.Height != int64(0) - case "cometbft.abci.v2.QueryResponse.codespace": + case "tendermint.abci.ResponseQuery.codespace": return x.Codespace != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.QueryResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseQuery")) } - panic(fmt.Errorf("message cometbft.abci.v2.QueryResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseQuery does not contain field %s", fd.FullName())) } } @@ -17515,31 +17047,31 @@ func (x *fastReflection_QueryResponse) Has(fd protoreflect.FieldDescriptor) bool // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_ResponseQuery) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.QueryResponse.code": + case "tendermint.abci.ResponseQuery.code": x.Code = uint32(0) - case "cometbft.abci.v2.QueryResponse.log": + case "tendermint.abci.ResponseQuery.log": x.Log = "" - case "cometbft.abci.v2.QueryResponse.info": + case "tendermint.abci.ResponseQuery.info": x.Info = "" - case "cometbft.abci.v2.QueryResponse.index": + case "tendermint.abci.ResponseQuery.index": x.Index = int64(0) - case "cometbft.abci.v2.QueryResponse.key": + case "tendermint.abci.ResponseQuery.key": x.Key = nil - case "cometbft.abci.v2.QueryResponse.value": + case "tendermint.abci.ResponseQuery.value": x.Value = nil - case "cometbft.abci.v2.QueryResponse.proof_ops": + case "tendermint.abci.ResponseQuery.proof_ops": x.ProofOps = nil - case "cometbft.abci.v2.QueryResponse.height": + case "tendermint.abci.ResponseQuery.height": x.Height = int64(0) - case "cometbft.abci.v2.QueryResponse.codespace": + case "tendermint.abci.ResponseQuery.codespace": x.Codespace = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.QueryResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseQuery")) } - panic(fmt.Errorf("message cometbft.abci.v2.QueryResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseQuery does not contain field %s", fd.FullName())) } } @@ -17549,40 +17081,40 @@ func (x *fastReflection_QueryResponse) Clear(fd protoreflect.FieldDescriptor) { // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseQuery) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.QueryResponse.code": + case "tendermint.abci.ResponseQuery.code": value := x.Code return protoreflect.ValueOfUint32(value) - case "cometbft.abci.v2.QueryResponse.log": + case "tendermint.abci.ResponseQuery.log": value := x.Log return protoreflect.ValueOfString(value) - case "cometbft.abci.v2.QueryResponse.info": + case "tendermint.abci.ResponseQuery.info": value := x.Info return protoreflect.ValueOfString(value) - case "cometbft.abci.v2.QueryResponse.index": + case "tendermint.abci.ResponseQuery.index": value := x.Index return protoreflect.ValueOfInt64(value) - case "cometbft.abci.v2.QueryResponse.key": + case "tendermint.abci.ResponseQuery.key": value := x.Key return protoreflect.ValueOfBytes(value) - case "cometbft.abci.v2.QueryResponse.value": + case "tendermint.abci.ResponseQuery.value": value := x.Value return protoreflect.ValueOfBytes(value) - case "cometbft.abci.v2.QueryResponse.proof_ops": + case "tendermint.abci.ResponseQuery.proof_ops": value := x.ProofOps return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.QueryResponse.height": + case "tendermint.abci.ResponseQuery.height": value := x.Height return protoreflect.ValueOfInt64(value) - case "cometbft.abci.v2.QueryResponse.codespace": + case "tendermint.abci.ResponseQuery.codespace": value := x.Codespace return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.QueryResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseQuery")) } - panic(fmt.Errorf("message cometbft.abci.v2.QueryResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseQuery does not contain field %s", descriptor.FullName())) } } @@ -17596,31 +17128,31 @@ func (x *fastReflection_QueryResponse) Get(descriptor protoreflect.FieldDescript // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_ResponseQuery) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.QueryResponse.code": + case "tendermint.abci.ResponseQuery.code": x.Code = uint32(value.Uint()) - case "cometbft.abci.v2.QueryResponse.log": + case "tendermint.abci.ResponseQuery.log": x.Log = value.Interface().(string) - case "cometbft.abci.v2.QueryResponse.info": + case "tendermint.abci.ResponseQuery.info": x.Info = value.Interface().(string) - case "cometbft.abci.v2.QueryResponse.index": + case "tendermint.abci.ResponseQuery.index": x.Index = value.Int() - case "cometbft.abci.v2.QueryResponse.key": + case "tendermint.abci.ResponseQuery.key": x.Key = value.Bytes() - case "cometbft.abci.v2.QueryResponse.value": + case "tendermint.abci.ResponseQuery.value": x.Value = value.Bytes() - case "cometbft.abci.v2.QueryResponse.proof_ops": - x.ProofOps = value.Message().Interface().(*v1.ProofOps) - case "cometbft.abci.v2.QueryResponse.height": + case "tendermint.abci.ResponseQuery.proof_ops": + x.ProofOps = value.Message().Interface().(*crypto.ProofOps) + case "tendermint.abci.ResponseQuery.height": x.Height = value.Int() - case "cometbft.abci.v2.QueryResponse.codespace": + case "tendermint.abci.ResponseQuery.codespace": x.Codespace = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.QueryResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseQuery")) } - panic(fmt.Errorf("message cometbft.abci.v2.QueryResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseQuery does not contain field %s", fd.FullName())) } } @@ -17634,76 +17166,76 @@ func (x *fastReflection_QueryResponse) Set(fd protoreflect.FieldDescriptor, valu // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseQuery) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.QueryResponse.proof_ops": + case "tendermint.abci.ResponseQuery.proof_ops": if x.ProofOps == nil { - x.ProofOps = new(v1.ProofOps) + x.ProofOps = new(crypto.ProofOps) } return protoreflect.ValueOfMessage(x.ProofOps.ProtoReflect()) - case "cometbft.abci.v2.QueryResponse.code": - panic(fmt.Errorf("field code of message cometbft.abci.v2.QueryResponse is not mutable")) - case "cometbft.abci.v2.QueryResponse.log": - panic(fmt.Errorf("field log of message cometbft.abci.v2.QueryResponse is not mutable")) - case "cometbft.abci.v2.QueryResponse.info": - panic(fmt.Errorf("field info of message cometbft.abci.v2.QueryResponse is not mutable")) - case "cometbft.abci.v2.QueryResponse.index": - panic(fmt.Errorf("field index of message cometbft.abci.v2.QueryResponse is not mutable")) - case "cometbft.abci.v2.QueryResponse.key": - panic(fmt.Errorf("field key of message cometbft.abci.v2.QueryResponse is not mutable")) - case "cometbft.abci.v2.QueryResponse.value": - panic(fmt.Errorf("field value of message cometbft.abci.v2.QueryResponse is not mutable")) - case "cometbft.abci.v2.QueryResponse.height": - panic(fmt.Errorf("field height of message cometbft.abci.v2.QueryResponse is not mutable")) - case "cometbft.abci.v2.QueryResponse.codespace": - panic(fmt.Errorf("field codespace of message cometbft.abci.v2.QueryResponse is not mutable")) + case "tendermint.abci.ResponseQuery.code": + panic(fmt.Errorf("field code of message tendermint.abci.ResponseQuery is not mutable")) + case "tendermint.abci.ResponseQuery.log": + panic(fmt.Errorf("field log of message tendermint.abci.ResponseQuery is not mutable")) + case "tendermint.abci.ResponseQuery.info": + panic(fmt.Errorf("field info of message tendermint.abci.ResponseQuery is not mutable")) + case "tendermint.abci.ResponseQuery.index": + panic(fmt.Errorf("field index of message tendermint.abci.ResponseQuery is not mutable")) + case "tendermint.abci.ResponseQuery.key": + panic(fmt.Errorf("field key of message tendermint.abci.ResponseQuery is not mutable")) + case "tendermint.abci.ResponseQuery.value": + panic(fmt.Errorf("field value of message tendermint.abci.ResponseQuery is not mutable")) + case "tendermint.abci.ResponseQuery.height": + panic(fmt.Errorf("field height of message tendermint.abci.ResponseQuery is not mutable")) + case "tendermint.abci.ResponseQuery.codespace": + panic(fmt.Errorf("field codespace of message tendermint.abci.ResponseQuery is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.QueryResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseQuery")) } - panic(fmt.Errorf("message cometbft.abci.v2.QueryResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseQuery does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseQuery) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.QueryResponse.code": + case "tendermint.abci.ResponseQuery.code": return protoreflect.ValueOfUint32(uint32(0)) - case "cometbft.abci.v2.QueryResponse.log": + case "tendermint.abci.ResponseQuery.log": return protoreflect.ValueOfString("") - case "cometbft.abci.v2.QueryResponse.info": + case "tendermint.abci.ResponseQuery.info": return protoreflect.ValueOfString("") - case "cometbft.abci.v2.QueryResponse.index": + case "tendermint.abci.ResponseQuery.index": return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.abci.v2.QueryResponse.key": + case "tendermint.abci.ResponseQuery.key": return protoreflect.ValueOfBytes(nil) - case "cometbft.abci.v2.QueryResponse.value": + case "tendermint.abci.ResponseQuery.value": return protoreflect.ValueOfBytes(nil) - case "cometbft.abci.v2.QueryResponse.proof_ops": - m := new(v1.ProofOps) + case "tendermint.abci.ResponseQuery.proof_ops": + m := new(crypto.ProofOps) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.abci.v2.QueryResponse.height": + case "tendermint.abci.ResponseQuery.height": return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.abci.v2.QueryResponse.codespace": + case "tendermint.abci.ResponseQuery.codespace": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.QueryResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseQuery")) } - panic(fmt.Errorf("message cometbft.abci.v2.QueryResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseQuery does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_ResponseQuery) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.QueryResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.ResponseQuery", d.FullName())) } panic("unreachable") } @@ -17711,7 +17243,7 @@ func (x *fastReflection_QueryResponse) WhichOneof(d protoreflect.OneofDescriptor // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_ResponseQuery) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -17722,7 +17254,7 @@ func (x *fastReflection_QueryResponse) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_ResponseQuery) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -17734,7 +17266,7 @@ func (x *fastReflection_QueryResponse) SetUnknown(fields protoreflect.RawFields) // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryResponse) IsValid() bool { +func (x *fastReflection_ResponseQuery) IsValid() bool { return x != nil } @@ -17744,9 +17276,9 @@ func (x *fastReflection_QueryResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_ResponseQuery) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryResponse) + x := input.Message.Interface().(*ResponseQuery) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -17801,7 +17333,7 @@ func (x *fastReflection_QueryResponse) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryResponse) + x := input.Message.Interface().(*ResponseQuery) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -17895,7 +17427,7 @@ func (x *fastReflection_QueryResponse) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryResponse) + x := input.Message.Interface().(*ResponseQuery) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -17927,10 +17459,10 @@ func (x *fastReflection_QueryResponse) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ResponseQuery: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ResponseQuery: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -18133,7 +17665,7 @@ func (x *fastReflection_QueryResponse) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.ProofOps == nil { - x.ProofOps = &v1.ProofOps{} + x.ProofOps = &crypto.ProofOps{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ProofOps); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -18225,94 +17757,92 @@ func (x *fastReflection_QueryResponse) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_CheckTxResponse_7_list)(nil) +var _ protoreflect.List = (*_ResponseCheckTx_7_list)(nil) -type _CheckTxResponse_7_list struct { +type _ResponseCheckTx_7_list struct { list *[]*Event } -func (x *_CheckTxResponse_7_list) Len() int { +func (x *_ResponseCheckTx_7_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_CheckTxResponse_7_list) Get(i int) protoreflect.Value { +func (x *_ResponseCheckTx_7_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_CheckTxResponse_7_list) Set(i int, value protoreflect.Value) { +func (x *_ResponseCheckTx_7_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*Event) (*x.list)[i] = concreteValue } -func (x *_CheckTxResponse_7_list) Append(value protoreflect.Value) { +func (x *_ResponseCheckTx_7_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*Event) *x.list = append(*x.list, concreteValue) } -func (x *_CheckTxResponse_7_list) AppendMutable() protoreflect.Value { +func (x *_ResponseCheckTx_7_list) AppendMutable() protoreflect.Value { v := new(Event) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_CheckTxResponse_7_list) Truncate(n int) { +func (x *_ResponseCheckTx_7_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_CheckTxResponse_7_list) NewElement() protoreflect.Value { +func (x *_ResponseCheckTx_7_list) NewElement() protoreflect.Value { v := new(Event) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_CheckTxResponse_7_list) IsValid() bool { +func (x *_ResponseCheckTx_7_list) IsValid() bool { return x.list != nil } var ( - md_CheckTxResponse protoreflect.MessageDescriptor - fd_CheckTxResponse_code protoreflect.FieldDescriptor - fd_CheckTxResponse_data protoreflect.FieldDescriptor - fd_CheckTxResponse_log protoreflect.FieldDescriptor - fd_CheckTxResponse_info protoreflect.FieldDescriptor - fd_CheckTxResponse_gas_wanted protoreflect.FieldDescriptor - fd_CheckTxResponse_gas_used protoreflect.FieldDescriptor - fd_CheckTxResponse_events protoreflect.FieldDescriptor - fd_CheckTxResponse_codespace protoreflect.FieldDescriptor - fd_CheckTxResponse_lane_id protoreflect.FieldDescriptor + md_ResponseCheckTx protoreflect.MessageDescriptor + fd_ResponseCheckTx_code protoreflect.FieldDescriptor + fd_ResponseCheckTx_data protoreflect.FieldDescriptor + fd_ResponseCheckTx_log protoreflect.FieldDescriptor + fd_ResponseCheckTx_info protoreflect.FieldDescriptor + fd_ResponseCheckTx_gas_wanted protoreflect.FieldDescriptor + fd_ResponseCheckTx_gas_used protoreflect.FieldDescriptor + fd_ResponseCheckTx_events protoreflect.FieldDescriptor + fd_ResponseCheckTx_codespace protoreflect.FieldDescriptor ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_CheckTxResponse = File_cometbft_abci_v2_types_proto.Messages().ByName("CheckTxResponse") - fd_CheckTxResponse_code = md_CheckTxResponse.Fields().ByName("code") - fd_CheckTxResponse_data = md_CheckTxResponse.Fields().ByName("data") - fd_CheckTxResponse_log = md_CheckTxResponse.Fields().ByName("log") - fd_CheckTxResponse_info = md_CheckTxResponse.Fields().ByName("info") - fd_CheckTxResponse_gas_wanted = md_CheckTxResponse.Fields().ByName("gas_wanted") - fd_CheckTxResponse_gas_used = md_CheckTxResponse.Fields().ByName("gas_used") - fd_CheckTxResponse_events = md_CheckTxResponse.Fields().ByName("events") - fd_CheckTxResponse_codespace = md_CheckTxResponse.Fields().ByName("codespace") - fd_CheckTxResponse_lane_id = md_CheckTxResponse.Fields().ByName("lane_id") + file_tendermint_abci_types_proto_init() + md_ResponseCheckTx = File_tendermint_abci_types_proto.Messages().ByName("ResponseCheckTx") + fd_ResponseCheckTx_code = md_ResponseCheckTx.Fields().ByName("code") + fd_ResponseCheckTx_data = md_ResponseCheckTx.Fields().ByName("data") + fd_ResponseCheckTx_log = md_ResponseCheckTx.Fields().ByName("log") + fd_ResponseCheckTx_info = md_ResponseCheckTx.Fields().ByName("info") + fd_ResponseCheckTx_gas_wanted = md_ResponseCheckTx.Fields().ByName("gas_wanted") + fd_ResponseCheckTx_gas_used = md_ResponseCheckTx.Fields().ByName("gas_used") + fd_ResponseCheckTx_events = md_ResponseCheckTx.Fields().ByName("events") + fd_ResponseCheckTx_codespace = md_ResponseCheckTx.Fields().ByName("codespace") } -var _ protoreflect.Message = (*fastReflection_CheckTxResponse)(nil) +var _ protoreflect.Message = (*fastReflection_ResponseCheckTx)(nil) -type fastReflection_CheckTxResponse CheckTxResponse +type fastReflection_ResponseCheckTx ResponseCheckTx -func (x *CheckTxResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_CheckTxResponse)(x) +func (x *ResponseCheckTx) ProtoReflect() protoreflect.Message { + return (*fastReflection_ResponseCheckTx)(x) } -func (x *CheckTxResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[24] +func (x *ResponseCheckTx) slowProtoReflect() protoreflect.Message { + mi := &file_tendermint_abci_types_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18323,43 +17853,43 @@ func (x *CheckTxResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_CheckTxResponse_messageType fastReflection_CheckTxResponse_messageType -var _ protoreflect.MessageType = fastReflection_CheckTxResponse_messageType{} +var _fastReflection_ResponseCheckTx_messageType fastReflection_ResponseCheckTx_messageType +var _ protoreflect.MessageType = fastReflection_ResponseCheckTx_messageType{} -type fastReflection_CheckTxResponse_messageType struct{} +type fastReflection_ResponseCheckTx_messageType struct{} -func (x fastReflection_CheckTxResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_CheckTxResponse)(nil) +func (x fastReflection_ResponseCheckTx_messageType) Zero() protoreflect.Message { + return (*fastReflection_ResponseCheckTx)(nil) } -func (x fastReflection_CheckTxResponse_messageType) New() protoreflect.Message { - return new(fastReflection_CheckTxResponse) +func (x fastReflection_ResponseCheckTx_messageType) New() protoreflect.Message { + return new(fastReflection_ResponseCheckTx) } -func (x fastReflection_CheckTxResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_CheckTxResponse +func (x fastReflection_ResponseCheckTx_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ResponseCheckTx } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_CheckTxResponse) Descriptor() protoreflect.MessageDescriptor { - return md_CheckTxResponse +func (x *fastReflection_ResponseCheckTx) Descriptor() protoreflect.MessageDescriptor { + return md_ResponseCheckTx } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_CheckTxResponse) Type() protoreflect.MessageType { - return _fastReflection_CheckTxResponse_messageType +func (x *fastReflection_ResponseCheckTx) Type() protoreflect.MessageType { + return _fastReflection_ResponseCheckTx_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_CheckTxResponse) New() protoreflect.Message { - return new(fastReflection_CheckTxResponse) +func (x *fastReflection_ResponseCheckTx) New() protoreflect.Message { + return new(fastReflection_ResponseCheckTx) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_CheckTxResponse) Interface() protoreflect.ProtoMessage { - return (*CheckTxResponse)(x) +func (x *fastReflection_ResponseCheckTx) Interface() protoreflect.ProtoMessage { + return (*ResponseCheckTx)(x) } // Range iterates over every populated field in an undefined order, @@ -18367,58 +17897,52 @@ func (x *fastReflection_CheckTxResponse) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_CheckTxResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_ResponseCheckTx) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Code != uint32(0) { value := protoreflect.ValueOfUint32(x.Code) - if !f(fd_CheckTxResponse_code, value) { + if !f(fd_ResponseCheckTx_code, value) { return } } if len(x.Data) != 0 { value := protoreflect.ValueOfBytes(x.Data) - if !f(fd_CheckTxResponse_data, value) { + if !f(fd_ResponseCheckTx_data, value) { return } } if x.Log != "" { value := protoreflect.ValueOfString(x.Log) - if !f(fd_CheckTxResponse_log, value) { + if !f(fd_ResponseCheckTx_log, value) { return } } if x.Info != "" { value := protoreflect.ValueOfString(x.Info) - if !f(fd_CheckTxResponse_info, value) { + if !f(fd_ResponseCheckTx_info, value) { return } } if x.GasWanted != int64(0) { value := protoreflect.ValueOfInt64(x.GasWanted) - if !f(fd_CheckTxResponse_gas_wanted, value) { + if !f(fd_ResponseCheckTx_gas_wanted, value) { return } } if x.GasUsed != int64(0) { value := protoreflect.ValueOfInt64(x.GasUsed) - if !f(fd_CheckTxResponse_gas_used, value) { + if !f(fd_ResponseCheckTx_gas_used, value) { return } } if len(x.Events) != 0 { - value := protoreflect.ValueOfList(&_CheckTxResponse_7_list{list: &x.Events}) - if !f(fd_CheckTxResponse_events, value) { + value := protoreflect.ValueOfList(&_ResponseCheckTx_7_list{list: &x.Events}) + if !f(fd_ResponseCheckTx_events, value) { return } } if x.Codespace != "" { value := protoreflect.ValueOfString(x.Codespace) - if !f(fd_CheckTxResponse_codespace, value) { - return - } - } - if x.LaneId != "" { - value := protoreflect.ValueOfString(x.LaneId) - if !f(fd_CheckTxResponse_lane_id, value) { + if !f(fd_ResponseCheckTx_codespace, value) { return } } @@ -18435,31 +17959,29 @@ func (x *fastReflection_CheckTxResponse) Range(f func(protoreflect.FieldDescript // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_CheckTxResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_ResponseCheckTx) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.CheckTxResponse.code": + case "tendermint.abci.ResponseCheckTx.code": return x.Code != uint32(0) - case "cometbft.abci.v2.CheckTxResponse.data": + case "tendermint.abci.ResponseCheckTx.data": return len(x.Data) != 0 - case "cometbft.abci.v2.CheckTxResponse.log": + case "tendermint.abci.ResponseCheckTx.log": return x.Log != "" - case "cometbft.abci.v2.CheckTxResponse.info": + case "tendermint.abci.ResponseCheckTx.info": return x.Info != "" - case "cometbft.abci.v2.CheckTxResponse.gas_wanted": + case "tendermint.abci.ResponseCheckTx.gas_wanted": return x.GasWanted != int64(0) - case "cometbft.abci.v2.CheckTxResponse.gas_used": + case "tendermint.abci.ResponseCheckTx.gas_used": return x.GasUsed != int64(0) - case "cometbft.abci.v2.CheckTxResponse.events": + case "tendermint.abci.ResponseCheckTx.events": return len(x.Events) != 0 - case "cometbft.abci.v2.CheckTxResponse.codespace": + case "tendermint.abci.ResponseCheckTx.codespace": return x.Codespace != "" - case "cometbft.abci.v2.CheckTxResponse.lane_id": - return x.LaneId != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.CheckTxResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseCheckTx")) } - panic(fmt.Errorf("message cometbft.abci.v2.CheckTxResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseCheckTx does not contain field %s", fd.FullName())) } } @@ -18469,31 +17991,29 @@ func (x *fastReflection_CheckTxResponse) Has(fd protoreflect.FieldDescriptor) bo // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CheckTxResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_ResponseCheckTx) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.CheckTxResponse.code": + case "tendermint.abci.ResponseCheckTx.code": x.Code = uint32(0) - case "cometbft.abci.v2.CheckTxResponse.data": + case "tendermint.abci.ResponseCheckTx.data": x.Data = nil - case "cometbft.abci.v2.CheckTxResponse.log": + case "tendermint.abci.ResponseCheckTx.log": x.Log = "" - case "cometbft.abci.v2.CheckTxResponse.info": + case "tendermint.abci.ResponseCheckTx.info": x.Info = "" - case "cometbft.abci.v2.CheckTxResponse.gas_wanted": + case "tendermint.abci.ResponseCheckTx.gas_wanted": x.GasWanted = int64(0) - case "cometbft.abci.v2.CheckTxResponse.gas_used": + case "tendermint.abci.ResponseCheckTx.gas_used": x.GasUsed = int64(0) - case "cometbft.abci.v2.CheckTxResponse.events": + case "tendermint.abci.ResponseCheckTx.events": x.Events = nil - case "cometbft.abci.v2.CheckTxResponse.codespace": + case "tendermint.abci.ResponseCheckTx.codespace": x.Codespace = "" - case "cometbft.abci.v2.CheckTxResponse.lane_id": - x.LaneId = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.CheckTxResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseCheckTx")) } - panic(fmt.Errorf("message cometbft.abci.v2.CheckTxResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseCheckTx does not contain field %s", fd.FullName())) } } @@ -18503,43 +18023,40 @@ func (x *fastReflection_CheckTxResponse) Clear(fd protoreflect.FieldDescriptor) // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_CheckTxResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseCheckTx) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.CheckTxResponse.code": + case "tendermint.abci.ResponseCheckTx.code": value := x.Code return protoreflect.ValueOfUint32(value) - case "cometbft.abci.v2.CheckTxResponse.data": + case "tendermint.abci.ResponseCheckTx.data": value := x.Data return protoreflect.ValueOfBytes(value) - case "cometbft.abci.v2.CheckTxResponse.log": + case "tendermint.abci.ResponseCheckTx.log": value := x.Log return protoreflect.ValueOfString(value) - case "cometbft.abci.v2.CheckTxResponse.info": + case "tendermint.abci.ResponseCheckTx.info": value := x.Info return protoreflect.ValueOfString(value) - case "cometbft.abci.v2.CheckTxResponse.gas_wanted": + case "tendermint.abci.ResponseCheckTx.gas_wanted": value := x.GasWanted return protoreflect.ValueOfInt64(value) - case "cometbft.abci.v2.CheckTxResponse.gas_used": + case "tendermint.abci.ResponseCheckTx.gas_used": value := x.GasUsed return protoreflect.ValueOfInt64(value) - case "cometbft.abci.v2.CheckTxResponse.events": + case "tendermint.abci.ResponseCheckTx.events": if len(x.Events) == 0 { - return protoreflect.ValueOfList(&_CheckTxResponse_7_list{}) + return protoreflect.ValueOfList(&_ResponseCheckTx_7_list{}) } - listValue := &_CheckTxResponse_7_list{list: &x.Events} + listValue := &_ResponseCheckTx_7_list{list: &x.Events} return protoreflect.ValueOfList(listValue) - case "cometbft.abci.v2.CheckTxResponse.codespace": + case "tendermint.abci.ResponseCheckTx.codespace": value := x.Codespace return protoreflect.ValueOfString(value) - case "cometbft.abci.v2.CheckTxResponse.lane_id": - value := x.LaneId - return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.CheckTxResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseCheckTx")) } - panic(fmt.Errorf("message cometbft.abci.v2.CheckTxResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseCheckTx does not contain field %s", descriptor.FullName())) } } @@ -18553,33 +18070,31 @@ func (x *fastReflection_CheckTxResponse) Get(descriptor protoreflect.FieldDescri // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CheckTxResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_ResponseCheckTx) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.CheckTxResponse.code": + case "tendermint.abci.ResponseCheckTx.code": x.Code = uint32(value.Uint()) - case "cometbft.abci.v2.CheckTxResponse.data": + case "tendermint.abci.ResponseCheckTx.data": x.Data = value.Bytes() - case "cometbft.abci.v2.CheckTxResponse.log": + case "tendermint.abci.ResponseCheckTx.log": x.Log = value.Interface().(string) - case "cometbft.abci.v2.CheckTxResponse.info": + case "tendermint.abci.ResponseCheckTx.info": x.Info = value.Interface().(string) - case "cometbft.abci.v2.CheckTxResponse.gas_wanted": + case "tendermint.abci.ResponseCheckTx.gas_wanted": x.GasWanted = value.Int() - case "cometbft.abci.v2.CheckTxResponse.gas_used": + case "tendermint.abci.ResponseCheckTx.gas_used": x.GasUsed = value.Int() - case "cometbft.abci.v2.CheckTxResponse.events": + case "tendermint.abci.ResponseCheckTx.events": lv := value.List() - clv := lv.(*_CheckTxResponse_7_list) + clv := lv.(*_ResponseCheckTx_7_list) x.Events = *clv.list - case "cometbft.abci.v2.CheckTxResponse.codespace": + case "tendermint.abci.ResponseCheckTx.codespace": x.Codespace = value.Interface().(string) - case "cometbft.abci.v2.CheckTxResponse.lane_id": - x.LaneId = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.CheckTxResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseCheckTx")) } - panic(fmt.Errorf("message cometbft.abci.v2.CheckTxResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseCheckTx does not contain field %s", fd.FullName())) } } @@ -18593,77 +18108,73 @@ func (x *fastReflection_CheckTxResponse) Set(fd protoreflect.FieldDescriptor, va // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CheckTxResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseCheckTx) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.CheckTxResponse.events": + case "tendermint.abci.ResponseCheckTx.events": if x.Events == nil { x.Events = []*Event{} } - value := &_CheckTxResponse_7_list{list: &x.Events} + value := &_ResponseCheckTx_7_list{list: &x.Events} return protoreflect.ValueOfList(value) - case "cometbft.abci.v2.CheckTxResponse.code": - panic(fmt.Errorf("field code of message cometbft.abci.v2.CheckTxResponse is not mutable")) - case "cometbft.abci.v2.CheckTxResponse.data": - panic(fmt.Errorf("field data of message cometbft.abci.v2.CheckTxResponse is not mutable")) - case "cometbft.abci.v2.CheckTxResponse.log": - panic(fmt.Errorf("field log of message cometbft.abci.v2.CheckTxResponse is not mutable")) - case "cometbft.abci.v2.CheckTxResponse.info": - panic(fmt.Errorf("field info of message cometbft.abci.v2.CheckTxResponse is not mutable")) - case "cometbft.abci.v2.CheckTxResponse.gas_wanted": - panic(fmt.Errorf("field gas_wanted of message cometbft.abci.v2.CheckTxResponse is not mutable")) - case "cometbft.abci.v2.CheckTxResponse.gas_used": - panic(fmt.Errorf("field gas_used of message cometbft.abci.v2.CheckTxResponse is not mutable")) - case "cometbft.abci.v2.CheckTxResponse.codespace": - panic(fmt.Errorf("field codespace of message cometbft.abci.v2.CheckTxResponse is not mutable")) - case "cometbft.abci.v2.CheckTxResponse.lane_id": - panic(fmt.Errorf("field lane_id of message cometbft.abci.v2.CheckTxResponse is not mutable")) + case "tendermint.abci.ResponseCheckTx.code": + panic(fmt.Errorf("field code of message tendermint.abci.ResponseCheckTx is not mutable")) + case "tendermint.abci.ResponseCheckTx.data": + panic(fmt.Errorf("field data of message tendermint.abci.ResponseCheckTx is not mutable")) + case "tendermint.abci.ResponseCheckTx.log": + panic(fmt.Errorf("field log of message tendermint.abci.ResponseCheckTx is not mutable")) + case "tendermint.abci.ResponseCheckTx.info": + panic(fmt.Errorf("field info of message tendermint.abci.ResponseCheckTx is not mutable")) + case "tendermint.abci.ResponseCheckTx.gas_wanted": + panic(fmt.Errorf("field gas_wanted of message tendermint.abci.ResponseCheckTx is not mutable")) + case "tendermint.abci.ResponseCheckTx.gas_used": + panic(fmt.Errorf("field gas_used of message tendermint.abci.ResponseCheckTx is not mutable")) + case "tendermint.abci.ResponseCheckTx.codespace": + panic(fmt.Errorf("field codespace of message tendermint.abci.ResponseCheckTx is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.CheckTxResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseCheckTx")) } - panic(fmt.Errorf("message cometbft.abci.v2.CheckTxResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseCheckTx does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_CheckTxResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseCheckTx) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.CheckTxResponse.code": + case "tendermint.abci.ResponseCheckTx.code": return protoreflect.ValueOfUint32(uint32(0)) - case "cometbft.abci.v2.CheckTxResponse.data": + case "tendermint.abci.ResponseCheckTx.data": return protoreflect.ValueOfBytes(nil) - case "cometbft.abci.v2.CheckTxResponse.log": + case "tendermint.abci.ResponseCheckTx.log": return protoreflect.ValueOfString("") - case "cometbft.abci.v2.CheckTxResponse.info": + case "tendermint.abci.ResponseCheckTx.info": return protoreflect.ValueOfString("") - case "cometbft.abci.v2.CheckTxResponse.gas_wanted": + case "tendermint.abci.ResponseCheckTx.gas_wanted": return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.abci.v2.CheckTxResponse.gas_used": + case "tendermint.abci.ResponseCheckTx.gas_used": return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.abci.v2.CheckTxResponse.events": + case "tendermint.abci.ResponseCheckTx.events": list := []*Event{} - return protoreflect.ValueOfList(&_CheckTxResponse_7_list{list: &list}) - case "cometbft.abci.v2.CheckTxResponse.codespace": - return protoreflect.ValueOfString("") - case "cometbft.abci.v2.CheckTxResponse.lane_id": + return protoreflect.ValueOfList(&_ResponseCheckTx_7_list{list: &list}) + case "tendermint.abci.ResponseCheckTx.codespace": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.CheckTxResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseCheckTx")) } - panic(fmt.Errorf("message cometbft.abci.v2.CheckTxResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseCheckTx does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_CheckTxResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_ResponseCheckTx) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.CheckTxResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.ResponseCheckTx", d.FullName())) } panic("unreachable") } @@ -18671,7 +18182,7 @@ func (x *fastReflection_CheckTxResponse) WhichOneof(d protoreflect.OneofDescript // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_CheckTxResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_ResponseCheckTx) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -18682,7 +18193,7 @@ func (x *fastReflection_CheckTxResponse) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CheckTxResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_ResponseCheckTx) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -18694,7 +18205,7 @@ func (x *fastReflection_CheckTxResponse) SetUnknown(fields protoreflect.RawField // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_CheckTxResponse) IsValid() bool { +func (x *fastReflection_ResponseCheckTx) IsValid() bool { return x != nil } @@ -18704,9 +18215,9 @@ func (x *fastReflection_CheckTxResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_CheckTxResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_ResponseCheckTx) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*CheckTxResponse) + x := input.Message.Interface().(*ResponseCheckTx) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -18749,10 +18260,6 @@ func (x *fastReflection_CheckTxResponse) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.LaneId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -18763,7 +18270,7 @@ func (x *fastReflection_CheckTxResponse) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*CheckTxResponse) + x := input.Message.Interface().(*ResponseCheckTx) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -18782,13 +18289,6 @@ func (x *fastReflection_CheckTxResponse) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.LaneId) > 0 { - i -= len(x.LaneId) - copy(dAtA[i:], x.LaneId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.LaneId))) - i-- - dAtA[i] = 0x62 - } if len(x.Codespace) > 0 { i -= len(x.Codespace) copy(dAtA[i:], x.Codespace) @@ -18859,7 +18359,7 @@ func (x *fastReflection_CheckTxResponse) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*CheckTxResponse) + x := input.Message.Interface().(*ResponseCheckTx) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -18891,10 +18391,10 @@ func (x *fastReflection_CheckTxResponse) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CheckTxResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ResponseCheckTx: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CheckTxResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ResponseCheckTx: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -19118,38 +18618,6 @@ func (x *fastReflection_CheckTxResponse) ProtoMethods() *protoiface.Methods { } x.Codespace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 12: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LaneId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.LaneId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -19186,26 +18654,26 @@ func (x *fastReflection_CheckTxResponse) ProtoMethods() *protoiface.Methods { } var ( - md_CommitResponse protoreflect.MessageDescriptor - fd_CommitResponse_retain_height protoreflect.FieldDescriptor + md_ResponseCommit protoreflect.MessageDescriptor + fd_ResponseCommit_retain_height protoreflect.FieldDescriptor ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_CommitResponse = File_cometbft_abci_v2_types_proto.Messages().ByName("CommitResponse") - fd_CommitResponse_retain_height = md_CommitResponse.Fields().ByName("retain_height") + file_tendermint_abci_types_proto_init() + md_ResponseCommit = File_tendermint_abci_types_proto.Messages().ByName("ResponseCommit") + fd_ResponseCommit_retain_height = md_ResponseCommit.Fields().ByName("retain_height") } -var _ protoreflect.Message = (*fastReflection_CommitResponse)(nil) +var _ protoreflect.Message = (*fastReflection_ResponseCommit)(nil) -type fastReflection_CommitResponse CommitResponse +type fastReflection_ResponseCommit ResponseCommit -func (x *CommitResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_CommitResponse)(x) +func (x *ResponseCommit) ProtoReflect() protoreflect.Message { + return (*fastReflection_ResponseCommit)(x) } -func (x *CommitResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[25] +func (x *ResponseCommit) slowProtoReflect() protoreflect.Message { + mi := &file_tendermint_abci_types_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -19216,43 +18684,43 @@ func (x *CommitResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_CommitResponse_messageType fastReflection_CommitResponse_messageType -var _ protoreflect.MessageType = fastReflection_CommitResponse_messageType{} +var _fastReflection_ResponseCommit_messageType fastReflection_ResponseCommit_messageType +var _ protoreflect.MessageType = fastReflection_ResponseCommit_messageType{} -type fastReflection_CommitResponse_messageType struct{} +type fastReflection_ResponseCommit_messageType struct{} -func (x fastReflection_CommitResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_CommitResponse)(nil) +func (x fastReflection_ResponseCommit_messageType) Zero() protoreflect.Message { + return (*fastReflection_ResponseCommit)(nil) } -func (x fastReflection_CommitResponse_messageType) New() protoreflect.Message { - return new(fastReflection_CommitResponse) +func (x fastReflection_ResponseCommit_messageType) New() protoreflect.Message { + return new(fastReflection_ResponseCommit) } -func (x fastReflection_CommitResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_CommitResponse +func (x fastReflection_ResponseCommit_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ResponseCommit } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_CommitResponse) Descriptor() protoreflect.MessageDescriptor { - return md_CommitResponse +func (x *fastReflection_ResponseCommit) Descriptor() protoreflect.MessageDescriptor { + return md_ResponseCommit } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_CommitResponse) Type() protoreflect.MessageType { - return _fastReflection_CommitResponse_messageType +func (x *fastReflection_ResponseCommit) Type() protoreflect.MessageType { + return _fastReflection_ResponseCommit_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_CommitResponse) New() protoreflect.Message { - return new(fastReflection_CommitResponse) +func (x *fastReflection_ResponseCommit) New() protoreflect.Message { + return new(fastReflection_ResponseCommit) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_CommitResponse) Interface() protoreflect.ProtoMessage { - return (*CommitResponse)(x) +func (x *fastReflection_ResponseCommit) Interface() protoreflect.ProtoMessage { + return (*ResponseCommit)(x) } // Range iterates over every populated field in an undefined order, @@ -19260,10 +18728,10 @@ func (x *fastReflection_CommitResponse) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_CommitResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_ResponseCommit) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.RetainHeight != int64(0) { value := protoreflect.ValueOfInt64(x.RetainHeight) - if !f(fd_CommitResponse_retain_height, value) { + if !f(fd_ResponseCommit_retain_height, value) { return } } @@ -19280,15 +18748,15 @@ func (x *fastReflection_CommitResponse) Range(f func(protoreflect.FieldDescripto // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_CommitResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_ResponseCommit) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.CommitResponse.retain_height": + case "tendermint.abci.ResponseCommit.retain_height": return x.RetainHeight != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.CommitResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseCommit")) } - panic(fmt.Errorf("message cometbft.abci.v2.CommitResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseCommit does not contain field %s", fd.FullName())) } } @@ -19298,15 +18766,15 @@ func (x *fastReflection_CommitResponse) Has(fd protoreflect.FieldDescriptor) boo // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CommitResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_ResponseCommit) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.CommitResponse.retain_height": + case "tendermint.abci.ResponseCommit.retain_height": x.RetainHeight = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.CommitResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseCommit")) } - panic(fmt.Errorf("message cometbft.abci.v2.CommitResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseCommit does not contain field %s", fd.FullName())) } } @@ -19316,16 +18784,16 @@ func (x *fastReflection_CommitResponse) Clear(fd protoreflect.FieldDescriptor) { // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_CommitResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseCommit) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.CommitResponse.retain_height": + case "tendermint.abci.ResponseCommit.retain_height": value := x.RetainHeight return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.CommitResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseCommit")) } - panic(fmt.Errorf("message cometbft.abci.v2.CommitResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseCommit does not contain field %s", descriptor.FullName())) } } @@ -19339,15 +18807,15 @@ func (x *fastReflection_CommitResponse) Get(descriptor protoreflect.FieldDescrip // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CommitResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_ResponseCommit) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.CommitResponse.retain_height": + case "tendermint.abci.ResponseCommit.retain_height": x.RetainHeight = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.CommitResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseCommit")) } - panic(fmt.Errorf("message cometbft.abci.v2.CommitResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseCommit does not contain field %s", fd.FullName())) } } @@ -19361,40 +18829,40 @@ func (x *fastReflection_CommitResponse) Set(fd protoreflect.FieldDescriptor, val // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CommitResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseCommit) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.CommitResponse.retain_height": - panic(fmt.Errorf("field retain_height of message cometbft.abci.v2.CommitResponse is not mutable")) + case "tendermint.abci.ResponseCommit.retain_height": + panic(fmt.Errorf("field retain_height of message tendermint.abci.ResponseCommit is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.CommitResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseCommit")) } - panic(fmt.Errorf("message cometbft.abci.v2.CommitResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseCommit does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_CommitResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseCommit) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.CommitResponse.retain_height": + case "tendermint.abci.ResponseCommit.retain_height": return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.CommitResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseCommit")) } - panic(fmt.Errorf("message cometbft.abci.v2.CommitResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseCommit does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_CommitResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_ResponseCommit) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.CommitResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.ResponseCommit", d.FullName())) } panic("unreachable") } @@ -19402,7 +18870,7 @@ func (x *fastReflection_CommitResponse) WhichOneof(d protoreflect.OneofDescripto // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_CommitResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_ResponseCommit) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -19413,7 +18881,7 @@ func (x *fastReflection_CommitResponse) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_CommitResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_ResponseCommit) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -19425,7 +18893,7 @@ func (x *fastReflection_CommitResponse) SetUnknown(fields protoreflect.RawFields // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_CommitResponse) IsValid() bool { +func (x *fastReflection_ResponseCommit) IsValid() bool { return x != nil } @@ -19435,9 +18903,9 @@ func (x *fastReflection_CommitResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_CommitResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_ResponseCommit) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*CommitResponse) + x := input.Message.Interface().(*ResponseCommit) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -19462,7 +18930,7 @@ func (x *fastReflection_CommitResponse) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*CommitResponse) + x := input.Message.Interface().(*ResponseCommit) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -19497,7 +18965,7 @@ func (x *fastReflection_CommitResponse) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*CommitResponse) + x := input.Message.Interface().(*ResponseCommit) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -19529,10 +18997,10 @@ func (x *fastReflection_CommitResponse) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CommitResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ResponseCommit: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CommitResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ResponseCommit: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 3: @@ -19589,78 +19057,78 @@ func (x *fastReflection_CommitResponse) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_ListSnapshotsResponse_1_list)(nil) +var _ protoreflect.List = (*_ResponseListSnapshots_1_list)(nil) -type _ListSnapshotsResponse_1_list struct { +type _ResponseListSnapshots_1_list struct { list *[]*Snapshot } -func (x *_ListSnapshotsResponse_1_list) Len() int { +func (x *_ResponseListSnapshots_1_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_ListSnapshotsResponse_1_list) Get(i int) protoreflect.Value { +func (x *_ResponseListSnapshots_1_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_ListSnapshotsResponse_1_list) Set(i int, value protoreflect.Value) { +func (x *_ResponseListSnapshots_1_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*Snapshot) (*x.list)[i] = concreteValue } -func (x *_ListSnapshotsResponse_1_list) Append(value protoreflect.Value) { +func (x *_ResponseListSnapshots_1_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*Snapshot) *x.list = append(*x.list, concreteValue) } -func (x *_ListSnapshotsResponse_1_list) AppendMutable() protoreflect.Value { +func (x *_ResponseListSnapshots_1_list) AppendMutable() protoreflect.Value { v := new(Snapshot) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_ListSnapshotsResponse_1_list) Truncate(n int) { +func (x *_ResponseListSnapshots_1_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_ListSnapshotsResponse_1_list) NewElement() protoreflect.Value { +func (x *_ResponseListSnapshots_1_list) NewElement() protoreflect.Value { v := new(Snapshot) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_ListSnapshotsResponse_1_list) IsValid() bool { +func (x *_ResponseListSnapshots_1_list) IsValid() bool { return x.list != nil } var ( - md_ListSnapshotsResponse protoreflect.MessageDescriptor - fd_ListSnapshotsResponse_snapshots protoreflect.FieldDescriptor + md_ResponseListSnapshots protoreflect.MessageDescriptor + fd_ResponseListSnapshots_snapshots protoreflect.FieldDescriptor ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_ListSnapshotsResponse = File_cometbft_abci_v2_types_proto.Messages().ByName("ListSnapshotsResponse") - fd_ListSnapshotsResponse_snapshots = md_ListSnapshotsResponse.Fields().ByName("snapshots") + file_tendermint_abci_types_proto_init() + md_ResponseListSnapshots = File_tendermint_abci_types_proto.Messages().ByName("ResponseListSnapshots") + fd_ResponseListSnapshots_snapshots = md_ResponseListSnapshots.Fields().ByName("snapshots") } -var _ protoreflect.Message = (*fastReflection_ListSnapshotsResponse)(nil) +var _ protoreflect.Message = (*fastReflection_ResponseListSnapshots)(nil) -type fastReflection_ListSnapshotsResponse ListSnapshotsResponse +type fastReflection_ResponseListSnapshots ResponseListSnapshots -func (x *ListSnapshotsResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_ListSnapshotsResponse)(x) +func (x *ResponseListSnapshots) ProtoReflect() protoreflect.Message { + return (*fastReflection_ResponseListSnapshots)(x) } -func (x *ListSnapshotsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[26] +func (x *ResponseListSnapshots) slowProtoReflect() protoreflect.Message { + mi := &file_tendermint_abci_types_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -19671,43 +19139,43 @@ func (x *ListSnapshotsResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_ListSnapshotsResponse_messageType fastReflection_ListSnapshotsResponse_messageType -var _ protoreflect.MessageType = fastReflection_ListSnapshotsResponse_messageType{} +var _fastReflection_ResponseListSnapshots_messageType fastReflection_ResponseListSnapshots_messageType +var _ protoreflect.MessageType = fastReflection_ResponseListSnapshots_messageType{} -type fastReflection_ListSnapshotsResponse_messageType struct{} +type fastReflection_ResponseListSnapshots_messageType struct{} -func (x fastReflection_ListSnapshotsResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_ListSnapshotsResponse)(nil) +func (x fastReflection_ResponseListSnapshots_messageType) Zero() protoreflect.Message { + return (*fastReflection_ResponseListSnapshots)(nil) } -func (x fastReflection_ListSnapshotsResponse_messageType) New() protoreflect.Message { - return new(fastReflection_ListSnapshotsResponse) +func (x fastReflection_ResponseListSnapshots_messageType) New() protoreflect.Message { + return new(fastReflection_ResponseListSnapshots) } -func (x fastReflection_ListSnapshotsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_ListSnapshotsResponse +func (x fastReflection_ResponseListSnapshots_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ResponseListSnapshots } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_ListSnapshotsResponse) Descriptor() protoreflect.MessageDescriptor { - return md_ListSnapshotsResponse +func (x *fastReflection_ResponseListSnapshots) Descriptor() protoreflect.MessageDescriptor { + return md_ResponseListSnapshots } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_ListSnapshotsResponse) Type() protoreflect.MessageType { - return _fastReflection_ListSnapshotsResponse_messageType +func (x *fastReflection_ResponseListSnapshots) Type() protoreflect.MessageType { + return _fastReflection_ResponseListSnapshots_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_ListSnapshotsResponse) New() protoreflect.Message { - return new(fastReflection_ListSnapshotsResponse) +func (x *fastReflection_ResponseListSnapshots) New() protoreflect.Message { + return new(fastReflection_ResponseListSnapshots) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_ListSnapshotsResponse) Interface() protoreflect.ProtoMessage { - return (*ListSnapshotsResponse)(x) +func (x *fastReflection_ResponseListSnapshots) Interface() protoreflect.ProtoMessage { + return (*ResponseListSnapshots)(x) } // Range iterates over every populated field in an undefined order, @@ -19715,10 +19183,10 @@ func (x *fastReflection_ListSnapshotsResponse) Interface() protoreflect.ProtoMes // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_ListSnapshotsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_ResponseListSnapshots) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if len(x.Snapshots) != 0 { - value := protoreflect.ValueOfList(&_ListSnapshotsResponse_1_list{list: &x.Snapshots}) - if !f(fd_ListSnapshotsResponse_snapshots, value) { + value := protoreflect.ValueOfList(&_ResponseListSnapshots_1_list{list: &x.Snapshots}) + if !f(fd_ResponseListSnapshots_snapshots, value) { return } } @@ -19735,15 +19203,15 @@ func (x *fastReflection_ListSnapshotsResponse) Range(f func(protoreflect.FieldDe // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_ListSnapshotsResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_ResponseListSnapshots) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.ListSnapshotsResponse.snapshots": + case "tendermint.abci.ResponseListSnapshots.snapshots": return len(x.Snapshots) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ListSnapshotsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseListSnapshots")) } - panic(fmt.Errorf("message cometbft.abci.v2.ListSnapshotsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseListSnapshots does not contain field %s", fd.FullName())) } } @@ -19753,15 +19221,15 @@ func (x *fastReflection_ListSnapshotsResponse) Has(fd protoreflect.FieldDescript // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ListSnapshotsResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_ResponseListSnapshots) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.ListSnapshotsResponse.snapshots": + case "tendermint.abci.ResponseListSnapshots.snapshots": x.Snapshots = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ListSnapshotsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseListSnapshots")) } - panic(fmt.Errorf("message cometbft.abci.v2.ListSnapshotsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseListSnapshots does not contain field %s", fd.FullName())) } } @@ -19771,19 +19239,19 @@ func (x *fastReflection_ListSnapshotsResponse) Clear(fd protoreflect.FieldDescri // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_ListSnapshotsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseListSnapshots) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.ListSnapshotsResponse.snapshots": + case "tendermint.abci.ResponseListSnapshots.snapshots": if len(x.Snapshots) == 0 { - return protoreflect.ValueOfList(&_ListSnapshotsResponse_1_list{}) + return protoreflect.ValueOfList(&_ResponseListSnapshots_1_list{}) } - listValue := &_ListSnapshotsResponse_1_list{list: &x.Snapshots} + listValue := &_ResponseListSnapshots_1_list{list: &x.Snapshots} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ListSnapshotsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseListSnapshots")) } - panic(fmt.Errorf("message cometbft.abci.v2.ListSnapshotsResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseListSnapshots does not contain field %s", descriptor.FullName())) } } @@ -19797,17 +19265,17 @@ func (x *fastReflection_ListSnapshotsResponse) Get(descriptor protoreflect.Field // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ListSnapshotsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_ResponseListSnapshots) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.ListSnapshotsResponse.snapshots": + case "tendermint.abci.ResponseListSnapshots.snapshots": lv := value.List() - clv := lv.(*_ListSnapshotsResponse_1_list) + clv := lv.(*_ResponseListSnapshots_1_list) x.Snapshots = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ListSnapshotsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseListSnapshots")) } - panic(fmt.Errorf("message cometbft.abci.v2.ListSnapshotsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseListSnapshots does not contain field %s", fd.FullName())) } } @@ -19821,45 +19289,45 @@ func (x *fastReflection_ListSnapshotsResponse) Set(fd protoreflect.FieldDescript // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ListSnapshotsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseListSnapshots) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.ListSnapshotsResponse.snapshots": + case "tendermint.abci.ResponseListSnapshots.snapshots": if x.Snapshots == nil { x.Snapshots = []*Snapshot{} } - value := &_ListSnapshotsResponse_1_list{list: &x.Snapshots} + value := &_ResponseListSnapshots_1_list{list: &x.Snapshots} return protoreflect.ValueOfList(value) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ListSnapshotsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseListSnapshots")) } - panic(fmt.Errorf("message cometbft.abci.v2.ListSnapshotsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseListSnapshots does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_ListSnapshotsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseListSnapshots) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.ListSnapshotsResponse.snapshots": + case "tendermint.abci.ResponseListSnapshots.snapshots": list := []*Snapshot{} - return protoreflect.ValueOfList(&_ListSnapshotsResponse_1_list{list: &list}) + return protoreflect.ValueOfList(&_ResponseListSnapshots_1_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ListSnapshotsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseListSnapshots")) } - panic(fmt.Errorf("message cometbft.abci.v2.ListSnapshotsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseListSnapshots does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_ListSnapshotsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_ResponseListSnapshots) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.ListSnapshotsResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.ResponseListSnapshots", d.FullName())) } panic("unreachable") } @@ -19867,7 +19335,7 @@ func (x *fastReflection_ListSnapshotsResponse) WhichOneof(d protoreflect.OneofDe // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_ListSnapshotsResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_ResponseListSnapshots) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -19878,7 +19346,7 @@ func (x *fastReflection_ListSnapshotsResponse) GetUnknown() protoreflect.RawFiel // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ListSnapshotsResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_ResponseListSnapshots) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -19890,7 +19358,7 @@ func (x *fastReflection_ListSnapshotsResponse) SetUnknown(fields protoreflect.Ra // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_ListSnapshotsResponse) IsValid() bool { +func (x *fastReflection_ResponseListSnapshots) IsValid() bool { return x != nil } @@ -19900,9 +19368,9 @@ func (x *fastReflection_ListSnapshotsResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_ListSnapshotsResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_ResponseListSnapshots) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*ListSnapshotsResponse) + x := input.Message.Interface().(*ResponseListSnapshots) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -19930,7 +19398,7 @@ func (x *fastReflection_ListSnapshotsResponse) ProtoMethods() *protoiface.Method } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*ListSnapshotsResponse) + x := input.Message.Interface().(*ResponseListSnapshots) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -19976,7 +19444,7 @@ func (x *fastReflection_ListSnapshotsResponse) ProtoMethods() *protoiface.Method }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*ListSnapshotsResponse) + x := input.Message.Interface().(*ResponseListSnapshots) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -20008,10 +19476,10 @@ func (x *fastReflection_ListSnapshotsResponse) ProtoMethods() *protoiface.Method fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ListSnapshotsResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ResponseListSnapshots: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ListSnapshotsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ResponseListSnapshots: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -20084,26 +19552,26 @@ func (x *fastReflection_ListSnapshotsResponse) ProtoMethods() *protoiface.Method } var ( - md_OfferSnapshotResponse protoreflect.MessageDescriptor - fd_OfferSnapshotResponse_result protoreflect.FieldDescriptor + md_ResponseOfferSnapshot protoreflect.MessageDescriptor + fd_ResponseOfferSnapshot_result protoreflect.FieldDescriptor ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_OfferSnapshotResponse = File_cometbft_abci_v2_types_proto.Messages().ByName("OfferSnapshotResponse") - fd_OfferSnapshotResponse_result = md_OfferSnapshotResponse.Fields().ByName("result") + file_tendermint_abci_types_proto_init() + md_ResponseOfferSnapshot = File_tendermint_abci_types_proto.Messages().ByName("ResponseOfferSnapshot") + fd_ResponseOfferSnapshot_result = md_ResponseOfferSnapshot.Fields().ByName("result") } -var _ protoreflect.Message = (*fastReflection_OfferSnapshotResponse)(nil) +var _ protoreflect.Message = (*fastReflection_ResponseOfferSnapshot)(nil) -type fastReflection_OfferSnapshotResponse OfferSnapshotResponse +type fastReflection_ResponseOfferSnapshot ResponseOfferSnapshot -func (x *OfferSnapshotResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_OfferSnapshotResponse)(x) +func (x *ResponseOfferSnapshot) ProtoReflect() protoreflect.Message { + return (*fastReflection_ResponseOfferSnapshot)(x) } -func (x *OfferSnapshotResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[27] +func (x *ResponseOfferSnapshot) slowProtoReflect() protoreflect.Message { + mi := &file_tendermint_abci_types_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -20114,43 +19582,43 @@ func (x *OfferSnapshotResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_OfferSnapshotResponse_messageType fastReflection_OfferSnapshotResponse_messageType -var _ protoreflect.MessageType = fastReflection_OfferSnapshotResponse_messageType{} +var _fastReflection_ResponseOfferSnapshot_messageType fastReflection_ResponseOfferSnapshot_messageType +var _ protoreflect.MessageType = fastReflection_ResponseOfferSnapshot_messageType{} -type fastReflection_OfferSnapshotResponse_messageType struct{} +type fastReflection_ResponseOfferSnapshot_messageType struct{} -func (x fastReflection_OfferSnapshotResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_OfferSnapshotResponse)(nil) +func (x fastReflection_ResponseOfferSnapshot_messageType) Zero() protoreflect.Message { + return (*fastReflection_ResponseOfferSnapshot)(nil) } -func (x fastReflection_OfferSnapshotResponse_messageType) New() protoreflect.Message { - return new(fastReflection_OfferSnapshotResponse) +func (x fastReflection_ResponseOfferSnapshot_messageType) New() protoreflect.Message { + return new(fastReflection_ResponseOfferSnapshot) } -func (x fastReflection_OfferSnapshotResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_OfferSnapshotResponse +func (x fastReflection_ResponseOfferSnapshot_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ResponseOfferSnapshot } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_OfferSnapshotResponse) Descriptor() protoreflect.MessageDescriptor { - return md_OfferSnapshotResponse +func (x *fastReflection_ResponseOfferSnapshot) Descriptor() protoreflect.MessageDescriptor { + return md_ResponseOfferSnapshot } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_OfferSnapshotResponse) Type() protoreflect.MessageType { - return _fastReflection_OfferSnapshotResponse_messageType +func (x *fastReflection_ResponseOfferSnapshot) Type() protoreflect.MessageType { + return _fastReflection_ResponseOfferSnapshot_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_OfferSnapshotResponse) New() protoreflect.Message { - return new(fastReflection_OfferSnapshotResponse) +func (x *fastReflection_ResponseOfferSnapshot) New() protoreflect.Message { + return new(fastReflection_ResponseOfferSnapshot) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_OfferSnapshotResponse) Interface() protoreflect.ProtoMessage { - return (*OfferSnapshotResponse)(x) +func (x *fastReflection_ResponseOfferSnapshot) Interface() protoreflect.ProtoMessage { + return (*ResponseOfferSnapshot)(x) } // Range iterates over every populated field in an undefined order, @@ -20158,10 +19626,10 @@ func (x *fastReflection_OfferSnapshotResponse) Interface() protoreflect.ProtoMes // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_OfferSnapshotResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_ResponseOfferSnapshot) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Result != 0 { value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Result)) - if !f(fd_OfferSnapshotResponse_result, value) { + if !f(fd_ResponseOfferSnapshot_result, value) { return } } @@ -20178,15 +19646,15 @@ func (x *fastReflection_OfferSnapshotResponse) Range(f func(protoreflect.FieldDe // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_OfferSnapshotResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_ResponseOfferSnapshot) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.OfferSnapshotResponse.result": + case "tendermint.abci.ResponseOfferSnapshot.result": return x.Result != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.OfferSnapshotResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseOfferSnapshot")) } - panic(fmt.Errorf("message cometbft.abci.v2.OfferSnapshotResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseOfferSnapshot does not contain field %s", fd.FullName())) } } @@ -20196,15 +19664,15 @@ func (x *fastReflection_OfferSnapshotResponse) Has(fd protoreflect.FieldDescript // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_OfferSnapshotResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_ResponseOfferSnapshot) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.OfferSnapshotResponse.result": + case "tendermint.abci.ResponseOfferSnapshot.result": x.Result = 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.OfferSnapshotResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseOfferSnapshot")) } - panic(fmt.Errorf("message cometbft.abci.v2.OfferSnapshotResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseOfferSnapshot does not contain field %s", fd.FullName())) } } @@ -20214,16 +19682,16 @@ func (x *fastReflection_OfferSnapshotResponse) Clear(fd protoreflect.FieldDescri // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_OfferSnapshotResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseOfferSnapshot) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.OfferSnapshotResponse.result": + case "tendermint.abci.ResponseOfferSnapshot.result": value := x.Result return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.OfferSnapshotResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseOfferSnapshot")) } - panic(fmt.Errorf("message cometbft.abci.v2.OfferSnapshotResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseOfferSnapshot does not contain field %s", descriptor.FullName())) } } @@ -20237,15 +19705,15 @@ func (x *fastReflection_OfferSnapshotResponse) Get(descriptor protoreflect.Field // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_OfferSnapshotResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_ResponseOfferSnapshot) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.OfferSnapshotResponse.result": - x.Result = (OfferSnapshotResult)(value.Enum()) + case "tendermint.abci.ResponseOfferSnapshot.result": + x.Result = (ResponseOfferSnapshot_Result)(value.Enum()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.OfferSnapshotResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseOfferSnapshot")) } - panic(fmt.Errorf("message cometbft.abci.v2.OfferSnapshotResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseOfferSnapshot does not contain field %s", fd.FullName())) } } @@ -20259,40 +19727,40 @@ func (x *fastReflection_OfferSnapshotResponse) Set(fd protoreflect.FieldDescript // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_OfferSnapshotResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseOfferSnapshot) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.OfferSnapshotResponse.result": - panic(fmt.Errorf("field result of message cometbft.abci.v2.OfferSnapshotResponse is not mutable")) + case "tendermint.abci.ResponseOfferSnapshot.result": + panic(fmt.Errorf("field result of message tendermint.abci.ResponseOfferSnapshot is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.OfferSnapshotResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseOfferSnapshot")) } - panic(fmt.Errorf("message cometbft.abci.v2.OfferSnapshotResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseOfferSnapshot does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_OfferSnapshotResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseOfferSnapshot) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.OfferSnapshotResponse.result": + case "tendermint.abci.ResponseOfferSnapshot.result": return protoreflect.ValueOfEnum(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.OfferSnapshotResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseOfferSnapshot")) } - panic(fmt.Errorf("message cometbft.abci.v2.OfferSnapshotResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseOfferSnapshot does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_OfferSnapshotResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_ResponseOfferSnapshot) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.OfferSnapshotResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.ResponseOfferSnapshot", d.FullName())) } panic("unreachable") } @@ -20300,7 +19768,7 @@ func (x *fastReflection_OfferSnapshotResponse) WhichOneof(d protoreflect.OneofDe // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_OfferSnapshotResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_ResponseOfferSnapshot) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -20311,7 +19779,7 @@ func (x *fastReflection_OfferSnapshotResponse) GetUnknown() protoreflect.RawFiel // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_OfferSnapshotResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_ResponseOfferSnapshot) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -20323,7 +19791,7 @@ func (x *fastReflection_OfferSnapshotResponse) SetUnknown(fields protoreflect.Ra // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_OfferSnapshotResponse) IsValid() bool { +func (x *fastReflection_ResponseOfferSnapshot) IsValid() bool { return x != nil } @@ -20333,9 +19801,9 @@ func (x *fastReflection_OfferSnapshotResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_OfferSnapshotResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_ResponseOfferSnapshot) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*OfferSnapshotResponse) + x := input.Message.Interface().(*ResponseOfferSnapshot) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -20360,7 +19828,7 @@ func (x *fastReflection_OfferSnapshotResponse) ProtoMethods() *protoiface.Method } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*OfferSnapshotResponse) + x := input.Message.Interface().(*ResponseOfferSnapshot) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -20395,7 +19863,7 @@ func (x *fastReflection_OfferSnapshotResponse) ProtoMethods() *protoiface.Method }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*OfferSnapshotResponse) + x := input.Message.Interface().(*ResponseOfferSnapshot) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -20427,10 +19895,10 @@ func (x *fastReflection_OfferSnapshotResponse) ProtoMethods() *protoiface.Method fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: OfferSnapshotResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ResponseOfferSnapshot: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: OfferSnapshotResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ResponseOfferSnapshot: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -20447,7 +19915,7 @@ func (x *fastReflection_OfferSnapshotResponse) ProtoMethods() *protoiface.Method } b := dAtA[iNdEx] iNdEx++ - x.Result |= OfferSnapshotResult(b&0x7F) << shift + x.Result |= ResponseOfferSnapshot_Result(b&0x7F) << shift if b < 0x80 { break } @@ -20488,26 +19956,26 @@ func (x *fastReflection_OfferSnapshotResponse) ProtoMethods() *protoiface.Method } var ( - md_LoadSnapshotChunkResponse protoreflect.MessageDescriptor - fd_LoadSnapshotChunkResponse_chunk protoreflect.FieldDescriptor + md_ResponseLoadSnapshotChunk protoreflect.MessageDescriptor + fd_ResponseLoadSnapshotChunk_chunk protoreflect.FieldDescriptor ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_LoadSnapshotChunkResponse = File_cometbft_abci_v2_types_proto.Messages().ByName("LoadSnapshotChunkResponse") - fd_LoadSnapshotChunkResponse_chunk = md_LoadSnapshotChunkResponse.Fields().ByName("chunk") + file_tendermint_abci_types_proto_init() + md_ResponseLoadSnapshotChunk = File_tendermint_abci_types_proto.Messages().ByName("ResponseLoadSnapshotChunk") + fd_ResponseLoadSnapshotChunk_chunk = md_ResponseLoadSnapshotChunk.Fields().ByName("chunk") } -var _ protoreflect.Message = (*fastReflection_LoadSnapshotChunkResponse)(nil) +var _ protoreflect.Message = (*fastReflection_ResponseLoadSnapshotChunk)(nil) -type fastReflection_LoadSnapshotChunkResponse LoadSnapshotChunkResponse +type fastReflection_ResponseLoadSnapshotChunk ResponseLoadSnapshotChunk -func (x *LoadSnapshotChunkResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_LoadSnapshotChunkResponse)(x) +func (x *ResponseLoadSnapshotChunk) ProtoReflect() protoreflect.Message { + return (*fastReflection_ResponseLoadSnapshotChunk)(x) } -func (x *LoadSnapshotChunkResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[28] +func (x *ResponseLoadSnapshotChunk) slowProtoReflect() protoreflect.Message { + mi := &file_tendermint_abci_types_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -20518,43 +19986,43 @@ func (x *LoadSnapshotChunkResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_LoadSnapshotChunkResponse_messageType fastReflection_LoadSnapshotChunkResponse_messageType -var _ protoreflect.MessageType = fastReflection_LoadSnapshotChunkResponse_messageType{} +var _fastReflection_ResponseLoadSnapshotChunk_messageType fastReflection_ResponseLoadSnapshotChunk_messageType +var _ protoreflect.MessageType = fastReflection_ResponseLoadSnapshotChunk_messageType{} -type fastReflection_LoadSnapshotChunkResponse_messageType struct{} +type fastReflection_ResponseLoadSnapshotChunk_messageType struct{} -func (x fastReflection_LoadSnapshotChunkResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_LoadSnapshotChunkResponse)(nil) +func (x fastReflection_ResponseLoadSnapshotChunk_messageType) Zero() protoreflect.Message { + return (*fastReflection_ResponseLoadSnapshotChunk)(nil) } -func (x fastReflection_LoadSnapshotChunkResponse_messageType) New() protoreflect.Message { - return new(fastReflection_LoadSnapshotChunkResponse) +func (x fastReflection_ResponseLoadSnapshotChunk_messageType) New() protoreflect.Message { + return new(fastReflection_ResponseLoadSnapshotChunk) } -func (x fastReflection_LoadSnapshotChunkResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_LoadSnapshotChunkResponse +func (x fastReflection_ResponseLoadSnapshotChunk_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ResponseLoadSnapshotChunk } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_LoadSnapshotChunkResponse) Descriptor() protoreflect.MessageDescriptor { - return md_LoadSnapshotChunkResponse +func (x *fastReflection_ResponseLoadSnapshotChunk) Descriptor() protoreflect.MessageDescriptor { + return md_ResponseLoadSnapshotChunk } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_LoadSnapshotChunkResponse) Type() protoreflect.MessageType { - return _fastReflection_LoadSnapshotChunkResponse_messageType +func (x *fastReflection_ResponseLoadSnapshotChunk) Type() protoreflect.MessageType { + return _fastReflection_ResponseLoadSnapshotChunk_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_LoadSnapshotChunkResponse) New() protoreflect.Message { - return new(fastReflection_LoadSnapshotChunkResponse) +func (x *fastReflection_ResponseLoadSnapshotChunk) New() protoreflect.Message { + return new(fastReflection_ResponseLoadSnapshotChunk) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_LoadSnapshotChunkResponse) Interface() protoreflect.ProtoMessage { - return (*LoadSnapshotChunkResponse)(x) +func (x *fastReflection_ResponseLoadSnapshotChunk) Interface() protoreflect.ProtoMessage { + return (*ResponseLoadSnapshotChunk)(x) } // Range iterates over every populated field in an undefined order, @@ -20562,10 +20030,10 @@ func (x *fastReflection_LoadSnapshotChunkResponse) Interface() protoreflect.Prot // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_LoadSnapshotChunkResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_ResponseLoadSnapshotChunk) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if len(x.Chunk) != 0 { value := protoreflect.ValueOfBytes(x.Chunk) - if !f(fd_LoadSnapshotChunkResponse_chunk, value) { + if !f(fd_ResponseLoadSnapshotChunk_chunk, value) { return } } @@ -20582,15 +20050,15 @@ func (x *fastReflection_LoadSnapshotChunkResponse) Range(f func(protoreflect.Fie // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_LoadSnapshotChunkResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_ResponseLoadSnapshotChunk) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.LoadSnapshotChunkResponse.chunk": + case "tendermint.abci.ResponseLoadSnapshotChunk.chunk": return len(x.Chunk) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.LoadSnapshotChunkResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseLoadSnapshotChunk")) } - panic(fmt.Errorf("message cometbft.abci.v2.LoadSnapshotChunkResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseLoadSnapshotChunk does not contain field %s", fd.FullName())) } } @@ -20600,15 +20068,15 @@ func (x *fastReflection_LoadSnapshotChunkResponse) Has(fd protoreflect.FieldDesc // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_LoadSnapshotChunkResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_ResponseLoadSnapshotChunk) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.LoadSnapshotChunkResponse.chunk": + case "tendermint.abci.ResponseLoadSnapshotChunk.chunk": x.Chunk = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.LoadSnapshotChunkResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseLoadSnapshotChunk")) } - panic(fmt.Errorf("message cometbft.abci.v2.LoadSnapshotChunkResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseLoadSnapshotChunk does not contain field %s", fd.FullName())) } } @@ -20618,16 +20086,16 @@ func (x *fastReflection_LoadSnapshotChunkResponse) Clear(fd protoreflect.FieldDe // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_LoadSnapshotChunkResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseLoadSnapshotChunk) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.LoadSnapshotChunkResponse.chunk": + case "tendermint.abci.ResponseLoadSnapshotChunk.chunk": value := x.Chunk return protoreflect.ValueOfBytes(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.LoadSnapshotChunkResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseLoadSnapshotChunk")) } - panic(fmt.Errorf("message cometbft.abci.v2.LoadSnapshotChunkResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseLoadSnapshotChunk does not contain field %s", descriptor.FullName())) } } @@ -20641,15 +20109,15 @@ func (x *fastReflection_LoadSnapshotChunkResponse) Get(descriptor protoreflect.F // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_LoadSnapshotChunkResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_ResponseLoadSnapshotChunk) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.LoadSnapshotChunkResponse.chunk": + case "tendermint.abci.ResponseLoadSnapshotChunk.chunk": x.Chunk = value.Bytes() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.LoadSnapshotChunkResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseLoadSnapshotChunk")) } - panic(fmt.Errorf("message cometbft.abci.v2.LoadSnapshotChunkResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseLoadSnapshotChunk does not contain field %s", fd.FullName())) } } @@ -20663,40 +20131,40 @@ func (x *fastReflection_LoadSnapshotChunkResponse) Set(fd protoreflect.FieldDesc // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_LoadSnapshotChunkResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseLoadSnapshotChunk) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.LoadSnapshotChunkResponse.chunk": - panic(fmt.Errorf("field chunk of message cometbft.abci.v2.LoadSnapshotChunkResponse is not mutable")) + case "tendermint.abci.ResponseLoadSnapshotChunk.chunk": + panic(fmt.Errorf("field chunk of message tendermint.abci.ResponseLoadSnapshotChunk is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.LoadSnapshotChunkResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseLoadSnapshotChunk")) } - panic(fmt.Errorf("message cometbft.abci.v2.LoadSnapshotChunkResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseLoadSnapshotChunk does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_LoadSnapshotChunkResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseLoadSnapshotChunk) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.LoadSnapshotChunkResponse.chunk": + case "tendermint.abci.ResponseLoadSnapshotChunk.chunk": return protoreflect.ValueOfBytes(nil) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.LoadSnapshotChunkResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseLoadSnapshotChunk")) } - panic(fmt.Errorf("message cometbft.abci.v2.LoadSnapshotChunkResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseLoadSnapshotChunk does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_LoadSnapshotChunkResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_ResponseLoadSnapshotChunk) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.LoadSnapshotChunkResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.ResponseLoadSnapshotChunk", d.FullName())) } panic("unreachable") } @@ -20704,7 +20172,7 @@ func (x *fastReflection_LoadSnapshotChunkResponse) WhichOneof(d protoreflect.One // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_LoadSnapshotChunkResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_ResponseLoadSnapshotChunk) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -20715,7 +20183,7 @@ func (x *fastReflection_LoadSnapshotChunkResponse) GetUnknown() protoreflect.Raw // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_LoadSnapshotChunkResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_ResponseLoadSnapshotChunk) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -20727,7 +20195,7 @@ func (x *fastReflection_LoadSnapshotChunkResponse) SetUnknown(fields protoreflec // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_LoadSnapshotChunkResponse) IsValid() bool { +func (x *fastReflection_ResponseLoadSnapshotChunk) IsValid() bool { return x != nil } @@ -20737,9 +20205,9 @@ func (x *fastReflection_LoadSnapshotChunkResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_LoadSnapshotChunkResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_ResponseLoadSnapshotChunk) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*LoadSnapshotChunkResponse) + x := input.Message.Interface().(*ResponseLoadSnapshotChunk) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -20765,7 +20233,7 @@ func (x *fastReflection_LoadSnapshotChunkResponse) ProtoMethods() *protoiface.Me } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*LoadSnapshotChunkResponse) + x := input.Message.Interface().(*ResponseLoadSnapshotChunk) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -20802,7 +20270,7 @@ func (x *fastReflection_LoadSnapshotChunkResponse) ProtoMethods() *protoiface.Me }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*LoadSnapshotChunkResponse) + x := input.Message.Interface().(*ResponseLoadSnapshotChunk) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -20834,10 +20302,10 @@ func (x *fastReflection_LoadSnapshotChunkResponse) ProtoMethods() *protoiface.Me fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: LoadSnapshotChunkResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ResponseLoadSnapshotChunk: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: LoadSnapshotChunkResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ResponseLoadSnapshotChunk: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -20909,123 +20377,123 @@ func (x *fastReflection_LoadSnapshotChunkResponse) ProtoMethods() *protoiface.Me } } -var _ protoreflect.List = (*_ApplySnapshotChunkResponse_2_list)(nil) +var _ protoreflect.List = (*_ResponseApplySnapshotChunk_2_list)(nil) -type _ApplySnapshotChunkResponse_2_list struct { +type _ResponseApplySnapshotChunk_2_list struct { list *[]uint32 } -func (x *_ApplySnapshotChunkResponse_2_list) Len() int { +func (x *_ResponseApplySnapshotChunk_2_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_ApplySnapshotChunkResponse_2_list) Get(i int) protoreflect.Value { +func (x *_ResponseApplySnapshotChunk_2_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfUint32((*x.list)[i]) } -func (x *_ApplySnapshotChunkResponse_2_list) Set(i int, value protoreflect.Value) { +func (x *_ResponseApplySnapshotChunk_2_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Uint() concreteValue := (uint32)(valueUnwrapped) (*x.list)[i] = concreteValue } -func (x *_ApplySnapshotChunkResponse_2_list) Append(value protoreflect.Value) { +func (x *_ResponseApplySnapshotChunk_2_list) Append(value protoreflect.Value) { valueUnwrapped := value.Uint() concreteValue := (uint32)(valueUnwrapped) *x.list = append(*x.list, concreteValue) } -func (x *_ApplySnapshotChunkResponse_2_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message ApplySnapshotChunkResponse at list field RefetchChunks as it is not of Message kind")) +func (x *_ResponseApplySnapshotChunk_2_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message ResponseApplySnapshotChunk at list field RefetchChunks as it is not of Message kind")) } -func (x *_ApplySnapshotChunkResponse_2_list) Truncate(n int) { +func (x *_ResponseApplySnapshotChunk_2_list) Truncate(n int) { *x.list = (*x.list)[:n] } -func (x *_ApplySnapshotChunkResponse_2_list) NewElement() protoreflect.Value { +func (x *_ResponseApplySnapshotChunk_2_list) NewElement() protoreflect.Value { v := uint32(0) return protoreflect.ValueOfUint32(v) } -func (x *_ApplySnapshotChunkResponse_2_list) IsValid() bool { +func (x *_ResponseApplySnapshotChunk_2_list) IsValid() bool { return x.list != nil } -var _ protoreflect.List = (*_ApplySnapshotChunkResponse_3_list)(nil) +var _ protoreflect.List = (*_ResponseApplySnapshotChunk_3_list)(nil) -type _ApplySnapshotChunkResponse_3_list struct { +type _ResponseApplySnapshotChunk_3_list struct { list *[]string } -func (x *_ApplySnapshotChunkResponse_3_list) Len() int { +func (x *_ResponseApplySnapshotChunk_3_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_ApplySnapshotChunkResponse_3_list) Get(i int) protoreflect.Value { +func (x *_ResponseApplySnapshotChunk_3_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfString((*x.list)[i]) } -func (x *_ApplySnapshotChunkResponse_3_list) Set(i int, value protoreflect.Value) { +func (x *_ResponseApplySnapshotChunk_3_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.String() concreteValue := valueUnwrapped (*x.list)[i] = concreteValue } -func (x *_ApplySnapshotChunkResponse_3_list) Append(value protoreflect.Value) { +func (x *_ResponseApplySnapshotChunk_3_list) Append(value protoreflect.Value) { valueUnwrapped := value.String() concreteValue := valueUnwrapped *x.list = append(*x.list, concreteValue) } -func (x *_ApplySnapshotChunkResponse_3_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message ApplySnapshotChunkResponse at list field RejectSenders as it is not of Message kind")) +func (x *_ResponseApplySnapshotChunk_3_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message ResponseApplySnapshotChunk at list field RejectSenders as it is not of Message kind")) } -func (x *_ApplySnapshotChunkResponse_3_list) Truncate(n int) { +func (x *_ResponseApplySnapshotChunk_3_list) Truncate(n int) { *x.list = (*x.list)[:n] } -func (x *_ApplySnapshotChunkResponse_3_list) NewElement() protoreflect.Value { +func (x *_ResponseApplySnapshotChunk_3_list) NewElement() protoreflect.Value { v := "" return protoreflect.ValueOfString(v) } -func (x *_ApplySnapshotChunkResponse_3_list) IsValid() bool { +func (x *_ResponseApplySnapshotChunk_3_list) IsValid() bool { return x.list != nil } var ( - md_ApplySnapshotChunkResponse protoreflect.MessageDescriptor - fd_ApplySnapshotChunkResponse_result protoreflect.FieldDescriptor - fd_ApplySnapshotChunkResponse_refetch_chunks protoreflect.FieldDescriptor - fd_ApplySnapshotChunkResponse_reject_senders protoreflect.FieldDescriptor + md_ResponseApplySnapshotChunk protoreflect.MessageDescriptor + fd_ResponseApplySnapshotChunk_result protoreflect.FieldDescriptor + fd_ResponseApplySnapshotChunk_refetch_chunks protoreflect.FieldDescriptor + fd_ResponseApplySnapshotChunk_reject_senders protoreflect.FieldDescriptor ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_ApplySnapshotChunkResponse = File_cometbft_abci_v2_types_proto.Messages().ByName("ApplySnapshotChunkResponse") - fd_ApplySnapshotChunkResponse_result = md_ApplySnapshotChunkResponse.Fields().ByName("result") - fd_ApplySnapshotChunkResponse_refetch_chunks = md_ApplySnapshotChunkResponse.Fields().ByName("refetch_chunks") - fd_ApplySnapshotChunkResponse_reject_senders = md_ApplySnapshotChunkResponse.Fields().ByName("reject_senders") + file_tendermint_abci_types_proto_init() + md_ResponseApplySnapshotChunk = File_tendermint_abci_types_proto.Messages().ByName("ResponseApplySnapshotChunk") + fd_ResponseApplySnapshotChunk_result = md_ResponseApplySnapshotChunk.Fields().ByName("result") + fd_ResponseApplySnapshotChunk_refetch_chunks = md_ResponseApplySnapshotChunk.Fields().ByName("refetch_chunks") + fd_ResponseApplySnapshotChunk_reject_senders = md_ResponseApplySnapshotChunk.Fields().ByName("reject_senders") } -var _ protoreflect.Message = (*fastReflection_ApplySnapshotChunkResponse)(nil) +var _ protoreflect.Message = (*fastReflection_ResponseApplySnapshotChunk)(nil) -type fastReflection_ApplySnapshotChunkResponse ApplySnapshotChunkResponse +type fastReflection_ResponseApplySnapshotChunk ResponseApplySnapshotChunk -func (x *ApplySnapshotChunkResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_ApplySnapshotChunkResponse)(x) +func (x *ResponseApplySnapshotChunk) ProtoReflect() protoreflect.Message { + return (*fastReflection_ResponseApplySnapshotChunk)(x) } -func (x *ApplySnapshotChunkResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[29] +func (x *ResponseApplySnapshotChunk) slowProtoReflect() protoreflect.Message { + mi := &file_tendermint_abci_types_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -21036,43 +20504,43 @@ func (x *ApplySnapshotChunkResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_ApplySnapshotChunkResponse_messageType fastReflection_ApplySnapshotChunkResponse_messageType -var _ protoreflect.MessageType = fastReflection_ApplySnapshotChunkResponse_messageType{} +var _fastReflection_ResponseApplySnapshotChunk_messageType fastReflection_ResponseApplySnapshotChunk_messageType +var _ protoreflect.MessageType = fastReflection_ResponseApplySnapshotChunk_messageType{} -type fastReflection_ApplySnapshotChunkResponse_messageType struct{} +type fastReflection_ResponseApplySnapshotChunk_messageType struct{} -func (x fastReflection_ApplySnapshotChunkResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_ApplySnapshotChunkResponse)(nil) +func (x fastReflection_ResponseApplySnapshotChunk_messageType) Zero() protoreflect.Message { + return (*fastReflection_ResponseApplySnapshotChunk)(nil) } -func (x fastReflection_ApplySnapshotChunkResponse_messageType) New() protoreflect.Message { - return new(fastReflection_ApplySnapshotChunkResponse) +func (x fastReflection_ResponseApplySnapshotChunk_messageType) New() protoreflect.Message { + return new(fastReflection_ResponseApplySnapshotChunk) } -func (x fastReflection_ApplySnapshotChunkResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_ApplySnapshotChunkResponse +func (x fastReflection_ResponseApplySnapshotChunk_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ResponseApplySnapshotChunk } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_ApplySnapshotChunkResponse) Descriptor() protoreflect.MessageDescriptor { - return md_ApplySnapshotChunkResponse +func (x *fastReflection_ResponseApplySnapshotChunk) Descriptor() protoreflect.MessageDescriptor { + return md_ResponseApplySnapshotChunk } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_ApplySnapshotChunkResponse) Type() protoreflect.MessageType { - return _fastReflection_ApplySnapshotChunkResponse_messageType +func (x *fastReflection_ResponseApplySnapshotChunk) Type() protoreflect.MessageType { + return _fastReflection_ResponseApplySnapshotChunk_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_ApplySnapshotChunkResponse) New() protoreflect.Message { - return new(fastReflection_ApplySnapshotChunkResponse) +func (x *fastReflection_ResponseApplySnapshotChunk) New() protoreflect.Message { + return new(fastReflection_ResponseApplySnapshotChunk) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_ApplySnapshotChunkResponse) Interface() protoreflect.ProtoMessage { - return (*ApplySnapshotChunkResponse)(x) +func (x *fastReflection_ResponseApplySnapshotChunk) Interface() protoreflect.ProtoMessage { + return (*ResponseApplySnapshotChunk)(x) } // Range iterates over every populated field in an undefined order, @@ -21080,22 +20548,22 @@ func (x *fastReflection_ApplySnapshotChunkResponse) Interface() protoreflect.Pro // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_ApplySnapshotChunkResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_ResponseApplySnapshotChunk) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Result != 0 { value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Result)) - if !f(fd_ApplySnapshotChunkResponse_result, value) { + if !f(fd_ResponseApplySnapshotChunk_result, value) { return } } if len(x.RefetchChunks) != 0 { - value := protoreflect.ValueOfList(&_ApplySnapshotChunkResponse_2_list{list: &x.RefetchChunks}) - if !f(fd_ApplySnapshotChunkResponse_refetch_chunks, value) { + value := protoreflect.ValueOfList(&_ResponseApplySnapshotChunk_2_list{list: &x.RefetchChunks}) + if !f(fd_ResponseApplySnapshotChunk_refetch_chunks, value) { return } } if len(x.RejectSenders) != 0 { - value := protoreflect.ValueOfList(&_ApplySnapshotChunkResponse_3_list{list: &x.RejectSenders}) - if !f(fd_ApplySnapshotChunkResponse_reject_senders, value) { + value := protoreflect.ValueOfList(&_ResponseApplySnapshotChunk_3_list{list: &x.RejectSenders}) + if !f(fd_ResponseApplySnapshotChunk_reject_senders, value) { return } } @@ -21112,19 +20580,19 @@ func (x *fastReflection_ApplySnapshotChunkResponse) Range(f func(protoreflect.Fi // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_ApplySnapshotChunkResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_ResponseApplySnapshotChunk) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.ApplySnapshotChunkResponse.result": + case "tendermint.abci.ResponseApplySnapshotChunk.result": return x.Result != 0 - case "cometbft.abci.v2.ApplySnapshotChunkResponse.refetch_chunks": + case "tendermint.abci.ResponseApplySnapshotChunk.refetch_chunks": return len(x.RefetchChunks) != 0 - case "cometbft.abci.v2.ApplySnapshotChunkResponse.reject_senders": + case "tendermint.abci.ResponseApplySnapshotChunk.reject_senders": return len(x.RejectSenders) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ApplySnapshotChunkResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseApplySnapshotChunk")) } - panic(fmt.Errorf("message cometbft.abci.v2.ApplySnapshotChunkResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseApplySnapshotChunk does not contain field %s", fd.FullName())) } } @@ -21134,19 +20602,19 @@ func (x *fastReflection_ApplySnapshotChunkResponse) Has(fd protoreflect.FieldDes // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ApplySnapshotChunkResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_ResponseApplySnapshotChunk) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.ApplySnapshotChunkResponse.result": + case "tendermint.abci.ResponseApplySnapshotChunk.result": x.Result = 0 - case "cometbft.abci.v2.ApplySnapshotChunkResponse.refetch_chunks": + case "tendermint.abci.ResponseApplySnapshotChunk.refetch_chunks": x.RefetchChunks = nil - case "cometbft.abci.v2.ApplySnapshotChunkResponse.reject_senders": + case "tendermint.abci.ResponseApplySnapshotChunk.reject_senders": x.RejectSenders = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ApplySnapshotChunkResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseApplySnapshotChunk")) } - panic(fmt.Errorf("message cometbft.abci.v2.ApplySnapshotChunkResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseApplySnapshotChunk does not contain field %s", fd.FullName())) } } @@ -21156,28 +20624,28 @@ func (x *fastReflection_ApplySnapshotChunkResponse) Clear(fd protoreflect.FieldD // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_ApplySnapshotChunkResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseApplySnapshotChunk) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.ApplySnapshotChunkResponse.result": + case "tendermint.abci.ResponseApplySnapshotChunk.result": value := x.Result return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "cometbft.abci.v2.ApplySnapshotChunkResponse.refetch_chunks": + case "tendermint.abci.ResponseApplySnapshotChunk.refetch_chunks": if len(x.RefetchChunks) == 0 { - return protoreflect.ValueOfList(&_ApplySnapshotChunkResponse_2_list{}) + return protoreflect.ValueOfList(&_ResponseApplySnapshotChunk_2_list{}) } - listValue := &_ApplySnapshotChunkResponse_2_list{list: &x.RefetchChunks} + listValue := &_ResponseApplySnapshotChunk_2_list{list: &x.RefetchChunks} return protoreflect.ValueOfList(listValue) - case "cometbft.abci.v2.ApplySnapshotChunkResponse.reject_senders": + case "tendermint.abci.ResponseApplySnapshotChunk.reject_senders": if len(x.RejectSenders) == 0 { - return protoreflect.ValueOfList(&_ApplySnapshotChunkResponse_3_list{}) + return protoreflect.ValueOfList(&_ResponseApplySnapshotChunk_3_list{}) } - listValue := &_ApplySnapshotChunkResponse_3_list{list: &x.RejectSenders} + listValue := &_ResponseApplySnapshotChunk_3_list{list: &x.RejectSenders} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ApplySnapshotChunkResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseApplySnapshotChunk")) } - panic(fmt.Errorf("message cometbft.abci.v2.ApplySnapshotChunkResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseApplySnapshotChunk does not contain field %s", descriptor.FullName())) } } @@ -21191,23 +20659,23 @@ func (x *fastReflection_ApplySnapshotChunkResponse) Get(descriptor protoreflect. // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ApplySnapshotChunkResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_ResponseApplySnapshotChunk) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.ApplySnapshotChunkResponse.result": - x.Result = (ApplySnapshotChunkResult)(value.Enum()) - case "cometbft.abci.v2.ApplySnapshotChunkResponse.refetch_chunks": + case "tendermint.abci.ResponseApplySnapshotChunk.result": + x.Result = (ResponseApplySnapshotChunk_Result)(value.Enum()) + case "tendermint.abci.ResponseApplySnapshotChunk.refetch_chunks": lv := value.List() - clv := lv.(*_ApplySnapshotChunkResponse_2_list) + clv := lv.(*_ResponseApplySnapshotChunk_2_list) x.RefetchChunks = *clv.list - case "cometbft.abci.v2.ApplySnapshotChunkResponse.reject_senders": + case "tendermint.abci.ResponseApplySnapshotChunk.reject_senders": lv := value.List() - clv := lv.(*_ApplySnapshotChunkResponse_3_list) + clv := lv.(*_ResponseApplySnapshotChunk_3_list) x.RejectSenders = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ApplySnapshotChunkResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseApplySnapshotChunk")) } - panic(fmt.Errorf("message cometbft.abci.v2.ApplySnapshotChunkResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseApplySnapshotChunk does not contain field %s", fd.FullName())) } } @@ -21221,58 +20689,58 @@ func (x *fastReflection_ApplySnapshotChunkResponse) Set(fd protoreflect.FieldDes // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ApplySnapshotChunkResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseApplySnapshotChunk) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.ApplySnapshotChunkResponse.refetch_chunks": + case "tendermint.abci.ResponseApplySnapshotChunk.refetch_chunks": if x.RefetchChunks == nil { x.RefetchChunks = []uint32{} } - value := &_ApplySnapshotChunkResponse_2_list{list: &x.RefetchChunks} + value := &_ResponseApplySnapshotChunk_2_list{list: &x.RefetchChunks} return protoreflect.ValueOfList(value) - case "cometbft.abci.v2.ApplySnapshotChunkResponse.reject_senders": + case "tendermint.abci.ResponseApplySnapshotChunk.reject_senders": if x.RejectSenders == nil { x.RejectSenders = []string{} } - value := &_ApplySnapshotChunkResponse_3_list{list: &x.RejectSenders} + value := &_ResponseApplySnapshotChunk_3_list{list: &x.RejectSenders} return protoreflect.ValueOfList(value) - case "cometbft.abci.v2.ApplySnapshotChunkResponse.result": - panic(fmt.Errorf("field result of message cometbft.abci.v2.ApplySnapshotChunkResponse is not mutable")) + case "tendermint.abci.ResponseApplySnapshotChunk.result": + panic(fmt.Errorf("field result of message tendermint.abci.ResponseApplySnapshotChunk is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ApplySnapshotChunkResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseApplySnapshotChunk")) } - panic(fmt.Errorf("message cometbft.abci.v2.ApplySnapshotChunkResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseApplySnapshotChunk does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_ApplySnapshotChunkResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseApplySnapshotChunk) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.ApplySnapshotChunkResponse.result": + case "tendermint.abci.ResponseApplySnapshotChunk.result": return protoreflect.ValueOfEnum(0) - case "cometbft.abci.v2.ApplySnapshotChunkResponse.refetch_chunks": + case "tendermint.abci.ResponseApplySnapshotChunk.refetch_chunks": list := []uint32{} - return protoreflect.ValueOfList(&_ApplySnapshotChunkResponse_2_list{list: &list}) - case "cometbft.abci.v2.ApplySnapshotChunkResponse.reject_senders": + return protoreflect.ValueOfList(&_ResponseApplySnapshotChunk_2_list{list: &list}) + case "tendermint.abci.ResponseApplySnapshotChunk.reject_senders": list := []string{} - return protoreflect.ValueOfList(&_ApplySnapshotChunkResponse_3_list{list: &list}) + return protoreflect.ValueOfList(&_ResponseApplySnapshotChunk_3_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ApplySnapshotChunkResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseApplySnapshotChunk")) } - panic(fmt.Errorf("message cometbft.abci.v2.ApplySnapshotChunkResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseApplySnapshotChunk does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_ApplySnapshotChunkResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_ResponseApplySnapshotChunk) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.ApplySnapshotChunkResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.ResponseApplySnapshotChunk", d.FullName())) } panic("unreachable") } @@ -21280,7 +20748,7 @@ func (x *fastReflection_ApplySnapshotChunkResponse) WhichOneof(d protoreflect.On // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_ApplySnapshotChunkResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_ResponseApplySnapshotChunk) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -21291,7 +20759,7 @@ func (x *fastReflection_ApplySnapshotChunkResponse) GetUnknown() protoreflect.Ra // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ApplySnapshotChunkResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_ResponseApplySnapshotChunk) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -21303,7 +20771,7 @@ func (x *fastReflection_ApplySnapshotChunkResponse) SetUnknown(fields protorefle // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_ApplySnapshotChunkResponse) IsValid() bool { +func (x *fastReflection_ResponseApplySnapshotChunk) IsValid() bool { return x != nil } @@ -21313,9 +20781,9 @@ func (x *fastReflection_ApplySnapshotChunkResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_ApplySnapshotChunkResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_ResponseApplySnapshotChunk) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*ApplySnapshotChunkResponse) + x := input.Message.Interface().(*ResponseApplySnapshotChunk) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -21353,7 +20821,7 @@ func (x *fastReflection_ApplySnapshotChunkResponse) ProtoMethods() *protoiface.M } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*ApplySnapshotChunkResponse) + x := input.Message.Interface().(*ResponseApplySnapshotChunk) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -21417,7 +20885,7 @@ func (x *fastReflection_ApplySnapshotChunkResponse) ProtoMethods() *protoiface.M }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*ApplySnapshotChunkResponse) + x := input.Message.Interface().(*ResponseApplySnapshotChunk) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -21449,10 +20917,10 @@ func (x *fastReflection_ApplySnapshotChunkResponse) ProtoMethods() *protoiface.M fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ApplySnapshotChunkResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ResponseApplySnapshotChunk: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ApplySnapshotChunkResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ResponseApplySnapshotChunk: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -21469,7 +20937,7 @@ func (x *fastReflection_ApplySnapshotChunkResponse) ProtoMethods() *protoiface.M } b := dAtA[iNdEx] iNdEx++ - x.Result |= ApplySnapshotChunkResult(b&0x7F) << shift + x.Result |= ResponseApplySnapshotChunk_Result(b&0x7F) << shift if b < 0x80 { break } @@ -21617,73 +21085,73 @@ func (x *fastReflection_ApplySnapshotChunkResponse) ProtoMethods() *protoiface.M } } -var _ protoreflect.List = (*_PrepareProposalResponse_1_list)(nil) +var _ protoreflect.List = (*_ResponsePrepareProposal_1_list)(nil) -type _PrepareProposalResponse_1_list struct { +type _ResponsePrepareProposal_1_list struct { list *[][]byte } -func (x *_PrepareProposalResponse_1_list) Len() int { +func (x *_ResponsePrepareProposal_1_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_PrepareProposalResponse_1_list) Get(i int) protoreflect.Value { +func (x *_ResponsePrepareProposal_1_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfBytes((*x.list)[i]) } -func (x *_PrepareProposalResponse_1_list) Set(i int, value protoreflect.Value) { +func (x *_ResponsePrepareProposal_1_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Bytes() concreteValue := valueUnwrapped (*x.list)[i] = concreteValue } -func (x *_PrepareProposalResponse_1_list) Append(value protoreflect.Value) { +func (x *_ResponsePrepareProposal_1_list) Append(value protoreflect.Value) { valueUnwrapped := value.Bytes() concreteValue := valueUnwrapped *x.list = append(*x.list, concreteValue) } -func (x *_PrepareProposalResponse_1_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message PrepareProposalResponse at list field Txs as it is not of Message kind")) +func (x *_ResponsePrepareProposal_1_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message ResponsePrepareProposal at list field Txs as it is not of Message kind")) } -func (x *_PrepareProposalResponse_1_list) Truncate(n int) { +func (x *_ResponsePrepareProposal_1_list) Truncate(n int) { *x.list = (*x.list)[:n] } -func (x *_PrepareProposalResponse_1_list) NewElement() protoreflect.Value { +func (x *_ResponsePrepareProposal_1_list) NewElement() protoreflect.Value { var v []byte return protoreflect.ValueOfBytes(v) } -func (x *_PrepareProposalResponse_1_list) IsValid() bool { +func (x *_ResponsePrepareProposal_1_list) IsValid() bool { return x.list != nil } var ( - md_PrepareProposalResponse protoreflect.MessageDescriptor - fd_PrepareProposalResponse_txs protoreflect.FieldDescriptor + md_ResponsePrepareProposal protoreflect.MessageDescriptor + fd_ResponsePrepareProposal_txs protoreflect.FieldDescriptor ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_PrepareProposalResponse = File_cometbft_abci_v2_types_proto.Messages().ByName("PrepareProposalResponse") - fd_PrepareProposalResponse_txs = md_PrepareProposalResponse.Fields().ByName("txs") + file_tendermint_abci_types_proto_init() + md_ResponsePrepareProposal = File_tendermint_abci_types_proto.Messages().ByName("ResponsePrepareProposal") + fd_ResponsePrepareProposal_txs = md_ResponsePrepareProposal.Fields().ByName("txs") } -var _ protoreflect.Message = (*fastReflection_PrepareProposalResponse)(nil) +var _ protoreflect.Message = (*fastReflection_ResponsePrepareProposal)(nil) -type fastReflection_PrepareProposalResponse PrepareProposalResponse +type fastReflection_ResponsePrepareProposal ResponsePrepareProposal -func (x *PrepareProposalResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_PrepareProposalResponse)(x) +func (x *ResponsePrepareProposal) ProtoReflect() protoreflect.Message { + return (*fastReflection_ResponsePrepareProposal)(x) } -func (x *PrepareProposalResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[30] +func (x *ResponsePrepareProposal) slowProtoReflect() protoreflect.Message { + mi := &file_tendermint_abci_types_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -21694,43 +21162,43 @@ func (x *PrepareProposalResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_PrepareProposalResponse_messageType fastReflection_PrepareProposalResponse_messageType -var _ protoreflect.MessageType = fastReflection_PrepareProposalResponse_messageType{} +var _fastReflection_ResponsePrepareProposal_messageType fastReflection_ResponsePrepareProposal_messageType +var _ protoreflect.MessageType = fastReflection_ResponsePrepareProposal_messageType{} -type fastReflection_PrepareProposalResponse_messageType struct{} +type fastReflection_ResponsePrepareProposal_messageType struct{} -func (x fastReflection_PrepareProposalResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_PrepareProposalResponse)(nil) +func (x fastReflection_ResponsePrepareProposal_messageType) Zero() protoreflect.Message { + return (*fastReflection_ResponsePrepareProposal)(nil) } -func (x fastReflection_PrepareProposalResponse_messageType) New() protoreflect.Message { - return new(fastReflection_PrepareProposalResponse) +func (x fastReflection_ResponsePrepareProposal_messageType) New() protoreflect.Message { + return new(fastReflection_ResponsePrepareProposal) } -func (x fastReflection_PrepareProposalResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_PrepareProposalResponse +func (x fastReflection_ResponsePrepareProposal_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ResponsePrepareProposal } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_PrepareProposalResponse) Descriptor() protoreflect.MessageDescriptor { - return md_PrepareProposalResponse +func (x *fastReflection_ResponsePrepareProposal) Descriptor() protoreflect.MessageDescriptor { + return md_ResponsePrepareProposal } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_PrepareProposalResponse) Type() protoreflect.MessageType { - return _fastReflection_PrepareProposalResponse_messageType +func (x *fastReflection_ResponsePrepareProposal) Type() protoreflect.MessageType { + return _fastReflection_ResponsePrepareProposal_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_PrepareProposalResponse) New() protoreflect.Message { - return new(fastReflection_PrepareProposalResponse) +func (x *fastReflection_ResponsePrepareProposal) New() protoreflect.Message { + return new(fastReflection_ResponsePrepareProposal) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_PrepareProposalResponse) Interface() protoreflect.ProtoMessage { - return (*PrepareProposalResponse)(x) +func (x *fastReflection_ResponsePrepareProposal) Interface() protoreflect.ProtoMessage { + return (*ResponsePrepareProposal)(x) } // Range iterates over every populated field in an undefined order, @@ -21738,10 +21206,10 @@ func (x *fastReflection_PrepareProposalResponse) Interface() protoreflect.ProtoM // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_PrepareProposalResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_ResponsePrepareProposal) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if len(x.Txs) != 0 { - value := protoreflect.ValueOfList(&_PrepareProposalResponse_1_list{list: &x.Txs}) - if !f(fd_PrepareProposalResponse_txs, value) { + value := protoreflect.ValueOfList(&_ResponsePrepareProposal_1_list{list: &x.Txs}) + if !f(fd_ResponsePrepareProposal_txs, value) { return } } @@ -21758,15 +21226,15 @@ func (x *fastReflection_PrepareProposalResponse) Range(f func(protoreflect.Field // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_PrepareProposalResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_ResponsePrepareProposal) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.PrepareProposalResponse.txs": + case "tendermint.abci.ResponsePrepareProposal.txs": return len(x.Txs) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.PrepareProposalResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponsePrepareProposal")) } - panic(fmt.Errorf("message cometbft.abci.v2.PrepareProposalResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponsePrepareProposal does not contain field %s", fd.FullName())) } } @@ -21776,15 +21244,15 @@ func (x *fastReflection_PrepareProposalResponse) Has(fd protoreflect.FieldDescri // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PrepareProposalResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_ResponsePrepareProposal) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.PrepareProposalResponse.txs": + case "tendermint.abci.ResponsePrepareProposal.txs": x.Txs = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.PrepareProposalResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponsePrepareProposal")) } - panic(fmt.Errorf("message cometbft.abci.v2.PrepareProposalResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponsePrepareProposal does not contain field %s", fd.FullName())) } } @@ -21794,19 +21262,19 @@ func (x *fastReflection_PrepareProposalResponse) Clear(fd protoreflect.FieldDesc // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_PrepareProposalResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponsePrepareProposal) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.PrepareProposalResponse.txs": + case "tendermint.abci.ResponsePrepareProposal.txs": if len(x.Txs) == 0 { - return protoreflect.ValueOfList(&_PrepareProposalResponse_1_list{}) + return protoreflect.ValueOfList(&_ResponsePrepareProposal_1_list{}) } - listValue := &_PrepareProposalResponse_1_list{list: &x.Txs} + listValue := &_ResponsePrepareProposal_1_list{list: &x.Txs} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.PrepareProposalResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponsePrepareProposal")) } - panic(fmt.Errorf("message cometbft.abci.v2.PrepareProposalResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponsePrepareProposal does not contain field %s", descriptor.FullName())) } } @@ -21820,17 +21288,17 @@ func (x *fastReflection_PrepareProposalResponse) Get(descriptor protoreflect.Fie // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PrepareProposalResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_ResponsePrepareProposal) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.PrepareProposalResponse.txs": + case "tendermint.abci.ResponsePrepareProposal.txs": lv := value.List() - clv := lv.(*_PrepareProposalResponse_1_list) + clv := lv.(*_ResponsePrepareProposal_1_list) x.Txs = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.PrepareProposalResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponsePrepareProposal")) } - panic(fmt.Errorf("message cometbft.abci.v2.PrepareProposalResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponsePrepareProposal does not contain field %s", fd.FullName())) } } @@ -21844,45 +21312,45 @@ func (x *fastReflection_PrepareProposalResponse) Set(fd protoreflect.FieldDescri // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PrepareProposalResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponsePrepareProposal) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.PrepareProposalResponse.txs": + case "tendermint.abci.ResponsePrepareProposal.txs": if x.Txs == nil { x.Txs = [][]byte{} } - value := &_PrepareProposalResponse_1_list{list: &x.Txs} + value := &_ResponsePrepareProposal_1_list{list: &x.Txs} return protoreflect.ValueOfList(value) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.PrepareProposalResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponsePrepareProposal")) } - panic(fmt.Errorf("message cometbft.abci.v2.PrepareProposalResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponsePrepareProposal does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_PrepareProposalResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponsePrepareProposal) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.PrepareProposalResponse.txs": + case "tendermint.abci.ResponsePrepareProposal.txs": list := [][]byte{} - return protoreflect.ValueOfList(&_PrepareProposalResponse_1_list{list: &list}) + return protoreflect.ValueOfList(&_ResponsePrepareProposal_1_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.PrepareProposalResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponsePrepareProposal")) } - panic(fmt.Errorf("message cometbft.abci.v2.PrepareProposalResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponsePrepareProposal does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_PrepareProposalResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_ResponsePrepareProposal) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.PrepareProposalResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.ResponsePrepareProposal", d.FullName())) } panic("unreachable") } @@ -21890,7 +21358,7 @@ func (x *fastReflection_PrepareProposalResponse) WhichOneof(d protoreflect.Oneof // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_PrepareProposalResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_ResponsePrepareProposal) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -21901,7 +21369,7 @@ func (x *fastReflection_PrepareProposalResponse) GetUnknown() protoreflect.RawFi // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PrepareProposalResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_ResponsePrepareProposal) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -21913,7 +21381,7 @@ func (x *fastReflection_PrepareProposalResponse) SetUnknown(fields protoreflect. // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_PrepareProposalResponse) IsValid() bool { +func (x *fastReflection_ResponsePrepareProposal) IsValid() bool { return x != nil } @@ -21923,9 +21391,9 @@ func (x *fastReflection_PrepareProposalResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_PrepareProposalResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_ResponsePrepareProposal) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*PrepareProposalResponse) + x := input.Message.Interface().(*ResponsePrepareProposal) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -21953,7 +21421,7 @@ func (x *fastReflection_PrepareProposalResponse) ProtoMethods() *protoiface.Meth } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*PrepareProposalResponse) + x := input.Message.Interface().(*ResponsePrepareProposal) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -21992,7 +21460,7 @@ func (x *fastReflection_PrepareProposalResponse) ProtoMethods() *protoiface.Meth }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*PrepareProposalResponse) + x := input.Message.Interface().(*ResponsePrepareProposal) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -22024,10 +21492,10 @@ func (x *fastReflection_PrepareProposalResponse) ProtoMethods() *protoiface.Meth fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PrepareProposalResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ResponsePrepareProposal: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PrepareProposalResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ResponsePrepareProposal: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -22098,26 +21566,26 @@ func (x *fastReflection_PrepareProposalResponse) ProtoMethods() *protoiface.Meth } var ( - md_ProcessProposalResponse protoreflect.MessageDescriptor - fd_ProcessProposalResponse_status protoreflect.FieldDescriptor + md_ResponseProcessProposal protoreflect.MessageDescriptor + fd_ResponseProcessProposal_status protoreflect.FieldDescriptor ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_ProcessProposalResponse = File_cometbft_abci_v2_types_proto.Messages().ByName("ProcessProposalResponse") - fd_ProcessProposalResponse_status = md_ProcessProposalResponse.Fields().ByName("status") + file_tendermint_abci_types_proto_init() + md_ResponseProcessProposal = File_tendermint_abci_types_proto.Messages().ByName("ResponseProcessProposal") + fd_ResponseProcessProposal_status = md_ResponseProcessProposal.Fields().ByName("status") } -var _ protoreflect.Message = (*fastReflection_ProcessProposalResponse)(nil) +var _ protoreflect.Message = (*fastReflection_ResponseProcessProposal)(nil) -type fastReflection_ProcessProposalResponse ProcessProposalResponse +type fastReflection_ResponseProcessProposal ResponseProcessProposal -func (x *ProcessProposalResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_ProcessProposalResponse)(x) +func (x *ResponseProcessProposal) ProtoReflect() protoreflect.Message { + return (*fastReflection_ResponseProcessProposal)(x) } -func (x *ProcessProposalResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[31] +func (x *ResponseProcessProposal) slowProtoReflect() protoreflect.Message { + mi := &file_tendermint_abci_types_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -22128,43 +21596,43 @@ func (x *ProcessProposalResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_ProcessProposalResponse_messageType fastReflection_ProcessProposalResponse_messageType -var _ protoreflect.MessageType = fastReflection_ProcessProposalResponse_messageType{} +var _fastReflection_ResponseProcessProposal_messageType fastReflection_ResponseProcessProposal_messageType +var _ protoreflect.MessageType = fastReflection_ResponseProcessProposal_messageType{} -type fastReflection_ProcessProposalResponse_messageType struct{} +type fastReflection_ResponseProcessProposal_messageType struct{} -func (x fastReflection_ProcessProposalResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_ProcessProposalResponse)(nil) +func (x fastReflection_ResponseProcessProposal_messageType) Zero() protoreflect.Message { + return (*fastReflection_ResponseProcessProposal)(nil) } -func (x fastReflection_ProcessProposalResponse_messageType) New() protoreflect.Message { - return new(fastReflection_ProcessProposalResponse) +func (x fastReflection_ResponseProcessProposal_messageType) New() protoreflect.Message { + return new(fastReflection_ResponseProcessProposal) } -func (x fastReflection_ProcessProposalResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_ProcessProposalResponse +func (x fastReflection_ResponseProcessProposal_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ResponseProcessProposal } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_ProcessProposalResponse) Descriptor() protoreflect.MessageDescriptor { - return md_ProcessProposalResponse +func (x *fastReflection_ResponseProcessProposal) Descriptor() protoreflect.MessageDescriptor { + return md_ResponseProcessProposal } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_ProcessProposalResponse) Type() protoreflect.MessageType { - return _fastReflection_ProcessProposalResponse_messageType +func (x *fastReflection_ResponseProcessProposal) Type() protoreflect.MessageType { + return _fastReflection_ResponseProcessProposal_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_ProcessProposalResponse) New() protoreflect.Message { - return new(fastReflection_ProcessProposalResponse) +func (x *fastReflection_ResponseProcessProposal) New() protoreflect.Message { + return new(fastReflection_ResponseProcessProposal) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_ProcessProposalResponse) Interface() protoreflect.ProtoMessage { - return (*ProcessProposalResponse)(x) +func (x *fastReflection_ResponseProcessProposal) Interface() protoreflect.ProtoMessage { + return (*ResponseProcessProposal)(x) } // Range iterates over every populated field in an undefined order, @@ -22172,10 +21640,10 @@ func (x *fastReflection_ProcessProposalResponse) Interface() protoreflect.ProtoM // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_ProcessProposalResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_ResponseProcessProposal) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Status != 0 { value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Status)) - if !f(fd_ProcessProposalResponse_status, value) { + if !f(fd_ResponseProcessProposal_status, value) { return } } @@ -22192,15 +21660,15 @@ func (x *fastReflection_ProcessProposalResponse) Range(f func(protoreflect.Field // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_ProcessProposalResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_ResponseProcessProposal) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.ProcessProposalResponse.status": + case "tendermint.abci.ResponseProcessProposal.status": return x.Status != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ProcessProposalResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseProcessProposal")) } - panic(fmt.Errorf("message cometbft.abci.v2.ProcessProposalResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseProcessProposal does not contain field %s", fd.FullName())) } } @@ -22210,15 +21678,15 @@ func (x *fastReflection_ProcessProposalResponse) Has(fd protoreflect.FieldDescri // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ProcessProposalResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_ResponseProcessProposal) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.ProcessProposalResponse.status": + case "tendermint.abci.ResponseProcessProposal.status": x.Status = 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ProcessProposalResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseProcessProposal")) } - panic(fmt.Errorf("message cometbft.abci.v2.ProcessProposalResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseProcessProposal does not contain field %s", fd.FullName())) } } @@ -22228,16 +21696,16 @@ func (x *fastReflection_ProcessProposalResponse) Clear(fd protoreflect.FieldDesc // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_ProcessProposalResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseProcessProposal) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.ProcessProposalResponse.status": + case "tendermint.abci.ResponseProcessProposal.status": value := x.Status return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ProcessProposalResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseProcessProposal")) } - panic(fmt.Errorf("message cometbft.abci.v2.ProcessProposalResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseProcessProposal does not contain field %s", descriptor.FullName())) } } @@ -22251,15 +21719,15 @@ func (x *fastReflection_ProcessProposalResponse) Get(descriptor protoreflect.Fie // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ProcessProposalResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_ResponseProcessProposal) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.ProcessProposalResponse.status": - x.Status = (ProcessProposalStatus)(value.Enum()) + case "tendermint.abci.ResponseProcessProposal.status": + x.Status = (ResponseProcessProposal_ProposalStatus)(value.Enum()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ProcessProposalResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseProcessProposal")) } - panic(fmt.Errorf("message cometbft.abci.v2.ProcessProposalResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseProcessProposal does not contain field %s", fd.FullName())) } } @@ -22273,40 +21741,40 @@ func (x *fastReflection_ProcessProposalResponse) Set(fd protoreflect.FieldDescri // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ProcessProposalResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseProcessProposal) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.ProcessProposalResponse.status": - panic(fmt.Errorf("field status of message cometbft.abci.v2.ProcessProposalResponse is not mutable")) + case "tendermint.abci.ResponseProcessProposal.status": + panic(fmt.Errorf("field status of message tendermint.abci.ResponseProcessProposal is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ProcessProposalResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseProcessProposal")) } - panic(fmt.Errorf("message cometbft.abci.v2.ProcessProposalResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseProcessProposal does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_ProcessProposalResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseProcessProposal) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.ProcessProposalResponse.status": + case "tendermint.abci.ResponseProcessProposal.status": return protoreflect.ValueOfEnum(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ProcessProposalResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseProcessProposal")) } - panic(fmt.Errorf("message cometbft.abci.v2.ProcessProposalResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseProcessProposal does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_ProcessProposalResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_ResponseProcessProposal) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.ProcessProposalResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.ResponseProcessProposal", d.FullName())) } panic("unreachable") } @@ -22314,7 +21782,7 @@ func (x *fastReflection_ProcessProposalResponse) WhichOneof(d protoreflect.Oneof // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_ProcessProposalResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_ResponseProcessProposal) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -22325,7 +21793,7 @@ func (x *fastReflection_ProcessProposalResponse) GetUnknown() protoreflect.RawFi // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ProcessProposalResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_ResponseProcessProposal) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -22337,7 +21805,7 @@ func (x *fastReflection_ProcessProposalResponse) SetUnknown(fields protoreflect. // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_ProcessProposalResponse) IsValid() bool { +func (x *fastReflection_ResponseProcessProposal) IsValid() bool { return x != nil } @@ -22347,9 +21815,9 @@ func (x *fastReflection_ProcessProposalResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_ProcessProposalResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_ResponseProcessProposal) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*ProcessProposalResponse) + x := input.Message.Interface().(*ResponseProcessProposal) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -22374,7 +21842,7 @@ func (x *fastReflection_ProcessProposalResponse) ProtoMethods() *protoiface.Meth } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*ProcessProposalResponse) + x := input.Message.Interface().(*ResponseProcessProposal) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -22409,7 +21877,7 @@ func (x *fastReflection_ProcessProposalResponse) ProtoMethods() *protoiface.Meth }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*ProcessProposalResponse) + x := input.Message.Interface().(*ResponseProcessProposal) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -22441,10 +21909,10 @@ func (x *fastReflection_ProcessProposalResponse) ProtoMethods() *protoiface.Meth fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ProcessProposalResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ResponseProcessProposal: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ProcessProposalResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ResponseProcessProposal: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -22461,7 +21929,7 @@ func (x *fastReflection_ProcessProposalResponse) ProtoMethods() *protoiface.Meth } b := dAtA[iNdEx] iNdEx++ - x.Status |= ProcessProposalStatus(b&0x7F) << shift + x.Status |= ResponseProcessProposal_ProposalStatus(b&0x7F) << shift if b < 0x80 { break } @@ -22502,28 +21970,26 @@ func (x *fastReflection_ProcessProposalResponse) ProtoMethods() *protoiface.Meth } var ( - md_ExtendVoteResponse protoreflect.MessageDescriptor - fd_ExtendVoteResponse_vote_extension protoreflect.FieldDescriptor - fd_ExtendVoteResponse_non_rp_extension protoreflect.FieldDescriptor + md_ResponseExtendVote protoreflect.MessageDescriptor + fd_ResponseExtendVote_vote_extension protoreflect.FieldDescriptor ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_ExtendVoteResponse = File_cometbft_abci_v2_types_proto.Messages().ByName("ExtendVoteResponse") - fd_ExtendVoteResponse_vote_extension = md_ExtendVoteResponse.Fields().ByName("vote_extension") - fd_ExtendVoteResponse_non_rp_extension = md_ExtendVoteResponse.Fields().ByName("non_rp_extension") + file_tendermint_abci_types_proto_init() + md_ResponseExtendVote = File_tendermint_abci_types_proto.Messages().ByName("ResponseExtendVote") + fd_ResponseExtendVote_vote_extension = md_ResponseExtendVote.Fields().ByName("vote_extension") } -var _ protoreflect.Message = (*fastReflection_ExtendVoteResponse)(nil) +var _ protoreflect.Message = (*fastReflection_ResponseExtendVote)(nil) -type fastReflection_ExtendVoteResponse ExtendVoteResponse +type fastReflection_ResponseExtendVote ResponseExtendVote -func (x *ExtendVoteResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_ExtendVoteResponse)(x) +func (x *ResponseExtendVote) ProtoReflect() protoreflect.Message { + return (*fastReflection_ResponseExtendVote)(x) } -func (x *ExtendVoteResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[32] +func (x *ResponseExtendVote) slowProtoReflect() protoreflect.Message { + mi := &file_tendermint_abci_types_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -22534,43 +22000,43 @@ func (x *ExtendVoteResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_ExtendVoteResponse_messageType fastReflection_ExtendVoteResponse_messageType -var _ protoreflect.MessageType = fastReflection_ExtendVoteResponse_messageType{} +var _fastReflection_ResponseExtendVote_messageType fastReflection_ResponseExtendVote_messageType +var _ protoreflect.MessageType = fastReflection_ResponseExtendVote_messageType{} -type fastReflection_ExtendVoteResponse_messageType struct{} +type fastReflection_ResponseExtendVote_messageType struct{} -func (x fastReflection_ExtendVoteResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_ExtendVoteResponse)(nil) +func (x fastReflection_ResponseExtendVote_messageType) Zero() protoreflect.Message { + return (*fastReflection_ResponseExtendVote)(nil) } -func (x fastReflection_ExtendVoteResponse_messageType) New() protoreflect.Message { - return new(fastReflection_ExtendVoteResponse) +func (x fastReflection_ResponseExtendVote_messageType) New() protoreflect.Message { + return new(fastReflection_ResponseExtendVote) } -func (x fastReflection_ExtendVoteResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_ExtendVoteResponse +func (x fastReflection_ResponseExtendVote_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ResponseExtendVote } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_ExtendVoteResponse) Descriptor() protoreflect.MessageDescriptor { - return md_ExtendVoteResponse +func (x *fastReflection_ResponseExtendVote) Descriptor() protoreflect.MessageDescriptor { + return md_ResponseExtendVote } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_ExtendVoteResponse) Type() protoreflect.MessageType { - return _fastReflection_ExtendVoteResponse_messageType +func (x *fastReflection_ResponseExtendVote) Type() protoreflect.MessageType { + return _fastReflection_ResponseExtendVote_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_ExtendVoteResponse) New() protoreflect.Message { - return new(fastReflection_ExtendVoteResponse) +func (x *fastReflection_ResponseExtendVote) New() protoreflect.Message { + return new(fastReflection_ResponseExtendVote) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_ExtendVoteResponse) Interface() protoreflect.ProtoMessage { - return (*ExtendVoteResponse)(x) +func (x *fastReflection_ResponseExtendVote) Interface() protoreflect.ProtoMessage { + return (*ResponseExtendVote)(x) } // Range iterates over every populated field in an undefined order, @@ -22578,16 +22044,10 @@ func (x *fastReflection_ExtendVoteResponse) Interface() protoreflect.ProtoMessag // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_ExtendVoteResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_ResponseExtendVote) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if len(x.VoteExtension) != 0 { value := protoreflect.ValueOfBytes(x.VoteExtension) - if !f(fd_ExtendVoteResponse_vote_extension, value) { - return - } - } - if len(x.NonRpExtension) != 0 { - value := protoreflect.ValueOfBytes(x.NonRpExtension) - if !f(fd_ExtendVoteResponse_non_rp_extension, value) { + if !f(fd_ResponseExtendVote_vote_extension, value) { return } } @@ -22604,17 +22064,15 @@ func (x *fastReflection_ExtendVoteResponse) Range(f func(protoreflect.FieldDescr // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_ExtendVoteResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_ResponseExtendVote) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.ExtendVoteResponse.vote_extension": + case "tendermint.abci.ResponseExtendVote.vote_extension": return len(x.VoteExtension) != 0 - case "cometbft.abci.v2.ExtendVoteResponse.non_rp_extension": - return len(x.NonRpExtension) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExtendVoteResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseExtendVote")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExtendVoteResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseExtendVote does not contain field %s", fd.FullName())) } } @@ -22624,17 +22082,15 @@ func (x *fastReflection_ExtendVoteResponse) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExtendVoteResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_ResponseExtendVote) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.ExtendVoteResponse.vote_extension": + case "tendermint.abci.ResponseExtendVote.vote_extension": x.VoteExtension = nil - case "cometbft.abci.v2.ExtendVoteResponse.non_rp_extension": - x.NonRpExtension = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExtendVoteResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseExtendVote")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExtendVoteResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseExtendVote does not contain field %s", fd.FullName())) } } @@ -22644,19 +22100,16 @@ func (x *fastReflection_ExtendVoteResponse) Clear(fd protoreflect.FieldDescripto // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_ExtendVoteResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseExtendVote) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.ExtendVoteResponse.vote_extension": + case "tendermint.abci.ResponseExtendVote.vote_extension": value := x.VoteExtension return protoreflect.ValueOfBytes(value) - case "cometbft.abci.v2.ExtendVoteResponse.non_rp_extension": - value := x.NonRpExtension - return protoreflect.ValueOfBytes(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExtendVoteResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseExtendVote")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExtendVoteResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseExtendVote does not contain field %s", descriptor.FullName())) } } @@ -22670,17 +22123,15 @@ func (x *fastReflection_ExtendVoteResponse) Get(descriptor protoreflect.FieldDes // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExtendVoteResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_ResponseExtendVote) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.ExtendVoteResponse.vote_extension": + case "tendermint.abci.ResponseExtendVote.vote_extension": x.VoteExtension = value.Bytes() - case "cometbft.abci.v2.ExtendVoteResponse.non_rp_extension": - x.NonRpExtension = value.Bytes() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExtendVoteResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseExtendVote")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExtendVoteResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseExtendVote does not contain field %s", fd.FullName())) } } @@ -22694,44 +22145,40 @@ func (x *fastReflection_ExtendVoteResponse) Set(fd protoreflect.FieldDescriptor, // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExtendVoteResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseExtendVote) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.ExtendVoteResponse.vote_extension": - panic(fmt.Errorf("field vote_extension of message cometbft.abci.v2.ExtendVoteResponse is not mutable")) - case "cometbft.abci.v2.ExtendVoteResponse.non_rp_extension": - panic(fmt.Errorf("field non_rp_extension of message cometbft.abci.v2.ExtendVoteResponse is not mutable")) + case "tendermint.abci.ResponseExtendVote.vote_extension": + panic(fmt.Errorf("field vote_extension of message tendermint.abci.ResponseExtendVote is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExtendVoteResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseExtendVote")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExtendVoteResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseExtendVote does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_ExtendVoteResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseExtendVote) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.ExtendVoteResponse.vote_extension": - return protoreflect.ValueOfBytes(nil) - case "cometbft.abci.v2.ExtendVoteResponse.non_rp_extension": + case "tendermint.abci.ResponseExtendVote.vote_extension": return protoreflect.ValueOfBytes(nil) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExtendVoteResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseExtendVote")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExtendVoteResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseExtendVote does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_ExtendVoteResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_ResponseExtendVote) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.ExtendVoteResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.ResponseExtendVote", d.FullName())) } panic("unreachable") } @@ -22739,7 +22186,7 @@ func (x *fastReflection_ExtendVoteResponse) WhichOneof(d protoreflect.OneofDescr // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_ExtendVoteResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_ResponseExtendVote) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -22750,7 +22197,7 @@ func (x *fastReflection_ExtendVoteResponse) GetUnknown() protoreflect.RawFields // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExtendVoteResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_ResponseExtendVote) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -22762,7 +22209,7 @@ func (x *fastReflection_ExtendVoteResponse) SetUnknown(fields protoreflect.RawFi // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_ExtendVoteResponse) IsValid() bool { +func (x *fastReflection_ResponseExtendVote) IsValid() bool { return x != nil } @@ -22772,9 +22219,9 @@ func (x *fastReflection_ExtendVoteResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_ExtendVoteResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_ResponseExtendVote) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*ExtendVoteResponse) + x := input.Message.Interface().(*ResponseExtendVote) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -22790,10 +22237,6 @@ func (x *fastReflection_ExtendVoteResponse) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.NonRpExtension) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -22804,7 +22247,7 @@ func (x *fastReflection_ExtendVoteResponse) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*ExtendVoteResponse) + x := input.Message.Interface().(*ResponseExtendVote) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -22823,13 +22266,6 @@ func (x *fastReflection_ExtendVoteResponse) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.NonRpExtension) > 0 { - i -= len(x.NonRpExtension) - copy(dAtA[i:], x.NonRpExtension) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NonRpExtension))) - i-- - dAtA[i] = 0x12 - } if len(x.VoteExtension) > 0 { i -= len(x.VoteExtension) copy(dAtA[i:], x.VoteExtension) @@ -22848,7 +22284,7 @@ func (x *fastReflection_ExtendVoteResponse) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*ExtendVoteResponse) + x := input.Message.Interface().(*ResponseExtendVote) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -22880,10 +22316,10 @@ func (x *fastReflection_ExtendVoteResponse) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ExtendVoteResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ResponseExtendVote: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ExtendVoteResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ResponseExtendVote: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -22920,40 +22356,6 @@ func (x *fastReflection_ExtendVoteResponse) ProtoMethods() *protoiface.Methods { x.VoteExtension = []byte{} } iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NonRpExtension", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.NonRpExtension = append(x.NonRpExtension[:0], dAtA[iNdEx:postIndex]...) - if x.NonRpExtension == nil { - x.NonRpExtension = []byte{} - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -22990,26 +22392,26 @@ func (x *fastReflection_ExtendVoteResponse) ProtoMethods() *protoiface.Methods { } var ( - md_VerifyVoteExtensionResponse protoreflect.MessageDescriptor - fd_VerifyVoteExtensionResponse_status protoreflect.FieldDescriptor + md_ResponseVerifyVoteExtension protoreflect.MessageDescriptor + fd_ResponseVerifyVoteExtension_status protoreflect.FieldDescriptor ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_VerifyVoteExtensionResponse = File_cometbft_abci_v2_types_proto.Messages().ByName("VerifyVoteExtensionResponse") - fd_VerifyVoteExtensionResponse_status = md_VerifyVoteExtensionResponse.Fields().ByName("status") + file_tendermint_abci_types_proto_init() + md_ResponseVerifyVoteExtension = File_tendermint_abci_types_proto.Messages().ByName("ResponseVerifyVoteExtension") + fd_ResponseVerifyVoteExtension_status = md_ResponseVerifyVoteExtension.Fields().ByName("status") } -var _ protoreflect.Message = (*fastReflection_VerifyVoteExtensionResponse)(nil) +var _ protoreflect.Message = (*fastReflection_ResponseVerifyVoteExtension)(nil) -type fastReflection_VerifyVoteExtensionResponse VerifyVoteExtensionResponse +type fastReflection_ResponseVerifyVoteExtension ResponseVerifyVoteExtension -func (x *VerifyVoteExtensionResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_VerifyVoteExtensionResponse)(x) +func (x *ResponseVerifyVoteExtension) ProtoReflect() protoreflect.Message { + return (*fastReflection_ResponseVerifyVoteExtension)(x) } -func (x *VerifyVoteExtensionResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[33] +func (x *ResponseVerifyVoteExtension) slowProtoReflect() protoreflect.Message { + mi := &file_tendermint_abci_types_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -23020,43 +22422,43 @@ func (x *VerifyVoteExtensionResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_VerifyVoteExtensionResponse_messageType fastReflection_VerifyVoteExtensionResponse_messageType -var _ protoreflect.MessageType = fastReflection_VerifyVoteExtensionResponse_messageType{} +var _fastReflection_ResponseVerifyVoteExtension_messageType fastReflection_ResponseVerifyVoteExtension_messageType +var _ protoreflect.MessageType = fastReflection_ResponseVerifyVoteExtension_messageType{} -type fastReflection_VerifyVoteExtensionResponse_messageType struct{} +type fastReflection_ResponseVerifyVoteExtension_messageType struct{} -func (x fastReflection_VerifyVoteExtensionResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_VerifyVoteExtensionResponse)(nil) +func (x fastReflection_ResponseVerifyVoteExtension_messageType) Zero() protoreflect.Message { + return (*fastReflection_ResponseVerifyVoteExtension)(nil) } -func (x fastReflection_VerifyVoteExtensionResponse_messageType) New() protoreflect.Message { - return new(fastReflection_VerifyVoteExtensionResponse) +func (x fastReflection_ResponseVerifyVoteExtension_messageType) New() protoreflect.Message { + return new(fastReflection_ResponseVerifyVoteExtension) } -func (x fastReflection_VerifyVoteExtensionResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_VerifyVoteExtensionResponse +func (x fastReflection_ResponseVerifyVoteExtension_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ResponseVerifyVoteExtension } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_VerifyVoteExtensionResponse) Descriptor() protoreflect.MessageDescriptor { - return md_VerifyVoteExtensionResponse +func (x *fastReflection_ResponseVerifyVoteExtension) Descriptor() protoreflect.MessageDescriptor { + return md_ResponseVerifyVoteExtension } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_VerifyVoteExtensionResponse) Type() protoreflect.MessageType { - return _fastReflection_VerifyVoteExtensionResponse_messageType +func (x *fastReflection_ResponseVerifyVoteExtension) Type() protoreflect.MessageType { + return _fastReflection_ResponseVerifyVoteExtension_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_VerifyVoteExtensionResponse) New() protoreflect.Message { - return new(fastReflection_VerifyVoteExtensionResponse) +func (x *fastReflection_ResponseVerifyVoteExtension) New() protoreflect.Message { + return new(fastReflection_ResponseVerifyVoteExtension) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_VerifyVoteExtensionResponse) Interface() protoreflect.ProtoMessage { - return (*VerifyVoteExtensionResponse)(x) +func (x *fastReflection_ResponseVerifyVoteExtension) Interface() protoreflect.ProtoMessage { + return (*ResponseVerifyVoteExtension)(x) } // Range iterates over every populated field in an undefined order, @@ -23064,10 +22466,10 @@ func (x *fastReflection_VerifyVoteExtensionResponse) Interface() protoreflect.Pr // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_VerifyVoteExtensionResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_ResponseVerifyVoteExtension) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Status != 0 { value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Status)) - if !f(fd_VerifyVoteExtensionResponse_status, value) { + if !f(fd_ResponseVerifyVoteExtension_status, value) { return } } @@ -23084,15 +22486,15 @@ func (x *fastReflection_VerifyVoteExtensionResponse) Range(f func(protoreflect.F // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_VerifyVoteExtensionResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_ResponseVerifyVoteExtension) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.VerifyVoteExtensionResponse.status": + case "tendermint.abci.ResponseVerifyVoteExtension.status": return x.Status != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.VerifyVoteExtensionResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseVerifyVoteExtension")) } - panic(fmt.Errorf("message cometbft.abci.v2.VerifyVoteExtensionResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseVerifyVoteExtension does not contain field %s", fd.FullName())) } } @@ -23102,15 +22504,15 @@ func (x *fastReflection_VerifyVoteExtensionResponse) Has(fd protoreflect.FieldDe // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_VerifyVoteExtensionResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_ResponseVerifyVoteExtension) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.VerifyVoteExtensionResponse.status": + case "tendermint.abci.ResponseVerifyVoteExtension.status": x.Status = 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.VerifyVoteExtensionResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseVerifyVoteExtension")) } - panic(fmt.Errorf("message cometbft.abci.v2.VerifyVoteExtensionResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseVerifyVoteExtension does not contain field %s", fd.FullName())) } } @@ -23120,16 +22522,16 @@ func (x *fastReflection_VerifyVoteExtensionResponse) Clear(fd protoreflect.Field // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_VerifyVoteExtensionResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseVerifyVoteExtension) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.VerifyVoteExtensionResponse.status": + case "tendermint.abci.ResponseVerifyVoteExtension.status": value := x.Status return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.VerifyVoteExtensionResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseVerifyVoteExtension")) } - panic(fmt.Errorf("message cometbft.abci.v2.VerifyVoteExtensionResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseVerifyVoteExtension does not contain field %s", descriptor.FullName())) } } @@ -23143,15 +22545,15 @@ func (x *fastReflection_VerifyVoteExtensionResponse) Get(descriptor protoreflect // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_VerifyVoteExtensionResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_ResponseVerifyVoteExtension) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.VerifyVoteExtensionResponse.status": - x.Status = (VerifyVoteExtensionStatus)(value.Enum()) + case "tendermint.abci.ResponseVerifyVoteExtension.status": + x.Status = (ResponseVerifyVoteExtension_VerifyStatus)(value.Enum()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.VerifyVoteExtensionResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseVerifyVoteExtension")) } - panic(fmt.Errorf("message cometbft.abci.v2.VerifyVoteExtensionResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseVerifyVoteExtension does not contain field %s", fd.FullName())) } } @@ -23165,40 +22567,40 @@ func (x *fastReflection_VerifyVoteExtensionResponse) Set(fd protoreflect.FieldDe // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_VerifyVoteExtensionResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseVerifyVoteExtension) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.VerifyVoteExtensionResponse.status": - panic(fmt.Errorf("field status of message cometbft.abci.v2.VerifyVoteExtensionResponse is not mutable")) + case "tendermint.abci.ResponseVerifyVoteExtension.status": + panic(fmt.Errorf("field status of message tendermint.abci.ResponseVerifyVoteExtension is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.VerifyVoteExtensionResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseVerifyVoteExtension")) } - panic(fmt.Errorf("message cometbft.abci.v2.VerifyVoteExtensionResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseVerifyVoteExtension does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_VerifyVoteExtensionResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseVerifyVoteExtension) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.VerifyVoteExtensionResponse.status": + case "tendermint.abci.ResponseVerifyVoteExtension.status": return protoreflect.ValueOfEnum(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.VerifyVoteExtensionResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseVerifyVoteExtension")) } - panic(fmt.Errorf("message cometbft.abci.v2.VerifyVoteExtensionResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseVerifyVoteExtension does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_VerifyVoteExtensionResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_ResponseVerifyVoteExtension) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.VerifyVoteExtensionResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.ResponseVerifyVoteExtension", d.FullName())) } panic("unreachable") } @@ -23206,7 +22608,7 @@ func (x *fastReflection_VerifyVoteExtensionResponse) WhichOneof(d protoreflect.O // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_VerifyVoteExtensionResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_ResponseVerifyVoteExtension) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -23217,7 +22619,7 @@ func (x *fastReflection_VerifyVoteExtensionResponse) GetUnknown() protoreflect.R // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_VerifyVoteExtensionResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_ResponseVerifyVoteExtension) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -23229,7 +22631,7 @@ func (x *fastReflection_VerifyVoteExtensionResponse) SetUnknown(fields protorefl // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_VerifyVoteExtensionResponse) IsValid() bool { +func (x *fastReflection_ResponseVerifyVoteExtension) IsValid() bool { return x != nil } @@ -23239,9 +22641,9 @@ func (x *fastReflection_VerifyVoteExtensionResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_VerifyVoteExtensionResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_ResponseVerifyVoteExtension) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*VerifyVoteExtensionResponse) + x := input.Message.Interface().(*ResponseVerifyVoteExtension) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -23266,7 +22668,7 @@ func (x *fastReflection_VerifyVoteExtensionResponse) ProtoMethods() *protoiface. } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*VerifyVoteExtensionResponse) + x := input.Message.Interface().(*ResponseVerifyVoteExtension) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -23301,7 +22703,7 @@ func (x *fastReflection_VerifyVoteExtensionResponse) ProtoMethods() *protoiface. }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*VerifyVoteExtensionResponse) + x := input.Message.Interface().(*ResponseVerifyVoteExtension) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -23333,10 +22735,10 @@ func (x *fastReflection_VerifyVoteExtensionResponse) ProtoMethods() *protoiface. fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: VerifyVoteExtensionResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ResponseVerifyVoteExtension: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: VerifyVoteExtensionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ResponseVerifyVoteExtension: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -23353,7 +22755,7 @@ func (x *fastReflection_VerifyVoteExtensionResponse) ProtoMethods() *protoiface. } b := dAtA[iNdEx] iNdEx++ - x.Status |= VerifyVoteExtensionStatus(b&0x7F) << shift + x.Status |= ResponseVerifyVoteExtension_VerifyStatus(b&0x7F) << shift if b < 0x80 { break } @@ -23393,190 +22795,188 @@ func (x *fastReflection_VerifyVoteExtensionResponse) ProtoMethods() *protoiface. } } -var _ protoreflect.List = (*_FinalizeBlockResponse_1_list)(nil) +var _ protoreflect.List = (*_ResponseFinalizeBlock_1_list)(nil) -type _FinalizeBlockResponse_1_list struct { +type _ResponseFinalizeBlock_1_list struct { list *[]*Event } -func (x *_FinalizeBlockResponse_1_list) Len() int { +func (x *_ResponseFinalizeBlock_1_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_FinalizeBlockResponse_1_list) Get(i int) protoreflect.Value { +func (x *_ResponseFinalizeBlock_1_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_FinalizeBlockResponse_1_list) Set(i int, value protoreflect.Value) { +func (x *_ResponseFinalizeBlock_1_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*Event) (*x.list)[i] = concreteValue } -func (x *_FinalizeBlockResponse_1_list) Append(value protoreflect.Value) { +func (x *_ResponseFinalizeBlock_1_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*Event) *x.list = append(*x.list, concreteValue) } -func (x *_FinalizeBlockResponse_1_list) AppendMutable() protoreflect.Value { +func (x *_ResponseFinalizeBlock_1_list) AppendMutable() protoreflect.Value { v := new(Event) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_FinalizeBlockResponse_1_list) Truncate(n int) { +func (x *_ResponseFinalizeBlock_1_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_FinalizeBlockResponse_1_list) NewElement() protoreflect.Value { +func (x *_ResponseFinalizeBlock_1_list) NewElement() protoreflect.Value { v := new(Event) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_FinalizeBlockResponse_1_list) IsValid() bool { +func (x *_ResponseFinalizeBlock_1_list) IsValid() bool { return x.list != nil } -var _ protoreflect.List = (*_FinalizeBlockResponse_2_list)(nil) +var _ protoreflect.List = (*_ResponseFinalizeBlock_2_list)(nil) -type _FinalizeBlockResponse_2_list struct { +type _ResponseFinalizeBlock_2_list struct { list *[]*ExecTxResult } -func (x *_FinalizeBlockResponse_2_list) Len() int { +func (x *_ResponseFinalizeBlock_2_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_FinalizeBlockResponse_2_list) Get(i int) protoreflect.Value { +func (x *_ResponseFinalizeBlock_2_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_FinalizeBlockResponse_2_list) Set(i int, value protoreflect.Value) { +func (x *_ResponseFinalizeBlock_2_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*ExecTxResult) (*x.list)[i] = concreteValue } -func (x *_FinalizeBlockResponse_2_list) Append(value protoreflect.Value) { +func (x *_ResponseFinalizeBlock_2_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*ExecTxResult) *x.list = append(*x.list, concreteValue) } -func (x *_FinalizeBlockResponse_2_list) AppendMutable() protoreflect.Value { +func (x *_ResponseFinalizeBlock_2_list) AppendMutable() protoreflect.Value { v := new(ExecTxResult) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_FinalizeBlockResponse_2_list) Truncate(n int) { +func (x *_ResponseFinalizeBlock_2_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_FinalizeBlockResponse_2_list) NewElement() protoreflect.Value { +func (x *_ResponseFinalizeBlock_2_list) NewElement() protoreflect.Value { v := new(ExecTxResult) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_FinalizeBlockResponse_2_list) IsValid() bool { +func (x *_ResponseFinalizeBlock_2_list) IsValid() bool { return x.list != nil } -var _ protoreflect.List = (*_FinalizeBlockResponse_3_list)(nil) +var _ protoreflect.List = (*_ResponseFinalizeBlock_3_list)(nil) -type _FinalizeBlockResponse_3_list struct { +type _ResponseFinalizeBlock_3_list struct { list *[]*ValidatorUpdate } -func (x *_FinalizeBlockResponse_3_list) Len() int { +func (x *_ResponseFinalizeBlock_3_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_FinalizeBlockResponse_3_list) Get(i int) protoreflect.Value { +func (x *_ResponseFinalizeBlock_3_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_FinalizeBlockResponse_3_list) Set(i int, value protoreflect.Value) { +func (x *_ResponseFinalizeBlock_3_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*ValidatorUpdate) (*x.list)[i] = concreteValue } -func (x *_FinalizeBlockResponse_3_list) Append(value protoreflect.Value) { +func (x *_ResponseFinalizeBlock_3_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*ValidatorUpdate) *x.list = append(*x.list, concreteValue) } -func (x *_FinalizeBlockResponse_3_list) AppendMutable() protoreflect.Value { +func (x *_ResponseFinalizeBlock_3_list) AppendMutable() protoreflect.Value { v := new(ValidatorUpdate) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_FinalizeBlockResponse_3_list) Truncate(n int) { +func (x *_ResponseFinalizeBlock_3_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_FinalizeBlockResponse_3_list) NewElement() protoreflect.Value { +func (x *_ResponseFinalizeBlock_3_list) NewElement() protoreflect.Value { v := new(ValidatorUpdate) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_FinalizeBlockResponse_3_list) IsValid() bool { +func (x *_ResponseFinalizeBlock_3_list) IsValid() bool { return x.list != nil } var ( - md_FinalizeBlockResponse protoreflect.MessageDescriptor - fd_FinalizeBlockResponse_events protoreflect.FieldDescriptor - fd_FinalizeBlockResponse_tx_results protoreflect.FieldDescriptor - fd_FinalizeBlockResponse_validator_updates protoreflect.FieldDescriptor - fd_FinalizeBlockResponse_consensus_param_updates protoreflect.FieldDescriptor - fd_FinalizeBlockResponse_app_hash protoreflect.FieldDescriptor - fd_FinalizeBlockResponse_next_block_delay protoreflect.FieldDescriptor + md_ResponseFinalizeBlock protoreflect.MessageDescriptor + fd_ResponseFinalizeBlock_events protoreflect.FieldDescriptor + fd_ResponseFinalizeBlock_tx_results protoreflect.FieldDescriptor + fd_ResponseFinalizeBlock_validator_updates protoreflect.FieldDescriptor + fd_ResponseFinalizeBlock_consensus_param_updates protoreflect.FieldDescriptor + fd_ResponseFinalizeBlock_app_hash protoreflect.FieldDescriptor ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_FinalizeBlockResponse = File_cometbft_abci_v2_types_proto.Messages().ByName("FinalizeBlockResponse") - fd_FinalizeBlockResponse_events = md_FinalizeBlockResponse.Fields().ByName("events") - fd_FinalizeBlockResponse_tx_results = md_FinalizeBlockResponse.Fields().ByName("tx_results") - fd_FinalizeBlockResponse_validator_updates = md_FinalizeBlockResponse.Fields().ByName("validator_updates") - fd_FinalizeBlockResponse_consensus_param_updates = md_FinalizeBlockResponse.Fields().ByName("consensus_param_updates") - fd_FinalizeBlockResponse_app_hash = md_FinalizeBlockResponse.Fields().ByName("app_hash") - fd_FinalizeBlockResponse_next_block_delay = md_FinalizeBlockResponse.Fields().ByName("next_block_delay") + file_tendermint_abci_types_proto_init() + md_ResponseFinalizeBlock = File_tendermint_abci_types_proto.Messages().ByName("ResponseFinalizeBlock") + fd_ResponseFinalizeBlock_events = md_ResponseFinalizeBlock.Fields().ByName("events") + fd_ResponseFinalizeBlock_tx_results = md_ResponseFinalizeBlock.Fields().ByName("tx_results") + fd_ResponseFinalizeBlock_validator_updates = md_ResponseFinalizeBlock.Fields().ByName("validator_updates") + fd_ResponseFinalizeBlock_consensus_param_updates = md_ResponseFinalizeBlock.Fields().ByName("consensus_param_updates") + fd_ResponseFinalizeBlock_app_hash = md_ResponseFinalizeBlock.Fields().ByName("app_hash") } -var _ protoreflect.Message = (*fastReflection_FinalizeBlockResponse)(nil) +var _ protoreflect.Message = (*fastReflection_ResponseFinalizeBlock)(nil) -type fastReflection_FinalizeBlockResponse FinalizeBlockResponse +type fastReflection_ResponseFinalizeBlock ResponseFinalizeBlock -func (x *FinalizeBlockResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_FinalizeBlockResponse)(x) +func (x *ResponseFinalizeBlock) ProtoReflect() protoreflect.Message { + return (*fastReflection_ResponseFinalizeBlock)(x) } -func (x *FinalizeBlockResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[34] +func (x *ResponseFinalizeBlock) slowProtoReflect() protoreflect.Message { + mi := &file_tendermint_abci_types_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -23587,43 +22987,43 @@ func (x *FinalizeBlockResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_FinalizeBlockResponse_messageType fastReflection_FinalizeBlockResponse_messageType -var _ protoreflect.MessageType = fastReflection_FinalizeBlockResponse_messageType{} +var _fastReflection_ResponseFinalizeBlock_messageType fastReflection_ResponseFinalizeBlock_messageType +var _ protoreflect.MessageType = fastReflection_ResponseFinalizeBlock_messageType{} -type fastReflection_FinalizeBlockResponse_messageType struct{} +type fastReflection_ResponseFinalizeBlock_messageType struct{} -func (x fastReflection_FinalizeBlockResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_FinalizeBlockResponse)(nil) +func (x fastReflection_ResponseFinalizeBlock_messageType) Zero() protoreflect.Message { + return (*fastReflection_ResponseFinalizeBlock)(nil) } -func (x fastReflection_FinalizeBlockResponse_messageType) New() protoreflect.Message { - return new(fastReflection_FinalizeBlockResponse) +func (x fastReflection_ResponseFinalizeBlock_messageType) New() protoreflect.Message { + return new(fastReflection_ResponseFinalizeBlock) } -func (x fastReflection_FinalizeBlockResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_FinalizeBlockResponse +func (x fastReflection_ResponseFinalizeBlock_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ResponseFinalizeBlock } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_FinalizeBlockResponse) Descriptor() protoreflect.MessageDescriptor { - return md_FinalizeBlockResponse +func (x *fastReflection_ResponseFinalizeBlock) Descriptor() protoreflect.MessageDescriptor { + return md_ResponseFinalizeBlock } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_FinalizeBlockResponse) Type() protoreflect.MessageType { - return _fastReflection_FinalizeBlockResponse_messageType +func (x *fastReflection_ResponseFinalizeBlock) Type() protoreflect.MessageType { + return _fastReflection_ResponseFinalizeBlock_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_FinalizeBlockResponse) New() protoreflect.Message { - return new(fastReflection_FinalizeBlockResponse) +func (x *fastReflection_ResponseFinalizeBlock) New() protoreflect.Message { + return new(fastReflection_ResponseFinalizeBlock) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_FinalizeBlockResponse) Interface() protoreflect.ProtoMessage { - return (*FinalizeBlockResponse)(x) +func (x *fastReflection_ResponseFinalizeBlock) Interface() protoreflect.ProtoMessage { + return (*ResponseFinalizeBlock)(x) } // Range iterates over every populated field in an undefined order, @@ -23631,40 +23031,34 @@ func (x *fastReflection_FinalizeBlockResponse) Interface() protoreflect.ProtoMes // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_FinalizeBlockResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_ResponseFinalizeBlock) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if len(x.Events) != 0 { - value := protoreflect.ValueOfList(&_FinalizeBlockResponse_1_list{list: &x.Events}) - if !f(fd_FinalizeBlockResponse_events, value) { + value := protoreflect.ValueOfList(&_ResponseFinalizeBlock_1_list{list: &x.Events}) + if !f(fd_ResponseFinalizeBlock_events, value) { return } } if len(x.TxResults) != 0 { - value := protoreflect.ValueOfList(&_FinalizeBlockResponse_2_list{list: &x.TxResults}) - if !f(fd_FinalizeBlockResponse_tx_results, value) { + value := protoreflect.ValueOfList(&_ResponseFinalizeBlock_2_list{list: &x.TxResults}) + if !f(fd_ResponseFinalizeBlock_tx_results, value) { return } } if len(x.ValidatorUpdates) != 0 { - value := protoreflect.ValueOfList(&_FinalizeBlockResponse_3_list{list: &x.ValidatorUpdates}) - if !f(fd_FinalizeBlockResponse_validator_updates, value) { + value := protoreflect.ValueOfList(&_ResponseFinalizeBlock_3_list{list: &x.ValidatorUpdates}) + if !f(fd_ResponseFinalizeBlock_validator_updates, value) { return } } if x.ConsensusParamUpdates != nil { value := protoreflect.ValueOfMessage(x.ConsensusParamUpdates.ProtoReflect()) - if !f(fd_FinalizeBlockResponse_consensus_param_updates, value) { + if !f(fd_ResponseFinalizeBlock_consensus_param_updates, value) { return } } if len(x.AppHash) != 0 { value := protoreflect.ValueOfBytes(x.AppHash) - if !f(fd_FinalizeBlockResponse_app_hash, value) { - return - } - } - if x.NextBlockDelay != nil { - value := protoreflect.ValueOfMessage(x.NextBlockDelay.ProtoReflect()) - if !f(fd_FinalizeBlockResponse_next_block_delay, value) { + if !f(fd_ResponseFinalizeBlock_app_hash, value) { return } } @@ -23681,25 +23075,23 @@ func (x *fastReflection_FinalizeBlockResponse) Range(f func(protoreflect.FieldDe // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_FinalizeBlockResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_ResponseFinalizeBlock) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.FinalizeBlockResponse.events": + case "tendermint.abci.ResponseFinalizeBlock.events": return len(x.Events) != 0 - case "cometbft.abci.v2.FinalizeBlockResponse.tx_results": + case "tendermint.abci.ResponseFinalizeBlock.tx_results": return len(x.TxResults) != 0 - case "cometbft.abci.v2.FinalizeBlockResponse.validator_updates": + case "tendermint.abci.ResponseFinalizeBlock.validator_updates": return len(x.ValidatorUpdates) != 0 - case "cometbft.abci.v2.FinalizeBlockResponse.consensus_param_updates": + case "tendermint.abci.ResponseFinalizeBlock.consensus_param_updates": return x.ConsensusParamUpdates != nil - case "cometbft.abci.v2.FinalizeBlockResponse.app_hash": + case "tendermint.abci.ResponseFinalizeBlock.app_hash": return len(x.AppHash) != 0 - case "cometbft.abci.v2.FinalizeBlockResponse.next_block_delay": - return x.NextBlockDelay != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.FinalizeBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseFinalizeBlock")) } - panic(fmt.Errorf("message cometbft.abci.v2.FinalizeBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseFinalizeBlock does not contain field %s", fd.FullName())) } } @@ -23709,25 +23101,23 @@ func (x *fastReflection_FinalizeBlockResponse) Has(fd protoreflect.FieldDescript // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_FinalizeBlockResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_ResponseFinalizeBlock) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.FinalizeBlockResponse.events": + case "tendermint.abci.ResponseFinalizeBlock.events": x.Events = nil - case "cometbft.abci.v2.FinalizeBlockResponse.tx_results": + case "tendermint.abci.ResponseFinalizeBlock.tx_results": x.TxResults = nil - case "cometbft.abci.v2.FinalizeBlockResponse.validator_updates": + case "tendermint.abci.ResponseFinalizeBlock.validator_updates": x.ValidatorUpdates = nil - case "cometbft.abci.v2.FinalizeBlockResponse.consensus_param_updates": + case "tendermint.abci.ResponseFinalizeBlock.consensus_param_updates": x.ConsensusParamUpdates = nil - case "cometbft.abci.v2.FinalizeBlockResponse.app_hash": + case "tendermint.abci.ResponseFinalizeBlock.app_hash": x.AppHash = nil - case "cometbft.abci.v2.FinalizeBlockResponse.next_block_delay": - x.NextBlockDelay = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.FinalizeBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseFinalizeBlock")) } - panic(fmt.Errorf("message cometbft.abci.v2.FinalizeBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseFinalizeBlock does not contain field %s", fd.FullName())) } } @@ -23737,40 +23127,37 @@ func (x *fastReflection_FinalizeBlockResponse) Clear(fd protoreflect.FieldDescri // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_FinalizeBlockResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseFinalizeBlock) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.FinalizeBlockResponse.events": + case "tendermint.abci.ResponseFinalizeBlock.events": if len(x.Events) == 0 { - return protoreflect.ValueOfList(&_FinalizeBlockResponse_1_list{}) + return protoreflect.ValueOfList(&_ResponseFinalizeBlock_1_list{}) } - listValue := &_FinalizeBlockResponse_1_list{list: &x.Events} + listValue := &_ResponseFinalizeBlock_1_list{list: &x.Events} return protoreflect.ValueOfList(listValue) - case "cometbft.abci.v2.FinalizeBlockResponse.tx_results": + case "tendermint.abci.ResponseFinalizeBlock.tx_results": if len(x.TxResults) == 0 { - return protoreflect.ValueOfList(&_FinalizeBlockResponse_2_list{}) + return protoreflect.ValueOfList(&_ResponseFinalizeBlock_2_list{}) } - listValue := &_FinalizeBlockResponse_2_list{list: &x.TxResults} + listValue := &_ResponseFinalizeBlock_2_list{list: &x.TxResults} return protoreflect.ValueOfList(listValue) - case "cometbft.abci.v2.FinalizeBlockResponse.validator_updates": + case "tendermint.abci.ResponseFinalizeBlock.validator_updates": if len(x.ValidatorUpdates) == 0 { - return protoreflect.ValueOfList(&_FinalizeBlockResponse_3_list{}) + return protoreflect.ValueOfList(&_ResponseFinalizeBlock_3_list{}) } - listValue := &_FinalizeBlockResponse_3_list{list: &x.ValidatorUpdates} + listValue := &_ResponseFinalizeBlock_3_list{list: &x.ValidatorUpdates} return protoreflect.ValueOfList(listValue) - case "cometbft.abci.v2.FinalizeBlockResponse.consensus_param_updates": + case "tendermint.abci.ResponseFinalizeBlock.consensus_param_updates": value := x.ConsensusParamUpdates return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.FinalizeBlockResponse.app_hash": + case "tendermint.abci.ResponseFinalizeBlock.app_hash": value := x.AppHash return protoreflect.ValueOfBytes(value) - case "cometbft.abci.v2.FinalizeBlockResponse.next_block_delay": - value := x.NextBlockDelay - return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.FinalizeBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseFinalizeBlock")) } - panic(fmt.Errorf("message cometbft.abci.v2.FinalizeBlockResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseFinalizeBlock does not contain field %s", descriptor.FullName())) } } @@ -23784,31 +23171,29 @@ func (x *fastReflection_FinalizeBlockResponse) Get(descriptor protoreflect.Field // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_FinalizeBlockResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_ResponseFinalizeBlock) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.FinalizeBlockResponse.events": + case "tendermint.abci.ResponseFinalizeBlock.events": lv := value.List() - clv := lv.(*_FinalizeBlockResponse_1_list) + clv := lv.(*_ResponseFinalizeBlock_1_list) x.Events = *clv.list - case "cometbft.abci.v2.FinalizeBlockResponse.tx_results": + case "tendermint.abci.ResponseFinalizeBlock.tx_results": lv := value.List() - clv := lv.(*_FinalizeBlockResponse_2_list) + clv := lv.(*_ResponseFinalizeBlock_2_list) x.TxResults = *clv.list - case "cometbft.abci.v2.FinalizeBlockResponse.validator_updates": + case "tendermint.abci.ResponseFinalizeBlock.validator_updates": lv := value.List() - clv := lv.(*_FinalizeBlockResponse_3_list) + clv := lv.(*_ResponseFinalizeBlock_3_list) x.ValidatorUpdates = *clv.list - case "cometbft.abci.v2.FinalizeBlockResponse.consensus_param_updates": - x.ConsensusParamUpdates = value.Message().Interface().(*v2.ConsensusParams) - case "cometbft.abci.v2.FinalizeBlockResponse.app_hash": + case "tendermint.abci.ResponseFinalizeBlock.consensus_param_updates": + x.ConsensusParamUpdates = value.Message().Interface().(*types.ConsensusParams) + case "tendermint.abci.ResponseFinalizeBlock.app_hash": x.AppHash = value.Bytes() - case "cometbft.abci.v2.FinalizeBlockResponse.next_block_delay": - x.NextBlockDelay = value.Message().Interface().(*durationpb.Duration) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.FinalizeBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseFinalizeBlock")) } - panic(fmt.Errorf("message cometbft.abci.v2.FinalizeBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseFinalizeBlock does not contain field %s", fd.FullName())) } } @@ -23822,83 +23207,75 @@ func (x *fastReflection_FinalizeBlockResponse) Set(fd protoreflect.FieldDescript // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_FinalizeBlockResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseFinalizeBlock) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.FinalizeBlockResponse.events": + case "tendermint.abci.ResponseFinalizeBlock.events": if x.Events == nil { x.Events = []*Event{} } - value := &_FinalizeBlockResponse_1_list{list: &x.Events} + value := &_ResponseFinalizeBlock_1_list{list: &x.Events} return protoreflect.ValueOfList(value) - case "cometbft.abci.v2.FinalizeBlockResponse.tx_results": + case "tendermint.abci.ResponseFinalizeBlock.tx_results": if x.TxResults == nil { x.TxResults = []*ExecTxResult{} } - value := &_FinalizeBlockResponse_2_list{list: &x.TxResults} + value := &_ResponseFinalizeBlock_2_list{list: &x.TxResults} return protoreflect.ValueOfList(value) - case "cometbft.abci.v2.FinalizeBlockResponse.validator_updates": + case "tendermint.abci.ResponseFinalizeBlock.validator_updates": if x.ValidatorUpdates == nil { x.ValidatorUpdates = []*ValidatorUpdate{} } - value := &_FinalizeBlockResponse_3_list{list: &x.ValidatorUpdates} + value := &_ResponseFinalizeBlock_3_list{list: &x.ValidatorUpdates} return protoreflect.ValueOfList(value) - case "cometbft.abci.v2.FinalizeBlockResponse.consensus_param_updates": + case "tendermint.abci.ResponseFinalizeBlock.consensus_param_updates": if x.ConsensusParamUpdates == nil { - x.ConsensusParamUpdates = new(v2.ConsensusParams) + x.ConsensusParamUpdates = new(types.ConsensusParams) } return protoreflect.ValueOfMessage(x.ConsensusParamUpdates.ProtoReflect()) - case "cometbft.abci.v2.FinalizeBlockResponse.next_block_delay": - if x.NextBlockDelay == nil { - x.NextBlockDelay = new(durationpb.Duration) - } - return protoreflect.ValueOfMessage(x.NextBlockDelay.ProtoReflect()) - case "cometbft.abci.v2.FinalizeBlockResponse.app_hash": - panic(fmt.Errorf("field app_hash of message cometbft.abci.v2.FinalizeBlockResponse is not mutable")) + case "tendermint.abci.ResponseFinalizeBlock.app_hash": + panic(fmt.Errorf("field app_hash of message tendermint.abci.ResponseFinalizeBlock is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.FinalizeBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseFinalizeBlock")) } - panic(fmt.Errorf("message cometbft.abci.v2.FinalizeBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseFinalizeBlock does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_FinalizeBlockResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ResponseFinalizeBlock) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.FinalizeBlockResponse.events": + case "tendermint.abci.ResponseFinalizeBlock.events": list := []*Event{} - return protoreflect.ValueOfList(&_FinalizeBlockResponse_1_list{list: &list}) - case "cometbft.abci.v2.FinalizeBlockResponse.tx_results": + return protoreflect.ValueOfList(&_ResponseFinalizeBlock_1_list{list: &list}) + case "tendermint.abci.ResponseFinalizeBlock.tx_results": list := []*ExecTxResult{} - return protoreflect.ValueOfList(&_FinalizeBlockResponse_2_list{list: &list}) - case "cometbft.abci.v2.FinalizeBlockResponse.validator_updates": + return protoreflect.ValueOfList(&_ResponseFinalizeBlock_2_list{list: &list}) + case "tendermint.abci.ResponseFinalizeBlock.validator_updates": list := []*ValidatorUpdate{} - return protoreflect.ValueOfList(&_FinalizeBlockResponse_3_list{list: &list}) - case "cometbft.abci.v2.FinalizeBlockResponse.consensus_param_updates": - m := new(v2.ConsensusParams) + return protoreflect.ValueOfList(&_ResponseFinalizeBlock_3_list{list: &list}) + case "tendermint.abci.ResponseFinalizeBlock.consensus_param_updates": + m := new(types.ConsensusParams) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.abci.v2.FinalizeBlockResponse.app_hash": + case "tendermint.abci.ResponseFinalizeBlock.app_hash": return protoreflect.ValueOfBytes(nil) - case "cometbft.abci.v2.FinalizeBlockResponse.next_block_delay": - m := new(durationpb.Duration) - return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.FinalizeBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ResponseFinalizeBlock")) } - panic(fmt.Errorf("message cometbft.abci.v2.FinalizeBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ResponseFinalizeBlock does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_FinalizeBlockResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_ResponseFinalizeBlock) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.FinalizeBlockResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.ResponseFinalizeBlock", d.FullName())) } panic("unreachable") } @@ -23906,7 +23283,7 @@ func (x *fastReflection_FinalizeBlockResponse) WhichOneof(d protoreflect.OneofDe // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_FinalizeBlockResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_ResponseFinalizeBlock) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -23917,7 +23294,7 @@ func (x *fastReflection_FinalizeBlockResponse) GetUnknown() protoreflect.RawFiel // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_FinalizeBlockResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_ResponseFinalizeBlock) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -23929,7 +23306,7 @@ func (x *fastReflection_FinalizeBlockResponse) SetUnknown(fields protoreflect.Ra // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_FinalizeBlockResponse) IsValid() bool { +func (x *fastReflection_ResponseFinalizeBlock) IsValid() bool { return x != nil } @@ -23939,9 +23316,9 @@ func (x *fastReflection_FinalizeBlockResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_FinalizeBlockResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_ResponseFinalizeBlock) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*FinalizeBlockResponse) + x := input.Message.Interface().(*ResponseFinalizeBlock) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -23979,10 +23356,6 @@ func (x *fastReflection_FinalizeBlockResponse) ProtoMethods() *protoiface.Method if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.NextBlockDelay != nil { - l = options.Size(x.NextBlockDelay) - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -23993,7 +23366,7 @@ func (x *fastReflection_FinalizeBlockResponse) ProtoMethods() *protoiface.Method } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*FinalizeBlockResponse) + x := input.Message.Interface().(*ResponseFinalizeBlock) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -24012,20 +23385,6 @@ func (x *fastReflection_FinalizeBlockResponse) ProtoMethods() *protoiface.Method i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.NextBlockDelay != nil { - encoded, err := options.Marshal(x.NextBlockDelay) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x32 - } if len(x.AppHash) > 0 { i -= len(x.AppHash) copy(dAtA[i:], x.AppHash) @@ -24106,7 +23465,7 @@ func (x *fastReflection_FinalizeBlockResponse) ProtoMethods() *protoiface.Method }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*FinalizeBlockResponse) + x := input.Message.Interface().(*ResponseFinalizeBlock) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -24138,10 +23497,10 @@ func (x *fastReflection_FinalizeBlockResponse) ProtoMethods() *protoiface.Method fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: FinalizeBlockResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ResponseFinalizeBlock: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: FinalizeBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ResponseFinalizeBlock: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -24276,7 +23635,7 @@ func (x *fastReflection_FinalizeBlockResponse) ProtoMethods() *protoiface.Method return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.ConsensusParamUpdates == nil { - x.ConsensusParamUpdates = &v2.ConsensusParams{} + x.ConsensusParamUpdates = &types.ConsensusParams{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ConsensusParamUpdates); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -24316,42 +23675,6 @@ func (x *fastReflection_FinalizeBlockResponse) ProtoMethods() *protoiface.Method x.AppHash = []byte{} } iNdEx = postIndex - case 6: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NextBlockDelay", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.NextBlockDelay == nil { - x.NextBlockDelay = &durationpb.Duration{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.NextBlockDelay); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -24445,8 +23768,8 @@ var ( ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_CommitInfo = File_cometbft_abci_v2_types_proto.Messages().ByName("CommitInfo") + file_tendermint_abci_types_proto_init() + md_CommitInfo = File_tendermint_abci_types_proto.Messages().ByName("CommitInfo") fd_CommitInfo_round = md_CommitInfo.Fields().ByName("round") fd_CommitInfo_votes = md_CommitInfo.Fields().ByName("votes") } @@ -24460,7 +23783,7 @@ func (x *CommitInfo) ProtoReflect() protoreflect.Message { } func (x *CommitInfo) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[35] + mi := &file_tendermint_abci_types_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -24543,15 +23866,15 @@ func (x *fastReflection_CommitInfo) Range(f func(protoreflect.FieldDescriptor, p // a repeated field is populated if it is non-empty. func (x *fastReflection_CommitInfo) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.CommitInfo.round": + case "tendermint.abci.CommitInfo.round": return x.Round != int32(0) - case "cometbft.abci.v2.CommitInfo.votes": + case "tendermint.abci.CommitInfo.votes": return len(x.Votes) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.CommitInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.CommitInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.CommitInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.CommitInfo does not contain field %s", fd.FullName())) } } @@ -24563,15 +23886,15 @@ func (x *fastReflection_CommitInfo) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_CommitInfo) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.CommitInfo.round": + case "tendermint.abci.CommitInfo.round": x.Round = int32(0) - case "cometbft.abci.v2.CommitInfo.votes": + case "tendermint.abci.CommitInfo.votes": x.Votes = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.CommitInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.CommitInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.CommitInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.CommitInfo does not contain field %s", fd.FullName())) } } @@ -24583,10 +23906,10 @@ func (x *fastReflection_CommitInfo) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_CommitInfo) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.CommitInfo.round": + case "tendermint.abci.CommitInfo.round": value := x.Round return protoreflect.ValueOfInt32(value) - case "cometbft.abci.v2.CommitInfo.votes": + case "tendermint.abci.CommitInfo.votes": if len(x.Votes) == 0 { return protoreflect.ValueOfList(&_CommitInfo_2_list{}) } @@ -24594,9 +23917,9 @@ func (x *fastReflection_CommitInfo) Get(descriptor protoreflect.FieldDescriptor) return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.CommitInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.CommitInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.CommitInfo does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.CommitInfo does not contain field %s", descriptor.FullName())) } } @@ -24612,17 +23935,17 @@ func (x *fastReflection_CommitInfo) Get(descriptor protoreflect.FieldDescriptor) // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_CommitInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.CommitInfo.round": + case "tendermint.abci.CommitInfo.round": x.Round = int32(value.Int()) - case "cometbft.abci.v2.CommitInfo.votes": + case "tendermint.abci.CommitInfo.votes": lv := value.List() clv := lv.(*_CommitInfo_2_list) x.Votes = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.CommitInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.CommitInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.CommitInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.CommitInfo does not contain field %s", fd.FullName())) } } @@ -24638,19 +23961,19 @@ func (x *fastReflection_CommitInfo) Set(fd protoreflect.FieldDescriptor, value p // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_CommitInfo) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.CommitInfo.votes": + case "tendermint.abci.CommitInfo.votes": if x.Votes == nil { x.Votes = []*VoteInfo{} } value := &_CommitInfo_2_list{list: &x.Votes} return protoreflect.ValueOfList(value) - case "cometbft.abci.v2.CommitInfo.round": - panic(fmt.Errorf("field round of message cometbft.abci.v2.CommitInfo is not mutable")) + case "tendermint.abci.CommitInfo.round": + panic(fmt.Errorf("field round of message tendermint.abci.CommitInfo is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.CommitInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.CommitInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.CommitInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.CommitInfo does not contain field %s", fd.FullName())) } } @@ -24659,16 +23982,16 @@ func (x *fastReflection_CommitInfo) Mutable(fd protoreflect.FieldDescriptor) pro // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_CommitInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.CommitInfo.round": + case "tendermint.abci.CommitInfo.round": return protoreflect.ValueOfInt32(int32(0)) - case "cometbft.abci.v2.CommitInfo.votes": + case "tendermint.abci.CommitInfo.votes": list := []*VoteInfo{} return protoreflect.ValueOfList(&_CommitInfo_2_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.CommitInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.CommitInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.CommitInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.CommitInfo does not contain field %s", fd.FullName())) } } @@ -24678,7 +24001,7 @@ func (x *fastReflection_CommitInfo) NewField(fd protoreflect.FieldDescriptor) pr func (x *fastReflection_CommitInfo) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.CommitInfo", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.CommitInfo", d.FullName())) } panic("unreachable") } @@ -24987,8 +24310,8 @@ var ( ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_ExtendedCommitInfo = File_cometbft_abci_v2_types_proto.Messages().ByName("ExtendedCommitInfo") + file_tendermint_abci_types_proto_init() + md_ExtendedCommitInfo = File_tendermint_abci_types_proto.Messages().ByName("ExtendedCommitInfo") fd_ExtendedCommitInfo_round = md_ExtendedCommitInfo.Fields().ByName("round") fd_ExtendedCommitInfo_votes = md_ExtendedCommitInfo.Fields().ByName("votes") } @@ -25002,7 +24325,7 @@ func (x *ExtendedCommitInfo) ProtoReflect() protoreflect.Message { } func (x *ExtendedCommitInfo) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[36] + mi := &file_tendermint_abci_types_proto_msgTypes[36] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -25085,15 +24408,15 @@ func (x *fastReflection_ExtendedCommitInfo) Range(f func(protoreflect.FieldDescr // a repeated field is populated if it is non-empty. func (x *fastReflection_ExtendedCommitInfo) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.ExtendedCommitInfo.round": + case "tendermint.abci.ExtendedCommitInfo.round": return x.Round != int32(0) - case "cometbft.abci.v2.ExtendedCommitInfo.votes": + case "tendermint.abci.ExtendedCommitInfo.votes": return len(x.Votes) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExtendedCommitInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ExtendedCommitInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExtendedCommitInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ExtendedCommitInfo does not contain field %s", fd.FullName())) } } @@ -25105,15 +24428,15 @@ func (x *fastReflection_ExtendedCommitInfo) Has(fd protoreflect.FieldDescriptor) // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ExtendedCommitInfo) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.ExtendedCommitInfo.round": + case "tendermint.abci.ExtendedCommitInfo.round": x.Round = int32(0) - case "cometbft.abci.v2.ExtendedCommitInfo.votes": + case "tendermint.abci.ExtendedCommitInfo.votes": x.Votes = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExtendedCommitInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ExtendedCommitInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExtendedCommitInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ExtendedCommitInfo does not contain field %s", fd.FullName())) } } @@ -25125,10 +24448,10 @@ func (x *fastReflection_ExtendedCommitInfo) Clear(fd protoreflect.FieldDescripto // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_ExtendedCommitInfo) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.ExtendedCommitInfo.round": + case "tendermint.abci.ExtendedCommitInfo.round": value := x.Round return protoreflect.ValueOfInt32(value) - case "cometbft.abci.v2.ExtendedCommitInfo.votes": + case "tendermint.abci.ExtendedCommitInfo.votes": if len(x.Votes) == 0 { return protoreflect.ValueOfList(&_ExtendedCommitInfo_2_list{}) } @@ -25136,9 +24459,9 @@ func (x *fastReflection_ExtendedCommitInfo) Get(descriptor protoreflect.FieldDes return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExtendedCommitInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ExtendedCommitInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExtendedCommitInfo does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.ExtendedCommitInfo does not contain field %s", descriptor.FullName())) } } @@ -25154,17 +24477,17 @@ func (x *fastReflection_ExtendedCommitInfo) Get(descriptor protoreflect.FieldDes // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ExtendedCommitInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.ExtendedCommitInfo.round": + case "tendermint.abci.ExtendedCommitInfo.round": x.Round = int32(value.Int()) - case "cometbft.abci.v2.ExtendedCommitInfo.votes": + case "tendermint.abci.ExtendedCommitInfo.votes": lv := value.List() clv := lv.(*_ExtendedCommitInfo_2_list) x.Votes = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExtendedCommitInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ExtendedCommitInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExtendedCommitInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ExtendedCommitInfo does not contain field %s", fd.FullName())) } } @@ -25180,19 +24503,19 @@ func (x *fastReflection_ExtendedCommitInfo) Set(fd protoreflect.FieldDescriptor, // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ExtendedCommitInfo) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.ExtendedCommitInfo.votes": + case "tendermint.abci.ExtendedCommitInfo.votes": if x.Votes == nil { x.Votes = []*ExtendedVoteInfo{} } value := &_ExtendedCommitInfo_2_list{list: &x.Votes} return protoreflect.ValueOfList(value) - case "cometbft.abci.v2.ExtendedCommitInfo.round": - panic(fmt.Errorf("field round of message cometbft.abci.v2.ExtendedCommitInfo is not mutable")) + case "tendermint.abci.ExtendedCommitInfo.round": + panic(fmt.Errorf("field round of message tendermint.abci.ExtendedCommitInfo is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExtendedCommitInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ExtendedCommitInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExtendedCommitInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ExtendedCommitInfo does not contain field %s", fd.FullName())) } } @@ -25201,16 +24524,16 @@ func (x *fastReflection_ExtendedCommitInfo) Mutable(fd protoreflect.FieldDescrip // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_ExtendedCommitInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.ExtendedCommitInfo.round": + case "tendermint.abci.ExtendedCommitInfo.round": return protoreflect.ValueOfInt32(int32(0)) - case "cometbft.abci.v2.ExtendedCommitInfo.votes": + case "tendermint.abci.ExtendedCommitInfo.votes": list := []*ExtendedVoteInfo{} return protoreflect.ValueOfList(&_ExtendedCommitInfo_2_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExtendedCommitInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ExtendedCommitInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExtendedCommitInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ExtendedCommitInfo does not contain field %s", fd.FullName())) } } @@ -25220,7 +24543,7 @@ func (x *fastReflection_ExtendedCommitInfo) NewField(fd protoreflect.FieldDescri func (x *fastReflection_ExtendedCommitInfo) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.ExtendedCommitInfo", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.ExtendedCommitInfo", d.FullName())) } panic("unreachable") } @@ -25529,8 +24852,8 @@ var ( ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_Event = File_cometbft_abci_v2_types_proto.Messages().ByName("Event") + file_tendermint_abci_types_proto_init() + md_Event = File_tendermint_abci_types_proto.Messages().ByName("Event") fd_Event_type = md_Event.Fields().ByName("type") fd_Event_attributes = md_Event.Fields().ByName("attributes") } @@ -25544,7 +24867,7 @@ func (x *Event) ProtoReflect() protoreflect.Message { } func (x *Event) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[37] + mi := &file_tendermint_abci_types_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -25627,15 +24950,15 @@ func (x *fastReflection_Event) Range(f func(protoreflect.FieldDescriptor, protor // a repeated field is populated if it is non-empty. func (x *fastReflection_Event) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.Event.type": + case "tendermint.abci.Event.type": return x.Type_ != "" - case "cometbft.abci.v2.Event.attributes": + case "tendermint.abci.Event.attributes": return len(x.Attributes) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Event")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Event")) } - panic(fmt.Errorf("message cometbft.abci.v2.Event does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.Event does not contain field %s", fd.FullName())) } } @@ -25647,15 +24970,15 @@ func (x *fastReflection_Event) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Event) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.Event.type": + case "tendermint.abci.Event.type": x.Type_ = "" - case "cometbft.abci.v2.Event.attributes": + case "tendermint.abci.Event.attributes": x.Attributes = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Event")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Event")) } - panic(fmt.Errorf("message cometbft.abci.v2.Event does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.Event does not contain field %s", fd.FullName())) } } @@ -25667,10 +24990,10 @@ func (x *fastReflection_Event) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Event) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.Event.type": + case "tendermint.abci.Event.type": value := x.Type_ return protoreflect.ValueOfString(value) - case "cometbft.abci.v2.Event.attributes": + case "tendermint.abci.Event.attributes": if len(x.Attributes) == 0 { return protoreflect.ValueOfList(&_Event_2_list{}) } @@ -25678,9 +25001,9 @@ func (x *fastReflection_Event) Get(descriptor protoreflect.FieldDescriptor) prot return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Event")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Event")) } - panic(fmt.Errorf("message cometbft.abci.v2.Event does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.Event does not contain field %s", descriptor.FullName())) } } @@ -25696,17 +25019,17 @@ func (x *fastReflection_Event) Get(descriptor protoreflect.FieldDescriptor) prot // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Event) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.Event.type": + case "tendermint.abci.Event.type": x.Type_ = value.Interface().(string) - case "cometbft.abci.v2.Event.attributes": + case "tendermint.abci.Event.attributes": lv := value.List() clv := lv.(*_Event_2_list) x.Attributes = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Event")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Event")) } - panic(fmt.Errorf("message cometbft.abci.v2.Event does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.Event does not contain field %s", fd.FullName())) } } @@ -25722,19 +25045,19 @@ func (x *fastReflection_Event) Set(fd protoreflect.FieldDescriptor, value protor // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Event) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.Event.attributes": + case "tendermint.abci.Event.attributes": if x.Attributes == nil { x.Attributes = []*EventAttribute{} } value := &_Event_2_list{list: &x.Attributes} return protoreflect.ValueOfList(value) - case "cometbft.abci.v2.Event.type": - panic(fmt.Errorf("field type of message cometbft.abci.v2.Event is not mutable")) + case "tendermint.abci.Event.type": + panic(fmt.Errorf("field type of message tendermint.abci.Event is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Event")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Event")) } - panic(fmt.Errorf("message cometbft.abci.v2.Event does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.Event does not contain field %s", fd.FullName())) } } @@ -25743,16 +25066,16 @@ func (x *fastReflection_Event) Mutable(fd protoreflect.FieldDescriptor) protoref // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Event) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.Event.type": + case "tendermint.abci.Event.type": return protoreflect.ValueOfString("") - case "cometbft.abci.v2.Event.attributes": + case "tendermint.abci.Event.attributes": list := []*EventAttribute{} return protoreflect.ValueOfList(&_Event_2_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Event")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Event")) } - panic(fmt.Errorf("message cometbft.abci.v2.Event does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.Event does not contain field %s", fd.FullName())) } } @@ -25762,7 +25085,7 @@ func (x *fastReflection_Event) NewField(fd protoreflect.FieldDescriptor) protore func (x *fastReflection_Event) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.Event", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.Event", d.FullName())) } panic("unreachable") } @@ -26037,8 +25360,8 @@ var ( ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_EventAttribute = File_cometbft_abci_v2_types_proto.Messages().ByName("EventAttribute") + file_tendermint_abci_types_proto_init() + md_EventAttribute = File_tendermint_abci_types_proto.Messages().ByName("EventAttribute") fd_EventAttribute_key = md_EventAttribute.Fields().ByName("key") fd_EventAttribute_value = md_EventAttribute.Fields().ByName("value") fd_EventAttribute_index = md_EventAttribute.Fields().ByName("index") @@ -26053,7 +25376,7 @@ func (x *EventAttribute) ProtoReflect() protoreflect.Message { } func (x *EventAttribute) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[38] + mi := &file_tendermint_abci_types_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -26142,17 +25465,17 @@ func (x *fastReflection_EventAttribute) Range(f func(protoreflect.FieldDescripto // a repeated field is populated if it is non-empty. func (x *fastReflection_EventAttribute) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.EventAttribute.key": + case "tendermint.abci.EventAttribute.key": return x.Key != "" - case "cometbft.abci.v2.EventAttribute.value": + case "tendermint.abci.EventAttribute.value": return x.Value != "" - case "cometbft.abci.v2.EventAttribute.index": + case "tendermint.abci.EventAttribute.index": return x.Index != false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.EventAttribute")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.EventAttribute")) } - panic(fmt.Errorf("message cometbft.abci.v2.EventAttribute does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.EventAttribute does not contain field %s", fd.FullName())) } } @@ -26164,17 +25487,17 @@ func (x *fastReflection_EventAttribute) Has(fd protoreflect.FieldDescriptor) boo // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EventAttribute) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.EventAttribute.key": + case "tendermint.abci.EventAttribute.key": x.Key = "" - case "cometbft.abci.v2.EventAttribute.value": + case "tendermint.abci.EventAttribute.value": x.Value = "" - case "cometbft.abci.v2.EventAttribute.index": + case "tendermint.abci.EventAttribute.index": x.Index = false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.EventAttribute")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.EventAttribute")) } - panic(fmt.Errorf("message cometbft.abci.v2.EventAttribute does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.EventAttribute does not contain field %s", fd.FullName())) } } @@ -26186,20 +25509,20 @@ func (x *fastReflection_EventAttribute) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_EventAttribute) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.EventAttribute.key": + case "tendermint.abci.EventAttribute.key": value := x.Key return protoreflect.ValueOfString(value) - case "cometbft.abci.v2.EventAttribute.value": + case "tendermint.abci.EventAttribute.value": value := x.Value return protoreflect.ValueOfString(value) - case "cometbft.abci.v2.EventAttribute.index": + case "tendermint.abci.EventAttribute.index": value := x.Index return protoreflect.ValueOfBool(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.EventAttribute")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.EventAttribute")) } - panic(fmt.Errorf("message cometbft.abci.v2.EventAttribute does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.EventAttribute does not contain field %s", descriptor.FullName())) } } @@ -26215,17 +25538,17 @@ func (x *fastReflection_EventAttribute) Get(descriptor protoreflect.FieldDescrip // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EventAttribute) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.EventAttribute.key": + case "tendermint.abci.EventAttribute.key": x.Key = value.Interface().(string) - case "cometbft.abci.v2.EventAttribute.value": + case "tendermint.abci.EventAttribute.value": x.Value = value.Interface().(string) - case "cometbft.abci.v2.EventAttribute.index": + case "tendermint.abci.EventAttribute.index": x.Index = value.Bool() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.EventAttribute")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.EventAttribute")) } - panic(fmt.Errorf("message cometbft.abci.v2.EventAttribute does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.EventAttribute does not contain field %s", fd.FullName())) } } @@ -26241,17 +25564,17 @@ func (x *fastReflection_EventAttribute) Set(fd protoreflect.FieldDescriptor, val // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EventAttribute) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.EventAttribute.key": - panic(fmt.Errorf("field key of message cometbft.abci.v2.EventAttribute is not mutable")) - case "cometbft.abci.v2.EventAttribute.value": - panic(fmt.Errorf("field value of message cometbft.abci.v2.EventAttribute is not mutable")) - case "cometbft.abci.v2.EventAttribute.index": - panic(fmt.Errorf("field index of message cometbft.abci.v2.EventAttribute is not mutable")) + case "tendermint.abci.EventAttribute.key": + panic(fmt.Errorf("field key of message tendermint.abci.EventAttribute is not mutable")) + case "tendermint.abci.EventAttribute.value": + panic(fmt.Errorf("field value of message tendermint.abci.EventAttribute is not mutable")) + case "tendermint.abci.EventAttribute.index": + panic(fmt.Errorf("field index of message tendermint.abci.EventAttribute is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.EventAttribute")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.EventAttribute")) } - panic(fmt.Errorf("message cometbft.abci.v2.EventAttribute does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.EventAttribute does not contain field %s", fd.FullName())) } } @@ -26260,17 +25583,17 @@ func (x *fastReflection_EventAttribute) Mutable(fd protoreflect.FieldDescriptor) // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_EventAttribute) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.EventAttribute.key": + case "tendermint.abci.EventAttribute.key": return protoreflect.ValueOfString("") - case "cometbft.abci.v2.EventAttribute.value": + case "tendermint.abci.EventAttribute.value": return protoreflect.ValueOfString("") - case "cometbft.abci.v2.EventAttribute.index": + case "tendermint.abci.EventAttribute.index": return protoreflect.ValueOfBool(false) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.EventAttribute")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.EventAttribute")) } - panic(fmt.Errorf("message cometbft.abci.v2.EventAttribute does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.EventAttribute does not contain field %s", fd.FullName())) } } @@ -26280,7 +25603,7 @@ func (x *fastReflection_EventAttribute) NewField(fd protoreflect.FieldDescriptor func (x *fastReflection_EventAttribute) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.EventAttribute", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.EventAttribute", d.FullName())) } panic("unreachable") } @@ -26631,8 +25954,8 @@ var ( ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_ExecTxResult = File_cometbft_abci_v2_types_proto.Messages().ByName("ExecTxResult") + file_tendermint_abci_types_proto_init() + md_ExecTxResult = File_tendermint_abci_types_proto.Messages().ByName("ExecTxResult") fd_ExecTxResult_code = md_ExecTxResult.Fields().ByName("code") fd_ExecTxResult_data = md_ExecTxResult.Fields().ByName("data") fd_ExecTxResult_log = md_ExecTxResult.Fields().ByName("log") @@ -26652,7 +25975,7 @@ func (x *ExecTxResult) ProtoReflect() protoreflect.Message { } func (x *ExecTxResult) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[39] + mi := &file_tendermint_abci_types_proto_msgTypes[39] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -26771,27 +26094,27 @@ func (x *fastReflection_ExecTxResult) Range(f func(protoreflect.FieldDescriptor, // a repeated field is populated if it is non-empty. func (x *fastReflection_ExecTxResult) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.ExecTxResult.code": + case "tendermint.abci.ExecTxResult.code": return x.Code != uint32(0) - case "cometbft.abci.v2.ExecTxResult.data": + case "tendermint.abci.ExecTxResult.data": return len(x.Data) != 0 - case "cometbft.abci.v2.ExecTxResult.log": + case "tendermint.abci.ExecTxResult.log": return x.Log != "" - case "cometbft.abci.v2.ExecTxResult.info": + case "tendermint.abci.ExecTxResult.info": return x.Info != "" - case "cometbft.abci.v2.ExecTxResult.gas_wanted": + case "tendermint.abci.ExecTxResult.gas_wanted": return x.GasWanted != int64(0) - case "cometbft.abci.v2.ExecTxResult.gas_used": + case "tendermint.abci.ExecTxResult.gas_used": return x.GasUsed != int64(0) - case "cometbft.abci.v2.ExecTxResult.events": + case "tendermint.abci.ExecTxResult.events": return len(x.Events) != 0 - case "cometbft.abci.v2.ExecTxResult.codespace": + case "tendermint.abci.ExecTxResult.codespace": return x.Codespace != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExecTxResult")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ExecTxResult")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExecTxResult does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ExecTxResult does not contain field %s", fd.FullName())) } } @@ -26803,27 +26126,27 @@ func (x *fastReflection_ExecTxResult) Has(fd protoreflect.FieldDescriptor) bool // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ExecTxResult) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.ExecTxResult.code": + case "tendermint.abci.ExecTxResult.code": x.Code = uint32(0) - case "cometbft.abci.v2.ExecTxResult.data": + case "tendermint.abci.ExecTxResult.data": x.Data = nil - case "cometbft.abci.v2.ExecTxResult.log": + case "tendermint.abci.ExecTxResult.log": x.Log = "" - case "cometbft.abci.v2.ExecTxResult.info": + case "tendermint.abci.ExecTxResult.info": x.Info = "" - case "cometbft.abci.v2.ExecTxResult.gas_wanted": + case "tendermint.abci.ExecTxResult.gas_wanted": x.GasWanted = int64(0) - case "cometbft.abci.v2.ExecTxResult.gas_used": + case "tendermint.abci.ExecTxResult.gas_used": x.GasUsed = int64(0) - case "cometbft.abci.v2.ExecTxResult.events": + case "tendermint.abci.ExecTxResult.events": x.Events = nil - case "cometbft.abci.v2.ExecTxResult.codespace": + case "tendermint.abci.ExecTxResult.codespace": x.Codespace = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExecTxResult")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ExecTxResult")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExecTxResult does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ExecTxResult does not contain field %s", fd.FullName())) } } @@ -26835,38 +26158,38 @@ func (x *fastReflection_ExecTxResult) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_ExecTxResult) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.ExecTxResult.code": + case "tendermint.abci.ExecTxResult.code": value := x.Code return protoreflect.ValueOfUint32(value) - case "cometbft.abci.v2.ExecTxResult.data": + case "tendermint.abci.ExecTxResult.data": value := x.Data return protoreflect.ValueOfBytes(value) - case "cometbft.abci.v2.ExecTxResult.log": + case "tendermint.abci.ExecTxResult.log": value := x.Log return protoreflect.ValueOfString(value) - case "cometbft.abci.v2.ExecTxResult.info": + case "tendermint.abci.ExecTxResult.info": value := x.Info return protoreflect.ValueOfString(value) - case "cometbft.abci.v2.ExecTxResult.gas_wanted": + case "tendermint.abci.ExecTxResult.gas_wanted": value := x.GasWanted return protoreflect.ValueOfInt64(value) - case "cometbft.abci.v2.ExecTxResult.gas_used": + case "tendermint.abci.ExecTxResult.gas_used": value := x.GasUsed return protoreflect.ValueOfInt64(value) - case "cometbft.abci.v2.ExecTxResult.events": + case "tendermint.abci.ExecTxResult.events": if len(x.Events) == 0 { return protoreflect.ValueOfList(&_ExecTxResult_7_list{}) } listValue := &_ExecTxResult_7_list{list: &x.Events} return protoreflect.ValueOfList(listValue) - case "cometbft.abci.v2.ExecTxResult.codespace": + case "tendermint.abci.ExecTxResult.codespace": value := x.Codespace return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExecTxResult")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ExecTxResult")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExecTxResult does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.ExecTxResult does not contain field %s", descriptor.FullName())) } } @@ -26882,29 +26205,29 @@ func (x *fastReflection_ExecTxResult) Get(descriptor protoreflect.FieldDescripto // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ExecTxResult) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.ExecTxResult.code": + case "tendermint.abci.ExecTxResult.code": x.Code = uint32(value.Uint()) - case "cometbft.abci.v2.ExecTxResult.data": + case "tendermint.abci.ExecTxResult.data": x.Data = value.Bytes() - case "cometbft.abci.v2.ExecTxResult.log": + case "tendermint.abci.ExecTxResult.log": x.Log = value.Interface().(string) - case "cometbft.abci.v2.ExecTxResult.info": + case "tendermint.abci.ExecTxResult.info": x.Info = value.Interface().(string) - case "cometbft.abci.v2.ExecTxResult.gas_wanted": + case "tendermint.abci.ExecTxResult.gas_wanted": x.GasWanted = value.Int() - case "cometbft.abci.v2.ExecTxResult.gas_used": + case "tendermint.abci.ExecTxResult.gas_used": x.GasUsed = value.Int() - case "cometbft.abci.v2.ExecTxResult.events": + case "tendermint.abci.ExecTxResult.events": lv := value.List() clv := lv.(*_ExecTxResult_7_list) x.Events = *clv.list - case "cometbft.abci.v2.ExecTxResult.codespace": + case "tendermint.abci.ExecTxResult.codespace": x.Codespace = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExecTxResult")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ExecTxResult")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExecTxResult does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ExecTxResult does not contain field %s", fd.FullName())) } } @@ -26920,31 +26243,31 @@ func (x *fastReflection_ExecTxResult) Set(fd protoreflect.FieldDescriptor, value // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ExecTxResult) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.ExecTxResult.events": + case "tendermint.abci.ExecTxResult.events": if x.Events == nil { x.Events = []*Event{} } value := &_ExecTxResult_7_list{list: &x.Events} return protoreflect.ValueOfList(value) - case "cometbft.abci.v2.ExecTxResult.code": - panic(fmt.Errorf("field code of message cometbft.abci.v2.ExecTxResult is not mutable")) - case "cometbft.abci.v2.ExecTxResult.data": - panic(fmt.Errorf("field data of message cometbft.abci.v2.ExecTxResult is not mutable")) - case "cometbft.abci.v2.ExecTxResult.log": - panic(fmt.Errorf("field log of message cometbft.abci.v2.ExecTxResult is not mutable")) - case "cometbft.abci.v2.ExecTxResult.info": - panic(fmt.Errorf("field info of message cometbft.abci.v2.ExecTxResult is not mutable")) - case "cometbft.abci.v2.ExecTxResult.gas_wanted": - panic(fmt.Errorf("field gas_wanted of message cometbft.abci.v2.ExecTxResult is not mutable")) - case "cometbft.abci.v2.ExecTxResult.gas_used": - panic(fmt.Errorf("field gas_used of message cometbft.abci.v2.ExecTxResult is not mutable")) - case "cometbft.abci.v2.ExecTxResult.codespace": - panic(fmt.Errorf("field codespace of message cometbft.abci.v2.ExecTxResult is not mutable")) + case "tendermint.abci.ExecTxResult.code": + panic(fmt.Errorf("field code of message tendermint.abci.ExecTxResult is not mutable")) + case "tendermint.abci.ExecTxResult.data": + panic(fmt.Errorf("field data of message tendermint.abci.ExecTxResult is not mutable")) + case "tendermint.abci.ExecTxResult.log": + panic(fmt.Errorf("field log of message tendermint.abci.ExecTxResult is not mutable")) + case "tendermint.abci.ExecTxResult.info": + panic(fmt.Errorf("field info of message tendermint.abci.ExecTxResult is not mutable")) + case "tendermint.abci.ExecTxResult.gas_wanted": + panic(fmt.Errorf("field gas_wanted of message tendermint.abci.ExecTxResult is not mutable")) + case "tendermint.abci.ExecTxResult.gas_used": + panic(fmt.Errorf("field gas_used of message tendermint.abci.ExecTxResult is not mutable")) + case "tendermint.abci.ExecTxResult.codespace": + panic(fmt.Errorf("field codespace of message tendermint.abci.ExecTxResult is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExecTxResult")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ExecTxResult")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExecTxResult does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ExecTxResult does not contain field %s", fd.FullName())) } } @@ -26953,28 +26276,28 @@ func (x *fastReflection_ExecTxResult) Mutable(fd protoreflect.FieldDescriptor) p // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_ExecTxResult) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.ExecTxResult.code": + case "tendermint.abci.ExecTxResult.code": return protoreflect.ValueOfUint32(uint32(0)) - case "cometbft.abci.v2.ExecTxResult.data": + case "tendermint.abci.ExecTxResult.data": return protoreflect.ValueOfBytes(nil) - case "cometbft.abci.v2.ExecTxResult.log": + case "tendermint.abci.ExecTxResult.log": return protoreflect.ValueOfString("") - case "cometbft.abci.v2.ExecTxResult.info": + case "tendermint.abci.ExecTxResult.info": return protoreflect.ValueOfString("") - case "cometbft.abci.v2.ExecTxResult.gas_wanted": + case "tendermint.abci.ExecTxResult.gas_wanted": return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.abci.v2.ExecTxResult.gas_used": + case "tendermint.abci.ExecTxResult.gas_used": return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.abci.v2.ExecTxResult.events": + case "tendermint.abci.ExecTxResult.events": list := []*Event{} return protoreflect.ValueOfList(&_ExecTxResult_7_list{list: &list}) - case "cometbft.abci.v2.ExecTxResult.codespace": + case "tendermint.abci.ExecTxResult.codespace": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExecTxResult")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ExecTxResult")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExecTxResult does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ExecTxResult does not contain field %s", fd.FullName())) } } @@ -26984,7 +26307,7 @@ func (x *fastReflection_ExecTxResult) NewField(fd protoreflect.FieldDescriptor) func (x *fastReflection_ExecTxResult) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.ExecTxResult", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.ExecTxResult", d.FullName())) } panic("unreachable") } @@ -27472,8 +26795,8 @@ var ( ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_TxResult = File_cometbft_abci_v2_types_proto.Messages().ByName("TxResult") + file_tendermint_abci_types_proto_init() + md_TxResult = File_tendermint_abci_types_proto.Messages().ByName("TxResult") fd_TxResult_height = md_TxResult.Fields().ByName("height") fd_TxResult_index = md_TxResult.Fields().ByName("index") fd_TxResult_tx = md_TxResult.Fields().ByName("tx") @@ -27489,7 +26812,7 @@ func (x *TxResult) ProtoReflect() protoreflect.Message { } func (x *TxResult) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[40] + mi := &file_tendermint_abci_types_proto_msgTypes[40] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -27584,19 +26907,19 @@ func (x *fastReflection_TxResult) Range(f func(protoreflect.FieldDescriptor, pro // a repeated field is populated if it is non-empty. func (x *fastReflection_TxResult) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.TxResult.height": + case "tendermint.abci.TxResult.height": return x.Height != int64(0) - case "cometbft.abci.v2.TxResult.index": + case "tendermint.abci.TxResult.index": return x.Index != uint32(0) - case "cometbft.abci.v2.TxResult.tx": + case "tendermint.abci.TxResult.tx": return len(x.Tx) != 0 - case "cometbft.abci.v2.TxResult.result": + case "tendermint.abci.TxResult.result": return x.Result != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.TxResult")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.TxResult")) } - panic(fmt.Errorf("message cometbft.abci.v2.TxResult does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.TxResult does not contain field %s", fd.FullName())) } } @@ -27608,19 +26931,19 @@ func (x *fastReflection_TxResult) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_TxResult) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.TxResult.height": + case "tendermint.abci.TxResult.height": x.Height = int64(0) - case "cometbft.abci.v2.TxResult.index": + case "tendermint.abci.TxResult.index": x.Index = uint32(0) - case "cometbft.abci.v2.TxResult.tx": + case "tendermint.abci.TxResult.tx": x.Tx = nil - case "cometbft.abci.v2.TxResult.result": + case "tendermint.abci.TxResult.result": x.Result = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.TxResult")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.TxResult")) } - panic(fmt.Errorf("message cometbft.abci.v2.TxResult does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.TxResult does not contain field %s", fd.FullName())) } } @@ -27632,23 +26955,23 @@ func (x *fastReflection_TxResult) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_TxResult) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.TxResult.height": + case "tendermint.abci.TxResult.height": value := x.Height return protoreflect.ValueOfInt64(value) - case "cometbft.abci.v2.TxResult.index": + case "tendermint.abci.TxResult.index": value := x.Index return protoreflect.ValueOfUint32(value) - case "cometbft.abci.v2.TxResult.tx": + case "tendermint.abci.TxResult.tx": value := x.Tx return protoreflect.ValueOfBytes(value) - case "cometbft.abci.v2.TxResult.result": + case "tendermint.abci.TxResult.result": value := x.Result return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.TxResult")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.TxResult")) } - panic(fmt.Errorf("message cometbft.abci.v2.TxResult does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.TxResult does not contain field %s", descriptor.FullName())) } } @@ -27664,19 +26987,19 @@ func (x *fastReflection_TxResult) Get(descriptor protoreflect.FieldDescriptor) p // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_TxResult) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.TxResult.height": + case "tendermint.abci.TxResult.height": x.Height = value.Int() - case "cometbft.abci.v2.TxResult.index": + case "tendermint.abci.TxResult.index": x.Index = uint32(value.Uint()) - case "cometbft.abci.v2.TxResult.tx": + case "tendermint.abci.TxResult.tx": x.Tx = value.Bytes() - case "cometbft.abci.v2.TxResult.result": + case "tendermint.abci.TxResult.result": x.Result = value.Message().Interface().(*ExecTxResult) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.TxResult")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.TxResult")) } - panic(fmt.Errorf("message cometbft.abci.v2.TxResult does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.TxResult does not contain field %s", fd.FullName())) } } @@ -27692,22 +27015,22 @@ func (x *fastReflection_TxResult) Set(fd protoreflect.FieldDescriptor, value pro // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_TxResult) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.TxResult.result": + case "tendermint.abci.TxResult.result": if x.Result == nil { x.Result = new(ExecTxResult) } return protoreflect.ValueOfMessage(x.Result.ProtoReflect()) - case "cometbft.abci.v2.TxResult.height": - panic(fmt.Errorf("field height of message cometbft.abci.v2.TxResult is not mutable")) - case "cometbft.abci.v2.TxResult.index": - panic(fmt.Errorf("field index of message cometbft.abci.v2.TxResult is not mutable")) - case "cometbft.abci.v2.TxResult.tx": - panic(fmt.Errorf("field tx of message cometbft.abci.v2.TxResult is not mutable")) + case "tendermint.abci.TxResult.height": + panic(fmt.Errorf("field height of message tendermint.abci.TxResult is not mutable")) + case "tendermint.abci.TxResult.index": + panic(fmt.Errorf("field index of message tendermint.abci.TxResult is not mutable")) + case "tendermint.abci.TxResult.tx": + panic(fmt.Errorf("field tx of message tendermint.abci.TxResult is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.TxResult")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.TxResult")) } - panic(fmt.Errorf("message cometbft.abci.v2.TxResult does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.TxResult does not contain field %s", fd.FullName())) } } @@ -27716,20 +27039,20 @@ func (x *fastReflection_TxResult) Mutable(fd protoreflect.FieldDescriptor) proto // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_TxResult) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.TxResult.height": + case "tendermint.abci.TxResult.height": return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.abci.v2.TxResult.index": + case "tendermint.abci.TxResult.index": return protoreflect.ValueOfUint32(uint32(0)) - case "cometbft.abci.v2.TxResult.tx": + case "tendermint.abci.TxResult.tx": return protoreflect.ValueOfBytes(nil) - case "cometbft.abci.v2.TxResult.result": + case "tendermint.abci.TxResult.result": m := new(ExecTxResult) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.TxResult")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.TxResult")) } - panic(fmt.Errorf("message cometbft.abci.v2.TxResult does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.TxResult does not contain field %s", fd.FullName())) } } @@ -27739,7 +27062,7 @@ func (x *fastReflection_TxResult) NewField(fd protoreflect.FieldDescriptor) prot func (x *fastReflection_TxResult) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.TxResult", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.TxResult", d.FullName())) } panic("unreachable") } @@ -28067,8 +27390,8 @@ var ( ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_Validator = File_cometbft_abci_v2_types_proto.Messages().ByName("Validator") + file_tendermint_abci_types_proto_init() + md_Validator = File_tendermint_abci_types_proto.Messages().ByName("Validator") fd_Validator_address = md_Validator.Fields().ByName("address") fd_Validator_power = md_Validator.Fields().ByName("power") } @@ -28082,7 +27405,7 @@ func (x *Validator) ProtoReflect() protoreflect.Message { } func (x *Validator) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[41] + mi := &file_tendermint_abci_types_proto_msgTypes[41] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -28165,15 +27488,15 @@ func (x *fastReflection_Validator) Range(f func(protoreflect.FieldDescriptor, pr // a repeated field is populated if it is non-empty. func (x *fastReflection_Validator) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.Validator.address": + case "tendermint.abci.Validator.address": return len(x.Address) != 0 - case "cometbft.abci.v2.Validator.power": + case "tendermint.abci.Validator.power": return x.Power != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Validator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Validator")) } - panic(fmt.Errorf("message cometbft.abci.v2.Validator does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.Validator does not contain field %s", fd.FullName())) } } @@ -28185,15 +27508,15 @@ func (x *fastReflection_Validator) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Validator) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.Validator.address": + case "tendermint.abci.Validator.address": x.Address = nil - case "cometbft.abci.v2.Validator.power": + case "tendermint.abci.Validator.power": x.Power = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Validator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Validator")) } - panic(fmt.Errorf("message cometbft.abci.v2.Validator does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.Validator does not contain field %s", fd.FullName())) } } @@ -28205,17 +27528,17 @@ func (x *fastReflection_Validator) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Validator) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.Validator.address": + case "tendermint.abci.Validator.address": value := x.Address return protoreflect.ValueOfBytes(value) - case "cometbft.abci.v2.Validator.power": + case "tendermint.abci.Validator.power": value := x.Power return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Validator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Validator")) } - panic(fmt.Errorf("message cometbft.abci.v2.Validator does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.Validator does not contain field %s", descriptor.FullName())) } } @@ -28231,15 +27554,15 @@ func (x *fastReflection_Validator) Get(descriptor protoreflect.FieldDescriptor) // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Validator) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.Validator.address": + case "tendermint.abci.Validator.address": x.Address = value.Bytes() - case "cometbft.abci.v2.Validator.power": + case "tendermint.abci.Validator.power": x.Power = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Validator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Validator")) } - panic(fmt.Errorf("message cometbft.abci.v2.Validator does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.Validator does not contain field %s", fd.FullName())) } } @@ -28255,15 +27578,15 @@ func (x *fastReflection_Validator) Set(fd protoreflect.FieldDescriptor, value pr // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Validator) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.Validator.address": - panic(fmt.Errorf("field address of message cometbft.abci.v2.Validator is not mutable")) - case "cometbft.abci.v2.Validator.power": - panic(fmt.Errorf("field power of message cometbft.abci.v2.Validator is not mutable")) + case "tendermint.abci.Validator.address": + panic(fmt.Errorf("field address of message tendermint.abci.Validator is not mutable")) + case "tendermint.abci.Validator.power": + panic(fmt.Errorf("field power of message tendermint.abci.Validator is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Validator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Validator")) } - panic(fmt.Errorf("message cometbft.abci.v2.Validator does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.Validator does not contain field %s", fd.FullName())) } } @@ -28272,15 +27595,15 @@ func (x *fastReflection_Validator) Mutable(fd protoreflect.FieldDescriptor) prot // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Validator) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.Validator.address": + case "tendermint.abci.Validator.address": return protoreflect.ValueOfBytes(nil) - case "cometbft.abci.v2.Validator.power": + case "tendermint.abci.Validator.power": return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Validator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Validator")) } - panic(fmt.Errorf("message cometbft.abci.v2.Validator does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.Validator does not contain field %s", fd.FullName())) } } @@ -28290,7 +27613,7 @@ func (x *fastReflection_Validator) NewField(fd protoreflect.FieldDescriptor) pro func (x *fastReflection_Validator) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.Validator", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.Validator", d.FullName())) } panic("unreachable") } @@ -28531,18 +27854,16 @@ func (x *fastReflection_Validator) ProtoMethods() *protoiface.Methods { } var ( - md_ValidatorUpdate protoreflect.MessageDescriptor - fd_ValidatorUpdate_power protoreflect.FieldDescriptor - fd_ValidatorUpdate_pub_key_bytes protoreflect.FieldDescriptor - fd_ValidatorUpdate_pub_key_type protoreflect.FieldDescriptor + md_ValidatorUpdate protoreflect.MessageDescriptor + fd_ValidatorUpdate_pub_key protoreflect.FieldDescriptor + fd_ValidatorUpdate_power protoreflect.FieldDescriptor ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_ValidatorUpdate = File_cometbft_abci_v2_types_proto.Messages().ByName("ValidatorUpdate") + file_tendermint_abci_types_proto_init() + md_ValidatorUpdate = File_tendermint_abci_types_proto.Messages().ByName("ValidatorUpdate") + fd_ValidatorUpdate_pub_key = md_ValidatorUpdate.Fields().ByName("pub_key") fd_ValidatorUpdate_power = md_ValidatorUpdate.Fields().ByName("power") - fd_ValidatorUpdate_pub_key_bytes = md_ValidatorUpdate.Fields().ByName("pub_key_bytes") - fd_ValidatorUpdate_pub_key_type = md_ValidatorUpdate.Fields().ByName("pub_key_type") } var _ protoreflect.Message = (*fastReflection_ValidatorUpdate)(nil) @@ -28554,7 +27875,7 @@ func (x *ValidatorUpdate) ProtoReflect() protoreflect.Message { } func (x *ValidatorUpdate) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[42] + mi := &file_tendermint_abci_types_proto_msgTypes[42] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -28610,24 +27931,18 @@ func (x *fastReflection_ValidatorUpdate) Interface() protoreflect.ProtoMessage { // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_ValidatorUpdate) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.PubKey != nil { + value := protoreflect.ValueOfMessage(x.PubKey.ProtoReflect()) + if !f(fd_ValidatorUpdate_pub_key, value) { + return + } + } if x.Power != int64(0) { value := protoreflect.ValueOfInt64(x.Power) if !f(fd_ValidatorUpdate_power, value) { return } } - if len(x.PubKeyBytes) != 0 { - value := protoreflect.ValueOfBytes(x.PubKeyBytes) - if !f(fd_ValidatorUpdate_pub_key_bytes, value) { - return - } - } - if x.PubKeyType != "" { - value := protoreflect.ValueOfString(x.PubKeyType) - if !f(fd_ValidatorUpdate_pub_key_type, value) { - return - } - } } // Has reports whether a field is populated. @@ -28643,17 +27958,15 @@ func (x *fastReflection_ValidatorUpdate) Range(f func(protoreflect.FieldDescript // a repeated field is populated if it is non-empty. func (x *fastReflection_ValidatorUpdate) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.ValidatorUpdate.power": + case "tendermint.abci.ValidatorUpdate.pub_key": + return x.PubKey != nil + case "tendermint.abci.ValidatorUpdate.power": return x.Power != int64(0) - case "cometbft.abci.v2.ValidatorUpdate.pub_key_bytes": - return len(x.PubKeyBytes) != 0 - case "cometbft.abci.v2.ValidatorUpdate.pub_key_type": - return x.PubKeyType != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ValidatorUpdate")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ValidatorUpdate")) } - panic(fmt.Errorf("message cometbft.abci.v2.ValidatorUpdate does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ValidatorUpdate does not contain field %s", fd.FullName())) } } @@ -28665,17 +27978,15 @@ func (x *fastReflection_ValidatorUpdate) Has(fd protoreflect.FieldDescriptor) bo // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ValidatorUpdate) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.ValidatorUpdate.power": + case "tendermint.abci.ValidatorUpdate.pub_key": + x.PubKey = nil + case "tendermint.abci.ValidatorUpdate.power": x.Power = int64(0) - case "cometbft.abci.v2.ValidatorUpdate.pub_key_bytes": - x.PubKeyBytes = nil - case "cometbft.abci.v2.ValidatorUpdate.pub_key_type": - x.PubKeyType = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ValidatorUpdate")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ValidatorUpdate")) } - panic(fmt.Errorf("message cometbft.abci.v2.ValidatorUpdate does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ValidatorUpdate does not contain field %s", fd.FullName())) } } @@ -28687,20 +27998,17 @@ func (x *fastReflection_ValidatorUpdate) Clear(fd protoreflect.FieldDescriptor) // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_ValidatorUpdate) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.ValidatorUpdate.power": + case "tendermint.abci.ValidatorUpdate.pub_key": + value := x.PubKey + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "tendermint.abci.ValidatorUpdate.power": value := x.Power return protoreflect.ValueOfInt64(value) - case "cometbft.abci.v2.ValidatorUpdate.pub_key_bytes": - value := x.PubKeyBytes - return protoreflect.ValueOfBytes(value) - case "cometbft.abci.v2.ValidatorUpdate.pub_key_type": - value := x.PubKeyType - return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ValidatorUpdate")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ValidatorUpdate")) } - panic(fmt.Errorf("message cometbft.abci.v2.ValidatorUpdate does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.ValidatorUpdate does not contain field %s", descriptor.FullName())) } } @@ -28716,17 +28024,15 @@ func (x *fastReflection_ValidatorUpdate) Get(descriptor protoreflect.FieldDescri // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ValidatorUpdate) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.ValidatorUpdate.power": + case "tendermint.abci.ValidatorUpdate.pub_key": + x.PubKey = value.Message().Interface().(*crypto.PublicKey) + case "tendermint.abci.ValidatorUpdate.power": x.Power = value.Int() - case "cometbft.abci.v2.ValidatorUpdate.pub_key_bytes": - x.PubKeyBytes = value.Bytes() - case "cometbft.abci.v2.ValidatorUpdate.pub_key_type": - x.PubKeyType = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ValidatorUpdate")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ValidatorUpdate")) } - panic(fmt.Errorf("message cometbft.abci.v2.ValidatorUpdate does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ValidatorUpdate does not contain field %s", fd.FullName())) } } @@ -28742,17 +28048,18 @@ func (x *fastReflection_ValidatorUpdate) Set(fd protoreflect.FieldDescriptor, va // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ValidatorUpdate) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.ValidatorUpdate.power": - panic(fmt.Errorf("field power of message cometbft.abci.v2.ValidatorUpdate is not mutable")) - case "cometbft.abci.v2.ValidatorUpdate.pub_key_bytes": - panic(fmt.Errorf("field pub_key_bytes of message cometbft.abci.v2.ValidatorUpdate is not mutable")) - case "cometbft.abci.v2.ValidatorUpdate.pub_key_type": - panic(fmt.Errorf("field pub_key_type of message cometbft.abci.v2.ValidatorUpdate is not mutable")) + case "tendermint.abci.ValidatorUpdate.pub_key": + if x.PubKey == nil { + x.PubKey = new(crypto.PublicKey) + } + return protoreflect.ValueOfMessage(x.PubKey.ProtoReflect()) + case "tendermint.abci.ValidatorUpdate.power": + panic(fmt.Errorf("field power of message tendermint.abci.ValidatorUpdate is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ValidatorUpdate")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ValidatorUpdate")) } - panic(fmt.Errorf("message cometbft.abci.v2.ValidatorUpdate does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ValidatorUpdate does not contain field %s", fd.FullName())) } } @@ -28761,17 +28068,16 @@ func (x *fastReflection_ValidatorUpdate) Mutable(fd protoreflect.FieldDescriptor // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_ValidatorUpdate) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.ValidatorUpdate.power": + case "tendermint.abci.ValidatorUpdate.pub_key": + m := new(crypto.PublicKey) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "tendermint.abci.ValidatorUpdate.power": return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.abci.v2.ValidatorUpdate.pub_key_bytes": - return protoreflect.ValueOfBytes(nil) - case "cometbft.abci.v2.ValidatorUpdate.pub_key_type": - return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ValidatorUpdate")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ValidatorUpdate")) } - panic(fmt.Errorf("message cometbft.abci.v2.ValidatorUpdate does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ValidatorUpdate does not contain field %s", fd.FullName())) } } @@ -28781,7 +28087,7 @@ func (x *fastReflection_ValidatorUpdate) NewField(fd protoreflect.FieldDescripto func (x *fastReflection_ValidatorUpdate) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.ValidatorUpdate", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.ValidatorUpdate", d.FullName())) } panic("unreachable") } @@ -28836,17 +28142,13 @@ func (x *fastReflection_ValidatorUpdate) ProtoMethods() *protoiface.Methods { var n int var l int _ = l + if x.PubKey != nil { + l = options.Size(x.PubKey) + n += 1 + l + runtime.Sov(uint64(l)) + } if x.Power != 0 { n += 1 + runtime.Sov(uint64(x.Power)) } - l = len(x.PubKeyBytes) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.PubKeyType) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -28876,25 +28178,25 @@ func (x *fastReflection_ValidatorUpdate) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.PubKeyType) > 0 { - i -= len(x.PubKeyType) - copy(dAtA[i:], x.PubKeyType) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PubKeyType))) - i-- - dAtA[i] = 0x22 - } - if len(x.PubKeyBytes) > 0 { - i -= len(x.PubKeyBytes) - copy(dAtA[i:], x.PubKeyBytes) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PubKeyBytes))) - i-- - dAtA[i] = 0x1a - } if x.Power != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.Power)) i-- dAtA[i] = 0x10 } + if x.PubKey != nil { + encoded, err := options.Marshal(x.PubKey) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -28944,6 +28246,42 @@ func (x *fastReflection_ValidatorUpdate) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ValidatorUpdate: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PubKey", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.PubKey == nil { + x.PubKey = &crypto.PublicKey{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PubKey); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex case 2: if wireType != 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Power", wireType) @@ -28963,72 +28301,6 @@ func (x *fastReflection_ValidatorUpdate) ProtoMethods() *protoiface.Methods { break } } - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PubKeyBytes", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.PubKeyBytes = append(x.PubKeyBytes[:0], dAtA[iNdEx:postIndex]...) - if x.PubKeyBytes == nil { - x.PubKeyBytes = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PubKeyType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.PubKeyType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -29071,8 +28343,8 @@ var ( ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_VoteInfo = File_cometbft_abci_v2_types_proto.Messages().ByName("VoteInfo") + file_tendermint_abci_types_proto_init() + md_VoteInfo = File_tendermint_abci_types_proto.Messages().ByName("VoteInfo") fd_VoteInfo_validator = md_VoteInfo.Fields().ByName("validator") fd_VoteInfo_block_id_flag = md_VoteInfo.Fields().ByName("block_id_flag") } @@ -29086,7 +28358,7 @@ func (x *VoteInfo) ProtoReflect() protoreflect.Message { } func (x *VoteInfo) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[43] + mi := &file_tendermint_abci_types_proto_msgTypes[43] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -29169,15 +28441,15 @@ func (x *fastReflection_VoteInfo) Range(f func(protoreflect.FieldDescriptor, pro // a repeated field is populated if it is non-empty. func (x *fastReflection_VoteInfo) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.VoteInfo.validator": + case "tendermint.abci.VoteInfo.validator": return x.Validator != nil - case "cometbft.abci.v2.VoteInfo.block_id_flag": + case "tendermint.abci.VoteInfo.block_id_flag": return x.BlockIdFlag != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.VoteInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.VoteInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.VoteInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.VoteInfo does not contain field %s", fd.FullName())) } } @@ -29189,15 +28461,15 @@ func (x *fastReflection_VoteInfo) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_VoteInfo) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.VoteInfo.validator": + case "tendermint.abci.VoteInfo.validator": x.Validator = nil - case "cometbft.abci.v2.VoteInfo.block_id_flag": + case "tendermint.abci.VoteInfo.block_id_flag": x.BlockIdFlag = 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.VoteInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.VoteInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.VoteInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.VoteInfo does not contain field %s", fd.FullName())) } } @@ -29209,17 +28481,17 @@ func (x *fastReflection_VoteInfo) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_VoteInfo) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.VoteInfo.validator": + case "tendermint.abci.VoteInfo.validator": value := x.Validator return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.VoteInfo.block_id_flag": + case "tendermint.abci.VoteInfo.block_id_flag": value := x.BlockIdFlag return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.VoteInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.VoteInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.VoteInfo does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.VoteInfo does not contain field %s", descriptor.FullName())) } } @@ -29235,15 +28507,15 @@ func (x *fastReflection_VoteInfo) Get(descriptor protoreflect.FieldDescriptor) p // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_VoteInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.VoteInfo.validator": + case "tendermint.abci.VoteInfo.validator": x.Validator = value.Message().Interface().(*Validator) - case "cometbft.abci.v2.VoteInfo.block_id_flag": - x.BlockIdFlag = (v2.BlockIDFlag)(value.Enum()) + case "tendermint.abci.VoteInfo.block_id_flag": + x.BlockIdFlag = (types.BlockIDFlag)(value.Enum()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.VoteInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.VoteInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.VoteInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.VoteInfo does not contain field %s", fd.FullName())) } } @@ -29259,18 +28531,18 @@ func (x *fastReflection_VoteInfo) Set(fd protoreflect.FieldDescriptor, value pro // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_VoteInfo) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.VoteInfo.validator": + case "tendermint.abci.VoteInfo.validator": if x.Validator == nil { x.Validator = new(Validator) } return protoreflect.ValueOfMessage(x.Validator.ProtoReflect()) - case "cometbft.abci.v2.VoteInfo.block_id_flag": - panic(fmt.Errorf("field block_id_flag of message cometbft.abci.v2.VoteInfo is not mutable")) + case "tendermint.abci.VoteInfo.block_id_flag": + panic(fmt.Errorf("field block_id_flag of message tendermint.abci.VoteInfo is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.VoteInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.VoteInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.VoteInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.VoteInfo does not contain field %s", fd.FullName())) } } @@ -29279,16 +28551,16 @@ func (x *fastReflection_VoteInfo) Mutable(fd protoreflect.FieldDescriptor) proto // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_VoteInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.VoteInfo.validator": + case "tendermint.abci.VoteInfo.validator": m := new(Validator) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.abci.v2.VoteInfo.block_id_flag": + case "tendermint.abci.VoteInfo.block_id_flag": return protoreflect.ValueOfEnum(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.VoteInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.VoteInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.VoteInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.VoteInfo does not contain field %s", fd.FullName())) } } @@ -29298,7 +28570,7 @@ func (x *fastReflection_VoteInfo) NewField(fd protoreflect.FieldDescriptor) prot func (x *fastReflection_VoteInfo) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.VoteInfo", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.VoteInfo", d.FullName())) } panic("unreachable") } @@ -29507,7 +28779,7 @@ func (x *fastReflection_VoteInfo) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.BlockIdFlag |= v2.BlockIDFlag(b&0x7F) << shift + x.BlockIdFlag |= types.BlockIDFlag(b&0x7F) << shift if b < 0x80 { break } @@ -29548,24 +28820,20 @@ func (x *fastReflection_VoteInfo) ProtoMethods() *protoiface.Methods { } var ( - md_ExtendedVoteInfo protoreflect.MessageDescriptor - fd_ExtendedVoteInfo_validator protoreflect.FieldDescriptor - fd_ExtendedVoteInfo_vote_extension protoreflect.FieldDescriptor - fd_ExtendedVoteInfo_extension_signature protoreflect.FieldDescriptor - fd_ExtendedVoteInfo_block_id_flag protoreflect.FieldDescriptor - fd_ExtendedVoteInfo_non_rp_vote_extension protoreflect.FieldDescriptor - fd_ExtendedVoteInfo_non_rp_extension_signature protoreflect.FieldDescriptor + md_ExtendedVoteInfo protoreflect.MessageDescriptor + fd_ExtendedVoteInfo_validator protoreflect.FieldDescriptor + fd_ExtendedVoteInfo_vote_extension protoreflect.FieldDescriptor + fd_ExtendedVoteInfo_extension_signature protoreflect.FieldDescriptor + fd_ExtendedVoteInfo_block_id_flag protoreflect.FieldDescriptor ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_ExtendedVoteInfo = File_cometbft_abci_v2_types_proto.Messages().ByName("ExtendedVoteInfo") + file_tendermint_abci_types_proto_init() + md_ExtendedVoteInfo = File_tendermint_abci_types_proto.Messages().ByName("ExtendedVoteInfo") fd_ExtendedVoteInfo_validator = md_ExtendedVoteInfo.Fields().ByName("validator") fd_ExtendedVoteInfo_vote_extension = md_ExtendedVoteInfo.Fields().ByName("vote_extension") fd_ExtendedVoteInfo_extension_signature = md_ExtendedVoteInfo.Fields().ByName("extension_signature") fd_ExtendedVoteInfo_block_id_flag = md_ExtendedVoteInfo.Fields().ByName("block_id_flag") - fd_ExtendedVoteInfo_non_rp_vote_extension = md_ExtendedVoteInfo.Fields().ByName("non_rp_vote_extension") - fd_ExtendedVoteInfo_non_rp_extension_signature = md_ExtendedVoteInfo.Fields().ByName("non_rp_extension_signature") } var _ protoreflect.Message = (*fastReflection_ExtendedVoteInfo)(nil) @@ -29577,7 +28845,7 @@ func (x *ExtendedVoteInfo) ProtoReflect() protoreflect.Message { } func (x *ExtendedVoteInfo) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[44] + mi := &file_tendermint_abci_types_proto_msgTypes[44] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -29657,18 +28925,6 @@ func (x *fastReflection_ExtendedVoteInfo) Range(f func(protoreflect.FieldDescrip return } } - if len(x.NonRpVoteExtension) != 0 { - value := protoreflect.ValueOfBytes(x.NonRpVoteExtension) - if !f(fd_ExtendedVoteInfo_non_rp_vote_extension, value) { - return - } - } - if len(x.NonRpExtensionSignature) != 0 { - value := protoreflect.ValueOfBytes(x.NonRpExtensionSignature) - if !f(fd_ExtendedVoteInfo_non_rp_extension_signature, value) { - return - } - } } // Has reports whether a field is populated. @@ -29684,23 +28940,19 @@ func (x *fastReflection_ExtendedVoteInfo) Range(f func(protoreflect.FieldDescrip // a repeated field is populated if it is non-empty. func (x *fastReflection_ExtendedVoteInfo) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.ExtendedVoteInfo.validator": + case "tendermint.abci.ExtendedVoteInfo.validator": return x.Validator != nil - case "cometbft.abci.v2.ExtendedVoteInfo.vote_extension": + case "tendermint.abci.ExtendedVoteInfo.vote_extension": return len(x.VoteExtension) != 0 - case "cometbft.abci.v2.ExtendedVoteInfo.extension_signature": + case "tendermint.abci.ExtendedVoteInfo.extension_signature": return len(x.ExtensionSignature) != 0 - case "cometbft.abci.v2.ExtendedVoteInfo.block_id_flag": + case "tendermint.abci.ExtendedVoteInfo.block_id_flag": return x.BlockIdFlag != 0 - case "cometbft.abci.v2.ExtendedVoteInfo.non_rp_vote_extension": - return len(x.NonRpVoteExtension) != 0 - case "cometbft.abci.v2.ExtendedVoteInfo.non_rp_extension_signature": - return len(x.NonRpExtensionSignature) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExtendedVoteInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ExtendedVoteInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExtendedVoteInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ExtendedVoteInfo does not contain field %s", fd.FullName())) } } @@ -29712,23 +28964,19 @@ func (x *fastReflection_ExtendedVoteInfo) Has(fd protoreflect.FieldDescriptor) b // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ExtendedVoteInfo) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.ExtendedVoteInfo.validator": + case "tendermint.abci.ExtendedVoteInfo.validator": x.Validator = nil - case "cometbft.abci.v2.ExtendedVoteInfo.vote_extension": + case "tendermint.abci.ExtendedVoteInfo.vote_extension": x.VoteExtension = nil - case "cometbft.abci.v2.ExtendedVoteInfo.extension_signature": + case "tendermint.abci.ExtendedVoteInfo.extension_signature": x.ExtensionSignature = nil - case "cometbft.abci.v2.ExtendedVoteInfo.block_id_flag": + case "tendermint.abci.ExtendedVoteInfo.block_id_flag": x.BlockIdFlag = 0 - case "cometbft.abci.v2.ExtendedVoteInfo.non_rp_vote_extension": - x.NonRpVoteExtension = nil - case "cometbft.abci.v2.ExtendedVoteInfo.non_rp_extension_signature": - x.NonRpExtensionSignature = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExtendedVoteInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ExtendedVoteInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExtendedVoteInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ExtendedVoteInfo does not contain field %s", fd.FullName())) } } @@ -29740,29 +28988,23 @@ func (x *fastReflection_ExtendedVoteInfo) Clear(fd protoreflect.FieldDescriptor) // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_ExtendedVoteInfo) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.ExtendedVoteInfo.validator": + case "tendermint.abci.ExtendedVoteInfo.validator": value := x.Validator return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.ExtendedVoteInfo.vote_extension": + case "tendermint.abci.ExtendedVoteInfo.vote_extension": value := x.VoteExtension return protoreflect.ValueOfBytes(value) - case "cometbft.abci.v2.ExtendedVoteInfo.extension_signature": + case "tendermint.abci.ExtendedVoteInfo.extension_signature": value := x.ExtensionSignature return protoreflect.ValueOfBytes(value) - case "cometbft.abci.v2.ExtendedVoteInfo.block_id_flag": + case "tendermint.abci.ExtendedVoteInfo.block_id_flag": value := x.BlockIdFlag return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "cometbft.abci.v2.ExtendedVoteInfo.non_rp_vote_extension": - value := x.NonRpVoteExtension - return protoreflect.ValueOfBytes(value) - case "cometbft.abci.v2.ExtendedVoteInfo.non_rp_extension_signature": - value := x.NonRpExtensionSignature - return protoreflect.ValueOfBytes(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExtendedVoteInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ExtendedVoteInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExtendedVoteInfo does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.ExtendedVoteInfo does not contain field %s", descriptor.FullName())) } } @@ -29778,23 +29020,19 @@ func (x *fastReflection_ExtendedVoteInfo) Get(descriptor protoreflect.FieldDescr // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ExtendedVoteInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.ExtendedVoteInfo.validator": + case "tendermint.abci.ExtendedVoteInfo.validator": x.Validator = value.Message().Interface().(*Validator) - case "cometbft.abci.v2.ExtendedVoteInfo.vote_extension": + case "tendermint.abci.ExtendedVoteInfo.vote_extension": x.VoteExtension = value.Bytes() - case "cometbft.abci.v2.ExtendedVoteInfo.extension_signature": + case "tendermint.abci.ExtendedVoteInfo.extension_signature": x.ExtensionSignature = value.Bytes() - case "cometbft.abci.v2.ExtendedVoteInfo.block_id_flag": - x.BlockIdFlag = (v2.BlockIDFlag)(value.Enum()) - case "cometbft.abci.v2.ExtendedVoteInfo.non_rp_vote_extension": - x.NonRpVoteExtension = value.Bytes() - case "cometbft.abci.v2.ExtendedVoteInfo.non_rp_extension_signature": - x.NonRpExtensionSignature = value.Bytes() + case "tendermint.abci.ExtendedVoteInfo.block_id_flag": + x.BlockIdFlag = (types.BlockIDFlag)(value.Enum()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExtendedVoteInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ExtendedVoteInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExtendedVoteInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ExtendedVoteInfo does not contain field %s", fd.FullName())) } } @@ -29810,26 +29048,22 @@ func (x *fastReflection_ExtendedVoteInfo) Set(fd protoreflect.FieldDescriptor, v // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ExtendedVoteInfo) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.ExtendedVoteInfo.validator": + case "tendermint.abci.ExtendedVoteInfo.validator": if x.Validator == nil { x.Validator = new(Validator) } return protoreflect.ValueOfMessage(x.Validator.ProtoReflect()) - case "cometbft.abci.v2.ExtendedVoteInfo.vote_extension": - panic(fmt.Errorf("field vote_extension of message cometbft.abci.v2.ExtendedVoteInfo is not mutable")) - case "cometbft.abci.v2.ExtendedVoteInfo.extension_signature": - panic(fmt.Errorf("field extension_signature of message cometbft.abci.v2.ExtendedVoteInfo is not mutable")) - case "cometbft.abci.v2.ExtendedVoteInfo.block_id_flag": - panic(fmt.Errorf("field block_id_flag of message cometbft.abci.v2.ExtendedVoteInfo is not mutable")) - case "cometbft.abci.v2.ExtendedVoteInfo.non_rp_vote_extension": - panic(fmt.Errorf("field non_rp_vote_extension of message cometbft.abci.v2.ExtendedVoteInfo is not mutable")) - case "cometbft.abci.v2.ExtendedVoteInfo.non_rp_extension_signature": - panic(fmt.Errorf("field non_rp_extension_signature of message cometbft.abci.v2.ExtendedVoteInfo is not mutable")) + case "tendermint.abci.ExtendedVoteInfo.vote_extension": + panic(fmt.Errorf("field vote_extension of message tendermint.abci.ExtendedVoteInfo is not mutable")) + case "tendermint.abci.ExtendedVoteInfo.extension_signature": + panic(fmt.Errorf("field extension_signature of message tendermint.abci.ExtendedVoteInfo is not mutable")) + case "tendermint.abci.ExtendedVoteInfo.block_id_flag": + panic(fmt.Errorf("field block_id_flag of message tendermint.abci.ExtendedVoteInfo is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExtendedVoteInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ExtendedVoteInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExtendedVoteInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ExtendedVoteInfo does not contain field %s", fd.FullName())) } } @@ -29838,24 +29072,20 @@ func (x *fastReflection_ExtendedVoteInfo) Mutable(fd protoreflect.FieldDescripto // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_ExtendedVoteInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.ExtendedVoteInfo.validator": + case "tendermint.abci.ExtendedVoteInfo.validator": m := new(Validator) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.abci.v2.ExtendedVoteInfo.vote_extension": + case "tendermint.abci.ExtendedVoteInfo.vote_extension": return protoreflect.ValueOfBytes(nil) - case "cometbft.abci.v2.ExtendedVoteInfo.extension_signature": + case "tendermint.abci.ExtendedVoteInfo.extension_signature": return protoreflect.ValueOfBytes(nil) - case "cometbft.abci.v2.ExtendedVoteInfo.block_id_flag": + case "tendermint.abci.ExtendedVoteInfo.block_id_flag": return protoreflect.ValueOfEnum(0) - case "cometbft.abci.v2.ExtendedVoteInfo.non_rp_vote_extension": - return protoreflect.ValueOfBytes(nil) - case "cometbft.abci.v2.ExtendedVoteInfo.non_rp_extension_signature": - return protoreflect.ValueOfBytes(nil) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.ExtendedVoteInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.ExtendedVoteInfo")) } - panic(fmt.Errorf("message cometbft.abci.v2.ExtendedVoteInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.ExtendedVoteInfo does not contain field %s", fd.FullName())) } } @@ -29865,7 +29095,7 @@ func (x *fastReflection_ExtendedVoteInfo) NewField(fd protoreflect.FieldDescript func (x *fastReflection_ExtendedVoteInfo) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.ExtendedVoteInfo", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.ExtendedVoteInfo", d.FullName())) } panic("unreachable") } @@ -29935,14 +29165,6 @@ func (x *fastReflection_ExtendedVoteInfo) ProtoMethods() *protoiface.Methods { if x.BlockIdFlag != 0 { n += 1 + runtime.Sov(uint64(x.BlockIdFlag)) } - l = len(x.NonRpVoteExtension) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.NonRpExtensionSignature) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -29972,20 +29194,6 @@ func (x *fastReflection_ExtendedVoteInfo) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.NonRpExtensionSignature) > 0 { - i -= len(x.NonRpExtensionSignature) - copy(dAtA[i:], x.NonRpExtensionSignature) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NonRpExtensionSignature))) - i-- - dAtA[i] = 0x3a - } - if len(x.NonRpVoteExtension) > 0 { - i -= len(x.NonRpVoteExtension) - copy(dAtA[i:], x.NonRpVoteExtension) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NonRpVoteExtension))) - i-- - dAtA[i] = 0x32 - } if x.BlockIdFlag != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockIdFlag)) i-- @@ -30186,79 +29394,11 @@ func (x *fastReflection_ExtendedVoteInfo) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.BlockIdFlag |= v2.BlockIDFlag(b&0x7F) << shift + x.BlockIdFlag |= types.BlockIDFlag(b&0x7F) << shift if b < 0x80 { break } } - case 6: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NonRpVoteExtension", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.NonRpVoteExtension = append(x.NonRpVoteExtension[:0], dAtA[iNdEx:postIndex]...) - if x.NonRpVoteExtension == nil { - x.NonRpVoteExtension = []byte{} - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NonRpExtensionSignature", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.NonRpExtensionSignature = append(x.NonRpExtensionSignature[:0], dAtA[iNdEx:postIndex]...) - if x.NonRpExtensionSignature == nil { - x.NonRpExtensionSignature = []byte{} - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -30304,8 +29444,8 @@ var ( ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_Misbehavior = File_cometbft_abci_v2_types_proto.Messages().ByName("Misbehavior") + file_tendermint_abci_types_proto_init() + md_Misbehavior = File_tendermint_abci_types_proto.Messages().ByName("Misbehavior") fd_Misbehavior_type = md_Misbehavior.Fields().ByName("type") fd_Misbehavior_validator = md_Misbehavior.Fields().ByName("validator") fd_Misbehavior_height = md_Misbehavior.Fields().ByName("height") @@ -30322,7 +29462,7 @@ func (x *Misbehavior) ProtoReflect() protoreflect.Message { } func (x *Misbehavior) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[45] + mi := &file_tendermint_abci_types_proto_msgTypes[45] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -30423,21 +29563,21 @@ func (x *fastReflection_Misbehavior) Range(f func(protoreflect.FieldDescriptor, // a repeated field is populated if it is non-empty. func (x *fastReflection_Misbehavior) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.Misbehavior.type": + case "tendermint.abci.Misbehavior.type": return x.Type_ != 0 - case "cometbft.abci.v2.Misbehavior.validator": + case "tendermint.abci.Misbehavior.validator": return x.Validator != nil - case "cometbft.abci.v2.Misbehavior.height": + case "tendermint.abci.Misbehavior.height": return x.Height != int64(0) - case "cometbft.abci.v2.Misbehavior.time": + case "tendermint.abci.Misbehavior.time": return x.Time != nil - case "cometbft.abci.v2.Misbehavior.total_voting_power": + case "tendermint.abci.Misbehavior.total_voting_power": return x.TotalVotingPower != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Misbehavior")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Misbehavior")) } - panic(fmt.Errorf("message cometbft.abci.v2.Misbehavior does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.Misbehavior does not contain field %s", fd.FullName())) } } @@ -30449,21 +29589,21 @@ func (x *fastReflection_Misbehavior) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Misbehavior) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.Misbehavior.type": + case "tendermint.abci.Misbehavior.type": x.Type_ = 0 - case "cometbft.abci.v2.Misbehavior.validator": + case "tendermint.abci.Misbehavior.validator": x.Validator = nil - case "cometbft.abci.v2.Misbehavior.height": + case "tendermint.abci.Misbehavior.height": x.Height = int64(0) - case "cometbft.abci.v2.Misbehavior.time": + case "tendermint.abci.Misbehavior.time": x.Time = nil - case "cometbft.abci.v2.Misbehavior.total_voting_power": + case "tendermint.abci.Misbehavior.total_voting_power": x.TotalVotingPower = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Misbehavior")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Misbehavior")) } - panic(fmt.Errorf("message cometbft.abci.v2.Misbehavior does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.Misbehavior does not contain field %s", fd.FullName())) } } @@ -30475,26 +29615,26 @@ func (x *fastReflection_Misbehavior) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Misbehavior) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.Misbehavior.type": + case "tendermint.abci.Misbehavior.type": value := x.Type_ return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "cometbft.abci.v2.Misbehavior.validator": + case "tendermint.abci.Misbehavior.validator": value := x.Validator return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.Misbehavior.height": + case "tendermint.abci.Misbehavior.height": value := x.Height return protoreflect.ValueOfInt64(value) - case "cometbft.abci.v2.Misbehavior.time": + case "tendermint.abci.Misbehavior.time": value := x.Time return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.abci.v2.Misbehavior.total_voting_power": + case "tendermint.abci.Misbehavior.total_voting_power": value := x.TotalVotingPower return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Misbehavior")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Misbehavior")) } - panic(fmt.Errorf("message cometbft.abci.v2.Misbehavior does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.Misbehavior does not contain field %s", descriptor.FullName())) } } @@ -30510,21 +29650,21 @@ func (x *fastReflection_Misbehavior) Get(descriptor protoreflect.FieldDescriptor // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Misbehavior) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.Misbehavior.type": + case "tendermint.abci.Misbehavior.type": x.Type_ = (MisbehaviorType)(value.Enum()) - case "cometbft.abci.v2.Misbehavior.validator": + case "tendermint.abci.Misbehavior.validator": x.Validator = value.Message().Interface().(*Validator) - case "cometbft.abci.v2.Misbehavior.height": + case "tendermint.abci.Misbehavior.height": x.Height = value.Int() - case "cometbft.abci.v2.Misbehavior.time": + case "tendermint.abci.Misbehavior.time": x.Time = value.Message().Interface().(*timestamppb.Timestamp) - case "cometbft.abci.v2.Misbehavior.total_voting_power": + case "tendermint.abci.Misbehavior.total_voting_power": x.TotalVotingPower = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Misbehavior")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Misbehavior")) } - panic(fmt.Errorf("message cometbft.abci.v2.Misbehavior does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.Misbehavior does not contain field %s", fd.FullName())) } } @@ -30540,27 +29680,27 @@ func (x *fastReflection_Misbehavior) Set(fd protoreflect.FieldDescriptor, value // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Misbehavior) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.Misbehavior.validator": + case "tendermint.abci.Misbehavior.validator": if x.Validator == nil { x.Validator = new(Validator) } return protoreflect.ValueOfMessage(x.Validator.ProtoReflect()) - case "cometbft.abci.v2.Misbehavior.time": + case "tendermint.abci.Misbehavior.time": if x.Time == nil { x.Time = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.Time.ProtoReflect()) - case "cometbft.abci.v2.Misbehavior.type": - panic(fmt.Errorf("field type of message cometbft.abci.v2.Misbehavior is not mutable")) - case "cometbft.abci.v2.Misbehavior.height": - panic(fmt.Errorf("field height of message cometbft.abci.v2.Misbehavior is not mutable")) - case "cometbft.abci.v2.Misbehavior.total_voting_power": - panic(fmt.Errorf("field total_voting_power of message cometbft.abci.v2.Misbehavior is not mutable")) + case "tendermint.abci.Misbehavior.type": + panic(fmt.Errorf("field type of message tendermint.abci.Misbehavior is not mutable")) + case "tendermint.abci.Misbehavior.height": + panic(fmt.Errorf("field height of message tendermint.abci.Misbehavior is not mutable")) + case "tendermint.abci.Misbehavior.total_voting_power": + panic(fmt.Errorf("field total_voting_power of message tendermint.abci.Misbehavior is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Misbehavior")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Misbehavior")) } - panic(fmt.Errorf("message cometbft.abci.v2.Misbehavior does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.Misbehavior does not contain field %s", fd.FullName())) } } @@ -30569,23 +29709,23 @@ func (x *fastReflection_Misbehavior) Mutable(fd protoreflect.FieldDescriptor) pr // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Misbehavior) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.Misbehavior.type": + case "tendermint.abci.Misbehavior.type": return protoreflect.ValueOfEnum(0) - case "cometbft.abci.v2.Misbehavior.validator": + case "tendermint.abci.Misbehavior.validator": m := new(Validator) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.abci.v2.Misbehavior.height": + case "tendermint.abci.Misbehavior.height": return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.abci.v2.Misbehavior.time": + case "tendermint.abci.Misbehavior.time": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.abci.v2.Misbehavior.total_voting_power": + case "tendermint.abci.Misbehavior.total_voting_power": return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Misbehavior")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Misbehavior")) } - panic(fmt.Errorf("message cometbft.abci.v2.Misbehavior does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.Misbehavior does not contain field %s", fd.FullName())) } } @@ -30595,7 +29735,7 @@ func (x *fastReflection_Misbehavior) NewField(fd protoreflect.FieldDescriptor) p func (x *fastReflection_Misbehavior) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.Misbehavior", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.Misbehavior", d.FullName())) } panic("unreachable") } @@ -30962,8 +30102,8 @@ var ( ) func init() { - file_cometbft_abci_v2_types_proto_init() - md_Snapshot = File_cometbft_abci_v2_types_proto.Messages().ByName("Snapshot") + file_tendermint_abci_types_proto_init() + md_Snapshot = File_tendermint_abci_types_proto.Messages().ByName("Snapshot") fd_Snapshot_height = md_Snapshot.Fields().ByName("height") fd_Snapshot_format = md_Snapshot.Fields().ByName("format") fd_Snapshot_chunks = md_Snapshot.Fields().ByName("chunks") @@ -30980,7 +30120,7 @@ func (x *Snapshot) ProtoReflect() protoreflect.Message { } func (x *Snapshot) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[46] + mi := &file_tendermint_abci_types_proto_msgTypes[46] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -31081,21 +30221,21 @@ func (x *fastReflection_Snapshot) Range(f func(protoreflect.FieldDescriptor, pro // a repeated field is populated if it is non-empty. func (x *fastReflection_Snapshot) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.abci.v2.Snapshot.height": + case "tendermint.abci.Snapshot.height": return x.Height != uint64(0) - case "cometbft.abci.v2.Snapshot.format": + case "tendermint.abci.Snapshot.format": return x.Format != uint32(0) - case "cometbft.abci.v2.Snapshot.chunks": + case "tendermint.abci.Snapshot.chunks": return x.Chunks != uint32(0) - case "cometbft.abci.v2.Snapshot.hash": + case "tendermint.abci.Snapshot.hash": return len(x.Hash) != 0 - case "cometbft.abci.v2.Snapshot.metadata": + case "tendermint.abci.Snapshot.metadata": return len(x.Metadata) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Snapshot")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Snapshot")) } - panic(fmt.Errorf("message cometbft.abci.v2.Snapshot does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.Snapshot does not contain field %s", fd.FullName())) } } @@ -31107,21 +30247,21 @@ func (x *fastReflection_Snapshot) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Snapshot) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.abci.v2.Snapshot.height": + case "tendermint.abci.Snapshot.height": x.Height = uint64(0) - case "cometbft.abci.v2.Snapshot.format": + case "tendermint.abci.Snapshot.format": x.Format = uint32(0) - case "cometbft.abci.v2.Snapshot.chunks": + case "tendermint.abci.Snapshot.chunks": x.Chunks = uint32(0) - case "cometbft.abci.v2.Snapshot.hash": + case "tendermint.abci.Snapshot.hash": x.Hash = nil - case "cometbft.abci.v2.Snapshot.metadata": + case "tendermint.abci.Snapshot.metadata": x.Metadata = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Snapshot")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Snapshot")) } - panic(fmt.Errorf("message cometbft.abci.v2.Snapshot does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.Snapshot does not contain field %s", fd.FullName())) } } @@ -31133,26 +30273,26 @@ func (x *fastReflection_Snapshot) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Snapshot) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.abci.v2.Snapshot.height": + case "tendermint.abci.Snapshot.height": value := x.Height return protoreflect.ValueOfUint64(value) - case "cometbft.abci.v2.Snapshot.format": + case "tendermint.abci.Snapshot.format": value := x.Format return protoreflect.ValueOfUint32(value) - case "cometbft.abci.v2.Snapshot.chunks": + case "tendermint.abci.Snapshot.chunks": value := x.Chunks return protoreflect.ValueOfUint32(value) - case "cometbft.abci.v2.Snapshot.hash": + case "tendermint.abci.Snapshot.hash": value := x.Hash return protoreflect.ValueOfBytes(value) - case "cometbft.abci.v2.Snapshot.metadata": + case "tendermint.abci.Snapshot.metadata": value := x.Metadata return protoreflect.ValueOfBytes(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Snapshot")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Snapshot")) } - panic(fmt.Errorf("message cometbft.abci.v2.Snapshot does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.abci.Snapshot does not contain field %s", descriptor.FullName())) } } @@ -31168,21 +30308,21 @@ func (x *fastReflection_Snapshot) Get(descriptor protoreflect.FieldDescriptor) p // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Snapshot) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.abci.v2.Snapshot.height": + case "tendermint.abci.Snapshot.height": x.Height = value.Uint() - case "cometbft.abci.v2.Snapshot.format": + case "tendermint.abci.Snapshot.format": x.Format = uint32(value.Uint()) - case "cometbft.abci.v2.Snapshot.chunks": + case "tendermint.abci.Snapshot.chunks": x.Chunks = uint32(value.Uint()) - case "cometbft.abci.v2.Snapshot.hash": + case "tendermint.abci.Snapshot.hash": x.Hash = value.Bytes() - case "cometbft.abci.v2.Snapshot.metadata": + case "tendermint.abci.Snapshot.metadata": x.Metadata = value.Bytes() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Snapshot")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Snapshot")) } - panic(fmt.Errorf("message cometbft.abci.v2.Snapshot does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.Snapshot does not contain field %s", fd.FullName())) } } @@ -31198,21 +30338,21 @@ func (x *fastReflection_Snapshot) Set(fd protoreflect.FieldDescriptor, value pro // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Snapshot) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.Snapshot.height": - panic(fmt.Errorf("field height of message cometbft.abci.v2.Snapshot is not mutable")) - case "cometbft.abci.v2.Snapshot.format": - panic(fmt.Errorf("field format of message cometbft.abci.v2.Snapshot is not mutable")) - case "cometbft.abci.v2.Snapshot.chunks": - panic(fmt.Errorf("field chunks of message cometbft.abci.v2.Snapshot is not mutable")) - case "cometbft.abci.v2.Snapshot.hash": - panic(fmt.Errorf("field hash of message cometbft.abci.v2.Snapshot is not mutable")) - case "cometbft.abci.v2.Snapshot.metadata": - panic(fmt.Errorf("field metadata of message cometbft.abci.v2.Snapshot is not mutable")) + case "tendermint.abci.Snapshot.height": + panic(fmt.Errorf("field height of message tendermint.abci.Snapshot is not mutable")) + case "tendermint.abci.Snapshot.format": + panic(fmt.Errorf("field format of message tendermint.abci.Snapshot is not mutable")) + case "tendermint.abci.Snapshot.chunks": + panic(fmt.Errorf("field chunks of message tendermint.abci.Snapshot is not mutable")) + case "tendermint.abci.Snapshot.hash": + panic(fmt.Errorf("field hash of message tendermint.abci.Snapshot is not mutable")) + case "tendermint.abci.Snapshot.metadata": + panic(fmt.Errorf("field metadata of message tendermint.abci.Snapshot is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Snapshot")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Snapshot")) } - panic(fmt.Errorf("message cometbft.abci.v2.Snapshot does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.Snapshot does not contain field %s", fd.FullName())) } } @@ -31221,21 +30361,21 @@ func (x *fastReflection_Snapshot) Mutable(fd protoreflect.FieldDescriptor) proto // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Snapshot) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.abci.v2.Snapshot.height": + case "tendermint.abci.Snapshot.height": return protoreflect.ValueOfUint64(uint64(0)) - case "cometbft.abci.v2.Snapshot.format": + case "tendermint.abci.Snapshot.format": return protoreflect.ValueOfUint32(uint32(0)) - case "cometbft.abci.v2.Snapshot.chunks": + case "tendermint.abci.Snapshot.chunks": return protoreflect.ValueOfUint32(uint32(0)) - case "cometbft.abci.v2.Snapshot.hash": + case "tendermint.abci.Snapshot.hash": return protoreflect.ValueOfBytes(nil) - case "cometbft.abci.v2.Snapshot.metadata": + case "tendermint.abci.Snapshot.metadata": return protoreflect.ValueOfBytes(nil) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.abci.v2.Snapshot")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.abci.Snapshot")) } - panic(fmt.Errorf("message cometbft.abci.v2.Snapshot does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.abci.Snapshot does not contain field %s", fd.FullName())) } } @@ -31245,7 +30385,7 @@ func (x *fastReflection_Snapshot) NewField(fd protoreflect.FieldDescriptor) prot func (x *fastReflection_Snapshot) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.abci.v2.Snapshot", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.abci.Snapshot", d.FullName())) } panic("unreachable") } @@ -31588,7 +30728,7 @@ func (x *fastReflection_Snapshot) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: cometbft/abci/v2/types.proto +// source: tendermint/abci/types.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -31597,33 +30737,22 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Type of the transaction check request. -// -// This enumeration is incompatible with the CheckTxType definition in -// cometbft.abci.v1beta1 and therefore shall not be used in encoding with the same -// field number. type CheckTxType int32 const ( - // Unknown - CheckTxType_CHECK_TX_TYPE_UNKNOWN CheckTxType = 0 - // Recheck (2nd, 3rd, etc.) - CheckTxType_CHECK_TX_TYPE_RECHECK CheckTxType = 1 - // Check (1st time) - CheckTxType_CHECK_TX_TYPE_CHECK CheckTxType = 2 + CheckTxType_NEW CheckTxType = 0 + CheckTxType_RECHECK CheckTxType = 1 ) // Enum value maps for CheckTxType. var ( CheckTxType_name = map[int32]string{ - 0: "CHECK_TX_TYPE_UNKNOWN", - 1: "CHECK_TX_TYPE_RECHECK", - 2: "CHECK_TX_TYPE_CHECK", + 0: "NEW", + 1: "RECHECK", } CheckTxType_value = map[string]int32{ - "CHECK_TX_TYPE_UNKNOWN": 0, - "CHECK_TX_TYPE_RECHECK": 1, - "CHECK_TX_TYPE_CHECK": 2, + "NEW": 0, + "RECHECK": 1, } ) @@ -31638,11 +30767,11 @@ func (x CheckTxType) String() string { } func (CheckTxType) Descriptor() protoreflect.EnumDescriptor { - return file_cometbft_abci_v2_types_proto_enumTypes[0].Descriptor() + return file_tendermint_abci_types_proto_enumTypes[0].Descriptor() } func (CheckTxType) Type() protoreflect.EnumType { - return &file_cometbft_abci_v2_types_proto_enumTypes[0] + return &file_tendermint_abci_types_proto_enumTypes[0] } func (x CheckTxType) Number() protoreflect.EnumNumber { @@ -31651,271 +30780,28 @@ func (x CheckTxType) Number() protoreflect.EnumNumber { // Deprecated: Use CheckTxType.Descriptor instead. func (CheckTxType) EnumDescriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{0} + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{0} } -// The result of offering a snapshot. -type OfferSnapshotResult int32 - -const ( - // Unknown result, abort all snapshot restoration - OfferSnapshotResult_OFFER_SNAPSHOT_RESULT_UNKNOWN OfferSnapshotResult = 0 - // Snapshot accepted, apply chunks - OfferSnapshotResult_OFFER_SNAPSHOT_RESULT_ACCEPT OfferSnapshotResult = 1 - // Abort all snapshot restoration - OfferSnapshotResult_OFFER_SNAPSHOT_RESULT_ABORT OfferSnapshotResult = 2 - // Reject this specific snapshot, try others - OfferSnapshotResult_OFFER_SNAPSHOT_RESULT_REJECT OfferSnapshotResult = 3 - // Reject all snapshots of this format, try others - OfferSnapshotResult_OFFER_SNAPSHOT_RESULT_REJECT_FORMAT OfferSnapshotResult = 4 - // Reject all snapshots from the sender(s), try others - OfferSnapshotResult_OFFER_SNAPSHOT_RESULT_REJECT_SENDER OfferSnapshotResult = 5 -) - -// Enum value maps for OfferSnapshotResult. -var ( - OfferSnapshotResult_name = map[int32]string{ - 0: "OFFER_SNAPSHOT_RESULT_UNKNOWN", - 1: "OFFER_SNAPSHOT_RESULT_ACCEPT", - 2: "OFFER_SNAPSHOT_RESULT_ABORT", - 3: "OFFER_SNAPSHOT_RESULT_REJECT", - 4: "OFFER_SNAPSHOT_RESULT_REJECT_FORMAT", - 5: "OFFER_SNAPSHOT_RESULT_REJECT_SENDER", - } - OfferSnapshotResult_value = map[string]int32{ - "OFFER_SNAPSHOT_RESULT_UNKNOWN": 0, - "OFFER_SNAPSHOT_RESULT_ACCEPT": 1, - "OFFER_SNAPSHOT_RESULT_ABORT": 2, - "OFFER_SNAPSHOT_RESULT_REJECT": 3, - "OFFER_SNAPSHOT_RESULT_REJECT_FORMAT": 4, - "OFFER_SNAPSHOT_RESULT_REJECT_SENDER": 5, - } -) - -func (x OfferSnapshotResult) Enum() *OfferSnapshotResult { - p := new(OfferSnapshotResult) - *p = x - return p -} - -func (x OfferSnapshotResult) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (OfferSnapshotResult) Descriptor() protoreflect.EnumDescriptor { - return file_cometbft_abci_v2_types_proto_enumTypes[1].Descriptor() -} - -func (OfferSnapshotResult) Type() protoreflect.EnumType { - return &file_cometbft_abci_v2_types_proto_enumTypes[1] -} - -func (x OfferSnapshotResult) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use OfferSnapshotResult.Descriptor instead. -func (OfferSnapshotResult) EnumDescriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{1} -} - -// The result of applying a snapshot chunk. -type ApplySnapshotChunkResult int32 - -const ( - // Unknown result, abort all snapshot restoration - ApplySnapshotChunkResult_APPLY_SNAPSHOT_CHUNK_RESULT_UNKNOWN ApplySnapshotChunkResult = 0 - // Chunk successfully accepted - ApplySnapshotChunkResult_APPLY_SNAPSHOT_CHUNK_RESULT_ACCEPT ApplySnapshotChunkResult = 1 - // Abort all snapshot restoration - ApplySnapshotChunkResult_APPLY_SNAPSHOT_CHUNK_RESULT_ABORT ApplySnapshotChunkResult = 2 - // Retry chunk (combine with refetch and reject) - ApplySnapshotChunkResult_APPLY_SNAPSHOT_CHUNK_RESULT_RETRY ApplySnapshotChunkResult = 3 - // Retry snapshot (combine with refetch and reject) - ApplySnapshotChunkResult_APPLY_SNAPSHOT_CHUNK_RESULT_RETRY_SNAPSHOT ApplySnapshotChunkResult = 4 - // Reject this snapshot, try others - ApplySnapshotChunkResult_APPLY_SNAPSHOT_CHUNK_RESULT_REJECT_SNAPSHOT ApplySnapshotChunkResult = 5 -) - -// Enum value maps for ApplySnapshotChunkResult. -var ( - ApplySnapshotChunkResult_name = map[int32]string{ - 0: "APPLY_SNAPSHOT_CHUNK_RESULT_UNKNOWN", - 1: "APPLY_SNAPSHOT_CHUNK_RESULT_ACCEPT", - 2: "APPLY_SNAPSHOT_CHUNK_RESULT_ABORT", - 3: "APPLY_SNAPSHOT_CHUNK_RESULT_RETRY", - 4: "APPLY_SNAPSHOT_CHUNK_RESULT_RETRY_SNAPSHOT", - 5: "APPLY_SNAPSHOT_CHUNK_RESULT_REJECT_SNAPSHOT", - } - ApplySnapshotChunkResult_value = map[string]int32{ - "APPLY_SNAPSHOT_CHUNK_RESULT_UNKNOWN": 0, - "APPLY_SNAPSHOT_CHUNK_RESULT_ACCEPT": 1, - "APPLY_SNAPSHOT_CHUNK_RESULT_ABORT": 2, - "APPLY_SNAPSHOT_CHUNK_RESULT_RETRY": 3, - "APPLY_SNAPSHOT_CHUNK_RESULT_RETRY_SNAPSHOT": 4, - "APPLY_SNAPSHOT_CHUNK_RESULT_REJECT_SNAPSHOT": 5, - } -) - -func (x ApplySnapshotChunkResult) Enum() *ApplySnapshotChunkResult { - p := new(ApplySnapshotChunkResult) - *p = x - return p -} - -func (x ApplySnapshotChunkResult) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ApplySnapshotChunkResult) Descriptor() protoreflect.EnumDescriptor { - return file_cometbft_abci_v2_types_proto_enumTypes[2].Descriptor() -} - -func (ApplySnapshotChunkResult) Type() protoreflect.EnumType { - return &file_cometbft_abci_v2_types_proto_enumTypes[2] -} - -func (x ApplySnapshotChunkResult) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ApplySnapshotChunkResult.Descriptor instead. -func (ApplySnapshotChunkResult) EnumDescriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{2} -} - -// ProcessProposalStatus is the status of the proposal processing. -type ProcessProposalStatus int32 - -const ( - // Unknown - ProcessProposalStatus_PROCESS_PROPOSAL_STATUS_UNKNOWN ProcessProposalStatus = 0 - // Accepted - ProcessProposalStatus_PROCESS_PROPOSAL_STATUS_ACCEPT ProcessProposalStatus = 1 - // Rejected - ProcessProposalStatus_PROCESS_PROPOSAL_STATUS_REJECT ProcessProposalStatus = 2 -) - -// Enum value maps for ProcessProposalStatus. -var ( - ProcessProposalStatus_name = map[int32]string{ - 0: "PROCESS_PROPOSAL_STATUS_UNKNOWN", - 1: "PROCESS_PROPOSAL_STATUS_ACCEPT", - 2: "PROCESS_PROPOSAL_STATUS_REJECT", - } - ProcessProposalStatus_value = map[string]int32{ - "PROCESS_PROPOSAL_STATUS_UNKNOWN": 0, - "PROCESS_PROPOSAL_STATUS_ACCEPT": 1, - "PROCESS_PROPOSAL_STATUS_REJECT": 2, - } -) - -func (x ProcessProposalStatus) Enum() *ProcessProposalStatus { - p := new(ProcessProposalStatus) - *p = x - return p -} - -func (x ProcessProposalStatus) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ProcessProposalStatus) Descriptor() protoreflect.EnumDescriptor { - return file_cometbft_abci_v2_types_proto_enumTypes[3].Descriptor() -} - -func (ProcessProposalStatus) Type() protoreflect.EnumType { - return &file_cometbft_abci_v2_types_proto_enumTypes[3] -} - -func (x ProcessProposalStatus) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ProcessProposalStatus.Descriptor instead. -func (ProcessProposalStatus) EnumDescriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{3} -} - -// VerifyVoteExtensionStatus is the status of the vote extension verification. -type VerifyVoteExtensionStatus int32 - -const ( - // Unknown - VerifyVoteExtensionStatus_VERIFY_VOTE_EXTENSION_STATUS_UNKNOWN VerifyVoteExtensionStatus = 0 - // Accepted - VerifyVoteExtensionStatus_VERIFY_VOTE_EXTENSION_STATUS_ACCEPT VerifyVoteExtensionStatus = 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. - VerifyVoteExtensionStatus_VERIFY_VOTE_EXTENSION_STATUS_REJECT VerifyVoteExtensionStatus = 2 -) - -// Enum value maps for VerifyVoteExtensionStatus. -var ( - VerifyVoteExtensionStatus_name = map[int32]string{ - 0: "VERIFY_VOTE_EXTENSION_STATUS_UNKNOWN", - 1: "VERIFY_VOTE_EXTENSION_STATUS_ACCEPT", - 2: "VERIFY_VOTE_EXTENSION_STATUS_REJECT", - } - VerifyVoteExtensionStatus_value = map[string]int32{ - "VERIFY_VOTE_EXTENSION_STATUS_UNKNOWN": 0, - "VERIFY_VOTE_EXTENSION_STATUS_ACCEPT": 1, - "VERIFY_VOTE_EXTENSION_STATUS_REJECT": 2, - } -) - -func (x VerifyVoteExtensionStatus) Enum() *VerifyVoteExtensionStatus { - p := new(VerifyVoteExtensionStatus) - *p = x - return p -} - -func (x VerifyVoteExtensionStatus) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (VerifyVoteExtensionStatus) Descriptor() protoreflect.EnumDescriptor { - return file_cometbft_abci_v2_types_proto_enumTypes[4].Descriptor() -} - -func (VerifyVoteExtensionStatus) Type() protoreflect.EnumType { - return &file_cometbft_abci_v2_types_proto_enumTypes[4] -} - -func (x VerifyVoteExtensionStatus) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use VerifyVoteExtensionStatus.Descriptor instead. -func (VerifyVoteExtensionStatus) EnumDescriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{4} -} - -// The type of misbehavior committed by a validator. type MisbehaviorType int32 const ( - // Unknown - MisbehaviorType_MISBEHAVIOR_TYPE_UNKNOWN MisbehaviorType = 0 - // Duplicate vote - MisbehaviorType_MISBEHAVIOR_TYPE_DUPLICATE_VOTE MisbehaviorType = 1 - // Light client attack - MisbehaviorType_MISBEHAVIOR_TYPE_LIGHT_CLIENT_ATTACK MisbehaviorType = 2 + MisbehaviorType_UNKNOWN MisbehaviorType = 0 + MisbehaviorType_DUPLICATE_VOTE MisbehaviorType = 1 + MisbehaviorType_LIGHT_CLIENT_ATTACK MisbehaviorType = 2 ) // Enum value maps for MisbehaviorType. var ( MisbehaviorType_name = map[int32]string{ - 0: "MISBEHAVIOR_TYPE_UNKNOWN", - 1: "MISBEHAVIOR_TYPE_DUPLICATE_VOTE", - 2: "MISBEHAVIOR_TYPE_LIGHT_CLIENT_ATTACK", + 0: "UNKNOWN", + 1: "DUPLICATE_VOTE", + 2: "LIGHT_CLIENT_ATTACK", } MisbehaviorType_value = map[string]int32{ - "MISBEHAVIOR_TYPE_UNKNOWN": 0, - "MISBEHAVIOR_TYPE_DUPLICATE_VOTE": 1, - "MISBEHAVIOR_TYPE_LIGHT_CLIENT_ATTACK": 2, + "UNKNOWN": 0, + "DUPLICATE_VOTE": 1, + "LIGHT_CLIENT_ATTACK": 2, } ) @@ -31930,11 +30816,11 @@ func (x MisbehaviorType) String() string { } func (MisbehaviorType) Descriptor() protoreflect.EnumDescriptor { - return file_cometbft_abci_v2_types_proto_enumTypes[5].Descriptor() + return file_tendermint_abci_types_proto_enumTypes[1].Descriptor() } func (MisbehaviorType) Type() protoreflect.EnumType { - return &file_cometbft_abci_v2_types_proto_enumTypes[5] + return &file_tendermint_abci_types_proto_enumTypes[1] } func (x MisbehaviorType) Number() protoreflect.EnumNumber { @@ -31943,17 +30829,232 @@ func (x MisbehaviorType) Number() protoreflect.EnumNumber { // Deprecated: Use MisbehaviorType.Descriptor instead. func (MisbehaviorType) EnumDescriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{5} + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{1} +} + +type ResponseOfferSnapshot_Result int32 + +const ( + ResponseOfferSnapshot_UNKNOWN ResponseOfferSnapshot_Result = 0 // Unknown result, abort all snapshot restoration + ResponseOfferSnapshot_ACCEPT ResponseOfferSnapshot_Result = 1 // Snapshot accepted, apply chunks + ResponseOfferSnapshot_ABORT ResponseOfferSnapshot_Result = 2 // Abort all snapshot restoration + ResponseOfferSnapshot_REJECT ResponseOfferSnapshot_Result = 3 // Reject this specific snapshot, try others + ResponseOfferSnapshot_REJECT_FORMAT ResponseOfferSnapshot_Result = 4 // Reject all snapshots of this format, try others + ResponseOfferSnapshot_REJECT_SENDER ResponseOfferSnapshot_Result = 5 // Reject all snapshots from the sender(s), try others +) + +// Enum value maps for ResponseOfferSnapshot_Result. +var ( + ResponseOfferSnapshot_Result_name = map[int32]string{ + 0: "UNKNOWN", + 1: "ACCEPT", + 2: "ABORT", + 3: "REJECT", + 4: "REJECT_FORMAT", + 5: "REJECT_SENDER", + } + ResponseOfferSnapshot_Result_value = map[string]int32{ + "UNKNOWN": 0, + "ACCEPT": 1, + "ABORT": 2, + "REJECT": 3, + "REJECT_FORMAT": 4, + "REJECT_SENDER": 5, + } +) + +func (x ResponseOfferSnapshot_Result) Enum() *ResponseOfferSnapshot_Result { + p := new(ResponseOfferSnapshot_Result) + *p = x + return p +} + +func (x ResponseOfferSnapshot_Result) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ResponseOfferSnapshot_Result) Descriptor() protoreflect.EnumDescriptor { + return file_tendermint_abci_types_proto_enumTypes[2].Descriptor() +} + +func (ResponseOfferSnapshot_Result) Type() protoreflect.EnumType { + return &file_tendermint_abci_types_proto_enumTypes[2] +} + +func (x ResponseOfferSnapshot_Result) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ResponseOfferSnapshot_Result.Descriptor instead. +func (ResponseOfferSnapshot_Result) EnumDescriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{27, 0} +} + +type ResponseApplySnapshotChunk_Result int32 + +const ( + ResponseApplySnapshotChunk_UNKNOWN ResponseApplySnapshotChunk_Result = 0 // Unknown result, abort all snapshot restoration + ResponseApplySnapshotChunk_ACCEPT ResponseApplySnapshotChunk_Result = 1 // Chunk successfully accepted + ResponseApplySnapshotChunk_ABORT ResponseApplySnapshotChunk_Result = 2 // Abort all snapshot restoration + ResponseApplySnapshotChunk_RETRY ResponseApplySnapshotChunk_Result = 3 // Retry chunk (combine with refetch and reject) + ResponseApplySnapshotChunk_RETRY_SNAPSHOT ResponseApplySnapshotChunk_Result = 4 // Retry snapshot (combine with refetch and reject) + ResponseApplySnapshotChunk_REJECT_SNAPSHOT ResponseApplySnapshotChunk_Result = 5 // Reject this snapshot, try others +) + +// Enum value maps for ResponseApplySnapshotChunk_Result. +var ( + ResponseApplySnapshotChunk_Result_name = map[int32]string{ + 0: "UNKNOWN", + 1: "ACCEPT", + 2: "ABORT", + 3: "RETRY", + 4: "RETRY_SNAPSHOT", + 5: "REJECT_SNAPSHOT", + } + ResponseApplySnapshotChunk_Result_value = map[string]int32{ + "UNKNOWN": 0, + "ACCEPT": 1, + "ABORT": 2, + "RETRY": 3, + "RETRY_SNAPSHOT": 4, + "REJECT_SNAPSHOT": 5, + } +) + +func (x ResponseApplySnapshotChunk_Result) Enum() *ResponseApplySnapshotChunk_Result { + p := new(ResponseApplySnapshotChunk_Result) + *p = x + return p +} + +func (x ResponseApplySnapshotChunk_Result) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ResponseApplySnapshotChunk_Result) Descriptor() protoreflect.EnumDescriptor { + return file_tendermint_abci_types_proto_enumTypes[3].Descriptor() +} + +func (ResponseApplySnapshotChunk_Result) Type() protoreflect.EnumType { + return &file_tendermint_abci_types_proto_enumTypes[3] +} + +func (x ResponseApplySnapshotChunk_Result) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ResponseApplySnapshotChunk_Result.Descriptor instead. +func (ResponseApplySnapshotChunk_Result) EnumDescriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{29, 0} +} + +type ResponseProcessProposal_ProposalStatus int32 + +const ( + ResponseProcessProposal_UNKNOWN ResponseProcessProposal_ProposalStatus = 0 + ResponseProcessProposal_ACCEPT ResponseProcessProposal_ProposalStatus = 1 + ResponseProcessProposal_REJECT ResponseProcessProposal_ProposalStatus = 2 +) + +// Enum value maps for ResponseProcessProposal_ProposalStatus. +var ( + ResponseProcessProposal_ProposalStatus_name = map[int32]string{ + 0: "UNKNOWN", + 1: "ACCEPT", + 2: "REJECT", + } + ResponseProcessProposal_ProposalStatus_value = map[string]int32{ + "UNKNOWN": 0, + "ACCEPT": 1, + "REJECT": 2, + } +) + +func (x ResponseProcessProposal_ProposalStatus) Enum() *ResponseProcessProposal_ProposalStatus { + p := new(ResponseProcessProposal_ProposalStatus) + *p = x + return p +} + +func (x ResponseProcessProposal_ProposalStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ResponseProcessProposal_ProposalStatus) Descriptor() protoreflect.EnumDescriptor { + return file_tendermint_abci_types_proto_enumTypes[4].Descriptor() +} + +func (ResponseProcessProposal_ProposalStatus) Type() protoreflect.EnumType { + return &file_tendermint_abci_types_proto_enumTypes[4] +} + +func (x ResponseProcessProposal_ProposalStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ResponseProcessProposal_ProposalStatus.Descriptor instead. +func (ResponseProcessProposal_ProposalStatus) EnumDescriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{31, 0} +} + +type ResponseVerifyVoteExtension_VerifyStatus int32 + +const ( + ResponseVerifyVoteExtension_UNKNOWN ResponseVerifyVoteExtension_VerifyStatus = 0 + ResponseVerifyVoteExtension_ACCEPT ResponseVerifyVoteExtension_VerifyStatus = 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. + ResponseVerifyVoteExtension_REJECT ResponseVerifyVoteExtension_VerifyStatus = 2 +) + +// Enum value maps for ResponseVerifyVoteExtension_VerifyStatus. +var ( + ResponseVerifyVoteExtension_VerifyStatus_name = map[int32]string{ + 0: "UNKNOWN", + 1: "ACCEPT", + 2: "REJECT", + } + ResponseVerifyVoteExtension_VerifyStatus_value = map[string]int32{ + "UNKNOWN": 0, + "ACCEPT": 1, + "REJECT": 2, + } +) + +func (x ResponseVerifyVoteExtension_VerifyStatus) Enum() *ResponseVerifyVoteExtension_VerifyStatus { + p := new(ResponseVerifyVoteExtension_VerifyStatus) + *p = x + return p +} + +func (x ResponseVerifyVoteExtension_VerifyStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ResponseVerifyVoteExtension_VerifyStatus) Descriptor() protoreflect.EnumDescriptor { + return file_tendermint_abci_types_proto_enumTypes[5].Descriptor() +} + +func (ResponseVerifyVoteExtension_VerifyStatus) Type() protoreflect.EnumType { + return &file_tendermint_abci_types_proto_enumTypes[5] +} + +func (x ResponseVerifyVoteExtension_VerifyStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ResponseVerifyVoteExtension_VerifyStatus.Descriptor instead. +func (ResponseVerifyVoteExtension_VerifyStatus) EnumDescriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{33, 0} } -// Request represents a request to the ABCI application. type Request struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Sum of all possible messages. - // // Types that are assignable to Value: // // *Request_Echo @@ -31978,7 +31079,7 @@ type Request struct { func (x *Request) Reset() { *x = Request{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[0] + mi := &file_tendermint_abci_types_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -31992,7 +31093,7 @@ func (*Request) ProtoMessage() {} // Deprecated: Use Request.ProtoReflect.Descriptor instead. func (*Request) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{0} + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{0} } func (x *Request) GetValue() isRequest_Value { @@ -32002,112 +31103,112 @@ func (x *Request) GetValue() isRequest_Value { return nil } -func (x *Request) GetEcho() *EchoRequest { +func (x *Request) GetEcho() *RequestEcho { if x, ok := x.GetValue().(*Request_Echo); ok { return x.Echo } return nil } -func (x *Request) GetFlush() *FlushRequest { +func (x *Request) GetFlush() *RequestFlush { if x, ok := x.GetValue().(*Request_Flush); ok { return x.Flush } return nil } -func (x *Request) GetInfo() *InfoRequest { +func (x *Request) GetInfo() *RequestInfo { if x, ok := x.GetValue().(*Request_Info); ok { return x.Info } return nil } -func (x *Request) GetInitChain() *InitChainRequest { +func (x *Request) GetInitChain() *RequestInitChain { if x, ok := x.GetValue().(*Request_InitChain); ok { return x.InitChain } return nil } -func (x *Request) GetQuery() *QueryRequest { +func (x *Request) GetQuery() *RequestQuery { if x, ok := x.GetValue().(*Request_Query); ok { return x.Query } return nil } -func (x *Request) GetCheckTx() *CheckTxRequest { +func (x *Request) GetCheckTx() *RequestCheckTx { if x, ok := x.GetValue().(*Request_CheckTx); ok { return x.CheckTx } return nil } -func (x *Request) GetCommit() *CommitRequest { +func (x *Request) GetCommit() *RequestCommit { if x, ok := x.GetValue().(*Request_Commit); ok { return x.Commit } return nil } -func (x *Request) GetListSnapshots() *ListSnapshotsRequest { +func (x *Request) GetListSnapshots() *RequestListSnapshots { if x, ok := x.GetValue().(*Request_ListSnapshots); ok { return x.ListSnapshots } return nil } -func (x *Request) GetOfferSnapshot() *OfferSnapshotRequest { +func (x *Request) GetOfferSnapshot() *RequestOfferSnapshot { if x, ok := x.GetValue().(*Request_OfferSnapshot); ok { return x.OfferSnapshot } return nil } -func (x *Request) GetLoadSnapshotChunk() *LoadSnapshotChunkRequest { +func (x *Request) GetLoadSnapshotChunk() *RequestLoadSnapshotChunk { if x, ok := x.GetValue().(*Request_LoadSnapshotChunk); ok { return x.LoadSnapshotChunk } return nil } -func (x *Request) GetApplySnapshotChunk() *ApplySnapshotChunkRequest { +func (x *Request) GetApplySnapshotChunk() *RequestApplySnapshotChunk { if x, ok := x.GetValue().(*Request_ApplySnapshotChunk); ok { return x.ApplySnapshotChunk } return nil } -func (x *Request) GetPrepareProposal() *PrepareProposalRequest { +func (x *Request) GetPrepareProposal() *RequestPrepareProposal { if x, ok := x.GetValue().(*Request_PrepareProposal); ok { return x.PrepareProposal } return nil } -func (x *Request) GetProcessProposal() *ProcessProposalRequest { +func (x *Request) GetProcessProposal() *RequestProcessProposal { if x, ok := x.GetValue().(*Request_ProcessProposal); ok { return x.ProcessProposal } return nil } -func (x *Request) GetExtendVote() *ExtendVoteRequest { +func (x *Request) GetExtendVote() *RequestExtendVote { if x, ok := x.GetValue().(*Request_ExtendVote); ok { return x.ExtendVote } return nil } -func (x *Request) GetVerifyVoteExtension() *VerifyVoteExtensionRequest { +func (x *Request) GetVerifyVoteExtension() *RequestVerifyVoteExtension { if x, ok := x.GetValue().(*Request_VerifyVoteExtension); ok { return x.VerifyVoteExtension } return nil } -func (x *Request) GetFinalizeBlock() *FinalizeBlockRequest { +func (x *Request) GetFinalizeBlock() *RequestFinalizeBlock { if x, ok := x.GetValue().(*Request_FinalizeBlock); ok { return x.FinalizeBlock } @@ -32119,67 +31220,67 @@ type isRequest_Value interface { } type Request_Echo struct { - Echo *EchoRequest `protobuf:"bytes,1,opt,name=echo,proto3,oneof"` + Echo *RequestEcho `protobuf:"bytes,1,opt,name=echo,proto3,oneof"` } type Request_Flush struct { - Flush *FlushRequest `protobuf:"bytes,2,opt,name=flush,proto3,oneof"` + Flush *RequestFlush `protobuf:"bytes,2,opt,name=flush,proto3,oneof"` } type Request_Info struct { - Info *InfoRequest `protobuf:"bytes,3,opt,name=info,proto3,oneof"` + Info *RequestInfo `protobuf:"bytes,3,opt,name=info,proto3,oneof"` } type Request_InitChain struct { - InitChain *InitChainRequest `protobuf:"bytes,5,opt,name=init_chain,json=initChain,proto3,oneof"` + InitChain *RequestInitChain `protobuf:"bytes,5,opt,name=init_chain,json=initChain,proto3,oneof"` } type Request_Query struct { - Query *QueryRequest `protobuf:"bytes,6,opt,name=query,proto3,oneof"` + Query *RequestQuery `protobuf:"bytes,6,opt,name=query,proto3,oneof"` } type Request_CheckTx struct { - CheckTx *CheckTxRequest `protobuf:"bytes,8,opt,name=check_tx,json=checkTx,proto3,oneof"` + CheckTx *RequestCheckTx `protobuf:"bytes,8,opt,name=check_tx,json=checkTx,proto3,oneof"` } type Request_Commit struct { - Commit *CommitRequest `protobuf:"bytes,11,opt,name=commit,proto3,oneof"` + Commit *RequestCommit `protobuf:"bytes,11,opt,name=commit,proto3,oneof"` } type Request_ListSnapshots struct { - ListSnapshots *ListSnapshotsRequest `protobuf:"bytes,12,opt,name=list_snapshots,json=listSnapshots,proto3,oneof"` + ListSnapshots *RequestListSnapshots `protobuf:"bytes,12,opt,name=list_snapshots,json=listSnapshots,proto3,oneof"` } type Request_OfferSnapshot struct { - OfferSnapshot *OfferSnapshotRequest `protobuf:"bytes,13,opt,name=offer_snapshot,json=offerSnapshot,proto3,oneof"` + OfferSnapshot *RequestOfferSnapshot `protobuf:"bytes,13,opt,name=offer_snapshot,json=offerSnapshot,proto3,oneof"` } type Request_LoadSnapshotChunk struct { - LoadSnapshotChunk *LoadSnapshotChunkRequest `protobuf:"bytes,14,opt,name=load_snapshot_chunk,json=loadSnapshotChunk,proto3,oneof"` + LoadSnapshotChunk *RequestLoadSnapshotChunk `protobuf:"bytes,14,opt,name=load_snapshot_chunk,json=loadSnapshotChunk,proto3,oneof"` } type Request_ApplySnapshotChunk struct { - ApplySnapshotChunk *ApplySnapshotChunkRequest `protobuf:"bytes,15,opt,name=apply_snapshot_chunk,json=applySnapshotChunk,proto3,oneof"` + ApplySnapshotChunk *RequestApplySnapshotChunk `protobuf:"bytes,15,opt,name=apply_snapshot_chunk,json=applySnapshotChunk,proto3,oneof"` } type Request_PrepareProposal struct { - PrepareProposal *PrepareProposalRequest `protobuf:"bytes,16,opt,name=prepare_proposal,json=prepareProposal,proto3,oneof"` + PrepareProposal *RequestPrepareProposal `protobuf:"bytes,16,opt,name=prepare_proposal,json=prepareProposal,proto3,oneof"` } type Request_ProcessProposal struct { - ProcessProposal *ProcessProposalRequest `protobuf:"bytes,17,opt,name=process_proposal,json=processProposal,proto3,oneof"` + ProcessProposal *RequestProcessProposal `protobuf:"bytes,17,opt,name=process_proposal,json=processProposal,proto3,oneof"` } type Request_ExtendVote struct { - ExtendVote *ExtendVoteRequest `protobuf:"bytes,18,opt,name=extend_vote,json=extendVote,proto3,oneof"` + ExtendVote *RequestExtendVote `protobuf:"bytes,18,opt,name=extend_vote,json=extendVote,proto3,oneof"` } type Request_VerifyVoteExtension struct { - VerifyVoteExtension *VerifyVoteExtensionRequest `protobuf:"bytes,19,opt,name=verify_vote_extension,json=verifyVoteExtension,proto3,oneof"` + VerifyVoteExtension *RequestVerifyVoteExtension `protobuf:"bytes,19,opt,name=verify_vote_extension,json=verifyVoteExtension,proto3,oneof"` } type Request_FinalizeBlock struct { - FinalizeBlock *FinalizeBlockRequest `protobuf:"bytes,20,opt,name=finalize_block,json=finalizeBlock,proto3,oneof"` + FinalizeBlock *RequestFinalizeBlock `protobuf:"bytes,20,opt,name=finalize_block,json=finalizeBlock,proto3,oneof"` } func (*Request_Echo) isRequest_Value() {} @@ -32214,8 +31315,7 @@ func (*Request_VerifyVoteExtension) isRequest_Value() {} func (*Request_FinalizeBlock) isRequest_Value() {} -// EchoRequest is a request to "echo" the given string. -type EchoRequest struct { +type RequestEcho struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -32223,62 +31323,60 @@ type EchoRequest struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` } -func (x *EchoRequest) Reset() { - *x = EchoRequest{} +func (x *RequestEcho) Reset() { + *x = RequestEcho{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[1] + mi := &file_tendermint_abci_types_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *EchoRequest) String() string { +func (x *RequestEcho) String() string { return protoimpl.X.MessageStringOf(x) } -func (*EchoRequest) ProtoMessage() {} +func (*RequestEcho) ProtoMessage() {} -// Deprecated: Use EchoRequest.ProtoReflect.Descriptor instead. -func (*EchoRequest) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{1} +// Deprecated: Use RequestEcho.ProtoReflect.Descriptor instead. +func (*RequestEcho) Descriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{1} } -func (x *EchoRequest) GetMessage() string { +func (x *RequestEcho) GetMessage() string { if x != nil { return x.Message } return "" } -// FlushRequest is a request to flush the write buffer. -type FlushRequest struct { +type RequestFlush struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *FlushRequest) Reset() { - *x = FlushRequest{} +func (x *RequestFlush) Reset() { + *x = RequestFlush{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[2] + mi := &file_tendermint_abci_types_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *FlushRequest) String() string { +func (x *RequestFlush) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FlushRequest) ProtoMessage() {} +func (*RequestFlush) ProtoMessage() {} -// Deprecated: Use FlushRequest.ProtoReflect.Descriptor instead. -func (*FlushRequest) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{2} +// Deprecated: Use RequestFlush.ProtoReflect.Descriptor instead. +func (*RequestFlush) Descriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{2} } -// InfoRequest is a request for the ABCI application version. -type InfoRequest struct { +type RequestInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -32289,132 +31387,130 @@ type InfoRequest struct { AbciVersion string `protobuf:"bytes,4,opt,name=abci_version,json=abciVersion,proto3" json:"abci_version,omitempty"` } -func (x *InfoRequest) Reset() { - *x = InfoRequest{} +func (x *RequestInfo) Reset() { + *x = RequestInfo{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[3] + mi := &file_tendermint_abci_types_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *InfoRequest) String() string { +func (x *RequestInfo) String() string { return protoimpl.X.MessageStringOf(x) } -func (*InfoRequest) ProtoMessage() {} +func (*RequestInfo) ProtoMessage() {} -// Deprecated: Use InfoRequest.ProtoReflect.Descriptor instead. -func (*InfoRequest) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{3} +// Deprecated: Use RequestInfo.ProtoReflect.Descriptor instead. +func (*RequestInfo) Descriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{3} } -func (x *InfoRequest) GetVersion() string { +func (x *RequestInfo) GetVersion() string { if x != nil { return x.Version } return "" } -func (x *InfoRequest) GetBlockVersion() uint64 { +func (x *RequestInfo) GetBlockVersion() uint64 { if x != nil { return x.BlockVersion } return 0 } -func (x *InfoRequest) GetP2PVersion() uint64 { +func (x *RequestInfo) GetP2PVersion() uint64 { if x != nil { return x.P2PVersion } return 0 } -func (x *InfoRequest) GetAbciVersion() string { +func (x *RequestInfo) GetAbciVersion() string { if x != nil { return x.AbciVersion } return "" } -// InitChainRequest is a request to initialize the blockchain. -type InitChainRequest struct { +type RequestInitChain struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"` ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - ConsensusParams *v2.ConsensusParams `protobuf:"bytes,3,opt,name=consensus_params,json=consensusParams,proto3" json:"consensus_params,omitempty"` + ConsensusParams *types.ConsensusParams `protobuf:"bytes,3,opt,name=consensus_params,json=consensusParams,proto3" json:"consensus_params,omitempty"` Validators []*ValidatorUpdate `protobuf:"bytes,4,rep,name=validators,proto3" json:"validators,omitempty"` AppStateBytes []byte `protobuf:"bytes,5,opt,name=app_state_bytes,json=appStateBytes,proto3" json:"app_state_bytes,omitempty"` InitialHeight int64 `protobuf:"varint,6,opt,name=initial_height,json=initialHeight,proto3" json:"initial_height,omitempty"` } -func (x *InitChainRequest) Reset() { - *x = InitChainRequest{} +func (x *RequestInitChain) Reset() { + *x = RequestInitChain{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[4] + mi := &file_tendermint_abci_types_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *InitChainRequest) String() string { +func (x *RequestInitChain) String() string { return protoimpl.X.MessageStringOf(x) } -func (*InitChainRequest) ProtoMessage() {} +func (*RequestInitChain) ProtoMessage() {} -// Deprecated: Use InitChainRequest.ProtoReflect.Descriptor instead. -func (*InitChainRequest) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{4} +// Deprecated: Use RequestInitChain.ProtoReflect.Descriptor instead. +func (*RequestInitChain) Descriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{4} } -func (x *InitChainRequest) GetTime() *timestamppb.Timestamp { +func (x *RequestInitChain) GetTime() *timestamppb.Timestamp { if x != nil { return x.Time } return nil } -func (x *InitChainRequest) GetChainId() string { +func (x *RequestInitChain) GetChainId() string { if x != nil { return x.ChainId } return "" } -func (x *InitChainRequest) GetConsensusParams() *v2.ConsensusParams { +func (x *RequestInitChain) GetConsensusParams() *types.ConsensusParams { if x != nil { return x.ConsensusParams } return nil } -func (x *InitChainRequest) GetValidators() []*ValidatorUpdate { +func (x *RequestInitChain) GetValidators() []*ValidatorUpdate { if x != nil { return x.Validators } return nil } -func (x *InitChainRequest) GetAppStateBytes() []byte { +func (x *RequestInitChain) GetAppStateBytes() []byte { if x != nil { return x.AppStateBytes } return nil } -func (x *InitChainRequest) GetInitialHeight() int64 { +func (x *RequestInitChain) GetInitialHeight() int64 { if x != nil { return x.InitialHeight } return 0 } -// QueryRequest is a request to query the application state. -type QueryRequest struct { +type RequestQuery struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -32425,154 +31521,152 @@ type QueryRequest struct { Prove bool `protobuf:"varint,4,opt,name=prove,proto3" json:"prove,omitempty"` } -func (x *QueryRequest) Reset() { - *x = QueryRequest{} +func (x *RequestQuery) Reset() { + *x = RequestQuery{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[5] + mi := &file_tendermint_abci_types_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryRequest) String() string { +func (x *RequestQuery) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryRequest) ProtoMessage() {} +func (*RequestQuery) ProtoMessage() {} -// Deprecated: Use QueryRequest.ProtoReflect.Descriptor instead. -func (*QueryRequest) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{5} +// Deprecated: Use RequestQuery.ProtoReflect.Descriptor instead. +func (*RequestQuery) Descriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{5} } -func (x *QueryRequest) GetData() []byte { +func (x *RequestQuery) GetData() []byte { if x != nil { return x.Data } return nil } -func (x *QueryRequest) GetPath() string { +func (x *RequestQuery) GetPath() string { if x != nil { return x.Path } return "" } -func (x *QueryRequest) GetHeight() int64 { +func (x *RequestQuery) GetHeight() int64 { if x != nil { return x.Height } return 0 } -func (x *QueryRequest) GetProve() bool { +func (x *RequestQuery) GetProve() bool { if x != nil { return x.Prove } return false } -// CheckTxRequest is a request to check that the transaction is valid. -type CheckTxRequest struct { +type RequestCheckTx struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Tx []byte `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"` - Type_ CheckTxType `protobuf:"varint,3,opt,name=type,proto3,enum=cometbft.abci.v2.CheckTxType" json:"type,omitempty"` + Type_ CheckTxType `protobuf:"varint,2,opt,name=type,proto3,enum=tendermint.abci.CheckTxType" json:"type,omitempty"` } -func (x *CheckTxRequest) Reset() { - *x = CheckTxRequest{} +func (x *RequestCheckTx) Reset() { + *x = RequestCheckTx{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[6] + mi := &file_tendermint_abci_types_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *CheckTxRequest) String() string { +func (x *RequestCheckTx) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CheckTxRequest) ProtoMessage() {} +func (*RequestCheckTx) ProtoMessage() {} -// Deprecated: Use CheckTxRequest.ProtoReflect.Descriptor instead. -func (*CheckTxRequest) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{6} +// Deprecated: Use RequestCheckTx.ProtoReflect.Descriptor instead. +func (*RequestCheckTx) Descriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{6} } -func (x *CheckTxRequest) GetTx() []byte { +func (x *RequestCheckTx) GetTx() []byte { if x != nil { return x.Tx } return nil } -func (x *CheckTxRequest) GetType_() CheckTxType { +func (x *RequestCheckTx) GetType_() CheckTxType { if x != nil { return x.Type_ } - return CheckTxType_CHECK_TX_TYPE_UNKNOWN + return CheckTxType_NEW } -// CommitRequest is a request to commit the pending application state. -type CommitRequest struct { +type RequestCommit struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *CommitRequest) Reset() { - *x = CommitRequest{} +func (x *RequestCommit) Reset() { + *x = RequestCommit{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[7] + mi := &file_tendermint_abci_types_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *CommitRequest) String() string { +func (x *RequestCommit) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CommitRequest) ProtoMessage() {} +func (*RequestCommit) ProtoMessage() {} -// Deprecated: Use CommitRequest.ProtoReflect.Descriptor instead. -func (*CommitRequest) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{7} +// Deprecated: Use RequestCommit.ProtoReflect.Descriptor instead. +func (*RequestCommit) Descriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{7} } -// Request to list available snapshots. -type ListSnapshotsRequest struct { +// lists available snapshots +type RequestListSnapshots struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *ListSnapshotsRequest) Reset() { - *x = ListSnapshotsRequest{} +func (x *RequestListSnapshots) Reset() { + *x = RequestListSnapshots{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[8] + mi := &file_tendermint_abci_types_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ListSnapshotsRequest) String() string { +func (x *RequestListSnapshots) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListSnapshotsRequest) ProtoMessage() {} +func (*RequestListSnapshots) ProtoMessage() {} -// Deprecated: Use ListSnapshotsRequest.ProtoReflect.Descriptor instead. -func (*ListSnapshotsRequest) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{8} +// Deprecated: Use RequestListSnapshots.ProtoReflect.Descriptor instead. +func (*RequestListSnapshots) Descriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{8} } -// Request offering a snapshot to the application. -type OfferSnapshotRequest struct { +// offers a snapshot to the application +type RequestOfferSnapshot struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -32581,42 +31675,42 @@ type OfferSnapshotRequest struct { AppHash []byte `protobuf:"bytes,2,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"` // light client-verified app hash for snapshot height } -func (x *OfferSnapshotRequest) Reset() { - *x = OfferSnapshotRequest{} +func (x *RequestOfferSnapshot) Reset() { + *x = RequestOfferSnapshot{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[9] + mi := &file_tendermint_abci_types_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *OfferSnapshotRequest) String() string { +func (x *RequestOfferSnapshot) String() string { return protoimpl.X.MessageStringOf(x) } -func (*OfferSnapshotRequest) ProtoMessage() {} +func (*RequestOfferSnapshot) ProtoMessage() {} -// Deprecated: Use OfferSnapshotRequest.ProtoReflect.Descriptor instead. -func (*OfferSnapshotRequest) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{9} +// Deprecated: Use RequestOfferSnapshot.ProtoReflect.Descriptor instead. +func (*RequestOfferSnapshot) Descriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{9} } -func (x *OfferSnapshotRequest) GetSnapshot() *Snapshot { +func (x *RequestOfferSnapshot) GetSnapshot() *Snapshot { if x != nil { return x.Snapshot } return nil } -func (x *OfferSnapshotRequest) GetAppHash() []byte { +func (x *RequestOfferSnapshot) GetAppHash() []byte { if x != nil { return x.AppHash } return nil } -// Request to load a snapshot chunk. -type LoadSnapshotChunkRequest struct { +// loads a snapshot chunk +type RequestLoadSnapshotChunk struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -32626,49 +31720,49 @@ type LoadSnapshotChunkRequest struct { Chunk uint32 `protobuf:"varint,3,opt,name=chunk,proto3" json:"chunk,omitempty"` } -func (x *LoadSnapshotChunkRequest) Reset() { - *x = LoadSnapshotChunkRequest{} +func (x *RequestLoadSnapshotChunk) Reset() { + *x = RequestLoadSnapshotChunk{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[10] + mi := &file_tendermint_abci_types_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *LoadSnapshotChunkRequest) String() string { +func (x *RequestLoadSnapshotChunk) String() string { return protoimpl.X.MessageStringOf(x) } -func (*LoadSnapshotChunkRequest) ProtoMessage() {} +func (*RequestLoadSnapshotChunk) ProtoMessage() {} -// Deprecated: Use LoadSnapshotChunkRequest.ProtoReflect.Descriptor instead. -func (*LoadSnapshotChunkRequest) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{10} +// Deprecated: Use RequestLoadSnapshotChunk.ProtoReflect.Descriptor instead. +func (*RequestLoadSnapshotChunk) Descriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{10} } -func (x *LoadSnapshotChunkRequest) GetHeight() uint64 { +func (x *RequestLoadSnapshotChunk) GetHeight() uint64 { if x != nil { return x.Height } return 0 } -func (x *LoadSnapshotChunkRequest) GetFormat() uint32 { +func (x *RequestLoadSnapshotChunk) GetFormat() uint32 { if x != nil { return x.Format } return 0 } -func (x *LoadSnapshotChunkRequest) GetChunk() uint32 { +func (x *RequestLoadSnapshotChunk) GetChunk() uint32 { if x != nil { return x.Chunk } return 0 } -// Request to apply a snapshot chunk. -type ApplySnapshotChunkRequest struct { +// Applies a snapshot chunk +type RequestApplySnapshotChunk struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -32678,50 +31772,48 @@ type ApplySnapshotChunkRequest struct { Sender string `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"` } -func (x *ApplySnapshotChunkRequest) Reset() { - *x = ApplySnapshotChunkRequest{} +func (x *RequestApplySnapshotChunk) Reset() { + *x = RequestApplySnapshotChunk{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[11] + mi := &file_tendermint_abci_types_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ApplySnapshotChunkRequest) String() string { +func (x *RequestApplySnapshotChunk) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ApplySnapshotChunkRequest) ProtoMessage() {} +func (*RequestApplySnapshotChunk) ProtoMessage() {} -// Deprecated: Use ApplySnapshotChunkRequest.ProtoReflect.Descriptor instead. -func (*ApplySnapshotChunkRequest) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{11} +// Deprecated: Use RequestApplySnapshotChunk.ProtoReflect.Descriptor instead. +func (*RequestApplySnapshotChunk) Descriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{11} } -func (x *ApplySnapshotChunkRequest) GetIndex() uint32 { +func (x *RequestApplySnapshotChunk) GetIndex() uint32 { if x != nil { return x.Index } return 0 } -func (x *ApplySnapshotChunkRequest) GetChunk() []byte { +func (x *RequestApplySnapshotChunk) GetChunk() []byte { if x != nil { return x.Chunk } return nil } -func (x *ApplySnapshotChunkRequest) GetSender() string { +func (x *RequestApplySnapshotChunk) GetSender() string { if x != nil { return x.Sender } return "" } -// PrepareProposalRequest is a request for the ABCI application to prepare a new -// block proposal. -type PrepareProposalRequest struct { +type RequestPrepareProposal struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -32740,85 +31832,83 @@ type PrepareProposalRequest struct { ProposerAddress []byte `protobuf:"bytes,8,opt,name=proposer_address,json=proposerAddress,proto3" json:"proposer_address,omitempty"` } -func (x *PrepareProposalRequest) Reset() { - *x = PrepareProposalRequest{} +func (x *RequestPrepareProposal) Reset() { + *x = RequestPrepareProposal{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[12] + mi := &file_tendermint_abci_types_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *PrepareProposalRequest) String() string { +func (x *RequestPrepareProposal) String() string { return protoimpl.X.MessageStringOf(x) } -func (*PrepareProposalRequest) ProtoMessage() {} +func (*RequestPrepareProposal) ProtoMessage() {} -// Deprecated: Use PrepareProposalRequest.ProtoReflect.Descriptor instead. -func (*PrepareProposalRequest) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{12} +// Deprecated: Use RequestPrepareProposal.ProtoReflect.Descriptor instead. +func (*RequestPrepareProposal) Descriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{12} } -func (x *PrepareProposalRequest) GetMaxTxBytes() int64 { +func (x *RequestPrepareProposal) GetMaxTxBytes() int64 { if x != nil { return x.MaxTxBytes } return 0 } -func (x *PrepareProposalRequest) GetTxs() [][]byte { +func (x *RequestPrepareProposal) GetTxs() [][]byte { if x != nil { return x.Txs } return nil } -func (x *PrepareProposalRequest) GetLocalLastCommit() *ExtendedCommitInfo { +func (x *RequestPrepareProposal) GetLocalLastCommit() *ExtendedCommitInfo { if x != nil { return x.LocalLastCommit } return nil } -func (x *PrepareProposalRequest) GetMisbehavior() []*Misbehavior { +func (x *RequestPrepareProposal) GetMisbehavior() []*Misbehavior { if x != nil { return x.Misbehavior } return nil } -func (x *PrepareProposalRequest) GetHeight() int64 { +func (x *RequestPrepareProposal) GetHeight() int64 { if x != nil { return x.Height } return 0 } -func (x *PrepareProposalRequest) GetTime() *timestamppb.Timestamp { +func (x *RequestPrepareProposal) GetTime() *timestamppb.Timestamp { if x != nil { return x.Time } return nil } -func (x *PrepareProposalRequest) GetNextValidatorsHash() []byte { +func (x *RequestPrepareProposal) GetNextValidatorsHash() []byte { if x != nil { return x.NextValidatorsHash } return nil } -func (x *PrepareProposalRequest) GetProposerAddress() []byte { +func (x *RequestPrepareProposal) GetProposerAddress() []byte { if x != nil { return x.ProposerAddress } return nil } -// ProcessProposalRequest is a request for the ABCI application to process a proposal -// received from another validator. -type ProcessProposalRequest struct { +type RequestProcessProposal struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -32826,7 +31916,7 @@ type ProcessProposalRequest struct { Txs [][]byte `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"` ProposedLastCommit *CommitInfo `protobuf:"bytes,2,opt,name=proposed_last_commit,json=proposedLastCommit,proto3" json:"proposed_last_commit,omitempty"` Misbehavior []*Misbehavior `protobuf:"bytes,3,rep,name=misbehavior,proto3" json:"misbehavior,omitempty"` - // Merkle root hash of the fields of the proposed block. + // hash is the merkle root hash of the fields of the proposed block. Hash []byte `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"` Height int64 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"` Time *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=time,proto3" json:"time,omitempty"` @@ -32835,84 +31925,84 @@ type ProcessProposalRequest struct { ProposerAddress []byte `protobuf:"bytes,8,opt,name=proposer_address,json=proposerAddress,proto3" json:"proposer_address,omitempty"` } -func (x *ProcessProposalRequest) Reset() { - *x = ProcessProposalRequest{} +func (x *RequestProcessProposal) Reset() { + *x = RequestProcessProposal{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[13] + mi := &file_tendermint_abci_types_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ProcessProposalRequest) String() string { +func (x *RequestProcessProposal) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ProcessProposalRequest) ProtoMessage() {} +func (*RequestProcessProposal) ProtoMessage() {} -// Deprecated: Use ProcessProposalRequest.ProtoReflect.Descriptor instead. -func (*ProcessProposalRequest) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{13} +// Deprecated: Use RequestProcessProposal.ProtoReflect.Descriptor instead. +func (*RequestProcessProposal) Descriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{13} } -func (x *ProcessProposalRequest) GetTxs() [][]byte { +func (x *RequestProcessProposal) GetTxs() [][]byte { if x != nil { return x.Txs } return nil } -func (x *ProcessProposalRequest) GetProposedLastCommit() *CommitInfo { +func (x *RequestProcessProposal) GetProposedLastCommit() *CommitInfo { if x != nil { return x.ProposedLastCommit } return nil } -func (x *ProcessProposalRequest) GetMisbehavior() []*Misbehavior { +func (x *RequestProcessProposal) GetMisbehavior() []*Misbehavior { if x != nil { return x.Misbehavior } return nil } -func (x *ProcessProposalRequest) GetHash() []byte { +func (x *RequestProcessProposal) GetHash() []byte { if x != nil { return x.Hash } return nil } -func (x *ProcessProposalRequest) GetHeight() int64 { +func (x *RequestProcessProposal) GetHeight() int64 { if x != nil { return x.Height } return 0 } -func (x *ProcessProposalRequest) GetTime() *timestamppb.Timestamp { +func (x *RequestProcessProposal) GetTime() *timestamppb.Timestamp { if x != nil { return x.Time } return nil } -func (x *ProcessProposalRequest) GetNextValidatorsHash() []byte { +func (x *RequestProcessProposal) GetNextValidatorsHash() []byte { if x != nil { return x.NextValidatorsHash } return nil } -func (x *ProcessProposalRequest) GetProposerAddress() []byte { +func (x *RequestProcessProposal) GetProposerAddress() []byte { if x != nil { return x.ProposerAddress } return nil } -// ExtendVoteRequest extends a precommit vote with application-injected data. -type ExtendVoteRequest struct { +// Extends a vote with application-injected data +type RequestExtendVote struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -32931,87 +32021,84 @@ type ExtendVoteRequest struct { ProposerAddress []byte `protobuf:"bytes,8,opt,name=proposer_address,json=proposerAddress,proto3" json:"proposer_address,omitempty"` } -func (x *ExtendVoteRequest) Reset() { - *x = ExtendVoteRequest{} +func (x *RequestExtendVote) Reset() { + *x = RequestExtendVote{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[14] + mi := &file_tendermint_abci_types_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ExtendVoteRequest) String() string { +func (x *RequestExtendVote) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ExtendVoteRequest) ProtoMessage() {} +func (*RequestExtendVote) ProtoMessage() {} -// Deprecated: Use ExtendVoteRequest.ProtoReflect.Descriptor instead. -func (*ExtendVoteRequest) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{14} +// Deprecated: Use RequestExtendVote.ProtoReflect.Descriptor instead. +func (*RequestExtendVote) Descriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{14} } -func (x *ExtendVoteRequest) GetHash() []byte { +func (x *RequestExtendVote) GetHash() []byte { if x != nil { return x.Hash } return nil } -func (x *ExtendVoteRequest) GetHeight() int64 { +func (x *RequestExtendVote) GetHeight() int64 { if x != nil { return x.Height } return 0 } -func (x *ExtendVoteRequest) GetTime() *timestamppb.Timestamp { +func (x *RequestExtendVote) GetTime() *timestamppb.Timestamp { if x != nil { return x.Time } return nil } -func (x *ExtendVoteRequest) GetTxs() [][]byte { +func (x *RequestExtendVote) GetTxs() [][]byte { if x != nil { return x.Txs } return nil } -func (x *ExtendVoteRequest) GetProposedLastCommit() *CommitInfo { +func (x *RequestExtendVote) GetProposedLastCommit() *CommitInfo { if x != nil { return x.ProposedLastCommit } return nil } -func (x *ExtendVoteRequest) GetMisbehavior() []*Misbehavior { +func (x *RequestExtendVote) GetMisbehavior() []*Misbehavior { if x != nil { return x.Misbehavior } return nil } -func (x *ExtendVoteRequest) GetNextValidatorsHash() []byte { +func (x *RequestExtendVote) GetNextValidatorsHash() []byte { if x != nil { return x.NextValidatorsHash } return nil } -func (x *ExtendVoteRequest) GetProposerAddress() []byte { +func (x *RequestExtendVote) GetProposerAddress() []byte { if x != nil { return x.ProposerAddress } return nil } -// VerifyVoteExtensionRequest is a request for the application to verify a vote extension -// produced by a different validator. -// The request contains two vote extension fields: one that is replay-protected ('vote_extension') -// and one that is not ('non_rp_vote_extension'). -type VerifyVoteExtensionRequest struct { +// Verify the vote extension +type RequestVerifyVoteExtension struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -33021,69 +32108,58 @@ type VerifyVoteExtensionRequest struct { // the validator that signed the vote extension ValidatorAddress []byte `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` - // replay-protected vote extension - VoteExtension []byte `protobuf:"bytes,4,opt,name=vote_extension,json=voteExtension,proto3" json:"vote_extension,omitempty"` - // non-replay-protected vote extension - NonRpVoteExtension []byte `protobuf:"bytes,5,opt,name=non_rp_vote_extension,json=nonRpVoteExtension,proto3" json:"non_rp_vote_extension,omitempty"` + VoteExtension []byte `protobuf:"bytes,4,opt,name=vote_extension,json=voteExtension,proto3" json:"vote_extension,omitempty"` } -func (x *VerifyVoteExtensionRequest) Reset() { - *x = VerifyVoteExtensionRequest{} +func (x *RequestVerifyVoteExtension) Reset() { + *x = RequestVerifyVoteExtension{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[15] + mi := &file_tendermint_abci_types_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *VerifyVoteExtensionRequest) String() string { +func (x *RequestVerifyVoteExtension) String() string { return protoimpl.X.MessageStringOf(x) } -func (*VerifyVoteExtensionRequest) ProtoMessage() {} +func (*RequestVerifyVoteExtension) ProtoMessage() {} -// Deprecated: Use VerifyVoteExtensionRequest.ProtoReflect.Descriptor instead. -func (*VerifyVoteExtensionRequest) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{15} +// Deprecated: Use RequestVerifyVoteExtension.ProtoReflect.Descriptor instead. +func (*RequestVerifyVoteExtension) Descriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{15} } -func (x *VerifyVoteExtensionRequest) GetHash() []byte { +func (x *RequestVerifyVoteExtension) GetHash() []byte { if x != nil { return x.Hash } return nil } -func (x *VerifyVoteExtensionRequest) GetValidatorAddress() []byte { +func (x *RequestVerifyVoteExtension) GetValidatorAddress() []byte { if x != nil { return x.ValidatorAddress } return nil } -func (x *VerifyVoteExtensionRequest) GetHeight() int64 { +func (x *RequestVerifyVoteExtension) GetHeight() int64 { if x != nil { return x.Height } return 0 } -func (x *VerifyVoteExtensionRequest) GetVoteExtension() []byte { +func (x *RequestVerifyVoteExtension) GetVoteExtension() []byte { if x != nil { return x.VoteExtension } return nil } -func (x *VerifyVoteExtensionRequest) GetNonRpVoteExtension() []byte { - if x != nil { - return x.NonRpVoteExtension - } - return nil -} - -// FinalizeBlockRequest is a request to finalize the block. -type FinalizeBlockRequest struct { +type RequestFinalizeBlock struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -33091,108 +32167,96 @@ type FinalizeBlockRequest struct { Txs [][]byte `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"` DecidedLastCommit *CommitInfo `protobuf:"bytes,2,opt,name=decided_last_commit,json=decidedLastCommit,proto3" json:"decided_last_commit,omitempty"` Misbehavior []*Misbehavior `protobuf:"bytes,3,rep,name=misbehavior,proto3" json:"misbehavior,omitempty"` - // Merkle root hash of the fields of the decided block. + // hash is the merkle root hash of the fields of the decided block. Hash []byte `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"` Height int64 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"` Time *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=time,proto3" json:"time,omitempty"` NextValidatorsHash []byte `protobuf:"bytes,7,opt,name=next_validators_hash,json=nextValidatorsHash,proto3" json:"next_validators_hash,omitempty"` - // address of the public key of the original proposer of the block. + // proposer_address is the address of the public key of the original proposer of the block. ProposerAddress []byte `protobuf:"bytes,8,opt,name=proposer_address,json=proposerAddress,proto3" json:"proposer_address,omitempty"` - // If the node is syncing/replaying blocks - target height. If not, syncing_to == height. - SyncingToHeight int64 `protobuf:"varint,9,opt,name=syncing_to_height,json=syncingToHeight,proto3" json:"syncing_to_height,omitempty"` } -func (x *FinalizeBlockRequest) Reset() { - *x = FinalizeBlockRequest{} +func (x *RequestFinalizeBlock) Reset() { + *x = RequestFinalizeBlock{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[16] + mi := &file_tendermint_abci_types_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *FinalizeBlockRequest) String() string { +func (x *RequestFinalizeBlock) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FinalizeBlockRequest) ProtoMessage() {} +func (*RequestFinalizeBlock) ProtoMessage() {} -// Deprecated: Use FinalizeBlockRequest.ProtoReflect.Descriptor instead. -func (*FinalizeBlockRequest) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{16} +// Deprecated: Use RequestFinalizeBlock.ProtoReflect.Descriptor instead. +func (*RequestFinalizeBlock) Descriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{16} } -func (x *FinalizeBlockRequest) GetTxs() [][]byte { +func (x *RequestFinalizeBlock) GetTxs() [][]byte { if x != nil { return x.Txs } return nil } -func (x *FinalizeBlockRequest) GetDecidedLastCommit() *CommitInfo { +func (x *RequestFinalizeBlock) GetDecidedLastCommit() *CommitInfo { if x != nil { return x.DecidedLastCommit } return nil } -func (x *FinalizeBlockRequest) GetMisbehavior() []*Misbehavior { +func (x *RequestFinalizeBlock) GetMisbehavior() []*Misbehavior { if x != nil { return x.Misbehavior } return nil } -func (x *FinalizeBlockRequest) GetHash() []byte { +func (x *RequestFinalizeBlock) GetHash() []byte { if x != nil { return x.Hash } return nil } -func (x *FinalizeBlockRequest) GetHeight() int64 { +func (x *RequestFinalizeBlock) GetHeight() int64 { if x != nil { return x.Height } return 0 } -func (x *FinalizeBlockRequest) GetTime() *timestamppb.Timestamp { +func (x *RequestFinalizeBlock) GetTime() *timestamppb.Timestamp { if x != nil { return x.Time } return nil } -func (x *FinalizeBlockRequest) GetNextValidatorsHash() []byte { +func (x *RequestFinalizeBlock) GetNextValidatorsHash() []byte { if x != nil { return x.NextValidatorsHash } return nil } -func (x *FinalizeBlockRequest) GetProposerAddress() []byte { +func (x *RequestFinalizeBlock) GetProposerAddress() []byte { if x != nil { return x.ProposerAddress } return nil } -func (x *FinalizeBlockRequest) GetSyncingToHeight() int64 { - if x != nil { - return x.SyncingToHeight - } - return 0 -} - -// Response represents a response from the ABCI application. type Response struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Sum of all possible messages. - // // Types that are assignable to Value: // // *Response_Exception @@ -33218,7 +32282,7 @@ type Response struct { func (x *Response) Reset() { *x = Response{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[17] + mi := &file_tendermint_abci_types_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -33232,7 +32296,7 @@ func (*Response) ProtoMessage() {} // Deprecated: Use Response.ProtoReflect.Descriptor instead. func (*Response) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{17} + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{17} } func (x *Response) GetValue() isResponse_Value { @@ -33242,119 +32306,119 @@ func (x *Response) GetValue() isResponse_Value { return nil } -func (x *Response) GetException() *ExceptionResponse { +func (x *Response) GetException() *ResponseException { if x, ok := x.GetValue().(*Response_Exception); ok { return x.Exception } return nil } -func (x *Response) GetEcho() *EchoResponse { +func (x *Response) GetEcho() *ResponseEcho { if x, ok := x.GetValue().(*Response_Echo); ok { return x.Echo } return nil } -func (x *Response) GetFlush() *FlushResponse { +func (x *Response) GetFlush() *ResponseFlush { if x, ok := x.GetValue().(*Response_Flush); ok { return x.Flush } return nil } -func (x *Response) GetInfo() *InfoResponse { +func (x *Response) GetInfo() *ResponseInfo { if x, ok := x.GetValue().(*Response_Info); ok { return x.Info } return nil } -func (x *Response) GetInitChain() *InitChainResponse { +func (x *Response) GetInitChain() *ResponseInitChain { if x, ok := x.GetValue().(*Response_InitChain); ok { return x.InitChain } return nil } -func (x *Response) GetQuery() *QueryResponse { +func (x *Response) GetQuery() *ResponseQuery { if x, ok := x.GetValue().(*Response_Query); ok { return x.Query } return nil } -func (x *Response) GetCheckTx() *CheckTxResponse { +func (x *Response) GetCheckTx() *ResponseCheckTx { if x, ok := x.GetValue().(*Response_CheckTx); ok { return x.CheckTx } return nil } -func (x *Response) GetCommit() *CommitResponse { +func (x *Response) GetCommit() *ResponseCommit { if x, ok := x.GetValue().(*Response_Commit); ok { return x.Commit } return nil } -func (x *Response) GetListSnapshots() *ListSnapshotsResponse { +func (x *Response) GetListSnapshots() *ResponseListSnapshots { if x, ok := x.GetValue().(*Response_ListSnapshots); ok { return x.ListSnapshots } return nil } -func (x *Response) GetOfferSnapshot() *OfferSnapshotResponse { +func (x *Response) GetOfferSnapshot() *ResponseOfferSnapshot { if x, ok := x.GetValue().(*Response_OfferSnapshot); ok { return x.OfferSnapshot } return nil } -func (x *Response) GetLoadSnapshotChunk() *LoadSnapshotChunkResponse { +func (x *Response) GetLoadSnapshotChunk() *ResponseLoadSnapshotChunk { if x, ok := x.GetValue().(*Response_LoadSnapshotChunk); ok { return x.LoadSnapshotChunk } return nil } -func (x *Response) GetApplySnapshotChunk() *ApplySnapshotChunkResponse { +func (x *Response) GetApplySnapshotChunk() *ResponseApplySnapshotChunk { if x, ok := x.GetValue().(*Response_ApplySnapshotChunk); ok { return x.ApplySnapshotChunk } return nil } -func (x *Response) GetPrepareProposal() *PrepareProposalResponse { +func (x *Response) GetPrepareProposal() *ResponsePrepareProposal { if x, ok := x.GetValue().(*Response_PrepareProposal); ok { return x.PrepareProposal } return nil } -func (x *Response) GetProcessProposal() *ProcessProposalResponse { +func (x *Response) GetProcessProposal() *ResponseProcessProposal { if x, ok := x.GetValue().(*Response_ProcessProposal); ok { return x.ProcessProposal } return nil } -func (x *Response) GetExtendVote() *ExtendVoteResponse { +func (x *Response) GetExtendVote() *ResponseExtendVote { if x, ok := x.GetValue().(*Response_ExtendVote); ok { return x.ExtendVote } return nil } -func (x *Response) GetVerifyVoteExtension() *VerifyVoteExtensionResponse { +func (x *Response) GetVerifyVoteExtension() *ResponseVerifyVoteExtension { if x, ok := x.GetValue().(*Response_VerifyVoteExtension); ok { return x.VerifyVoteExtension } return nil } -func (x *Response) GetFinalizeBlock() *FinalizeBlockResponse { +func (x *Response) GetFinalizeBlock() *ResponseFinalizeBlock { if x, ok := x.GetValue().(*Response_FinalizeBlock); ok { return x.FinalizeBlock } @@ -33366,71 +32430,71 @@ type isResponse_Value interface { } type Response_Exception struct { - Exception *ExceptionResponse `protobuf:"bytes,1,opt,name=exception,proto3,oneof"` + Exception *ResponseException `protobuf:"bytes,1,opt,name=exception,proto3,oneof"` } type Response_Echo struct { - Echo *EchoResponse `protobuf:"bytes,2,opt,name=echo,proto3,oneof"` + Echo *ResponseEcho `protobuf:"bytes,2,opt,name=echo,proto3,oneof"` } type Response_Flush struct { - Flush *FlushResponse `protobuf:"bytes,3,opt,name=flush,proto3,oneof"` + Flush *ResponseFlush `protobuf:"bytes,3,opt,name=flush,proto3,oneof"` } type Response_Info struct { - Info *InfoResponse `protobuf:"bytes,4,opt,name=info,proto3,oneof"` + Info *ResponseInfo `protobuf:"bytes,4,opt,name=info,proto3,oneof"` } type Response_InitChain struct { - InitChain *InitChainResponse `protobuf:"bytes,6,opt,name=init_chain,json=initChain,proto3,oneof"` + InitChain *ResponseInitChain `protobuf:"bytes,6,opt,name=init_chain,json=initChain,proto3,oneof"` } type Response_Query struct { - Query *QueryResponse `protobuf:"bytes,7,opt,name=query,proto3,oneof"` + Query *ResponseQuery `protobuf:"bytes,7,opt,name=query,proto3,oneof"` } type Response_CheckTx struct { - CheckTx *CheckTxResponse `protobuf:"bytes,9,opt,name=check_tx,json=checkTx,proto3,oneof"` + CheckTx *ResponseCheckTx `protobuf:"bytes,9,opt,name=check_tx,json=checkTx,proto3,oneof"` } type Response_Commit struct { - Commit *CommitResponse `protobuf:"bytes,12,opt,name=commit,proto3,oneof"` + Commit *ResponseCommit `protobuf:"bytes,12,opt,name=commit,proto3,oneof"` } type Response_ListSnapshots struct { - ListSnapshots *ListSnapshotsResponse `protobuf:"bytes,13,opt,name=list_snapshots,json=listSnapshots,proto3,oneof"` + ListSnapshots *ResponseListSnapshots `protobuf:"bytes,13,opt,name=list_snapshots,json=listSnapshots,proto3,oneof"` } type Response_OfferSnapshot struct { - OfferSnapshot *OfferSnapshotResponse `protobuf:"bytes,14,opt,name=offer_snapshot,json=offerSnapshot,proto3,oneof"` + OfferSnapshot *ResponseOfferSnapshot `protobuf:"bytes,14,opt,name=offer_snapshot,json=offerSnapshot,proto3,oneof"` } type Response_LoadSnapshotChunk struct { - LoadSnapshotChunk *LoadSnapshotChunkResponse `protobuf:"bytes,15,opt,name=load_snapshot_chunk,json=loadSnapshotChunk,proto3,oneof"` + LoadSnapshotChunk *ResponseLoadSnapshotChunk `protobuf:"bytes,15,opt,name=load_snapshot_chunk,json=loadSnapshotChunk,proto3,oneof"` } type Response_ApplySnapshotChunk struct { - ApplySnapshotChunk *ApplySnapshotChunkResponse `protobuf:"bytes,16,opt,name=apply_snapshot_chunk,json=applySnapshotChunk,proto3,oneof"` + ApplySnapshotChunk *ResponseApplySnapshotChunk `protobuf:"bytes,16,opt,name=apply_snapshot_chunk,json=applySnapshotChunk,proto3,oneof"` } type Response_PrepareProposal struct { - PrepareProposal *PrepareProposalResponse `protobuf:"bytes,17,opt,name=prepare_proposal,json=prepareProposal,proto3,oneof"` + PrepareProposal *ResponsePrepareProposal `protobuf:"bytes,17,opt,name=prepare_proposal,json=prepareProposal,proto3,oneof"` } type Response_ProcessProposal struct { - ProcessProposal *ProcessProposalResponse `protobuf:"bytes,18,opt,name=process_proposal,json=processProposal,proto3,oneof"` + ProcessProposal *ResponseProcessProposal `protobuf:"bytes,18,opt,name=process_proposal,json=processProposal,proto3,oneof"` } type Response_ExtendVote struct { - ExtendVote *ExtendVoteResponse `protobuf:"bytes,19,opt,name=extend_vote,json=extendVote,proto3,oneof"` + ExtendVote *ResponseExtendVote `protobuf:"bytes,19,opt,name=extend_vote,json=extendVote,proto3,oneof"` } type Response_VerifyVoteExtension struct { - VerifyVoteExtension *VerifyVoteExtensionResponse `protobuf:"bytes,20,opt,name=verify_vote_extension,json=verifyVoteExtension,proto3,oneof"` + VerifyVoteExtension *ResponseVerifyVoteExtension `protobuf:"bytes,20,opt,name=verify_vote_extension,json=verifyVoteExtension,proto3,oneof"` } type Response_FinalizeBlock struct { - FinalizeBlock *FinalizeBlockResponse `protobuf:"bytes,21,opt,name=finalize_block,json=finalizeBlock,proto3,oneof"` + FinalizeBlock *ResponseFinalizeBlock `protobuf:"bytes,21,opt,name=finalize_block,json=finalizeBlock,proto3,oneof"` } func (*Response_Exception) isResponse_Value() {} @@ -33468,7 +32532,7 @@ func (*Response_VerifyVoteExtension) isResponse_Value() {} func (*Response_FinalizeBlock) isResponse_Value() {} // nondeterministic -type ExceptionResponse struct { +type ResponseException struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -33476,35 +32540,34 @@ type ExceptionResponse struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` } -func (x *ExceptionResponse) Reset() { - *x = ExceptionResponse{} +func (x *ResponseException) Reset() { + *x = ResponseException{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[18] + mi := &file_tendermint_abci_types_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ExceptionResponse) String() string { +func (x *ResponseException) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ExceptionResponse) ProtoMessage() {} +func (*ResponseException) ProtoMessage() {} -// Deprecated: Use ExceptionResponse.ProtoReflect.Descriptor instead. -func (*ExceptionResponse) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{18} +// Deprecated: Use ResponseException.ProtoReflect.Descriptor instead. +func (*ResponseException) Descriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{18} } -func (x *ExceptionResponse) GetError() string { +func (x *ResponseException) GetError() string { if x != nil { return x.Error } return "" } -// EchoResponse indicates that the connection is still alive. -type EchoResponse struct { +type ResponseEcho struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -33512,301 +32575,278 @@ type EchoResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` } -func (x *EchoResponse) Reset() { - *x = EchoResponse{} +func (x *ResponseEcho) Reset() { + *x = ResponseEcho{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[19] + mi := &file_tendermint_abci_types_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *EchoResponse) String() string { +func (x *ResponseEcho) String() string { return protoimpl.X.MessageStringOf(x) } -func (*EchoResponse) ProtoMessage() {} +func (*ResponseEcho) ProtoMessage() {} -// Deprecated: Use EchoResponse.ProtoReflect.Descriptor instead. -func (*EchoResponse) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{19} +// Deprecated: Use ResponseEcho.ProtoReflect.Descriptor instead. +func (*ResponseEcho) Descriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{19} } -func (x *EchoResponse) GetMessage() string { +func (x *ResponseEcho) GetMessage() string { if x != nil { return x.Message } return "" } -// FlushResponse indicates that the write buffer was flushed. -type FlushResponse struct { +type ResponseFlush struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *FlushResponse) Reset() { - *x = FlushResponse{} +func (x *ResponseFlush) Reset() { + *x = ResponseFlush{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[20] + mi := &file_tendermint_abci_types_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *FlushResponse) String() string { +func (x *ResponseFlush) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FlushResponse) ProtoMessage() {} +func (*ResponseFlush) ProtoMessage() {} -// Deprecated: Use FlushResponse.ProtoReflect.Descriptor instead. -func (*FlushResponse) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{20} +// Deprecated: Use ResponseFlush.ProtoReflect.Descriptor instead. +func (*ResponseFlush) Descriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{20} } -// InfoResponse contains the ABCI application version information. -type InfoResponse struct { +type ResponseInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` - AppVersion uint64 `protobuf:"varint,3,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"` - LastBlockHeight int64 `protobuf:"varint,4,opt,name=last_block_height,json=lastBlockHeight,proto3" json:"last_block_height,omitempty"` - LastBlockAppHash []byte `protobuf:"bytes,5,opt,name=last_block_app_hash,json=lastBlockAppHash,proto3" json:"last_block_app_hash,omitempty"` - LanePriorities map[string]uint32 `protobuf:"bytes,6,rep,name=lane_priorities,json=lanePriorities,proto3" json:"lane_priorities,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` - DefaultLane string `protobuf:"bytes,7,opt,name=default_lane,json=defaultLane,proto3" json:"default_lane,omitempty"` + Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + AppVersion uint64 `protobuf:"varint,3,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"` + LastBlockHeight int64 `protobuf:"varint,4,opt,name=last_block_height,json=lastBlockHeight,proto3" json:"last_block_height,omitempty"` + LastBlockAppHash []byte `protobuf:"bytes,5,opt,name=last_block_app_hash,json=lastBlockAppHash,proto3" json:"last_block_app_hash,omitempty"` } -func (x *InfoResponse) Reset() { - *x = InfoResponse{} +func (x *ResponseInfo) Reset() { + *x = ResponseInfo{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[21] + mi := &file_tendermint_abci_types_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *InfoResponse) String() string { +func (x *ResponseInfo) String() string { return protoimpl.X.MessageStringOf(x) } -func (*InfoResponse) ProtoMessage() {} +func (*ResponseInfo) ProtoMessage() {} -// Deprecated: Use InfoResponse.ProtoReflect.Descriptor instead. -func (*InfoResponse) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{21} +// Deprecated: Use ResponseInfo.ProtoReflect.Descriptor instead. +func (*ResponseInfo) Descriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{21} } -func (x *InfoResponse) GetData() string { +func (x *ResponseInfo) GetData() string { if x != nil { return x.Data } return "" } -func (x *InfoResponse) GetVersion() string { +func (x *ResponseInfo) GetVersion() string { if x != nil { return x.Version } return "" } -func (x *InfoResponse) GetAppVersion() uint64 { +func (x *ResponseInfo) GetAppVersion() uint64 { if x != nil { return x.AppVersion } return 0 } -func (x *InfoResponse) GetLastBlockHeight() int64 { +func (x *ResponseInfo) GetLastBlockHeight() int64 { if x != nil { return x.LastBlockHeight } return 0 } -func (x *InfoResponse) GetLastBlockAppHash() []byte { +func (x *ResponseInfo) GetLastBlockAppHash() []byte { if x != nil { return x.LastBlockAppHash } return nil } -func (x *InfoResponse) GetLanePriorities() map[string]uint32 { - if x != nil { - return x.LanePriorities - } - return nil -} - -func (x *InfoResponse) GetDefaultLane() string { - if x != nil { - return x.DefaultLane - } - return "" -} - -// InitChainResponse contains the ABCI application's hash and updates to the -// validator set and/or the consensus params, if any. -type InitChainResponse struct { +type ResponseInitChain struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ConsensusParams *v2.ConsensusParams `protobuf:"bytes,1,opt,name=consensus_params,json=consensusParams,proto3" json:"consensus_params,omitempty"` - Validators []*ValidatorUpdate `protobuf:"bytes,2,rep,name=validators,proto3" json:"validators,omitempty"` - AppHash []byte `protobuf:"bytes,3,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"` + ConsensusParams *types.ConsensusParams `protobuf:"bytes,1,opt,name=consensus_params,json=consensusParams,proto3" json:"consensus_params,omitempty"` + Validators []*ValidatorUpdate `protobuf:"bytes,2,rep,name=validators,proto3" json:"validators,omitempty"` + AppHash []byte `protobuf:"bytes,3,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"` } -func (x *InitChainResponse) Reset() { - *x = InitChainResponse{} +func (x *ResponseInitChain) Reset() { + *x = ResponseInitChain{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[22] + mi := &file_tendermint_abci_types_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *InitChainResponse) String() string { +func (x *ResponseInitChain) String() string { return protoimpl.X.MessageStringOf(x) } -func (*InitChainResponse) ProtoMessage() {} +func (*ResponseInitChain) ProtoMessage() {} -// Deprecated: Use InitChainResponse.ProtoReflect.Descriptor instead. -func (*InitChainResponse) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{22} +// Deprecated: Use ResponseInitChain.ProtoReflect.Descriptor instead. +func (*ResponseInitChain) Descriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{22} } -func (x *InitChainResponse) GetConsensusParams() *v2.ConsensusParams { +func (x *ResponseInitChain) GetConsensusParams() *types.ConsensusParams { if x != nil { return x.ConsensusParams } return nil } -func (x *InitChainResponse) GetValidators() []*ValidatorUpdate { +func (x *ResponseInitChain) GetValidators() []*ValidatorUpdate { if x != nil { return x.Validators } return nil } -func (x *InitChainResponse) GetAppHash() []byte { +func (x *ResponseInitChain) GetAppHash() []byte { if x != nil { return x.AppHash } return nil } -// QueryResponse contains the ABCI application data along with a proof. -type QueryResponse struct { +type ResponseQuery struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // bytes data = 2; // use "value" instead. - Log string `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"` // nondeterministic - Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"` // nondeterministic - Index int64 `protobuf:"varint,5,opt,name=index,proto3" json:"index,omitempty"` - Key []byte `protobuf:"bytes,6,opt,name=key,proto3" json:"key,omitempty"` - Value []byte `protobuf:"bytes,7,opt,name=value,proto3" json:"value,omitempty"` - ProofOps *v1.ProofOps `protobuf:"bytes,8,opt,name=proof_ops,json=proofOps,proto3" json:"proof_ops,omitempty"` - Height int64 `protobuf:"varint,9,opt,name=height,proto3" json:"height,omitempty"` - Codespace string `protobuf:"bytes,10,opt,name=codespace,proto3" json:"codespace,omitempty"` + Log string `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"` // nondeterministic + Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"` // nondeterministic + Index int64 `protobuf:"varint,5,opt,name=index,proto3" json:"index,omitempty"` + Key []byte `protobuf:"bytes,6,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,7,opt,name=value,proto3" json:"value,omitempty"` + ProofOps *crypto.ProofOps `protobuf:"bytes,8,opt,name=proof_ops,json=proofOps,proto3" json:"proof_ops,omitempty"` + Height int64 `protobuf:"varint,9,opt,name=height,proto3" json:"height,omitempty"` + Codespace string `protobuf:"bytes,10,opt,name=codespace,proto3" json:"codespace,omitempty"` } -func (x *QueryResponse) Reset() { - *x = QueryResponse{} +func (x *ResponseQuery) Reset() { + *x = ResponseQuery{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[23] + mi := &file_tendermint_abci_types_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryResponse) String() string { +func (x *ResponseQuery) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryResponse) ProtoMessage() {} +func (*ResponseQuery) ProtoMessage() {} -// Deprecated: Use QueryResponse.ProtoReflect.Descriptor instead. -func (*QueryResponse) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{23} +// Deprecated: Use ResponseQuery.ProtoReflect.Descriptor instead. +func (*ResponseQuery) Descriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{23} } -func (x *QueryResponse) GetCode() uint32 { +func (x *ResponseQuery) GetCode() uint32 { if x != nil { return x.Code } return 0 } -func (x *QueryResponse) GetLog() string { +func (x *ResponseQuery) GetLog() string { if x != nil { return x.Log } return "" } -func (x *QueryResponse) GetInfo() string { +func (x *ResponseQuery) GetInfo() string { if x != nil { return x.Info } return "" } -func (x *QueryResponse) GetIndex() int64 { +func (x *ResponseQuery) GetIndex() int64 { if x != nil { return x.Index } return 0 } -func (x *QueryResponse) GetKey() []byte { +func (x *ResponseQuery) GetKey() []byte { if x != nil { return x.Key } return nil } -func (x *QueryResponse) GetValue() []byte { +func (x *ResponseQuery) GetValue() []byte { if x != nil { return x.Value } return nil } -func (x *QueryResponse) GetProofOps() *v1.ProofOps { +func (x *ResponseQuery) GetProofOps() *crypto.ProofOps { if x != nil { return x.ProofOps } return nil } -func (x *QueryResponse) GetHeight() int64 { +func (x *ResponseQuery) GetHeight() int64 { if x != nil { return x.Height } return 0 } -func (x *QueryResponse) GetCodespace() string { +func (x *ResponseQuery) GetCodespace() string { if x != nil { return x.Codespace } return "" } -// CheckTxResponse shows if the transaction was deemed valid by the ABCI -// application. -type CheckTxResponse struct { +type ResponseCheckTx struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -33817,96 +32857,87 @@ type CheckTxResponse struct { Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"` // nondeterministic GasWanted int64 `protobuf:"varint,5,opt,name=gas_wanted,proto3" json:"gas_wanted,omitempty"` GasUsed int64 `protobuf:"varint,6,opt,name=gas_used,proto3" json:"gas_used,omitempty"` - Events []*Event `protobuf:"bytes,7,rep,name=events,proto3" json:"events,omitempty"` // nondeterministic + Events []*Event `protobuf:"bytes,7,rep,name=events,proto3" json:"events,omitempty"` Codespace string `protobuf:"bytes,8,opt,name=codespace,proto3" json:"codespace,omitempty"` - LaneId string `protobuf:"bytes,12,opt,name=lane_id,json=laneId,proto3" json:"lane_id,omitempty"` } -func (x *CheckTxResponse) Reset() { - *x = CheckTxResponse{} +func (x *ResponseCheckTx) Reset() { + *x = ResponseCheckTx{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[24] + mi := &file_tendermint_abci_types_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *CheckTxResponse) String() string { +func (x *ResponseCheckTx) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CheckTxResponse) ProtoMessage() {} +func (*ResponseCheckTx) ProtoMessage() {} -// Deprecated: Use CheckTxResponse.ProtoReflect.Descriptor instead. -func (*CheckTxResponse) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{24} +// Deprecated: Use ResponseCheckTx.ProtoReflect.Descriptor instead. +func (*ResponseCheckTx) Descriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{24} } -func (x *CheckTxResponse) GetCode() uint32 { +func (x *ResponseCheckTx) GetCode() uint32 { if x != nil { return x.Code } return 0 } -func (x *CheckTxResponse) GetData() []byte { +func (x *ResponseCheckTx) GetData() []byte { if x != nil { return x.Data } return nil } -func (x *CheckTxResponse) GetLog() string { +func (x *ResponseCheckTx) GetLog() string { if x != nil { return x.Log } return "" } -func (x *CheckTxResponse) GetInfo() string { +func (x *ResponseCheckTx) GetInfo() string { if x != nil { return x.Info } return "" } -func (x *CheckTxResponse) GetGasWanted() int64 { +func (x *ResponseCheckTx) GetGasWanted() int64 { if x != nil { return x.GasWanted } return 0 } -func (x *CheckTxResponse) GetGasUsed() int64 { +func (x *ResponseCheckTx) GetGasUsed() int64 { if x != nil { return x.GasUsed } return 0 } -func (x *CheckTxResponse) GetEvents() []*Event { +func (x *ResponseCheckTx) GetEvents() []*Event { if x != nil { return x.Events } return nil } -func (x *CheckTxResponse) GetCodespace() string { +func (x *ResponseCheckTx) GetCodespace() string { if x != nil { return x.Codespace } return "" } -func (x *CheckTxResponse) GetLaneId() string { - if x != nil { - return x.LaneId - } - return "" -} - -// CommitResponse indicates how much blocks should CometBFT retain. -type CommitResponse struct { +type ResponseCommit struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -33914,35 +32945,34 @@ type CommitResponse struct { RetainHeight int64 `protobuf:"varint,3,opt,name=retain_height,json=retainHeight,proto3" json:"retain_height,omitempty"` } -func (x *CommitResponse) Reset() { - *x = CommitResponse{} +func (x *ResponseCommit) Reset() { + *x = ResponseCommit{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[25] + mi := &file_tendermint_abci_types_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *CommitResponse) String() string { +func (x *ResponseCommit) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CommitResponse) ProtoMessage() {} +func (*ResponseCommit) ProtoMessage() {} -// Deprecated: Use CommitResponse.ProtoReflect.Descriptor instead. -func (*CommitResponse) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{25} +// Deprecated: Use ResponseCommit.ProtoReflect.Descriptor instead. +func (*ResponseCommit) Descriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{25} } -func (x *CommitResponse) GetRetainHeight() int64 { +func (x *ResponseCommit) GetRetainHeight() int64 { if x != nil { return x.RetainHeight } return 0 } -// ListSnapshotsResponse contains the list of snapshots. -type ListSnapshotsResponse struct { +type ResponseListSnapshots struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -33950,72 +32980,69 @@ type ListSnapshotsResponse struct { Snapshots []*Snapshot `protobuf:"bytes,1,rep,name=snapshots,proto3" json:"snapshots,omitempty"` } -func (x *ListSnapshotsResponse) Reset() { - *x = ListSnapshotsResponse{} +func (x *ResponseListSnapshots) Reset() { + *x = ResponseListSnapshots{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[26] + mi := &file_tendermint_abci_types_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ListSnapshotsResponse) String() string { +func (x *ResponseListSnapshots) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListSnapshotsResponse) ProtoMessage() {} +func (*ResponseListSnapshots) ProtoMessage() {} -// Deprecated: Use ListSnapshotsResponse.ProtoReflect.Descriptor instead. -func (*ListSnapshotsResponse) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{26} +// Deprecated: Use ResponseListSnapshots.ProtoReflect.Descriptor instead. +func (*ResponseListSnapshots) Descriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{26} } -func (x *ListSnapshotsResponse) GetSnapshots() []*Snapshot { +func (x *ResponseListSnapshots) GetSnapshots() []*Snapshot { if x != nil { return x.Snapshots } return nil } -// OfferSnapshotResponse indicates the ABCI application decision whenever to -// provide a snapshot to the requester or not. -type OfferSnapshotResponse struct { +type ResponseOfferSnapshot struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Result OfferSnapshotResult `protobuf:"varint,1,opt,name=result,proto3,enum=cometbft.abci.v2.OfferSnapshotResult" json:"result,omitempty"` + Result ResponseOfferSnapshot_Result `protobuf:"varint,1,opt,name=result,proto3,enum=tendermint.abci.ResponseOfferSnapshot_Result" json:"result,omitempty"` } -func (x *OfferSnapshotResponse) Reset() { - *x = OfferSnapshotResponse{} +func (x *ResponseOfferSnapshot) Reset() { + *x = ResponseOfferSnapshot{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[27] + mi := &file_tendermint_abci_types_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *OfferSnapshotResponse) String() string { +func (x *ResponseOfferSnapshot) String() string { return protoimpl.X.MessageStringOf(x) } -func (*OfferSnapshotResponse) ProtoMessage() {} +func (*ResponseOfferSnapshot) ProtoMessage() {} -// Deprecated: Use OfferSnapshotResponse.ProtoReflect.Descriptor instead. -func (*OfferSnapshotResponse) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{27} +// Deprecated: Use ResponseOfferSnapshot.ProtoReflect.Descriptor instead. +func (*ResponseOfferSnapshot) Descriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{27} } -func (x *OfferSnapshotResponse) GetResult() OfferSnapshotResult { +func (x *ResponseOfferSnapshot) GetResult() ResponseOfferSnapshot_Result { if x != nil { return x.Result } - return OfferSnapshotResult_OFFER_SNAPSHOT_RESULT_UNKNOWN + return ResponseOfferSnapshot_UNKNOWN } -// LoadSnapshotChunkResponse returns a snapshot's chunk. -type LoadSnapshotChunkResponse struct { +type ResponseLoadSnapshotChunk struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -34023,87 +33050,85 @@ type LoadSnapshotChunkResponse struct { Chunk []byte `protobuf:"bytes,1,opt,name=chunk,proto3" json:"chunk,omitempty"` } -func (x *LoadSnapshotChunkResponse) Reset() { - *x = LoadSnapshotChunkResponse{} +func (x *ResponseLoadSnapshotChunk) Reset() { + *x = ResponseLoadSnapshotChunk{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[28] + mi := &file_tendermint_abci_types_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *LoadSnapshotChunkResponse) String() string { +func (x *ResponseLoadSnapshotChunk) String() string { return protoimpl.X.MessageStringOf(x) } -func (*LoadSnapshotChunkResponse) ProtoMessage() {} +func (*ResponseLoadSnapshotChunk) ProtoMessage() {} -// Deprecated: Use LoadSnapshotChunkResponse.ProtoReflect.Descriptor instead. -func (*LoadSnapshotChunkResponse) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{28} +// Deprecated: Use ResponseLoadSnapshotChunk.ProtoReflect.Descriptor instead. +func (*ResponseLoadSnapshotChunk) Descriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{28} } -func (x *LoadSnapshotChunkResponse) GetChunk() []byte { +func (x *ResponseLoadSnapshotChunk) GetChunk() []byte { if x != nil { return x.Chunk } return nil } -// ApplySnapshotChunkResponse returns a result of applying the specified chunk. -type ApplySnapshotChunkResponse struct { +type ResponseApplySnapshotChunk struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Result ApplySnapshotChunkResult `protobuf:"varint,1,opt,name=result,proto3,enum=cometbft.abci.v2.ApplySnapshotChunkResult" json:"result,omitempty"` - RefetchChunks []uint32 `protobuf:"varint,2,rep,packed,name=refetch_chunks,json=refetchChunks,proto3" json:"refetch_chunks,omitempty"` // Chunks to refetch and reapply - RejectSenders []string `protobuf:"bytes,3,rep,name=reject_senders,json=rejectSenders,proto3" json:"reject_senders,omitempty"` // Chunk senders to reject and ban + Result ResponseApplySnapshotChunk_Result `protobuf:"varint,1,opt,name=result,proto3,enum=tendermint.abci.ResponseApplySnapshotChunk_Result" json:"result,omitempty"` + RefetchChunks []uint32 `protobuf:"varint,2,rep,packed,name=refetch_chunks,json=refetchChunks,proto3" json:"refetch_chunks,omitempty"` // Chunks to refetch and reapply + RejectSenders []string `protobuf:"bytes,3,rep,name=reject_senders,json=rejectSenders,proto3" json:"reject_senders,omitempty"` // Chunk senders to reject and ban } -func (x *ApplySnapshotChunkResponse) Reset() { - *x = ApplySnapshotChunkResponse{} +func (x *ResponseApplySnapshotChunk) Reset() { + *x = ResponseApplySnapshotChunk{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[29] + mi := &file_tendermint_abci_types_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ApplySnapshotChunkResponse) String() string { +func (x *ResponseApplySnapshotChunk) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ApplySnapshotChunkResponse) ProtoMessage() {} +func (*ResponseApplySnapshotChunk) ProtoMessage() {} -// Deprecated: Use ApplySnapshotChunkResponse.ProtoReflect.Descriptor instead. -func (*ApplySnapshotChunkResponse) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{29} +// Deprecated: Use ResponseApplySnapshotChunk.ProtoReflect.Descriptor instead. +func (*ResponseApplySnapshotChunk) Descriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{29} } -func (x *ApplySnapshotChunkResponse) GetResult() ApplySnapshotChunkResult { +func (x *ResponseApplySnapshotChunk) GetResult() ResponseApplySnapshotChunk_Result { if x != nil { return x.Result } - return ApplySnapshotChunkResult_APPLY_SNAPSHOT_CHUNK_RESULT_UNKNOWN + return ResponseApplySnapshotChunk_UNKNOWN } -func (x *ApplySnapshotChunkResponse) GetRefetchChunks() []uint32 { +func (x *ResponseApplySnapshotChunk) GetRefetchChunks() []uint32 { if x != nil { return x.RefetchChunks } return nil } -func (x *ApplySnapshotChunkResponse) GetRejectSenders() []string { +func (x *ResponseApplySnapshotChunk) GetRejectSenders() []string { if x != nil { return x.RejectSenders } return nil } -// PrepareProposalResponse contains a list of transactions, which will form a block. -type PrepareProposalResponse struct { +type ResponsePrepareProposal struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -34111,242 +33136,213 @@ type PrepareProposalResponse struct { Txs [][]byte `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"` } -func (x *PrepareProposalResponse) Reset() { - *x = PrepareProposalResponse{} +func (x *ResponsePrepareProposal) Reset() { + *x = ResponsePrepareProposal{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[30] + mi := &file_tendermint_abci_types_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *PrepareProposalResponse) String() string { +func (x *ResponsePrepareProposal) String() string { return protoimpl.X.MessageStringOf(x) } -func (*PrepareProposalResponse) ProtoMessage() {} +func (*ResponsePrepareProposal) ProtoMessage() {} -// Deprecated: Use PrepareProposalResponse.ProtoReflect.Descriptor instead. -func (*PrepareProposalResponse) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{30} +// Deprecated: Use ResponsePrepareProposal.ProtoReflect.Descriptor instead. +func (*ResponsePrepareProposal) Descriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{30} } -func (x *PrepareProposalResponse) GetTxs() [][]byte { +func (x *ResponsePrepareProposal) GetTxs() [][]byte { if x != nil { return x.Txs } return nil } -// ProcessProposalResponse indicates the ABCI application's decision whenever -// the given proposal should be accepted or not. -type ProcessProposalResponse struct { +type ResponseProcessProposal struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Status ProcessProposalStatus `protobuf:"varint,1,opt,name=status,proto3,enum=cometbft.abci.v2.ProcessProposalStatus" json:"status,omitempty"` + Status ResponseProcessProposal_ProposalStatus `protobuf:"varint,1,opt,name=status,proto3,enum=tendermint.abci.ResponseProcessProposal_ProposalStatus" json:"status,omitempty"` } -func (x *ProcessProposalResponse) Reset() { - *x = ProcessProposalResponse{} +func (x *ResponseProcessProposal) Reset() { + *x = ResponseProcessProposal{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[31] + mi := &file_tendermint_abci_types_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ProcessProposalResponse) String() string { +func (x *ResponseProcessProposal) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ProcessProposalResponse) ProtoMessage() {} +func (*ResponseProcessProposal) ProtoMessage() {} -// Deprecated: Use ProcessProposalResponse.ProtoReflect.Descriptor instead. -func (*ProcessProposalResponse) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{31} +// Deprecated: Use ResponseProcessProposal.ProtoReflect.Descriptor instead. +func (*ResponseProcessProposal) Descriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{31} } -func (x *ProcessProposalResponse) GetStatus() ProcessProposalStatus { +func (x *ResponseProcessProposal) GetStatus() ResponseProcessProposal_ProposalStatus { if x != nil { return x.Status } - return ProcessProposalStatus_PROCESS_PROPOSAL_STATUS_UNKNOWN + return ResponseProcessProposal_UNKNOWN } -// ExtendVoteResponse contains the vote extension that the application would like to -// attach to its next precommit vote. -// Information in `vote_extension` will be replay-protected. -// Information in `non_rp_extension` will not be replay-protected. -type ExtendVoteResponse struct { +type ResponseExtendVote struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - VoteExtension []byte `protobuf:"bytes,1,opt,name=vote_extension,json=voteExtension,proto3" json:"vote_extension,omitempty"` // this extension's signature is replay-protected - NonRpExtension []byte `protobuf:"bytes,2,opt,name=non_rp_extension,json=nonRpExtension,proto3" json:"non_rp_extension,omitempty"` // this extension's signature is _not_ replay-protected + VoteExtension []byte `protobuf:"bytes,1,opt,name=vote_extension,json=voteExtension,proto3" json:"vote_extension,omitempty"` } -func (x *ExtendVoteResponse) Reset() { - *x = ExtendVoteResponse{} +func (x *ResponseExtendVote) Reset() { + *x = ResponseExtendVote{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[32] + mi := &file_tendermint_abci_types_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ExtendVoteResponse) String() string { +func (x *ResponseExtendVote) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ExtendVoteResponse) ProtoMessage() {} +func (*ResponseExtendVote) ProtoMessage() {} -// Deprecated: Use ExtendVoteResponse.ProtoReflect.Descriptor instead. -func (*ExtendVoteResponse) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{32} +// Deprecated: Use ResponseExtendVote.ProtoReflect.Descriptor instead. +func (*ResponseExtendVote) Descriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{32} } -func (x *ExtendVoteResponse) GetVoteExtension() []byte { +func (x *ResponseExtendVote) GetVoteExtension() []byte { if x != nil { return x.VoteExtension } return nil } -func (x *ExtendVoteResponse) GetNonRpExtension() []byte { - if x != nil { - return x.NonRpExtension - } - return nil -} - -// VerifyVoteExtensionResponse indicates the ABCI application's decision -// whenever the vote extension should be accepted or not. -type VerifyVoteExtensionResponse struct { +type ResponseVerifyVoteExtension struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Status VerifyVoteExtensionStatus `protobuf:"varint,1,opt,name=status,proto3,enum=cometbft.abci.v2.VerifyVoteExtensionStatus" json:"status,omitempty"` + Status ResponseVerifyVoteExtension_VerifyStatus `protobuf:"varint,1,opt,name=status,proto3,enum=tendermint.abci.ResponseVerifyVoteExtension_VerifyStatus" json:"status,omitempty"` } -func (x *VerifyVoteExtensionResponse) Reset() { - *x = VerifyVoteExtensionResponse{} +func (x *ResponseVerifyVoteExtension) Reset() { + *x = ResponseVerifyVoteExtension{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[33] + mi := &file_tendermint_abci_types_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *VerifyVoteExtensionResponse) String() string { +func (x *ResponseVerifyVoteExtension) String() string { return protoimpl.X.MessageStringOf(x) } -func (*VerifyVoteExtensionResponse) ProtoMessage() {} +func (*ResponseVerifyVoteExtension) ProtoMessage() {} -// Deprecated: Use VerifyVoteExtensionResponse.ProtoReflect.Descriptor instead. -func (*VerifyVoteExtensionResponse) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{33} +// Deprecated: Use ResponseVerifyVoteExtension.ProtoReflect.Descriptor instead. +func (*ResponseVerifyVoteExtension) Descriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{33} } -func (x *VerifyVoteExtensionResponse) GetStatus() VerifyVoteExtensionStatus { +func (x *ResponseVerifyVoteExtension) GetStatus() ResponseVerifyVoteExtension_VerifyStatus { if x != nil { return x.Status } - return VerifyVoteExtensionStatus_VERIFY_VOTE_EXTENSION_STATUS_UNKNOWN + return ResponseVerifyVoteExtension_UNKNOWN } -// FinalizeBlockResponse contains the result of executing the block. -type FinalizeBlockResponse struct { +type ResponseFinalizeBlock struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // set of block events emitted as part of executing the block - Events []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` // nondeterministic + // set of block events emmitted as part of executing the block + Events []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` // the result of executing each transaction including the events - // the particular transaction emitted. This should match the order + // the particular transction emitted. This should match the order // of the transactions delivered in the block itself TxResults []*ExecTxResult `protobuf:"bytes,2,rep,name=tx_results,json=txResults,proto3" json:"tx_results,omitempty"` // a list of updates to the validator set. These will reflect the validator set at current height + 2. ValidatorUpdates []*ValidatorUpdate `protobuf:"bytes,3,rep,name=validator_updates,json=validatorUpdates,proto3" json:"validator_updates,omitempty"` // updates to the consensus params, if any. - ConsensusParamUpdates *v2.ConsensusParams `protobuf:"bytes,4,opt,name=consensus_param_updates,json=consensusParamUpdates,proto3" json:"consensus_param_updates,omitempty"` - // 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. + ConsensusParamUpdates *types.ConsensusParams `protobuf:"bytes,4,opt,name=consensus_param_updates,json=consensusParamUpdates,proto3" json:"consensus_param_updates,omitempty"` + // 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. AppHash []byte `protobuf:"bytes,5,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"` - // delay between the time when this block is committed and the next height is started. - // previously `timeout_commit` in config.toml - NextBlockDelay *durationpb.Duration `protobuf:"bytes,6,opt,name=next_block_delay,json=nextBlockDelay,proto3" json:"next_block_delay,omitempty"` } -func (x *FinalizeBlockResponse) Reset() { - *x = FinalizeBlockResponse{} +func (x *ResponseFinalizeBlock) Reset() { + *x = ResponseFinalizeBlock{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[34] + mi := &file_tendermint_abci_types_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *FinalizeBlockResponse) String() string { +func (x *ResponseFinalizeBlock) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FinalizeBlockResponse) ProtoMessage() {} +func (*ResponseFinalizeBlock) ProtoMessage() {} -// Deprecated: Use FinalizeBlockResponse.ProtoReflect.Descriptor instead. -func (*FinalizeBlockResponse) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{34} +// Deprecated: Use ResponseFinalizeBlock.ProtoReflect.Descriptor instead. +func (*ResponseFinalizeBlock) Descriptor() ([]byte, []int) { + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{34} } -func (x *FinalizeBlockResponse) GetEvents() []*Event { +func (x *ResponseFinalizeBlock) GetEvents() []*Event { if x != nil { return x.Events } return nil } -func (x *FinalizeBlockResponse) GetTxResults() []*ExecTxResult { +func (x *ResponseFinalizeBlock) GetTxResults() []*ExecTxResult { if x != nil { return x.TxResults } return nil } -func (x *FinalizeBlockResponse) GetValidatorUpdates() []*ValidatorUpdate { +func (x *ResponseFinalizeBlock) GetValidatorUpdates() []*ValidatorUpdate { if x != nil { return x.ValidatorUpdates } return nil } -func (x *FinalizeBlockResponse) GetConsensusParamUpdates() *v2.ConsensusParams { +func (x *ResponseFinalizeBlock) GetConsensusParamUpdates() *types.ConsensusParams { if x != nil { return x.ConsensusParamUpdates } return nil } -func (x *FinalizeBlockResponse) GetAppHash() []byte { +func (x *ResponseFinalizeBlock) GetAppHash() []byte { if x != nil { return x.AppHash } return nil } -func (x *FinalizeBlockResponse) GetNextBlockDelay() *durationpb.Duration { - if x != nil { - return x.NextBlockDelay - } - return nil -} - -// CommitInfo contains votes for the particular round. type CommitInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -34359,7 +33355,7 @@ type CommitInfo struct { func (x *CommitInfo) Reset() { *x = CommitInfo{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[35] + mi := &file_tendermint_abci_types_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -34373,7 +33369,7 @@ func (*CommitInfo) ProtoMessage() {} // Deprecated: Use CommitInfo.ProtoReflect.Descriptor instead. func (*CommitInfo) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{35} + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{35} } func (x *CommitInfo) GetRound() int32 { @@ -34391,7 +33387,7 @@ func (x *CommitInfo) GetVotes() []*VoteInfo { } // ExtendedCommitInfo is similar to CommitInfo except that it is only used in -// the PrepareProposal request such that Tendermint can provide vote extensions +// the PrepareProposal request such that CometBFT can provide vote extensions // to the application. type ExtendedCommitInfo struct { state protoimpl.MessageState @@ -34408,7 +33404,7 @@ type ExtendedCommitInfo struct { func (x *ExtendedCommitInfo) Reset() { *x = ExtendedCommitInfo{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[36] + mi := &file_tendermint_abci_types_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -34422,7 +33418,7 @@ func (*ExtendedCommitInfo) ProtoMessage() {} // Deprecated: Use ExtendedCommitInfo.ProtoReflect.Descriptor instead. func (*ExtendedCommitInfo) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{36} + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{36} } func (x *ExtendedCommitInfo) GetRound() int32 { @@ -34441,8 +33437,6 @@ func (x *ExtendedCommitInfo) GetVotes() []*ExtendedVoteInfo { // Event allows application developers to attach additional information to // ResponseFinalizeBlock and ResponseCheckTx. -// Up to 0.37, this could also be used in ResponseBeginBlock, ResponseEndBlock, -// and ResponseDeliverTx. // Later, transactions may be queried using these events. type Event struct { state protoimpl.MessageState @@ -34456,7 +33450,7 @@ type Event struct { func (x *Event) Reset() { *x = Event{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[37] + mi := &file_tendermint_abci_types_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -34470,7 +33464,7 @@ func (*Event) ProtoMessage() {} // Deprecated: Use Event.ProtoReflect.Descriptor instead. func (*Event) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{37} + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{37} } func (x *Event) GetType_() string { @@ -34501,7 +33495,7 @@ type EventAttribute struct { func (x *EventAttribute) Reset() { *x = EventAttribute{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[38] + mi := &file_tendermint_abci_types_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -34515,7 +33509,7 @@ func (*EventAttribute) ProtoMessage() {} // Deprecated: Use EventAttribute.ProtoReflect.Descriptor instead. func (*EventAttribute) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{38} + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{38} } func (x *EventAttribute) GetKey() string { @@ -34560,7 +33554,7 @@ type ExecTxResult struct { func (x *ExecTxResult) Reset() { *x = ExecTxResult{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[39] + mi := &file_tendermint_abci_types_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -34574,7 +33568,7 @@ func (*ExecTxResult) ProtoMessage() {} // Deprecated: Use ExecTxResult.ProtoReflect.Descriptor instead. func (*ExecTxResult) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{39} + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{39} } func (x *ExecTxResult) GetCode() uint32 { @@ -34650,7 +33644,7 @@ type TxResult struct { func (x *TxResult) Reset() { *x = TxResult{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[40] + mi := &file_tendermint_abci_types_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -34664,7 +33658,7 @@ func (*TxResult) ProtoMessage() {} // Deprecated: Use TxResult.ProtoReflect.Descriptor instead. func (*TxResult) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{40} + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{40} } func (x *TxResult) GetHeight() int64 { @@ -34695,7 +33689,6 @@ func (x *TxResult) GetResult() *ExecTxResult { return nil } -// Validator in the validator set. type Validator struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -34709,7 +33702,7 @@ type Validator struct { func (x *Validator) Reset() { *x = Validator{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[41] + mi := &file_tendermint_abci_types_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -34723,7 +33716,7 @@ func (*Validator) ProtoMessage() {} // Deprecated: Use Validator.ProtoReflect.Descriptor instead. func (*Validator) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{41} + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{41} } func (x *Validator) GetAddress() []byte { @@ -34740,21 +33733,19 @@ func (x *Validator) GetPower() int64 { return 0 } -// ValidatorUpdate is a singular update to a validator set. type ValidatorUpdate struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Power int64 `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"` - PubKeyBytes []byte `protobuf:"bytes,3,opt,name=pub_key_bytes,json=pubKeyBytes,proto3" json:"pub_key_bytes,omitempty"` - PubKeyType string `protobuf:"bytes,4,opt,name=pub_key_type,json=pubKeyType,proto3" json:"pub_key_type,omitempty"` + PubKey *crypto.PublicKey `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"` + Power int64 `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"` } func (x *ValidatorUpdate) Reset() { *x = ValidatorUpdate{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[42] + mi := &file_tendermint_abci_types_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -34768,7 +33759,14 @@ func (*ValidatorUpdate) ProtoMessage() {} // Deprecated: Use ValidatorUpdate.ProtoReflect.Descriptor instead. func (*ValidatorUpdate) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{42} + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{42} +} + +func (x *ValidatorUpdate) GetPubKey() *crypto.PublicKey { + if x != nil { + return x.PubKey + } + return nil } func (x *ValidatorUpdate) GetPower() int64 { @@ -34778,34 +33776,19 @@ func (x *ValidatorUpdate) GetPower() int64 { return 0 } -func (x *ValidatorUpdate) GetPubKeyBytes() []byte { - if x != nil { - return x.PubKeyBytes - } - return nil -} - -func (x *ValidatorUpdate) GetPubKeyType() string { - if x != nil { - return x.PubKeyType - } - return "" -} - -// VoteInfo contains the information about the vote. type VoteInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Validator *Validator `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` - BlockIdFlag v2.BlockIDFlag `protobuf:"varint,3,opt,name=block_id_flag,json=blockIdFlag,proto3,enum=cometbft.types.v2.BlockIDFlag" json:"block_id_flag,omitempty"` + Validator *Validator `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` + BlockIdFlag types.BlockIDFlag `protobuf:"varint,3,opt,name=block_id_flag,json=blockIdFlag,proto3,enum=tendermint.types.BlockIDFlag" json:"block_id_flag,omitempty"` } func (x *VoteInfo) Reset() { *x = VoteInfo{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[43] + mi := &file_tendermint_abci_types_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -34819,7 +33802,7 @@ func (*VoteInfo) ProtoMessage() {} // Deprecated: Use VoteInfo.ProtoReflect.Descriptor instead. func (*VoteInfo) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{43} + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{43} } func (x *VoteInfo) GetValidator() *Validator { @@ -34829,14 +33812,13 @@ func (x *VoteInfo) GetValidator() *Validator { return nil } -func (x *VoteInfo) GetBlockIdFlag() v2.BlockIDFlag { +func (x *VoteInfo) GetBlockIdFlag() types.BlockIDFlag { if x != nil { return x.BlockIdFlag } - return v2.BlockIDFlag(0) + return types.BlockIDFlag(0) } -// ExtendedVoteInfo extends VoteInfo with the vote extensions (non-deterministic). type ExtendedVoteInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -34849,17 +33831,13 @@ type ExtendedVoteInfo struct { // Vote extension signature created by CometBFT ExtensionSignature []byte `protobuf:"bytes,4,opt,name=extension_signature,json=extensionSignature,proto3" json:"extension_signature,omitempty"` // block_id_flag indicates whether the validator voted for a block, nil, or did not vote at all - BlockIdFlag v2.BlockIDFlag `protobuf:"varint,5,opt,name=block_id_flag,json=blockIdFlag,proto3,enum=cometbft.types.v2.BlockIDFlag" json:"block_id_flag,omitempty"` - // Non-deterministic non-replay-protected extension provided by the sending validator's application. - NonRpVoteExtension []byte `protobuf:"bytes,6,opt,name=non_rp_vote_extension,json=nonRpVoteExtension,proto3" json:"non_rp_vote_extension,omitempty"` - // Signature on non-replay-protected extension created by CometBFT - NonRpExtensionSignature []byte `protobuf:"bytes,7,opt,name=non_rp_extension_signature,json=nonRpExtensionSignature,proto3" json:"non_rp_extension_signature,omitempty"` + BlockIdFlag types.BlockIDFlag `protobuf:"varint,5,opt,name=block_id_flag,json=blockIdFlag,proto3,enum=tendermint.types.BlockIDFlag" json:"block_id_flag,omitempty"` } func (x *ExtendedVoteInfo) Reset() { *x = ExtendedVoteInfo{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[44] + mi := &file_tendermint_abci_types_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -34873,7 +33851,7 @@ func (*ExtendedVoteInfo) ProtoMessage() {} // Deprecated: Use ExtendedVoteInfo.ProtoReflect.Descriptor instead. func (*ExtendedVoteInfo) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{44} + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{44} } func (x *ExtendedVoteInfo) GetValidator() *Validator { @@ -34897,34 +33875,19 @@ func (x *ExtendedVoteInfo) GetExtensionSignature() []byte { return nil } -func (x *ExtendedVoteInfo) GetBlockIdFlag() v2.BlockIDFlag { +func (x *ExtendedVoteInfo) GetBlockIdFlag() types.BlockIDFlag { if x != nil { return x.BlockIdFlag } - return v2.BlockIDFlag(0) + return types.BlockIDFlag(0) } -func (x *ExtendedVoteInfo) GetNonRpVoteExtension() []byte { - if x != nil { - return x.NonRpVoteExtension - } - return nil -} - -func (x *ExtendedVoteInfo) GetNonRpExtensionSignature() []byte { - if x != nil { - return x.NonRpExtensionSignature - } - return nil -} - -// Misbehavior is a type of misbehavior committed by a validator. type Misbehavior struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Type_ MisbehaviorType `protobuf:"varint,1,opt,name=type,proto3,enum=cometbft.abci.v2.MisbehaviorType" json:"type,omitempty"` + Type_ MisbehaviorType `protobuf:"varint,1,opt,name=type,proto3,enum=tendermint.abci.MisbehaviorType" json:"type,omitempty"` // The offending validator Validator *Validator `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"` // The height when the offense occurred @@ -34940,7 +33903,7 @@ type Misbehavior struct { func (x *Misbehavior) Reset() { *x = Misbehavior{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[45] + mi := &file_tendermint_abci_types_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -34954,14 +33917,14 @@ func (*Misbehavior) ProtoMessage() {} // Deprecated: Use Misbehavior.ProtoReflect.Descriptor instead. func (*Misbehavior) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{45} + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{45} } func (x *Misbehavior) GetType_() MisbehaviorType { if x != nil { return x.Type_ } - return MisbehaviorType_MISBEHAVIOR_TYPE_UNKNOWN + return MisbehaviorType_UNKNOWN } func (x *Misbehavior) GetValidator() *Validator { @@ -34992,7 +33955,6 @@ func (x *Misbehavior) GetTotalVotingPower() int64 { return 0 } -// Snapshot of the ABCI application state. type Snapshot struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -35008,7 +33970,7 @@ type Snapshot struct { func (x *Snapshot) Reset() { *x = Snapshot{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_abci_v2_types_proto_msgTypes[46] + mi := &file_tendermint_abci_types_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -35022,7 +33984,7 @@ func (*Snapshot) ProtoMessage() {} // Deprecated: Use Snapshot.ProtoReflect.Descriptor instead. func (*Snapshot) Descriptor() ([]byte, []int) { - return file_cometbft_abci_v2_types_proto_rawDescGZIP(), []int{46} + return file_tendermint_abci_types_proto_rawDescGZIP(), []int{46} } func (x *Snapshot) GetHeight() uint64 { @@ -35060,208 +34022,181 @@ func (x *Snapshot) GetMetadata() []byte { return nil } -var File_cometbft_abci_v2_types_proto protoreflect.FileDescriptor +var File_tendermint_abci_types_proto protoreflect.FileDescriptor -var file_cometbft_abci_v2_types_proto_rawDesc = []byte{ - 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x61, 0x62, 0x63, 0x69, 0x2f, - 0x76, 0x32, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, - 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, - 0x1a, 0x1e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74, - 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x1e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2f, 0x76, 0x32, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2f, 0x76, 0x32, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, - 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcf, 0x09, 0x0a, 0x07, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x33, 0x0a, 0x04, 0x65, 0x63, 0x68, 0x6f, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, - 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x04, 0x65, 0x63, 0x68, 0x6f, 0x12, 0x36, 0x0a, 0x05, 0x66, - 0x6c, 0x75, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x6f, 0x6d, - 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x6c, - 0x75, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x05, 0x66, 0x6c, - 0x75, 0x73, 0x68, 0x12, 0x33, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1d, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, - 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x48, 0x00, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x43, 0x0a, 0x0a, 0x69, 0x6e, 0x69, 0x74, - 0x5f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, - 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, - 0x49, 0x6e, 0x69, 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x48, 0x00, 0x52, 0x09, 0x69, 0x6e, 0x69, 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x36, 0x0a, - 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, - 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x05, - 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x3d, 0x0a, 0x08, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x74, - 0x78, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, - 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, - 0x54, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x07, 0x63, 0x68, 0x65, - 0x63, 0x6b, 0x54, 0x78, 0x12, 0x39, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x0b, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, - 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, - 0x4f, 0x0a, 0x0e, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, - 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, - 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, - 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, - 0x00, 0x52, 0x0d, 0x6c, 0x69, 0x73, 0x74, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, - 0x12, 0x4f, 0x0a, 0x0e, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, - 0x6f, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, - 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x4f, 0x66, 0x66, 0x65, - 0x72, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, +var file_tendermint_abci_types_proto_rawDesc = []byte{ + 0x0a, 0x1b, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x61, 0x62, 0x63, + 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x74, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x1a, 0x1d, + 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x74, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, + 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x74, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x70, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x74, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, + 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0xbf, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x32, 0x0a, 0x04, 0x65, 0x63, 0x68, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, + 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x45, 0x63, 0x68, 0x6f, 0x48, 0x00, 0x52, 0x04, 0x65, + 0x63, 0x68, 0x6f, 0x12, 0x35, 0x0a, 0x05, 0x66, 0x6c, 0x75, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, + 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x46, 0x6c, 0x75, 0x73, + 0x68, 0x48, 0x00, 0x52, 0x05, 0x66, 0x6c, 0x75, 0x73, 0x68, 0x12, 0x32, 0x0a, 0x04, 0x69, 0x6e, + 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x42, + 0x0a, 0x0a, 0x69, 0x6e, 0x69, 0x74, 0x5f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, + 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x69, 0x74, + 0x43, 0x68, 0x61, 0x69, 0x6e, 0x48, 0x00, 0x52, 0x09, 0x69, 0x6e, 0x69, 0x74, 0x43, 0x68, 0x61, + 0x69, 0x6e, 0x12, 0x35, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, + 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x48, 0x00, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x3c, 0x0a, 0x08, 0x63, 0x68, 0x65, + 0x63, 0x6b, 0x5f, 0x74, 0x78, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x74, 0x65, + 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x78, 0x48, 0x00, 0x52, 0x07, + 0x63, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x78, 0x12, 0x38, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x48, 0x00, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x12, 0x4e, 0x0a, 0x0e, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, + 0x6f, 0x74, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x74, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, + 0x48, 0x00, 0x52, 0x0d, 0x6c, 0x69, 0x73, 0x74, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, + 0x73, 0x12, 0x4e, 0x0a, 0x0e, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, + 0x68, 0x6f, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x74, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x48, 0x00, 0x52, 0x0d, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, - 0x74, 0x12, 0x5c, 0x0a, 0x13, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, - 0x6f, 0x74, 0x5f, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, - 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, - 0x32, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, - 0x75, 0x6e, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x11, 0x6c, 0x6f, - 0x61, 0x64, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x12, - 0x5f, 0x0a, 0x14, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, - 0x74, 0x5f, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, - 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, - 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, - 0x75, 0x6e, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x12, 0x61, 0x70, - 0x70, 0x6c, 0x79, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, 0x75, 0x6e, 0x6b, - 0x12, 0x55, 0x0a, 0x10, 0x70, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x70, - 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x6f, 0x6d, - 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x72, - 0x65, 0x70, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0f, 0x70, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x50, - 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x55, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x63, 0x65, - 0x73, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x11, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, - 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x70, - 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0f, 0x70, - 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x46, - 0x0a, 0x0b, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x5f, 0x76, 0x6f, 0x74, 0x65, 0x18, 0x12, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, - 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x56, 0x6f, 0x74, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x65, - 0x6e, 0x64, 0x56, 0x6f, 0x74, 0x65, 0x12, 0x62, 0x0a, 0x15, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, - 0x5f, 0x76, 0x6f, 0x74, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, - 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, - 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x56, - 0x6f, 0x74, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x13, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x56, 0x6f, 0x74, - 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x4f, 0x0a, 0x0e, 0x66, 0x69, - 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x14, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, - 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0d, 0x66, 0x69, - 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x07, 0x0a, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, 0x4a, 0x04, 0x08, 0x07, 0x10, 0x08, - 0x4a, 0x04, 0x08, 0x09, 0x10, 0x0a, 0x4a, 0x04, 0x08, 0x0a, 0x10, 0x0b, 0x22, 0x27, 0x0a, 0x0b, - 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x0e, 0x0a, 0x0c, 0x46, 0x6c, 0x75, 0x73, 0x68, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x90, 0x01, 0x0a, 0x0b, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, - 0x23, 0x0a, 0x0d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x56, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x32, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x32, 0x70, 0x56, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x62, 0x63, 0x69, 0x5f, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x62, 0x63, - 0x69, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xce, 0x02, 0x0a, 0x10, 0x49, 0x6e, 0x69, - 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, - 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, - 0x01, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x49, 0x64, 0x12, 0x4d, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x5f, - 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, - 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, - 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, - 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, - 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, - 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, - 0x6f, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0a, - 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x61, 0x70, - 0x70, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x61, 0x70, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x79, 0x74, - 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x68, 0x65, - 0x69, 0x67, 0x68, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x69, 0x6e, 0x69, 0x74, - 0x69, 0x61, 0x6c, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x64, 0x0a, 0x0c, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, - 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, - 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, - 0x68, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x6f, - 0x76, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x22, - 0x59, 0x0a, 0x0e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x74, - 0x78, 0x12, 0x31, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x1d, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, - 0x76, 0x32, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x78, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, - 0x74, 0x79, 0x70, 0x65, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x22, 0x0f, 0x0a, 0x0d, 0x43, 0x6f, - 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x16, 0x0a, 0x14, 0x4c, - 0x69, 0x73, 0x74, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x22, 0x69, 0x0a, 0x14, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x53, 0x6e, 0x61, 0x70, - 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x08, 0x73, - 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, - 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, - 0x68, 0x6f, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x70, 0x70, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x70, 0x70, 0x48, 0x61, 0x73, 0x68, 0x22, 0x60, - 0x0a, 0x18, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, - 0x75, 0x6e, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, - 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, - 0x68, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x68, - 0x75, 0x6e, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, 0x68, 0x75, 0x6e, 0x6b, - 0x22, 0x5f, 0x0a, 0x19, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, - 0x74, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, - 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x69, 0x6e, - 0x64, 0x65, 0x78, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x05, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, - 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, - 0x72, 0x22, 0x9a, 0x03, 0x0a, 0x16, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, - 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0c, - 0x6d, 0x61, 0x78, 0x5f, 0x74, 0x78, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x0a, 0x6d, 0x61, 0x78, 0x54, 0x78, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x10, - 0x0a, 0x03, 0x74, 0x78, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x03, 0x74, 0x78, 0x73, - 0x12, 0x56, 0x0a, 0x11, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, - 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x6f, - 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x45, - 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x6e, 0x66, - 0x6f, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0f, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x4c, 0x61, - 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x45, 0x0a, 0x0b, 0x6d, 0x69, 0x73, 0x62, - 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, - 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, - 0x2e, 0x4d, 0x69, 0x73, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x42, 0x04, 0xc8, 0xde, - 0x1f, 0x00, 0x52, 0x0b, 0x6d, 0x69, 0x73, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x12, - 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x38, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x04, 0x74, 0x69, 0x6d, - 0x65, 0x12, 0x30, 0x0a, 0x14, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x6f, 0x72, 0x73, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x12, 0x6e, 0x65, 0x78, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x48, - 0x61, 0x73, 0x68, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x5f, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x70, - 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x8a, - 0x03, 0x0a, 0x16, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, - 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x78, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x03, 0x74, 0x78, 0x73, 0x12, 0x54, 0x0a, 0x14, 0x70, - 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x64, 0x5f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, - 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x6f, 0x6d, 0x65, - 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6d, - 0x6d, 0x69, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x12, 0x70, - 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x64, 0x4c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, - 0x74, 0x12, 0x45, 0x0a, 0x0b, 0x6d, 0x69, 0x73, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, - 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, - 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x69, 0x73, 0x62, 0x65, 0x68, - 0x61, 0x76, 0x69, 0x6f, 0x72, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0b, 0x6d, 0x69, 0x73, - 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x16, 0x0a, 0x06, + 0x74, 0x12, 0x5b, 0x0a, 0x13, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, + 0x6f, 0x74, 0x5f, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, + 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, + 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x6e, 0x61, 0x70, + 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x48, 0x00, 0x52, 0x11, 0x6c, 0x6f, 0x61, + 0x64, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x12, 0x5e, + 0x0a, 0x14, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, + 0x5f, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x74, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x6e, 0x61, 0x70, 0x73, + 0x68, 0x6f, 0x74, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x48, 0x00, 0x52, 0x12, 0x61, 0x70, 0x70, 0x6c, + 0x79, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x12, 0x54, + 0x0a, 0x10, 0x70, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, + 0x61, 0x6c, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, + 0x6c, 0x48, 0x00, 0x52, 0x0f, 0x70, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x70, + 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x54, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, + 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, + 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, + 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x50, + 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x48, 0x00, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x63, 0x65, + 0x73, 0x73, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x45, 0x0a, 0x0b, 0x65, 0x78, + 0x74, 0x65, 0x6e, 0x64, 0x5f, 0x76, 0x6f, 0x74, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x22, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, + 0x69, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x56, + 0x6f, 0x74, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x56, 0x6f, 0x74, + 0x65, 0x12, 0x61, 0x0a, 0x15, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x76, 0x6f, 0x74, 0x65, + 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x2b, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, + 0x63, 0x69, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, + 0x56, 0x6f, 0x74, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, + 0x13, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, + 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x4e, 0x0a, 0x0e, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, + 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x74, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x48, 0x00, 0x52, 0x0d, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x4a, 0x04, 0x08, + 0x04, 0x10, 0x05, 0x4a, 0x04, 0x08, 0x07, 0x10, 0x08, 0x4a, 0x04, 0x08, 0x09, 0x10, 0x0a, 0x4a, + 0x04, 0x08, 0x0a, 0x10, 0x0b, 0x22, 0x27, 0x0a, 0x0b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x45, 0x63, 0x68, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x0e, + 0x0a, 0x0c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x46, 0x6c, 0x75, 0x73, 0x68, 0x22, 0x90, + 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x18, + 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, + 0x0b, 0x70, 0x32, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x0a, 0x70, 0x32, 0x70, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x21, + 0x0a, 0x0c, 0x61, 0x62, 0x63, 0x69, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x62, 0x63, 0x69, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x22, 0xcc, 0x02, 0x0a, 0x10, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x69, + 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x38, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, + 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x4c, 0x0a, 0x10, 0x63, + 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, + 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, + 0x75, 0x73, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, + 0x73, 0x75, 0x73, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x46, 0x0a, 0x0a, 0x76, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, + 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, + 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, + 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, + 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x61, 0x70, 0x70, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x62, + 0x79, 0x74, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x61, 0x70, 0x70, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x69, + 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x0d, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x22, 0x64, 0x0a, 0x0c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, + 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x05, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x22, 0x52, 0x0a, 0x0e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x78, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x78, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x74, 0x78, 0x12, 0x30, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, + 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x78, + 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x0f, 0x0a, 0x0d, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x22, 0x16, 0x0a, 0x14, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, + 0x6f, 0x74, 0x73, 0x22, 0x68, 0x0a, 0x14, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4f, 0x66, + 0x66, 0x65, 0x72, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x35, 0x0a, 0x08, 0x73, + 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, + 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, + 0x6f, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x70, 0x70, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x70, 0x70, 0x48, 0x61, 0x73, 0x68, 0x22, 0x60, 0x0a, + 0x18, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x6e, 0x61, 0x70, + 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, + 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x68, 0x75, + 0x6e, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x22, + 0x5f, 0x0a, 0x19, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, + 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x12, 0x14, 0x0a, 0x05, + 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x69, 0x6e, 0x64, + 0x65, 0x78, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x05, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x22, 0x98, 0x03, 0x0a, 0x16, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x65, 0x70, + 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x20, 0x0a, 0x0c, 0x6d, + 0x61, 0x78, 0x5f, 0x74, 0x78, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x0a, 0x6d, 0x61, 0x78, 0x54, 0x78, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x10, 0x0a, + 0x03, 0x74, 0x78, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x03, 0x74, 0x78, 0x73, 0x12, + 0x55, 0x0a, 0x11, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x74, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x45, 0x78, 0x74, + 0x65, 0x6e, 0x64, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x42, + 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0f, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x4c, 0x61, 0x73, 0x74, + 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x44, 0x0a, 0x0b, 0x6d, 0x69, 0x73, 0x62, 0x65, 0x68, + 0x61, 0x76, 0x69, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x74, 0x65, + 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x4d, 0x69, + 0x73, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, + 0x0b, 0x6d, 0x69, 0x73, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x38, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, @@ -35272,678 +34207,747 @@ var file_cometbft_abci_v2_types_proto_rawDesc = []byte{ 0x78, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x48, 0x61, 0x73, 0x68, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x70, - 0x6f, 0x73, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x85, 0x03, 0x0a, 0x11, - 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x56, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x38, 0x0a, - 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, - 0x01, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x78, 0x73, 0x18, 0x04, - 0x20, 0x03, 0x28, 0x0c, 0x52, 0x03, 0x74, 0x78, 0x73, 0x12, 0x54, 0x0a, 0x14, 0x70, 0x72, 0x6f, - 0x70, 0x6f, 0x73, 0x65, 0x64, 0x5f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, - 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, - 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, - 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x12, 0x70, 0x72, 0x6f, - 0x70, 0x6f, 0x73, 0x65, 0x64, 0x4c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, - 0x45, 0x0a, 0x0b, 0x6d, 0x69, 0x73, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x18, 0x06, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, - 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x69, 0x73, 0x62, 0x65, 0x68, 0x61, 0x76, - 0x69, 0x6f, 0x72, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0b, 0x6d, 0x69, 0x73, 0x62, 0x65, - 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x12, 0x30, 0x0a, 0x14, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x76, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x07, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x12, 0x6e, 0x65, 0x78, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x6f, 0x72, 0x73, 0x48, 0x61, 0x73, 0x68, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x70, - 0x6f, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x08, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x22, 0xcf, 0x01, 0x0a, 0x1a, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x56, 0x6f, - 0x74, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x2b, 0x0a, 0x11, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x76, - 0x6f, 0x74, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x76, 0x6f, 0x74, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, - 0x6f, 0x6e, 0x12, 0x31, 0x0a, 0x15, 0x6e, 0x6f, 0x6e, 0x5f, 0x72, 0x70, 0x5f, 0x76, 0x6f, 0x74, - 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x12, 0x6e, 0x6f, 0x6e, 0x52, 0x70, 0x56, 0x6f, 0x74, 0x65, 0x45, 0x78, 0x74, 0x65, - 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xb2, 0x03, 0x0a, 0x14, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, - 0x7a, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, - 0x0a, 0x03, 0x74, 0x78, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x03, 0x74, 0x78, 0x73, - 0x12, 0x52, 0x0a, 0x13, 0x64, 0x65, 0x63, 0x69, 0x64, 0x65, 0x64, 0x5f, 0x6c, 0x61, 0x73, 0x74, - 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, - 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, - 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x04, 0xc8, 0xde, 0x1f, - 0x00, 0x52, 0x11, 0x64, 0x65, 0x63, 0x69, 0x64, 0x65, 0x64, 0x4c, 0x61, 0x73, 0x74, 0x43, 0x6f, - 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x45, 0x0a, 0x0b, 0x6d, 0x69, 0x73, 0x62, 0x65, 0x68, 0x61, 0x76, - 0x69, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x63, 0x6f, 0x6d, 0x65, - 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x69, 0x73, - 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0b, - 0x6d, 0x69, 0x73, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x68, - 0x61, 0x73, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, - 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x38, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x04, 0x74, 0x69, 0x6d, - 0x65, 0x12, 0x30, 0x0a, 0x14, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x6f, 0x72, 0x73, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x12, 0x6e, 0x65, 0x78, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x48, - 0x61, 0x73, 0x68, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x5f, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x70, - 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2a, - 0x0a, 0x11, 0x73, 0x79, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x6f, 0x5f, 0x68, 0x65, 0x69, - 0x67, 0x68, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x73, 0x79, 0x6e, 0x63, 0x69, - 0x6e, 0x67, 0x54, 0x6f, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0xa5, 0x0a, 0x0a, 0x08, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x09, 0x65, 0x78, 0x63, 0x65, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x6f, 0x6d, - 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x78, - 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, - 0x00, 0x52, 0x09, 0x65, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x04, - 0x65, 0x63, 0x68, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x6f, 0x6d, - 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x63, - 0x68, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x04, 0x65, 0x63, - 0x68, 0x6f, 0x12, 0x37, 0x0a, 0x05, 0x66, 0x6c, 0x75, 0x73, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, - 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x6c, 0x75, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x48, 0x00, 0x52, 0x05, 0x66, 0x6c, 0x75, 0x73, 0x68, 0x12, 0x34, 0x0a, 0x04, 0x69, - 0x6e, 0x66, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x6f, 0x6d, 0x65, - 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x49, 0x6e, 0x66, - 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x04, 0x69, 0x6e, 0x66, - 0x6f, 0x12, 0x44, 0x0a, 0x0a, 0x69, 0x6e, 0x69, 0x74, 0x5f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, - 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x43, 0x68, 0x61, - 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x09, 0x69, 0x6e, - 0x69, 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x37, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, - 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, - 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, - 0x12, 0x3e, 0x0a, 0x08, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x74, 0x78, 0x18, 0x09, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, - 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x78, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x07, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x78, - 0x12, 0x3a, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x20, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, - 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x48, 0x00, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x50, 0x0a, 0x0e, + 0x6f, 0x73, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x88, 0x03, 0x0a, 0x16, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x50, 0x72, + 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x78, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0c, 0x52, 0x03, 0x74, 0x78, 0x73, 0x12, 0x53, 0x0a, 0x14, 0x70, 0x72, 0x6f, 0x70, + 0x6f, 0x73, 0x65, 0x64, 0x5f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, + 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, + 0x6e, 0x66, 0x6f, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x12, 0x70, 0x72, 0x6f, 0x70, 0x6f, + 0x73, 0x65, 0x64, 0x4c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x44, 0x0a, + 0x0b, 0x6d, 0x69, 0x73, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, + 0x61, 0x62, 0x63, 0x69, 0x2e, 0x4d, 0x69, 0x73, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, + 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0b, 0x6d, 0x69, 0x73, 0x62, 0x65, 0x68, 0x61, 0x76, + 0x69, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, + 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, + 0x38, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, + 0xdf, 0x1f, 0x01, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x6e, 0x65, 0x78, + 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x5f, 0x68, 0x61, 0x73, + 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x12, 0x6e, 0x65, 0x78, 0x74, 0x56, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x48, 0x61, 0x73, 0x68, 0x12, 0x29, 0x0a, 0x10, 0x70, + 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x83, 0x03, 0x0a, 0x11, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x56, 0x6f, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, + 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, + 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x38, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x04, 0x74, 0x69, + 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x78, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0c, 0x52, + 0x03, 0x74, 0x78, 0x73, 0x12, 0x53, 0x0a, 0x14, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x64, + 0x5f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, + 0x61, 0x62, 0x63, 0x69, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x42, + 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x12, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x64, 0x4c, + 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x44, 0x0a, 0x0b, 0x6d, 0x69, 0x73, + 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, + 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, + 0x2e, 0x4d, 0x69, 0x73, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x42, 0x04, 0xc8, 0xde, + 0x1f, 0x00, 0x52, 0x0b, 0x6d, 0x69, 0x73, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x12, + 0x30, 0x0a, 0x14, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, + 0x72, 0x73, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x12, 0x6e, + 0x65, 0x78, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x48, 0x61, 0x73, + 0x68, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x70, 0x72, 0x6f, + 0x70, 0x6f, 0x73, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x9c, 0x01, 0x0a, + 0x1a, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x56, 0x6f, + 0x74, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x68, + 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, + 0x2b, 0x0a, 0x11, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x76, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, + 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, + 0x69, 0x67, 0x68, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x76, 0x6f, 0x74, 0x65, 0x5f, 0x65, 0x78, 0x74, + 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x76, 0x6f, + 0x74, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x84, 0x03, 0x0a, 0x14, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x78, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0c, 0x52, 0x03, 0x74, 0x78, 0x73, 0x12, 0x51, 0x0a, 0x13, 0x64, 0x65, 0x63, 0x69, 0x64, 0x65, + 0x64, 0x5f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, + 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x6e, 0x66, 0x6f, + 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x11, 0x64, 0x65, 0x63, 0x69, 0x64, 0x65, 0x64, 0x4c, + 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x44, 0x0a, 0x0b, 0x6d, 0x69, 0x73, + 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, + 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, + 0x2e, 0x4d, 0x69, 0x73, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x42, 0x04, 0xc8, 0xde, + 0x1f, 0x00, 0x52, 0x0b, 0x6d, 0x69, 0x73, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x12, + 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x68, + 0x61, 0x73, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x38, 0x0a, 0x04, 0x74, + 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, + 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x76, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x12, 0x6e, 0x65, 0x78, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x73, 0x48, 0x61, 0x73, 0x68, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x70, 0x6f, + 0x73, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x22, 0x94, 0x0a, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x42, 0x0a, 0x09, 0x65, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, + 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x45, 0x78, 0x63, + 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x09, 0x65, 0x78, 0x63, 0x65, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x33, 0x0a, 0x04, 0x65, 0x63, 0x68, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, + 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x45, 0x63, 0x68, 0x6f, + 0x48, 0x00, 0x52, 0x04, 0x65, 0x63, 0x68, 0x6f, 0x12, 0x36, 0x0a, 0x05, 0x66, 0x6c, 0x75, 0x73, + 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x46, 0x6c, 0x75, 0x73, 0x68, 0x48, 0x00, 0x52, 0x05, 0x66, 0x6c, 0x75, 0x73, 0x68, + 0x12, 0x33, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, + 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, + 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, + 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x43, 0x0a, 0x0a, 0x69, 0x6e, 0x69, 0x74, 0x5f, 0x63, 0x68, + 0x61, 0x69, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x74, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x49, 0x6e, 0x69, 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x48, 0x00, 0x52, + 0x09, 0x69, 0x6e, 0x69, 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x36, 0x0a, 0x05, 0x71, 0x75, + 0x65, 0x72, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x74, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x00, 0x52, 0x05, 0x71, 0x75, 0x65, + 0x72, 0x79, 0x12, 0x3d, 0x0a, 0x08, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x74, 0x78, 0x18, 0x09, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, + 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x43, + 0x68, 0x65, 0x63, 0x6b, 0x54, 0x78, 0x48, 0x00, 0x52, 0x07, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x54, + 0x78, 0x12, 0x39, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, + 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x43, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x48, 0x00, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x4f, 0x0a, 0x0e, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x18, 0x0d, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, - 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6e, 0x61, 0x70, - 0x73, 0x68, 0x6f, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, - 0x0d, 0x6c, 0x69, 0x73, 0x74, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x12, 0x50, - 0x0a, 0x0e, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, - 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, - 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x53, - 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, - 0x00, 0x52, 0x0d, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, - 0x12, 0x5d, 0x0a, 0x13, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, - 0x74, 0x5f, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, - 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, - 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, 0x75, - 0x6e, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x11, 0x6c, 0x6f, - 0x61, 0x64, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x12, - 0x60, 0x0a, 0x14, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, - 0x74, 0x5f, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, - 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, - 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, - 0x75, 0x6e, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x12, 0x61, - 0x70, 0x70, 0x6c, 0x79, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, 0x75, 0x6e, - 0x6b, 0x12, 0x56, 0x0a, 0x10, 0x70, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x5f, 0x70, 0x72, 0x6f, - 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x6f, - 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x50, - 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0f, 0x70, 0x72, 0x65, 0x70, 0x61, 0x72, - 0x65, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x56, 0x0a, 0x10, 0x70, 0x72, 0x6f, - 0x63, 0x65, 0x73, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x12, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, - 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x50, 0x72, - 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, - 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, - 0x6c, 0x12, 0x47, 0x0a, 0x0b, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x5f, 0x76, 0x6f, 0x74, 0x65, - 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, - 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, - 0x56, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0a, - 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x56, 0x6f, 0x74, 0x65, 0x12, 0x63, 0x0a, 0x15, 0x76, 0x65, - 0x72, 0x69, 0x66, 0x79, 0x5f, 0x76, 0x6f, 0x74, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, - 0x69, 0x6f, 0x6e, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x63, 0x6f, 0x6d, 0x65, - 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x65, 0x72, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, + 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4c, + 0x69, 0x73, 0x74, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x48, 0x00, 0x52, 0x0d, + 0x6c, 0x69, 0x73, 0x74, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x12, 0x4f, 0x0a, + 0x0e, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, + 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, + 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x4f, 0x66, 0x66, 0x65, 0x72, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x48, 0x00, 0x52, + 0x0d, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x5c, + 0x0a, 0x13, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x5f, + 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x74, 0x65, + 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, + 0x6f, 0x74, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x48, 0x00, 0x52, 0x11, 0x6c, 0x6f, 0x61, 0x64, 0x53, + 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x12, 0x5f, 0x0a, 0x14, + 0x61, 0x70, 0x70, 0x6c, 0x79, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x5f, 0x63, + 0x68, 0x75, 0x6e, 0x6b, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x74, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, + 0x6f, 0x74, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x48, 0x00, 0x52, 0x12, 0x61, 0x70, 0x70, 0x6c, 0x79, + 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x12, 0x55, 0x0a, + 0x10, 0x70, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, + 0x6c, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, + 0x6c, 0x48, 0x00, 0x52, 0x0f, 0x70, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x70, + 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x55, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, + 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, + 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, + 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, + 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x48, 0x00, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x63, + 0x65, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x46, 0x0a, 0x0b, 0x65, + 0x78, 0x74, 0x65, 0x6e, 0x64, 0x5f, 0x76, 0x6f, 0x74, 0x65, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x23, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, + 0x63, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, + 0x64, 0x56, 0x6f, 0x74, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x56, + 0x6f, 0x74, 0x65, 0x12, 0x62, 0x0a, 0x15, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x76, 0x6f, + 0x74, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x14, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, + 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x13, 0x76, 0x65, 0x72, 0x69, - 0x66, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, - 0x50, 0x0a, 0x0e, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x5f, 0x62, 0x6c, 0x6f, 0x63, - 0x6b, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, - 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6c, - 0x69, 0x7a, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x48, 0x00, 0x52, 0x0d, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x4a, 0x04, 0x08, 0x05, 0x10, 0x06, - 0x4a, 0x04, 0x08, 0x08, 0x10, 0x09, 0x4a, 0x04, 0x08, 0x0a, 0x10, 0x0b, 0x4a, 0x04, 0x08, 0x0b, - 0x10, 0x0c, 0x22, 0x29, 0x0a, 0x11, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x28, 0x0a, - 0x0c, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, - 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x0f, 0x0a, 0x0d, 0x46, 0x6c, 0x75, 0x73, 0x68, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xfb, 0x02, 0x0a, 0x0c, 0x49, 0x6e, 0x66, - 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, - 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, - 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x70, 0x70, 0x5f, 0x76, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x61, 0x70, - 0x70, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x0a, 0x11, 0x6c, 0x61, 0x73, 0x74, - 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x0f, 0x6c, 0x61, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, - 0x69, 0x67, 0x68, 0x74, 0x12, 0x2d, 0x0a, 0x13, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x62, 0x6c, 0x6f, - 0x63, 0x6b, 0x5f, 0x61, 0x70, 0x70, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x41, 0x70, 0x70, 0x48, - 0x61, 0x73, 0x68, 0x12, 0x5b, 0x0a, 0x0f, 0x6c, 0x61, 0x6e, 0x65, 0x5f, 0x70, 0x72, 0x69, 0x6f, - 0x72, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x63, - 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, - 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x4c, 0x61, 0x6e, - 0x65, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x52, 0x0e, 0x6c, 0x61, 0x6e, 0x65, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x65, 0x73, - 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x6c, 0x61, 0x6e, 0x65, - 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4c, - 0x61, 0x6e, 0x65, 0x1a, 0x41, 0x0a, 0x13, 0x4c, 0x61, 0x6e, 0x65, 0x50, 0x72, 0x69, 0x6f, 0x72, - 0x69, 0x74, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, - 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xc6, 0x01, 0x0a, 0x11, 0x49, 0x6e, 0x69, 0x74, 0x43, - 0x68, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x10, - 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, - 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x65, - 0x6e, 0x73, 0x75, 0x73, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x73, - 0x65, 0x6e, 0x73, 0x75, 0x73, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x76, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x21, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, - 0x76, 0x32, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x6f, 0x72, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x70, 0x70, 0x5f, 0x68, 0x61, 0x73, 0x68, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x70, 0x70, 0x48, 0x61, 0x73, 0x68, 0x22, - 0xf8, 0x01, 0x0a, 0x0d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, - 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x67, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x6c, 0x6f, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x14, 0x0a, 0x05, 0x69, - 0x6e, 0x64, 0x65, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, - 0x78, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, - 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x09, 0x70, 0x72, 0x6f, - 0x6f, 0x66, 0x5f, 0x6f, 0x70, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, - 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x76, - 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x4f, 0x70, 0x73, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x6f, - 0x66, 0x4f, 0x70, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x09, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x1c, 0x0a, 0x09, - 0x63, 0x6f, 0x64, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0xc4, 0x02, 0x0a, 0x0f, 0x43, - 0x68, 0x65, 0x63, 0x6b, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, - 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x63, 0x6f, - 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x67, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x6c, 0x6f, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x1e, 0x0a, 0x0a, - 0x67, 0x61, 0x73, 0x5f, 0x77, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x0a, 0x67, 0x61, 0x73, 0x5f, 0x77, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x08, - 0x67, 0x61, 0x73, 0x5f, 0x75, 0x73, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, - 0x67, 0x61, 0x73, 0x5f, 0x75, 0x73, 0x65, 0x64, 0x12, 0x49, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, - 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, - 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x76, 0x65, 0x6e, + 0x48, 0x00, 0x52, 0x13, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x45, 0x78, + 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x4f, 0x0a, 0x0e, 0x66, 0x69, 0x6e, 0x61, 0x6c, + 0x69, 0x7a, 0x65, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x26, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, + 0x69, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, + 0x7a, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x00, 0x52, 0x0d, 0x66, 0x69, 0x6e, 0x61, 0x6c, + 0x69, 0x7a, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x4a, 0x04, 0x08, 0x05, 0x10, 0x06, 0x4a, 0x04, 0x08, 0x08, 0x10, 0x09, 0x4a, 0x04, 0x08, + 0x0a, 0x10, 0x0b, 0x4a, 0x04, 0x08, 0x0b, 0x10, 0x0c, 0x22, 0x29, 0x0a, 0x11, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, + 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, + 0x72, 0x72, 0x6f, 0x72, 0x22, 0x28, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x45, 0x63, 0x68, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x0f, + 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x46, 0x6c, 0x75, 0x73, 0x68, 0x22, + 0xb8, 0x01, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x49, 0x6e, 0x66, 0x6f, + 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x64, 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1f, + 0x0a, 0x0b, 0x61, 0x70, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x0a, 0x61, 0x70, 0x70, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, + 0x2a, 0x0a, 0x11, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, + 0x69, 0x67, 0x68, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x6c, 0x61, 0x73, 0x74, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x2d, 0x0a, 0x13, 0x6c, + 0x61, 0x73, 0x74, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x61, 0x70, 0x70, 0x5f, 0x68, 0x61, + 0x73, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x41, 0x70, 0x70, 0x48, 0x61, 0x73, 0x68, 0x22, 0xc4, 0x01, 0x0a, 0x11, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x49, 0x6e, 0x69, 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, + 0x12, 0x4c, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x5f, 0x70, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x74, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, + 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x0f, 0x63, + 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x46, + 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, + 0x61, 0x62, 0x63, 0x69, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0a, 0x76, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x70, 0x70, 0x5f, 0x68, 0x61, + 0x73, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x70, 0x70, 0x48, 0x61, 0x73, + 0x68, 0x22, 0xf7, 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x67, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6c, 0x6f, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x6e, 0x66, + 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x14, 0x0a, + 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x69, 0x6e, + 0x64, 0x65, 0x78, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x70, + 0x72, 0x6f, 0x6f, 0x66, 0x5f, 0x6f, 0x70, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, + 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x63, 0x72, 0x79, 0x70, + 0x74, 0x6f, 0x2e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x4f, 0x70, 0x73, 0x52, 0x08, 0x70, 0x72, 0x6f, + 0x6f, 0x66, 0x4f, 0x70, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, + 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x1c, 0x0a, + 0x09, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0xaa, 0x02, 0x0a, 0x0f, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x78, 0x12, + 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x63, + 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x67, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6c, 0x6f, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x6e, 0x66, + 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x1e, 0x0a, + 0x0a, 0x67, 0x61, 0x73, 0x5f, 0x77, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x0a, 0x67, 0x61, 0x73, 0x5f, 0x77, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x12, 0x1a, 0x0a, + 0x08, 0x67, 0x61, 0x73, 0x5f, 0x75, 0x73, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x08, 0x67, 0x61, 0x73, 0x5f, 0x75, 0x73, 0x65, 0x64, 0x12, 0x48, 0x0a, 0x06, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x18, 0xc8, 0xde, 0x1f, 0x00, 0xea, 0xde, 0x1f, 0x10, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2c, 0x6f, 0x6d, 0x69, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x12, 0x17, 0x0a, 0x07, 0x6c, 0x61, 0x6e, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x0c, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x6c, 0x61, 0x6e, 0x65, 0x49, 0x64, 0x4a, 0x04, 0x08, 0x09, 0x10, 0x0c, - 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, - 0x74, 0x79, 0x52, 0x0d, 0x6d, 0x65, 0x6d, 0x70, 0x6f, 0x6f, 0x6c, 0x5f, 0x65, 0x72, 0x72, 0x6f, - 0x72, 0x22, 0x41, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6e, 0x5f, 0x68, 0x65, - 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x72, 0x65, 0x74, 0x61, - 0x69, 0x6e, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x4a, 0x04, - 0x08, 0x02, 0x10, 0x03, 0x22, 0x51, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6e, 0x61, 0x70, - 0x73, 0x68, 0x6f, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, - 0x09, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, - 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x09, 0x73, 0x6e, - 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x22, 0x56, 0x0a, 0x15, 0x4f, 0x66, 0x66, 0x65, 0x72, - 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x3d, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x25, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, - 0x2e, 0x76, 0x32, 0x2e, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, - 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, - 0x31, 0x0a, 0x19, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, - 0x68, 0x75, 0x6e, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, - 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x63, 0x68, 0x75, - 0x6e, 0x6b, 0x22, 0xae, 0x01, 0x0a, 0x1a, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x6e, 0x61, 0x70, - 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x42, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x2a, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, - 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, - 0x6f, 0x74, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x06, 0x72, - 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x66, 0x65, 0x74, 0x63, 0x68, - 0x5f, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x0d, 0x72, - 0x65, 0x66, 0x65, 0x74, 0x63, 0x68, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x73, 0x12, 0x25, 0x0a, 0x0e, - 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x73, 0x18, 0x03, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x65, 0x6e, 0x64, - 0x65, 0x72, 0x73, 0x22, 0x2b, 0x0a, 0x17, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x50, 0x72, - 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, - 0x0a, 0x03, 0x74, 0x78, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x03, 0x74, 0x78, 0x73, - 0x22, 0x5a, 0x0a, 0x17, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x70, 0x6f, - 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x63, 0x6f, - 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x50, - 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x65, 0x0a, 0x12, - 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x56, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x76, 0x6f, 0x74, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, - 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x76, 0x6f, 0x74, 0x65, - 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x28, 0x0a, 0x10, 0x6e, 0x6f, 0x6e, - 0x5f, 0x72, 0x70, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x6e, 0x6f, 0x6e, 0x52, 0x70, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, - 0x69, 0x6f, 0x6e, 0x22, 0x62, 0x0a, 0x1b, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x56, 0x6f, 0x74, - 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x43, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, - 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x56, 0x6f, 0x74, 0x65, - 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, - 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xbd, 0x03, 0x0a, 0x15, 0x46, 0x69, 0x6e, 0x61, - 0x6c, 0x69, 0x7a, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x49, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, - 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x18, 0xc8, 0xde, 0x1f, 0x00, - 0xea, 0xde, 0x1f, 0x10, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2c, 0x6f, 0x6d, 0x69, 0x74, 0x65, - 0x6d, 0x70, 0x74, 0x79, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x3d, 0x0a, 0x0a, - 0x74, 0x78, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x1e, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, - 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x54, 0x78, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x52, 0x09, 0x74, 0x78, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x54, 0x0a, 0x11, 0x76, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, - 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, - 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x6f, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, - 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x73, 0x12, 0x5a, 0x0a, 0x17, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x5f, 0x70, - 0x61, 0x72, 0x61, 0x6d, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, - 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x15, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, - 0x73, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x12, 0x19, 0x0a, - 0x08, 0x61, 0x70, 0x70, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x07, 0x61, 0x70, 0x70, 0x48, 0x61, 0x73, 0x68, 0x12, 0x4d, 0x0a, 0x10, 0x6e, 0x65, 0x78, 0x74, - 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x08, 0xc8, - 0xde, 0x1f, 0x00, 0x98, 0xdf, 0x1f, 0x01, 0x52, 0x0e, 0x6e, 0x65, 0x78, 0x74, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x44, 0x65, 0x6c, 0x61, 0x79, 0x22, 0x5a, 0x0a, 0x0a, 0x43, 0x6f, 0x6d, 0x6d, 0x69, - 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x36, 0x0a, 0x05, 0x76, - 0x6f, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x6f, 0x6d, - 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x6f, - 0x74, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x05, 0x76, 0x6f, - 0x74, 0x65, 0x73, 0x22, 0x6a, 0x0a, 0x12, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x43, - 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x75, - 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x12, - 0x3e, 0x0a, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, - 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, - 0x32, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x56, 0x6f, 0x74, 0x65, 0x49, 0x6e, - 0x66, 0x6f, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x73, 0x22, - 0x7b, 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x5e, 0x0a, 0x0a, - 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x20, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, - 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, - 0x74, 0x65, 0x42, 0x1c, 0xc8, 0xde, 0x1f, 0x00, 0xea, 0xde, 0x1f, 0x14, 0x61, 0x74, 0x74, 0x72, - 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2c, 0x6f, 0x6d, 0x69, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x79, - 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x22, 0x4e, 0x0a, 0x0e, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x10, - 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, - 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x22, 0x81, 0x02, 0x0a, - 0x0c, 0x45, 0x78, 0x65, 0x63, 0x54, 0x78, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x12, 0x0a, - 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x63, 0x6f, 0x64, - 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x67, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x6c, 0x6f, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x1e, 0x0a, 0x0a, 0x67, - 0x61, 0x73, 0x5f, 0x77, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x0a, 0x67, 0x61, 0x73, 0x5f, 0x77, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x67, - 0x61, 0x73, 0x5f, 0x75, 0x73, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x67, - 0x61, 0x73, 0x5f, 0x75, 0x73, 0x65, 0x64, 0x12, 0x49, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, - 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x42, 0x18, 0xc8, 0xde, 0x1f, 0x00, 0xea, 0xde, 0x1f, 0x10, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, - 0x2c, 0x6f, 0x6d, 0x69, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, - 0x74, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, - 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x22, 0x86, 0x01, 0x0a, 0x08, 0x54, 0x78, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x16, 0x0a, - 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, - 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x0e, 0x0a, 0x02, 0x74, - 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x74, 0x78, 0x12, 0x3c, 0x0a, 0x06, 0x72, - 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x6f, - 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x45, - 0x78, 0x65, 0x63, 0x54, 0x78, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, - 0x00, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x3b, 0x0a, 0x09, 0x56, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x12, 0x14, 0x0a, 0x05, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x05, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x22, 0x73, 0x0a, 0x0f, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x6f, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x6f, 0x77, - 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x12, - 0x22, 0x0a, 0x0d, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x42, 0x79, - 0x74, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x0c, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x74, - 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x75, 0x62, 0x4b, 0x65, - 0x79, 0x54, 0x79, 0x70, 0x65, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x22, 0x95, 0x01, 0x0a, 0x08, - 0x56, 0x6f, 0x74, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x3f, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x6f, - 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x56, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x09, - 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x42, 0x0a, 0x0d, 0x62, 0x6c, 0x6f, - 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x1e, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x46, 0x6c, 0x61, 0x67, - 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x64, 0x46, 0x6c, 0x61, 0x67, 0x4a, 0x04, 0x08, - 0x02, 0x10, 0x03, 0x22, 0xe5, 0x02, 0x0a, 0x10, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, - 0x56, 0x6f, 0x74, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x3f, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x6f, - 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x56, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x09, - 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x76, 0x6f, 0x74, - 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x0d, 0x76, 0x6f, 0x74, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, - 0x12, 0x2f, 0x0a, 0x13, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x69, - 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x12, 0x65, - 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, - 0x65, 0x12, 0x42, 0x0a, 0x0d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x5f, 0x66, 0x6c, - 0x61, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, - 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x6c, 0x6f, + 0x65, 0x4a, 0x04, 0x08, 0x09, 0x10, 0x0c, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, + 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x52, 0x0d, 0x6d, 0x65, 0x6d, 0x70, 0x6f, + 0x6f, 0x6c, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x41, 0x0a, 0x0e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, + 0x74, 0x61, 0x69, 0x6e, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x0c, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6e, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x4a, + 0x04, 0x08, 0x01, 0x10, 0x02, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x22, 0x50, 0x0a, 0x15, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6e, 0x61, 0x70, 0x73, + 0x68, 0x6f, 0x74, 0x73, 0x12, 0x37, 0x0a, 0x09, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, + 0x6f, 0x74, 0x52, 0x09, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x22, 0xbe, 0x01, + 0x0a, 0x15, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x53, + 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x45, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, + 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x5e, + 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, + 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x43, 0x43, 0x45, 0x50, 0x54, 0x10, + 0x01, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x42, 0x4f, 0x52, 0x54, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, + 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, 0x10, 0x03, 0x12, 0x11, 0x0a, 0x0d, 0x52, 0x45, 0x4a, 0x45, + 0x43, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x10, 0x04, 0x12, 0x11, 0x0a, 0x0d, 0x52, + 0x45, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x53, 0x45, 0x4e, 0x44, 0x45, 0x52, 0x10, 0x05, 0x22, 0x31, + 0x0a, 0x19, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x6e, + 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x12, 0x14, 0x0a, 0x05, 0x63, + 0x68, 0x75, 0x6e, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x63, 0x68, 0x75, 0x6e, + 0x6b, 0x22, 0x98, 0x02, 0x0a, 0x1a, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x41, 0x70, + 0x70, 0x6c, 0x79, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, 0x75, 0x6e, 0x6b, + 0x12, 0x4a, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x32, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, + 0x63, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x79, + 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x2e, 0x52, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x25, 0x0a, 0x0e, + 0x72, 0x65, 0x66, 0x65, 0x74, 0x63, 0x68, 0x5f, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x73, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x0d, 0x52, 0x0d, 0x72, 0x65, 0x66, 0x65, 0x74, 0x63, 0x68, 0x43, 0x68, 0x75, + 0x6e, 0x6b, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x65, + 0x6e, 0x64, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x6a, + 0x65, 0x63, 0x74, 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x73, 0x22, 0x60, 0x0a, 0x06, 0x52, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, + 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x43, 0x43, 0x45, 0x50, 0x54, 0x10, 0x01, 0x12, 0x09, 0x0a, + 0x05, 0x41, 0x42, 0x4f, 0x52, 0x54, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x52, 0x45, 0x54, 0x52, + 0x59, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x52, 0x45, 0x54, 0x52, 0x59, 0x5f, 0x53, 0x4e, 0x41, + 0x50, 0x53, 0x48, 0x4f, 0x54, 0x10, 0x04, 0x12, 0x13, 0x0a, 0x0f, 0x52, 0x45, 0x4a, 0x45, 0x43, + 0x54, 0x5f, 0x53, 0x4e, 0x41, 0x50, 0x53, 0x48, 0x4f, 0x54, 0x10, 0x05, 0x22, 0x2b, 0x0a, 0x17, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x50, + 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x78, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0c, 0x52, 0x03, 0x74, 0x78, 0x73, 0x22, 0xa1, 0x01, 0x0a, 0x17, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x50, 0x72, 0x6f, + 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x4f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x37, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, + 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x2e, + 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x35, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, + 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, + 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x43, 0x43, 0x45, 0x50, 0x54, 0x10, + 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, 0x10, 0x02, 0x22, 0x3b, 0x0a, + 0x12, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x56, + 0x6f, 0x74, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x76, 0x6f, 0x74, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, + 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x76, 0x6f, 0x74, + 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xa5, 0x01, 0x0a, 0x1b, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x56, 0x6f, 0x74, + 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x51, 0x0a, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x39, 0x2e, 0x74, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x45, + 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x33, 0x0a, + 0x0c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, + 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x43, + 0x43, 0x45, 0x50, 0x54, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, + 0x10, 0x02, 0x22, 0xea, 0x02, 0x0a, 0x15, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x46, + 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x48, 0x0a, 0x06, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x42, 0x18, 0xc8, 0xde, 0x1f, 0x00, 0xea, 0xde, 0x1f, 0x10, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x73, 0x2c, 0x6f, 0x6d, 0x69, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x06, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x3c, 0x0a, 0x0a, 0x74, 0x78, 0x5f, 0x72, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x45, 0x78, 0x65, + 0x63, 0x54, 0x78, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x09, 0x74, 0x78, 0x52, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x73, 0x12, 0x53, 0x0a, 0x11, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, + 0x72, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x20, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, + 0x69, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x12, 0x59, 0x0a, 0x17, 0x63, 0x6f, 0x6e, + 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x5f, 0x75, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x74, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, + 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x15, 0x63, + 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x70, 0x70, 0x5f, 0x68, 0x61, 0x73, 0x68, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x70, 0x70, 0x48, 0x61, 0x73, 0x68, 0x22, + 0x59, 0x0a, 0x0a, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x14, 0x0a, + 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x72, 0x6f, + 0x75, 0x6e, 0x64, 0x12, 0x35, 0x0a, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, + 0x61, 0x62, 0x63, 0x69, 0x2e, 0x56, 0x6f, 0x74, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x04, 0xc8, + 0xde, 0x1f, 0x00, 0x52, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x73, 0x22, 0x69, 0x0a, 0x12, 0x45, 0x78, + 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x6e, 0x66, 0x6f, + 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x3d, 0x0a, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, + 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, + 0x56, 0x6f, 0x74, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x05, + 0x76, 0x6f, 0x74, 0x65, 0x73, 0x22, 0x7a, 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x12, + 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x12, 0x5d, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, + 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x42, 0x1c, 0xc8, 0xde, 0x1f, 0x00, 0xea, 0xde, 0x1f, + 0x14, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2c, 0x6f, 0x6d, 0x69, 0x74, + 0x65, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x22, 0x4e, 0x0a, 0x0e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x69, + 0x6e, 0x64, 0x65, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, + 0x78, 0x22, 0x80, 0x02, 0x0a, 0x0c, 0x45, 0x78, 0x65, 0x63, 0x54, 0x78, 0x52, 0x65, 0x73, 0x75, + 0x6c, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, + 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6c, 0x6f, 0x67, 0x12, 0x12, 0x0a, 0x04, + 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, + 0x12, 0x1e, 0x0a, 0x0a, 0x67, 0x61, 0x73, 0x5f, 0x77, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x67, 0x61, 0x73, 0x5f, 0x77, 0x61, 0x6e, 0x74, 0x65, 0x64, + 0x12, 0x1a, 0x0a, 0x08, 0x67, 0x61, 0x73, 0x5f, 0x75, 0x73, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x08, 0x67, 0x61, 0x73, 0x5f, 0x75, 0x73, 0x65, 0x64, 0x12, 0x48, 0x0a, 0x06, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x42, 0x18, 0xc8, 0xde, 0x1f, 0x00, 0xea, 0xde, 0x1f, 0x10, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x73, 0x2c, 0x6f, 0x6d, 0x69, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x06, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x64, 0x65, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x22, 0x85, 0x01, 0x0a, 0x08, 0x54, 0x78, 0x52, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, + 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, + 0x0e, 0x0a, 0x02, 0x74, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x74, 0x78, 0x12, + 0x3b, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1d, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, + 0x69, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x54, 0x78, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x42, 0x04, + 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x3b, 0x0a, 0x09, + 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x05, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x22, 0x64, 0x0a, 0x0f, 0x56, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x07, + 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, + 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x6f, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, + 0x00, 0x52, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x6f, 0x77, + 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x22, + 0x93, 0x01, 0x0a, 0x08, 0x56, 0x6f, 0x74, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x3e, 0x0a, 0x09, + 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, + 0x69, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x42, 0x04, 0xc8, 0xde, 0x1f, + 0x00, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x41, 0x0a, 0x0d, + 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x46, 0x6c, + 0x61, 0x67, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x64, 0x46, 0x6c, 0x61, 0x67, 0x4a, + 0x04, 0x08, 0x02, 0x10, 0x03, 0x22, 0xf3, 0x01, 0x0a, 0x10, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, + 0x65, 0x64, 0x56, 0x6f, 0x74, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x3e, 0x0a, 0x09, 0x76, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, + 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, + 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x76, 0x6f, + 0x74, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x0d, 0x76, 0x6f, 0x74, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, + 0x6e, 0x12, 0x2f, 0x0a, 0x13, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x73, + 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x12, + 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, + 0x72, 0x65, 0x12, 0x41, 0x0a, 0x0d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x5f, 0x66, + 0x6c, 0x61, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x74, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x46, 0x6c, 0x61, 0x67, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x49, - 0x64, 0x46, 0x6c, 0x61, 0x67, 0x12, 0x31, 0x0a, 0x15, 0x6e, 0x6f, 0x6e, 0x5f, 0x72, 0x70, 0x5f, - 0x76, 0x6f, 0x74, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x12, 0x6e, 0x6f, 0x6e, 0x52, 0x70, 0x56, 0x6f, 0x74, 0x65, 0x45, - 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x1a, 0x6e, 0x6f, 0x6e, 0x5f, - 0x72, 0x70, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x69, 0x67, - 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x17, 0x6e, 0x6f, - 0x6e, 0x52, 0x70, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x69, 0x67, 0x6e, - 0x61, 0x74, 0x75, 0x72, 0x65, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x22, 0x85, 0x02, 0x0a, 0x0b, - 0x4d, 0x69, 0x73, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x12, 0x35, 0x0a, 0x04, 0x74, - 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x63, 0x6f, 0x6d, 0x65, - 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x69, 0x73, - 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, - 0x70, 0x65, 0x12, 0x3f, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, - 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, - 0x6f, 0x72, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x38, 0x0a, 0x04, 0x74, - 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, - 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x76, - 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x10, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x56, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x6f, - 0x77, 0x65, 0x72, 0x22, 0x82, 0x01, 0x0a, 0x08, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, - 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, - 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, - 0x12, 0x16, 0x0a, 0x06, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x06, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x1a, 0x0a, 0x08, - 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, - 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2a, 0x62, 0x0a, 0x0b, 0x43, 0x68, 0x65, 0x63, - 0x6b, 0x54, 0x78, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x43, 0x48, 0x45, 0x43, 0x4b, - 0x5f, 0x54, 0x58, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, - 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x43, 0x48, 0x45, 0x43, 0x4b, 0x5f, 0x54, 0x58, 0x5f, 0x54, - 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x43, 0x48, 0x45, 0x43, 0x4b, 0x10, 0x01, 0x12, 0x17, 0x0a, - 0x13, 0x43, 0x48, 0x45, 0x43, 0x4b, 0x5f, 0x54, 0x58, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, - 0x48, 0x45, 0x43, 0x4b, 0x10, 0x02, 0x1a, 0x04, 0x88, 0xa3, 0x1e, 0x00, 0x2a, 0xf5, 0x01, 0x0a, - 0x13, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x12, 0x21, 0x0a, 0x1d, 0x4f, 0x46, 0x46, 0x45, 0x52, 0x5f, 0x53, 0x4e, - 0x41, 0x50, 0x53, 0x48, 0x4f, 0x54, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x5f, 0x55, 0x4e, - 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x20, 0x0a, 0x1c, 0x4f, 0x46, 0x46, 0x45, 0x52, - 0x5f, 0x53, 0x4e, 0x41, 0x50, 0x53, 0x48, 0x4f, 0x54, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, - 0x5f, 0x41, 0x43, 0x43, 0x45, 0x50, 0x54, 0x10, 0x01, 0x12, 0x1f, 0x0a, 0x1b, 0x4f, 0x46, 0x46, - 0x45, 0x52, 0x5f, 0x53, 0x4e, 0x41, 0x50, 0x53, 0x48, 0x4f, 0x54, 0x5f, 0x52, 0x45, 0x53, 0x55, - 0x4c, 0x54, 0x5f, 0x41, 0x42, 0x4f, 0x52, 0x54, 0x10, 0x02, 0x12, 0x20, 0x0a, 0x1c, 0x4f, 0x46, - 0x46, 0x45, 0x52, 0x5f, 0x53, 0x4e, 0x41, 0x50, 0x53, 0x48, 0x4f, 0x54, 0x5f, 0x52, 0x45, 0x53, - 0x55, 0x4c, 0x54, 0x5f, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, 0x10, 0x03, 0x12, 0x27, 0x0a, 0x23, - 0x4f, 0x46, 0x46, 0x45, 0x52, 0x5f, 0x53, 0x4e, 0x41, 0x50, 0x53, 0x48, 0x4f, 0x54, 0x5f, 0x52, - 0x45, 0x53, 0x55, 0x4c, 0x54, 0x5f, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x46, 0x4f, 0x52, - 0x4d, 0x41, 0x54, 0x10, 0x04, 0x12, 0x27, 0x0a, 0x23, 0x4f, 0x46, 0x46, 0x45, 0x52, 0x5f, 0x53, - 0x4e, 0x41, 0x50, 0x53, 0x48, 0x4f, 0x54, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x5f, 0x52, - 0x45, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x53, 0x45, 0x4e, 0x44, 0x45, 0x52, 0x10, 0x05, 0x1a, 0x04, - 0x88, 0xa3, 0x1e, 0x00, 0x2a, 0xa0, 0x02, 0x0a, 0x18, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x6e, - 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x52, 0x65, 0x73, 0x75, 0x6c, - 0x74, 0x12, 0x27, 0x0a, 0x23, 0x41, 0x50, 0x50, 0x4c, 0x59, 0x5f, 0x53, 0x4e, 0x41, 0x50, 0x53, - 0x48, 0x4f, 0x54, 0x5f, 0x43, 0x48, 0x55, 0x4e, 0x4b, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, - 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x26, 0x0a, 0x22, 0x41, 0x50, - 0x50, 0x4c, 0x59, 0x5f, 0x53, 0x4e, 0x41, 0x50, 0x53, 0x48, 0x4f, 0x54, 0x5f, 0x43, 0x48, 0x55, - 0x4e, 0x4b, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x5f, 0x41, 0x43, 0x43, 0x45, 0x50, 0x54, - 0x10, 0x01, 0x12, 0x25, 0x0a, 0x21, 0x41, 0x50, 0x50, 0x4c, 0x59, 0x5f, 0x53, 0x4e, 0x41, 0x50, - 0x53, 0x48, 0x4f, 0x54, 0x5f, 0x43, 0x48, 0x55, 0x4e, 0x4b, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, - 0x54, 0x5f, 0x41, 0x42, 0x4f, 0x52, 0x54, 0x10, 0x02, 0x12, 0x25, 0x0a, 0x21, 0x41, 0x50, 0x50, - 0x4c, 0x59, 0x5f, 0x53, 0x4e, 0x41, 0x50, 0x53, 0x48, 0x4f, 0x54, 0x5f, 0x43, 0x48, 0x55, 0x4e, - 0x4b, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x5f, 0x52, 0x45, 0x54, 0x52, 0x59, 0x10, 0x03, - 0x12, 0x2e, 0x0a, 0x2a, 0x41, 0x50, 0x50, 0x4c, 0x59, 0x5f, 0x53, 0x4e, 0x41, 0x50, 0x53, 0x48, - 0x4f, 0x54, 0x5f, 0x43, 0x48, 0x55, 0x4e, 0x4b, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x5f, - 0x52, 0x45, 0x54, 0x52, 0x59, 0x5f, 0x53, 0x4e, 0x41, 0x50, 0x53, 0x48, 0x4f, 0x54, 0x10, 0x04, - 0x12, 0x2f, 0x0a, 0x2b, 0x41, 0x50, 0x50, 0x4c, 0x59, 0x5f, 0x53, 0x4e, 0x41, 0x50, 0x53, 0x48, - 0x4f, 0x54, 0x5f, 0x43, 0x48, 0x55, 0x4e, 0x4b, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x5f, - 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x53, 0x4e, 0x41, 0x50, 0x53, 0x48, 0x4f, 0x54, 0x10, - 0x05, 0x1a, 0x04, 0x88, 0xa3, 0x1e, 0x00, 0x2a, 0x8a, 0x01, 0x0a, 0x15, 0x50, 0x72, 0x6f, 0x63, - 0x65, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x12, 0x23, 0x0a, 0x1f, 0x50, 0x52, 0x4f, 0x43, 0x45, 0x53, 0x53, 0x5f, 0x50, 0x52, 0x4f, - 0x50, 0x4f, 0x53, 0x41, 0x4c, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x4b, - 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x22, 0x0a, 0x1e, 0x50, 0x52, 0x4f, 0x43, 0x45, 0x53, - 0x53, 0x5f, 0x50, 0x52, 0x4f, 0x50, 0x4f, 0x53, 0x41, 0x4c, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, - 0x53, 0x5f, 0x41, 0x43, 0x43, 0x45, 0x50, 0x54, 0x10, 0x01, 0x12, 0x22, 0x0a, 0x1e, 0x50, 0x52, - 0x4f, 0x43, 0x45, 0x53, 0x53, 0x5f, 0x50, 0x52, 0x4f, 0x50, 0x4f, 0x53, 0x41, 0x4c, 0x5f, 0x53, - 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, 0x10, 0x02, 0x1a, 0x04, - 0x88, 0xa3, 0x1e, 0x00, 0x2a, 0x9d, 0x01, 0x0a, 0x19, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x56, - 0x6f, 0x74, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x12, 0x28, 0x0a, 0x24, 0x56, 0x45, 0x52, 0x49, 0x46, 0x59, 0x5f, 0x56, 0x4f, 0x54, - 0x45, 0x5f, 0x45, 0x58, 0x54, 0x45, 0x4e, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, - 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x27, 0x0a, 0x23, - 0x56, 0x45, 0x52, 0x49, 0x46, 0x59, 0x5f, 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x45, 0x58, 0x54, 0x45, - 0x4e, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x41, 0x43, 0x43, - 0x45, 0x50, 0x54, 0x10, 0x01, 0x12, 0x27, 0x0a, 0x23, 0x56, 0x45, 0x52, 0x49, 0x46, 0x59, 0x5f, - 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x45, 0x58, 0x54, 0x45, 0x4e, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x53, - 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, 0x10, 0x02, 0x1a, 0x04, - 0x88, 0xa3, 0x1e, 0x00, 0x2a, 0x84, 0x01, 0x0a, 0x0f, 0x4d, 0x69, 0x73, 0x62, 0x65, 0x68, 0x61, - 0x76, 0x69, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x4d, 0x49, 0x53, 0x42, - 0x45, 0x48, 0x41, 0x56, 0x49, 0x4f, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x4b, - 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x23, 0x0a, 0x1f, 0x4d, 0x49, 0x53, 0x42, 0x45, 0x48, - 0x41, 0x56, 0x49, 0x4f, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x55, 0x50, 0x4c, 0x49, - 0x43, 0x41, 0x54, 0x45, 0x5f, 0x56, 0x4f, 0x54, 0x45, 0x10, 0x01, 0x12, 0x28, 0x0a, 0x24, 0x4d, - 0x49, 0x53, 0x42, 0x45, 0x48, 0x41, 0x56, 0x49, 0x4f, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x4c, 0x49, 0x47, 0x48, 0x54, 0x5f, 0x43, 0x4c, 0x49, 0x45, 0x4e, 0x54, 0x5f, 0x41, 0x54, 0x54, - 0x41, 0x43, 0x4b, 0x10, 0x02, 0x1a, 0x04, 0x88, 0xa3, 0x1e, 0x00, 0x42, 0xae, 0x01, 0x0a, 0x14, - 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, - 0x69, 0x2e, 0x76, 0x32, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x28, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x61, 0x62, - 0x63, 0x69, 0x2f, 0x76, 0x32, 0x3b, 0x61, 0x62, 0x63, 0x69, 0x76, 0x32, 0xa2, 0x02, 0x03, 0x43, - 0x41, 0x58, 0xaa, 0x02, 0x10, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x41, 0x62, - 0x63, 0x69, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x10, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, - 0x5c, 0x41, 0x62, 0x63, 0x69, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x1c, 0x43, 0x6f, 0x6d, 0x65, 0x74, - 0x62, 0x66, 0x74, 0x5c, 0x41, 0x62, 0x63, 0x69, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x12, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, - 0x66, 0x74, 0x3a, 0x3a, 0x41, 0x62, 0x63, 0x69, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, + 0x64, 0x46, 0x6c, 0x61, 0x67, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x22, 0x83, 0x02, 0x0a, 0x0b, + 0x4d, 0x69, 0x73, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x12, 0x34, 0x0a, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x74, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x4d, 0x69, 0x73, 0x62, + 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, + 0x65, 0x12, 0x3e, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, + 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, + 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, + 0x72, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x38, 0x0a, 0x04, 0x74, 0x69, 0x6d, + 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x04, 0x74, + 0x69, 0x6d, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x76, 0x6f, 0x74, + 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x10, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x56, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x77, 0x65, + 0x72, 0x22, 0x82, 0x01, 0x0a, 0x08, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x16, + 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, + 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x16, + 0x0a, 0x06, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, + 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x6d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2a, 0x39, 0x0a, 0x0b, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, + 0x78, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x4e, 0x45, 0x57, 0x10, 0x00, 0x1a, 0x07, + 0x8a, 0x9d, 0x20, 0x03, 0x4e, 0x65, 0x77, 0x12, 0x18, 0x0a, 0x07, 0x52, 0x45, 0x43, 0x48, 0x45, + 0x43, 0x4b, 0x10, 0x01, 0x1a, 0x0b, 0x8a, 0x9d, 0x20, 0x07, 0x52, 0x65, 0x63, 0x68, 0x65, 0x63, + 0x6b, 0x2a, 0x4b, 0x0a, 0x0f, 0x4d, 0x69, 0x73, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, + 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x44, 0x55, 0x50, 0x4c, 0x49, 0x43, 0x41, 0x54, 0x45, 0x5f, 0x56, + 0x4f, 0x54, 0x45, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x4c, 0x49, 0x47, 0x48, 0x54, 0x5f, 0x43, + 0x4c, 0x49, 0x45, 0x4e, 0x54, 0x5f, 0x41, 0x54, 0x54, 0x41, 0x43, 0x4b, 0x10, 0x02, 0x32, 0x9d, + 0x0b, 0x0a, 0x04, 0x41, 0x42, 0x43, 0x49, 0x12, 0x43, 0x0a, 0x04, 0x45, 0x63, 0x68, 0x6f, 0x12, + 0x1c, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, + 0x69, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x45, 0x63, 0x68, 0x6f, 0x1a, 0x1d, 0x2e, + 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x45, 0x63, 0x68, 0x6f, 0x12, 0x46, 0x0a, 0x05, + 0x46, 0x6c, 0x75, 0x73, 0x68, 0x12, 0x1d, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, + 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x46, + 0x6c, 0x75, 0x73, 0x68, 0x1a, 0x1e, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, + 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x46, + 0x6c, 0x75, 0x73, 0x68, 0x12, 0x43, 0x0a, 0x04, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1c, 0x2e, 0x74, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x1a, 0x1d, 0x2e, 0x74, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x4c, 0x0a, 0x07, 0x43, 0x68, 0x65, + 0x63, 0x6b, 0x54, 0x78, 0x12, 0x1f, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, + 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x68, + 0x65, 0x63, 0x6b, 0x54, 0x78, 0x1a, 0x20, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, + 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x78, 0x12, 0x46, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x12, 0x1d, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, + 0x63, 0x69, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x51, 0x75, 0x65, 0x72, 0x79, 0x1a, + 0x1e, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, + 0x69, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, + 0x49, 0x0a, 0x06, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x1e, 0x2e, 0x74, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x1a, 0x1f, 0x2e, 0x74, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x52, 0x0a, 0x09, 0x49, 0x6e, + 0x69, 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x21, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x49, 0x6e, 0x69, 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x1a, 0x22, 0x2e, 0x74, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x49, 0x6e, 0x69, 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x5e, + 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x12, + 0x25, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, + 0x69, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6e, 0x61, + 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x1a, 0x26, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, + 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x12, 0x5e, + 0x0a, 0x0d, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, + 0x25, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, + 0x69, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x53, 0x6e, + 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x1a, 0x26, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, + 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x6a, + 0x0a, 0x11, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, + 0x75, 0x6e, 0x6b, 0x12, 0x29, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, + 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x6f, 0x61, + 0x64, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x1a, 0x2a, + 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, + 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x6e, 0x61, + 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x12, 0x6d, 0x0a, 0x12, 0x41, 0x70, + 0x70, 0x6c, 0x79, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, 0x75, 0x6e, 0x6b, + 0x12, 0x2a, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, + 0x63, 0x69, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, + 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x1a, 0x2b, 0x2e, 0x74, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x6e, 0x61, 0x70, + 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x12, 0x64, 0x0a, 0x0f, 0x50, 0x72, 0x65, + 0x70, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x27, 0x2e, 0x74, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, + 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x1a, 0x28, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, + 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, + 0x64, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, + 0x61, 0x6c, 0x12, 0x27, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, + 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x63, + 0x65, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x1a, 0x28, 0x2e, 0x74, 0x65, + 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x50, 0x72, 0x6f, + 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x55, 0x0a, 0x0a, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x56, + 0x6f, 0x74, 0x65, 0x12, 0x22, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, + 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x45, 0x78, 0x74, + 0x65, 0x6e, 0x64, 0x56, 0x6f, 0x74, 0x65, 0x1a, 0x23, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x56, 0x6f, 0x74, 0x65, 0x12, 0x70, 0x0a, 0x13, + 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, + 0x69, 0x6f, 0x6e, 0x12, 0x2b, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, + 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x56, 0x65, 0x72, + 0x69, 0x66, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, + 0x1a, 0x2c, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, + 0x63, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x56, 0x65, 0x72, 0x69, 0x66, + 0x79, 0x56, 0x6f, 0x74, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x5e, + 0x0a, 0x0d, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, + 0x25, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, + 0x69, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, + 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x1a, 0x26, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, + 0x69, 0x6e, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0xa0, + 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, + 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, + 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, + 0x74, 0x2f, 0x61, 0x62, 0x63, 0x69, 0xa2, 0x02, 0x03, 0x54, 0x41, 0x58, 0xaa, 0x02, 0x0f, 0x54, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x41, 0x62, 0x63, 0x69, 0xca, 0x02, + 0x0f, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x5c, 0x41, 0x62, 0x63, 0x69, + 0xe2, 0x02, 0x1b, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x5c, 0x41, 0x62, + 0x63, 0x69, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, + 0x10, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x3a, 0x3a, 0x41, 0x62, 0x63, + 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_cometbft_abci_v2_types_proto_rawDescOnce sync.Once - file_cometbft_abci_v2_types_proto_rawDescData = file_cometbft_abci_v2_types_proto_rawDesc + file_tendermint_abci_types_proto_rawDescOnce sync.Once + file_tendermint_abci_types_proto_rawDescData = file_tendermint_abci_types_proto_rawDesc ) -func file_cometbft_abci_v2_types_proto_rawDescGZIP() []byte { - file_cometbft_abci_v2_types_proto_rawDescOnce.Do(func() { - file_cometbft_abci_v2_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_cometbft_abci_v2_types_proto_rawDescData) +func file_tendermint_abci_types_proto_rawDescGZIP() []byte { + file_tendermint_abci_types_proto_rawDescOnce.Do(func() { + file_tendermint_abci_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_tendermint_abci_types_proto_rawDescData) }) - return file_cometbft_abci_v2_types_proto_rawDescData + return file_tendermint_abci_types_proto_rawDescData } -var file_cometbft_abci_v2_types_proto_enumTypes = make([]protoimpl.EnumInfo, 6) -var file_cometbft_abci_v2_types_proto_msgTypes = make([]protoimpl.MessageInfo, 48) -var file_cometbft_abci_v2_types_proto_goTypes = []interface{}{ - (CheckTxType)(0), // 0: cometbft.abci.v2.CheckTxType - (OfferSnapshotResult)(0), // 1: cometbft.abci.v2.OfferSnapshotResult - (ApplySnapshotChunkResult)(0), // 2: cometbft.abci.v2.ApplySnapshotChunkResult - (ProcessProposalStatus)(0), // 3: cometbft.abci.v2.ProcessProposalStatus - (VerifyVoteExtensionStatus)(0), // 4: cometbft.abci.v2.VerifyVoteExtensionStatus - (MisbehaviorType)(0), // 5: cometbft.abci.v2.MisbehaviorType - (*Request)(nil), // 6: cometbft.abci.v2.Request - (*EchoRequest)(nil), // 7: cometbft.abci.v2.EchoRequest - (*FlushRequest)(nil), // 8: cometbft.abci.v2.FlushRequest - (*InfoRequest)(nil), // 9: cometbft.abci.v2.InfoRequest - (*InitChainRequest)(nil), // 10: cometbft.abci.v2.InitChainRequest - (*QueryRequest)(nil), // 11: cometbft.abci.v2.QueryRequest - (*CheckTxRequest)(nil), // 12: cometbft.abci.v2.CheckTxRequest - (*CommitRequest)(nil), // 13: cometbft.abci.v2.CommitRequest - (*ListSnapshotsRequest)(nil), // 14: cometbft.abci.v2.ListSnapshotsRequest - (*OfferSnapshotRequest)(nil), // 15: cometbft.abci.v2.OfferSnapshotRequest - (*LoadSnapshotChunkRequest)(nil), // 16: cometbft.abci.v2.LoadSnapshotChunkRequest - (*ApplySnapshotChunkRequest)(nil), // 17: cometbft.abci.v2.ApplySnapshotChunkRequest - (*PrepareProposalRequest)(nil), // 18: cometbft.abci.v2.PrepareProposalRequest - (*ProcessProposalRequest)(nil), // 19: cometbft.abci.v2.ProcessProposalRequest - (*ExtendVoteRequest)(nil), // 20: cometbft.abci.v2.ExtendVoteRequest - (*VerifyVoteExtensionRequest)(nil), // 21: cometbft.abci.v2.VerifyVoteExtensionRequest - (*FinalizeBlockRequest)(nil), // 22: cometbft.abci.v2.FinalizeBlockRequest - (*Response)(nil), // 23: cometbft.abci.v2.Response - (*ExceptionResponse)(nil), // 24: cometbft.abci.v2.ExceptionResponse - (*EchoResponse)(nil), // 25: cometbft.abci.v2.EchoResponse - (*FlushResponse)(nil), // 26: cometbft.abci.v2.FlushResponse - (*InfoResponse)(nil), // 27: cometbft.abci.v2.InfoResponse - (*InitChainResponse)(nil), // 28: cometbft.abci.v2.InitChainResponse - (*QueryResponse)(nil), // 29: cometbft.abci.v2.QueryResponse - (*CheckTxResponse)(nil), // 30: cometbft.abci.v2.CheckTxResponse - (*CommitResponse)(nil), // 31: cometbft.abci.v2.CommitResponse - (*ListSnapshotsResponse)(nil), // 32: cometbft.abci.v2.ListSnapshotsResponse - (*OfferSnapshotResponse)(nil), // 33: cometbft.abci.v2.OfferSnapshotResponse - (*LoadSnapshotChunkResponse)(nil), // 34: cometbft.abci.v2.LoadSnapshotChunkResponse - (*ApplySnapshotChunkResponse)(nil), // 35: cometbft.abci.v2.ApplySnapshotChunkResponse - (*PrepareProposalResponse)(nil), // 36: cometbft.abci.v2.PrepareProposalResponse - (*ProcessProposalResponse)(nil), // 37: cometbft.abci.v2.ProcessProposalResponse - (*ExtendVoteResponse)(nil), // 38: cometbft.abci.v2.ExtendVoteResponse - (*VerifyVoteExtensionResponse)(nil), // 39: cometbft.abci.v2.VerifyVoteExtensionResponse - (*FinalizeBlockResponse)(nil), // 40: cometbft.abci.v2.FinalizeBlockResponse - (*CommitInfo)(nil), // 41: cometbft.abci.v2.CommitInfo - (*ExtendedCommitInfo)(nil), // 42: cometbft.abci.v2.ExtendedCommitInfo - (*Event)(nil), // 43: cometbft.abci.v2.Event - (*EventAttribute)(nil), // 44: cometbft.abci.v2.EventAttribute - (*ExecTxResult)(nil), // 45: cometbft.abci.v2.ExecTxResult - (*TxResult)(nil), // 46: cometbft.abci.v2.TxResult - (*Validator)(nil), // 47: cometbft.abci.v2.Validator - (*ValidatorUpdate)(nil), // 48: cometbft.abci.v2.ValidatorUpdate - (*VoteInfo)(nil), // 49: cometbft.abci.v2.VoteInfo - (*ExtendedVoteInfo)(nil), // 50: cometbft.abci.v2.ExtendedVoteInfo - (*Misbehavior)(nil), // 51: cometbft.abci.v2.Misbehavior - (*Snapshot)(nil), // 52: cometbft.abci.v2.Snapshot - nil, // 53: cometbft.abci.v2.InfoResponse.LanePrioritiesEntry - (*timestamppb.Timestamp)(nil), // 54: google.protobuf.Timestamp - (*v2.ConsensusParams)(nil), // 55: cometbft.types.v2.ConsensusParams - (*v1.ProofOps)(nil), // 56: cometbft.crypto.v1.ProofOps - (*durationpb.Duration)(nil), // 57: google.protobuf.Duration - (v2.BlockIDFlag)(0), // 58: cometbft.types.v2.BlockIDFlag +var file_tendermint_abci_types_proto_enumTypes = make([]protoimpl.EnumInfo, 6) +var file_tendermint_abci_types_proto_msgTypes = make([]protoimpl.MessageInfo, 47) +var file_tendermint_abci_types_proto_goTypes = []interface{}{ + (CheckTxType)(0), // 0: tendermint.abci.CheckTxType + (MisbehaviorType)(0), // 1: tendermint.abci.MisbehaviorType + (ResponseOfferSnapshot_Result)(0), // 2: tendermint.abci.ResponseOfferSnapshot.Result + (ResponseApplySnapshotChunk_Result)(0), // 3: tendermint.abci.ResponseApplySnapshotChunk.Result + (ResponseProcessProposal_ProposalStatus)(0), // 4: tendermint.abci.ResponseProcessProposal.ProposalStatus + (ResponseVerifyVoteExtension_VerifyStatus)(0), // 5: tendermint.abci.ResponseVerifyVoteExtension.VerifyStatus + (*Request)(nil), // 6: tendermint.abci.Request + (*RequestEcho)(nil), // 7: tendermint.abci.RequestEcho + (*RequestFlush)(nil), // 8: tendermint.abci.RequestFlush + (*RequestInfo)(nil), // 9: tendermint.abci.RequestInfo + (*RequestInitChain)(nil), // 10: tendermint.abci.RequestInitChain + (*RequestQuery)(nil), // 11: tendermint.abci.RequestQuery + (*RequestCheckTx)(nil), // 12: tendermint.abci.RequestCheckTx + (*RequestCommit)(nil), // 13: tendermint.abci.RequestCommit + (*RequestListSnapshots)(nil), // 14: tendermint.abci.RequestListSnapshots + (*RequestOfferSnapshot)(nil), // 15: tendermint.abci.RequestOfferSnapshot + (*RequestLoadSnapshotChunk)(nil), // 16: tendermint.abci.RequestLoadSnapshotChunk + (*RequestApplySnapshotChunk)(nil), // 17: tendermint.abci.RequestApplySnapshotChunk + (*RequestPrepareProposal)(nil), // 18: tendermint.abci.RequestPrepareProposal + (*RequestProcessProposal)(nil), // 19: tendermint.abci.RequestProcessProposal + (*RequestExtendVote)(nil), // 20: tendermint.abci.RequestExtendVote + (*RequestVerifyVoteExtension)(nil), // 21: tendermint.abci.RequestVerifyVoteExtension + (*RequestFinalizeBlock)(nil), // 22: tendermint.abci.RequestFinalizeBlock + (*Response)(nil), // 23: tendermint.abci.Response + (*ResponseException)(nil), // 24: tendermint.abci.ResponseException + (*ResponseEcho)(nil), // 25: tendermint.abci.ResponseEcho + (*ResponseFlush)(nil), // 26: tendermint.abci.ResponseFlush + (*ResponseInfo)(nil), // 27: tendermint.abci.ResponseInfo + (*ResponseInitChain)(nil), // 28: tendermint.abci.ResponseInitChain + (*ResponseQuery)(nil), // 29: tendermint.abci.ResponseQuery + (*ResponseCheckTx)(nil), // 30: tendermint.abci.ResponseCheckTx + (*ResponseCommit)(nil), // 31: tendermint.abci.ResponseCommit + (*ResponseListSnapshots)(nil), // 32: tendermint.abci.ResponseListSnapshots + (*ResponseOfferSnapshot)(nil), // 33: tendermint.abci.ResponseOfferSnapshot + (*ResponseLoadSnapshotChunk)(nil), // 34: tendermint.abci.ResponseLoadSnapshotChunk + (*ResponseApplySnapshotChunk)(nil), // 35: tendermint.abci.ResponseApplySnapshotChunk + (*ResponsePrepareProposal)(nil), // 36: tendermint.abci.ResponsePrepareProposal + (*ResponseProcessProposal)(nil), // 37: tendermint.abci.ResponseProcessProposal + (*ResponseExtendVote)(nil), // 38: tendermint.abci.ResponseExtendVote + (*ResponseVerifyVoteExtension)(nil), // 39: tendermint.abci.ResponseVerifyVoteExtension + (*ResponseFinalizeBlock)(nil), // 40: tendermint.abci.ResponseFinalizeBlock + (*CommitInfo)(nil), // 41: tendermint.abci.CommitInfo + (*ExtendedCommitInfo)(nil), // 42: tendermint.abci.ExtendedCommitInfo + (*Event)(nil), // 43: tendermint.abci.Event + (*EventAttribute)(nil), // 44: tendermint.abci.EventAttribute + (*ExecTxResult)(nil), // 45: tendermint.abci.ExecTxResult + (*TxResult)(nil), // 46: tendermint.abci.TxResult + (*Validator)(nil), // 47: tendermint.abci.Validator + (*ValidatorUpdate)(nil), // 48: tendermint.abci.ValidatorUpdate + (*VoteInfo)(nil), // 49: tendermint.abci.VoteInfo + (*ExtendedVoteInfo)(nil), // 50: tendermint.abci.ExtendedVoteInfo + (*Misbehavior)(nil), // 51: tendermint.abci.Misbehavior + (*Snapshot)(nil), // 52: tendermint.abci.Snapshot + (*timestamppb.Timestamp)(nil), // 53: google.protobuf.Timestamp + (*types.ConsensusParams)(nil), // 54: tendermint.types.ConsensusParams + (*crypto.ProofOps)(nil), // 55: tendermint.crypto.ProofOps + (*crypto.PublicKey)(nil), // 56: tendermint.crypto.PublicKey + (types.BlockIDFlag)(0), // 57: tendermint.types.BlockIDFlag } -var file_cometbft_abci_v2_types_proto_depIdxs = []int32{ - 7, // 0: cometbft.abci.v2.Request.echo:type_name -> cometbft.abci.v2.EchoRequest - 8, // 1: cometbft.abci.v2.Request.flush:type_name -> cometbft.abci.v2.FlushRequest - 9, // 2: cometbft.abci.v2.Request.info:type_name -> cometbft.abci.v2.InfoRequest - 10, // 3: cometbft.abci.v2.Request.init_chain:type_name -> cometbft.abci.v2.InitChainRequest - 11, // 4: cometbft.abci.v2.Request.query:type_name -> cometbft.abci.v2.QueryRequest - 12, // 5: cometbft.abci.v2.Request.check_tx:type_name -> cometbft.abci.v2.CheckTxRequest - 13, // 6: cometbft.abci.v2.Request.commit:type_name -> cometbft.abci.v2.CommitRequest - 14, // 7: cometbft.abci.v2.Request.list_snapshots:type_name -> cometbft.abci.v2.ListSnapshotsRequest - 15, // 8: cometbft.abci.v2.Request.offer_snapshot:type_name -> cometbft.abci.v2.OfferSnapshotRequest - 16, // 9: cometbft.abci.v2.Request.load_snapshot_chunk:type_name -> cometbft.abci.v2.LoadSnapshotChunkRequest - 17, // 10: cometbft.abci.v2.Request.apply_snapshot_chunk:type_name -> cometbft.abci.v2.ApplySnapshotChunkRequest - 18, // 11: cometbft.abci.v2.Request.prepare_proposal:type_name -> cometbft.abci.v2.PrepareProposalRequest - 19, // 12: cometbft.abci.v2.Request.process_proposal:type_name -> cometbft.abci.v2.ProcessProposalRequest - 20, // 13: cometbft.abci.v2.Request.extend_vote:type_name -> cometbft.abci.v2.ExtendVoteRequest - 21, // 14: cometbft.abci.v2.Request.verify_vote_extension:type_name -> cometbft.abci.v2.VerifyVoteExtensionRequest - 22, // 15: cometbft.abci.v2.Request.finalize_block:type_name -> cometbft.abci.v2.FinalizeBlockRequest - 54, // 16: cometbft.abci.v2.InitChainRequest.time:type_name -> google.protobuf.Timestamp - 55, // 17: cometbft.abci.v2.InitChainRequest.consensus_params:type_name -> cometbft.types.v2.ConsensusParams - 48, // 18: cometbft.abci.v2.InitChainRequest.validators:type_name -> cometbft.abci.v2.ValidatorUpdate - 0, // 19: cometbft.abci.v2.CheckTxRequest.type:type_name -> cometbft.abci.v2.CheckTxType - 52, // 20: cometbft.abci.v2.OfferSnapshotRequest.snapshot:type_name -> cometbft.abci.v2.Snapshot - 42, // 21: cometbft.abci.v2.PrepareProposalRequest.local_last_commit:type_name -> cometbft.abci.v2.ExtendedCommitInfo - 51, // 22: cometbft.abci.v2.PrepareProposalRequest.misbehavior:type_name -> cometbft.abci.v2.Misbehavior - 54, // 23: cometbft.abci.v2.PrepareProposalRequest.time:type_name -> google.protobuf.Timestamp - 41, // 24: cometbft.abci.v2.ProcessProposalRequest.proposed_last_commit:type_name -> cometbft.abci.v2.CommitInfo - 51, // 25: cometbft.abci.v2.ProcessProposalRequest.misbehavior:type_name -> cometbft.abci.v2.Misbehavior - 54, // 26: cometbft.abci.v2.ProcessProposalRequest.time:type_name -> google.protobuf.Timestamp - 54, // 27: cometbft.abci.v2.ExtendVoteRequest.time:type_name -> google.protobuf.Timestamp - 41, // 28: cometbft.abci.v2.ExtendVoteRequest.proposed_last_commit:type_name -> cometbft.abci.v2.CommitInfo - 51, // 29: cometbft.abci.v2.ExtendVoteRequest.misbehavior:type_name -> cometbft.abci.v2.Misbehavior - 41, // 30: cometbft.abci.v2.FinalizeBlockRequest.decided_last_commit:type_name -> cometbft.abci.v2.CommitInfo - 51, // 31: cometbft.abci.v2.FinalizeBlockRequest.misbehavior:type_name -> cometbft.abci.v2.Misbehavior - 54, // 32: cometbft.abci.v2.FinalizeBlockRequest.time:type_name -> google.protobuf.Timestamp - 24, // 33: cometbft.abci.v2.Response.exception:type_name -> cometbft.abci.v2.ExceptionResponse - 25, // 34: cometbft.abci.v2.Response.echo:type_name -> cometbft.abci.v2.EchoResponse - 26, // 35: cometbft.abci.v2.Response.flush:type_name -> cometbft.abci.v2.FlushResponse - 27, // 36: cometbft.abci.v2.Response.info:type_name -> cometbft.abci.v2.InfoResponse - 28, // 37: cometbft.abci.v2.Response.init_chain:type_name -> cometbft.abci.v2.InitChainResponse - 29, // 38: cometbft.abci.v2.Response.query:type_name -> cometbft.abci.v2.QueryResponse - 30, // 39: cometbft.abci.v2.Response.check_tx:type_name -> cometbft.abci.v2.CheckTxResponse - 31, // 40: cometbft.abci.v2.Response.commit:type_name -> cometbft.abci.v2.CommitResponse - 32, // 41: cometbft.abci.v2.Response.list_snapshots:type_name -> cometbft.abci.v2.ListSnapshotsResponse - 33, // 42: cometbft.abci.v2.Response.offer_snapshot:type_name -> cometbft.abci.v2.OfferSnapshotResponse - 34, // 43: cometbft.abci.v2.Response.load_snapshot_chunk:type_name -> cometbft.abci.v2.LoadSnapshotChunkResponse - 35, // 44: cometbft.abci.v2.Response.apply_snapshot_chunk:type_name -> cometbft.abci.v2.ApplySnapshotChunkResponse - 36, // 45: cometbft.abci.v2.Response.prepare_proposal:type_name -> cometbft.abci.v2.PrepareProposalResponse - 37, // 46: cometbft.abci.v2.Response.process_proposal:type_name -> cometbft.abci.v2.ProcessProposalResponse - 38, // 47: cometbft.abci.v2.Response.extend_vote:type_name -> cometbft.abci.v2.ExtendVoteResponse - 39, // 48: cometbft.abci.v2.Response.verify_vote_extension:type_name -> cometbft.abci.v2.VerifyVoteExtensionResponse - 40, // 49: cometbft.abci.v2.Response.finalize_block:type_name -> cometbft.abci.v2.FinalizeBlockResponse - 53, // 50: cometbft.abci.v2.InfoResponse.lane_priorities:type_name -> cometbft.abci.v2.InfoResponse.LanePrioritiesEntry - 55, // 51: cometbft.abci.v2.InitChainResponse.consensus_params:type_name -> cometbft.types.v2.ConsensusParams - 48, // 52: cometbft.abci.v2.InitChainResponse.validators:type_name -> cometbft.abci.v2.ValidatorUpdate - 56, // 53: cometbft.abci.v2.QueryResponse.proof_ops:type_name -> cometbft.crypto.v1.ProofOps - 43, // 54: cometbft.abci.v2.CheckTxResponse.events:type_name -> cometbft.abci.v2.Event - 52, // 55: cometbft.abci.v2.ListSnapshotsResponse.snapshots:type_name -> cometbft.abci.v2.Snapshot - 1, // 56: cometbft.abci.v2.OfferSnapshotResponse.result:type_name -> cometbft.abci.v2.OfferSnapshotResult - 2, // 57: cometbft.abci.v2.ApplySnapshotChunkResponse.result:type_name -> cometbft.abci.v2.ApplySnapshotChunkResult - 3, // 58: cometbft.abci.v2.ProcessProposalResponse.status:type_name -> cometbft.abci.v2.ProcessProposalStatus - 4, // 59: cometbft.abci.v2.VerifyVoteExtensionResponse.status:type_name -> cometbft.abci.v2.VerifyVoteExtensionStatus - 43, // 60: cometbft.abci.v2.FinalizeBlockResponse.events:type_name -> cometbft.abci.v2.Event - 45, // 61: cometbft.abci.v2.FinalizeBlockResponse.tx_results:type_name -> cometbft.abci.v2.ExecTxResult - 48, // 62: cometbft.abci.v2.FinalizeBlockResponse.validator_updates:type_name -> cometbft.abci.v2.ValidatorUpdate - 55, // 63: cometbft.abci.v2.FinalizeBlockResponse.consensus_param_updates:type_name -> cometbft.types.v2.ConsensusParams - 57, // 64: cometbft.abci.v2.FinalizeBlockResponse.next_block_delay:type_name -> google.protobuf.Duration - 49, // 65: cometbft.abci.v2.CommitInfo.votes:type_name -> cometbft.abci.v2.VoteInfo - 50, // 66: cometbft.abci.v2.ExtendedCommitInfo.votes:type_name -> cometbft.abci.v2.ExtendedVoteInfo - 44, // 67: cometbft.abci.v2.Event.attributes:type_name -> cometbft.abci.v2.EventAttribute - 43, // 68: cometbft.abci.v2.ExecTxResult.events:type_name -> cometbft.abci.v2.Event - 45, // 69: cometbft.abci.v2.TxResult.result:type_name -> cometbft.abci.v2.ExecTxResult - 47, // 70: cometbft.abci.v2.VoteInfo.validator:type_name -> cometbft.abci.v2.Validator - 58, // 71: cometbft.abci.v2.VoteInfo.block_id_flag:type_name -> cometbft.types.v2.BlockIDFlag - 47, // 72: cometbft.abci.v2.ExtendedVoteInfo.validator:type_name -> cometbft.abci.v2.Validator - 58, // 73: cometbft.abci.v2.ExtendedVoteInfo.block_id_flag:type_name -> cometbft.types.v2.BlockIDFlag - 5, // 74: cometbft.abci.v2.Misbehavior.type:type_name -> cometbft.abci.v2.MisbehaviorType - 47, // 75: cometbft.abci.v2.Misbehavior.validator:type_name -> cometbft.abci.v2.Validator - 54, // 76: cometbft.abci.v2.Misbehavior.time:type_name -> google.protobuf.Timestamp - 77, // [77:77] is the sub-list for method output_type - 77, // [77:77] is the sub-list for method input_type - 77, // [77:77] is the sub-list for extension type_name - 77, // [77:77] is the sub-list for extension extendee - 0, // [0:77] is the sub-list for field type_name +var file_tendermint_abci_types_proto_depIdxs = []int32{ + 7, // 0: tendermint.abci.Request.echo:type_name -> tendermint.abci.RequestEcho + 8, // 1: tendermint.abci.Request.flush:type_name -> tendermint.abci.RequestFlush + 9, // 2: tendermint.abci.Request.info:type_name -> tendermint.abci.RequestInfo + 10, // 3: tendermint.abci.Request.init_chain:type_name -> tendermint.abci.RequestInitChain + 11, // 4: tendermint.abci.Request.query:type_name -> tendermint.abci.RequestQuery + 12, // 5: tendermint.abci.Request.check_tx:type_name -> tendermint.abci.RequestCheckTx + 13, // 6: tendermint.abci.Request.commit:type_name -> tendermint.abci.RequestCommit + 14, // 7: tendermint.abci.Request.list_snapshots:type_name -> tendermint.abci.RequestListSnapshots + 15, // 8: tendermint.abci.Request.offer_snapshot:type_name -> tendermint.abci.RequestOfferSnapshot + 16, // 9: tendermint.abci.Request.load_snapshot_chunk:type_name -> tendermint.abci.RequestLoadSnapshotChunk + 17, // 10: tendermint.abci.Request.apply_snapshot_chunk:type_name -> tendermint.abci.RequestApplySnapshotChunk + 18, // 11: tendermint.abci.Request.prepare_proposal:type_name -> tendermint.abci.RequestPrepareProposal + 19, // 12: tendermint.abci.Request.process_proposal:type_name -> tendermint.abci.RequestProcessProposal + 20, // 13: tendermint.abci.Request.extend_vote:type_name -> tendermint.abci.RequestExtendVote + 21, // 14: tendermint.abci.Request.verify_vote_extension:type_name -> tendermint.abci.RequestVerifyVoteExtension + 22, // 15: tendermint.abci.Request.finalize_block:type_name -> tendermint.abci.RequestFinalizeBlock + 53, // 16: tendermint.abci.RequestInitChain.time:type_name -> google.protobuf.Timestamp + 54, // 17: tendermint.abci.RequestInitChain.consensus_params:type_name -> tendermint.types.ConsensusParams + 48, // 18: tendermint.abci.RequestInitChain.validators:type_name -> tendermint.abci.ValidatorUpdate + 0, // 19: tendermint.abci.RequestCheckTx.type:type_name -> tendermint.abci.CheckTxType + 52, // 20: tendermint.abci.RequestOfferSnapshot.snapshot:type_name -> tendermint.abci.Snapshot + 42, // 21: tendermint.abci.RequestPrepareProposal.local_last_commit:type_name -> tendermint.abci.ExtendedCommitInfo + 51, // 22: tendermint.abci.RequestPrepareProposal.misbehavior:type_name -> tendermint.abci.Misbehavior + 53, // 23: tendermint.abci.RequestPrepareProposal.time:type_name -> google.protobuf.Timestamp + 41, // 24: tendermint.abci.RequestProcessProposal.proposed_last_commit:type_name -> tendermint.abci.CommitInfo + 51, // 25: tendermint.abci.RequestProcessProposal.misbehavior:type_name -> tendermint.abci.Misbehavior + 53, // 26: tendermint.abci.RequestProcessProposal.time:type_name -> google.protobuf.Timestamp + 53, // 27: tendermint.abci.RequestExtendVote.time:type_name -> google.protobuf.Timestamp + 41, // 28: tendermint.abci.RequestExtendVote.proposed_last_commit:type_name -> tendermint.abci.CommitInfo + 51, // 29: tendermint.abci.RequestExtendVote.misbehavior:type_name -> tendermint.abci.Misbehavior + 41, // 30: tendermint.abci.RequestFinalizeBlock.decided_last_commit:type_name -> tendermint.abci.CommitInfo + 51, // 31: tendermint.abci.RequestFinalizeBlock.misbehavior:type_name -> tendermint.abci.Misbehavior + 53, // 32: tendermint.abci.RequestFinalizeBlock.time:type_name -> google.protobuf.Timestamp + 24, // 33: tendermint.abci.Response.exception:type_name -> tendermint.abci.ResponseException + 25, // 34: tendermint.abci.Response.echo:type_name -> tendermint.abci.ResponseEcho + 26, // 35: tendermint.abci.Response.flush:type_name -> tendermint.abci.ResponseFlush + 27, // 36: tendermint.abci.Response.info:type_name -> tendermint.abci.ResponseInfo + 28, // 37: tendermint.abci.Response.init_chain:type_name -> tendermint.abci.ResponseInitChain + 29, // 38: tendermint.abci.Response.query:type_name -> tendermint.abci.ResponseQuery + 30, // 39: tendermint.abci.Response.check_tx:type_name -> tendermint.abci.ResponseCheckTx + 31, // 40: tendermint.abci.Response.commit:type_name -> tendermint.abci.ResponseCommit + 32, // 41: tendermint.abci.Response.list_snapshots:type_name -> tendermint.abci.ResponseListSnapshots + 33, // 42: tendermint.abci.Response.offer_snapshot:type_name -> tendermint.abci.ResponseOfferSnapshot + 34, // 43: tendermint.abci.Response.load_snapshot_chunk:type_name -> tendermint.abci.ResponseLoadSnapshotChunk + 35, // 44: tendermint.abci.Response.apply_snapshot_chunk:type_name -> tendermint.abci.ResponseApplySnapshotChunk + 36, // 45: tendermint.abci.Response.prepare_proposal:type_name -> tendermint.abci.ResponsePrepareProposal + 37, // 46: tendermint.abci.Response.process_proposal:type_name -> tendermint.abci.ResponseProcessProposal + 38, // 47: tendermint.abci.Response.extend_vote:type_name -> tendermint.abci.ResponseExtendVote + 39, // 48: tendermint.abci.Response.verify_vote_extension:type_name -> tendermint.abci.ResponseVerifyVoteExtension + 40, // 49: tendermint.abci.Response.finalize_block:type_name -> tendermint.abci.ResponseFinalizeBlock + 54, // 50: tendermint.abci.ResponseInitChain.consensus_params:type_name -> tendermint.types.ConsensusParams + 48, // 51: tendermint.abci.ResponseInitChain.validators:type_name -> tendermint.abci.ValidatorUpdate + 55, // 52: tendermint.abci.ResponseQuery.proof_ops:type_name -> tendermint.crypto.ProofOps + 43, // 53: tendermint.abci.ResponseCheckTx.events:type_name -> tendermint.abci.Event + 52, // 54: tendermint.abci.ResponseListSnapshots.snapshots:type_name -> tendermint.abci.Snapshot + 2, // 55: tendermint.abci.ResponseOfferSnapshot.result:type_name -> tendermint.abci.ResponseOfferSnapshot.Result + 3, // 56: tendermint.abci.ResponseApplySnapshotChunk.result:type_name -> tendermint.abci.ResponseApplySnapshotChunk.Result + 4, // 57: tendermint.abci.ResponseProcessProposal.status:type_name -> tendermint.abci.ResponseProcessProposal.ProposalStatus + 5, // 58: tendermint.abci.ResponseVerifyVoteExtension.status:type_name -> tendermint.abci.ResponseVerifyVoteExtension.VerifyStatus + 43, // 59: tendermint.abci.ResponseFinalizeBlock.events:type_name -> tendermint.abci.Event + 45, // 60: tendermint.abci.ResponseFinalizeBlock.tx_results:type_name -> tendermint.abci.ExecTxResult + 48, // 61: tendermint.abci.ResponseFinalizeBlock.validator_updates:type_name -> tendermint.abci.ValidatorUpdate + 54, // 62: tendermint.abci.ResponseFinalizeBlock.consensus_param_updates:type_name -> tendermint.types.ConsensusParams + 49, // 63: tendermint.abci.CommitInfo.votes:type_name -> tendermint.abci.VoteInfo + 50, // 64: tendermint.abci.ExtendedCommitInfo.votes:type_name -> tendermint.abci.ExtendedVoteInfo + 44, // 65: tendermint.abci.Event.attributes:type_name -> tendermint.abci.EventAttribute + 43, // 66: tendermint.abci.ExecTxResult.events:type_name -> tendermint.abci.Event + 45, // 67: tendermint.abci.TxResult.result:type_name -> tendermint.abci.ExecTxResult + 56, // 68: tendermint.abci.ValidatorUpdate.pub_key:type_name -> tendermint.crypto.PublicKey + 47, // 69: tendermint.abci.VoteInfo.validator:type_name -> tendermint.abci.Validator + 57, // 70: tendermint.abci.VoteInfo.block_id_flag:type_name -> tendermint.types.BlockIDFlag + 47, // 71: tendermint.abci.ExtendedVoteInfo.validator:type_name -> tendermint.abci.Validator + 57, // 72: tendermint.abci.ExtendedVoteInfo.block_id_flag:type_name -> tendermint.types.BlockIDFlag + 1, // 73: tendermint.abci.Misbehavior.type:type_name -> tendermint.abci.MisbehaviorType + 47, // 74: tendermint.abci.Misbehavior.validator:type_name -> tendermint.abci.Validator + 53, // 75: tendermint.abci.Misbehavior.time:type_name -> google.protobuf.Timestamp + 7, // 76: tendermint.abci.ABCI.Echo:input_type -> tendermint.abci.RequestEcho + 8, // 77: tendermint.abci.ABCI.Flush:input_type -> tendermint.abci.RequestFlush + 9, // 78: tendermint.abci.ABCI.Info:input_type -> tendermint.abci.RequestInfo + 12, // 79: tendermint.abci.ABCI.CheckTx:input_type -> tendermint.abci.RequestCheckTx + 11, // 80: tendermint.abci.ABCI.Query:input_type -> tendermint.abci.RequestQuery + 13, // 81: tendermint.abci.ABCI.Commit:input_type -> tendermint.abci.RequestCommit + 10, // 82: tendermint.abci.ABCI.InitChain:input_type -> tendermint.abci.RequestInitChain + 14, // 83: tendermint.abci.ABCI.ListSnapshots:input_type -> tendermint.abci.RequestListSnapshots + 15, // 84: tendermint.abci.ABCI.OfferSnapshot:input_type -> tendermint.abci.RequestOfferSnapshot + 16, // 85: tendermint.abci.ABCI.LoadSnapshotChunk:input_type -> tendermint.abci.RequestLoadSnapshotChunk + 17, // 86: tendermint.abci.ABCI.ApplySnapshotChunk:input_type -> tendermint.abci.RequestApplySnapshotChunk + 18, // 87: tendermint.abci.ABCI.PrepareProposal:input_type -> tendermint.abci.RequestPrepareProposal + 19, // 88: tendermint.abci.ABCI.ProcessProposal:input_type -> tendermint.abci.RequestProcessProposal + 20, // 89: tendermint.abci.ABCI.ExtendVote:input_type -> tendermint.abci.RequestExtendVote + 21, // 90: tendermint.abci.ABCI.VerifyVoteExtension:input_type -> tendermint.abci.RequestVerifyVoteExtension + 22, // 91: tendermint.abci.ABCI.FinalizeBlock:input_type -> tendermint.abci.RequestFinalizeBlock + 25, // 92: tendermint.abci.ABCI.Echo:output_type -> tendermint.abci.ResponseEcho + 26, // 93: tendermint.abci.ABCI.Flush:output_type -> tendermint.abci.ResponseFlush + 27, // 94: tendermint.abci.ABCI.Info:output_type -> tendermint.abci.ResponseInfo + 30, // 95: tendermint.abci.ABCI.CheckTx:output_type -> tendermint.abci.ResponseCheckTx + 29, // 96: tendermint.abci.ABCI.Query:output_type -> tendermint.abci.ResponseQuery + 31, // 97: tendermint.abci.ABCI.Commit:output_type -> tendermint.abci.ResponseCommit + 28, // 98: tendermint.abci.ABCI.InitChain:output_type -> tendermint.abci.ResponseInitChain + 32, // 99: tendermint.abci.ABCI.ListSnapshots:output_type -> tendermint.abci.ResponseListSnapshots + 33, // 100: tendermint.abci.ABCI.OfferSnapshot:output_type -> tendermint.abci.ResponseOfferSnapshot + 34, // 101: tendermint.abci.ABCI.LoadSnapshotChunk:output_type -> tendermint.abci.ResponseLoadSnapshotChunk + 35, // 102: tendermint.abci.ABCI.ApplySnapshotChunk:output_type -> tendermint.abci.ResponseApplySnapshotChunk + 36, // 103: tendermint.abci.ABCI.PrepareProposal:output_type -> tendermint.abci.ResponsePrepareProposal + 37, // 104: tendermint.abci.ABCI.ProcessProposal:output_type -> tendermint.abci.ResponseProcessProposal + 38, // 105: tendermint.abci.ABCI.ExtendVote:output_type -> tendermint.abci.ResponseExtendVote + 39, // 106: tendermint.abci.ABCI.VerifyVoteExtension:output_type -> tendermint.abci.ResponseVerifyVoteExtension + 40, // 107: tendermint.abci.ABCI.FinalizeBlock:output_type -> tendermint.abci.ResponseFinalizeBlock + 92, // [92:108] is the sub-list for method output_type + 76, // [76:92] is the sub-list for method input_type + 76, // [76:76] is the sub-list for extension type_name + 76, // [76:76] is the sub-list for extension extendee + 0, // [0:76] is the sub-list for field type_name } -func init() { file_cometbft_abci_v2_types_proto_init() } -func file_cometbft_abci_v2_types_proto_init() { - if File_cometbft_abci_v2_types_proto != nil { +func init() { file_tendermint_abci_types_proto_init() } +func file_tendermint_abci_types_proto_init() { + if File_tendermint_abci_types_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_cometbft_abci_v2_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_abci_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Request); i { case 0: return &v.state @@ -35955,8 +34959,8 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EchoRequest); i { + file_tendermint_abci_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestEcho); i { case 0: return &v.state case 1: @@ -35967,8 +34971,8 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FlushRequest); i { + file_tendermint_abci_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestFlush); i { case 0: return &v.state case 1: @@ -35979,8 +34983,8 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InfoRequest); i { + file_tendermint_abci_types_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestInfo); i { case 0: return &v.state case 1: @@ -35991,8 +34995,8 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InitChainRequest); i { + file_tendermint_abci_types_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestInitChain); i { case 0: return &v.state case 1: @@ -36003,8 +35007,8 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryRequest); i { + file_tendermint_abci_types_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestQuery); i { case 0: return &v.state case 1: @@ -36015,8 +35019,8 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CheckTxRequest); i { + file_tendermint_abci_types_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestCheckTx); i { case 0: return &v.state case 1: @@ -36027,8 +35031,8 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommitRequest); i { + file_tendermint_abci_types_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestCommit); i { case 0: return &v.state case 1: @@ -36039,8 +35043,8 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListSnapshotsRequest); i { + file_tendermint_abci_types_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestListSnapshots); i { case 0: return &v.state case 1: @@ -36051,8 +35055,8 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OfferSnapshotRequest); i { + file_tendermint_abci_types_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestOfferSnapshot); i { case 0: return &v.state case 1: @@ -36063,8 +35067,8 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LoadSnapshotChunkRequest); i { + file_tendermint_abci_types_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestLoadSnapshotChunk); i { case 0: return &v.state case 1: @@ -36075,8 +35079,8 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplySnapshotChunkRequest); i { + file_tendermint_abci_types_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestApplySnapshotChunk); i { case 0: return &v.state case 1: @@ -36087,8 +35091,8 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PrepareProposalRequest); i { + file_tendermint_abci_types_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestPrepareProposal); i { case 0: return &v.state case 1: @@ -36099,8 +35103,8 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProcessProposalRequest); i { + file_tendermint_abci_types_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestProcessProposal); i { case 0: return &v.state case 1: @@ -36111,8 +35115,8 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExtendVoteRequest); i { + file_tendermint_abci_types_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestExtendVote); i { case 0: return &v.state case 1: @@ -36123,8 +35127,8 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VerifyVoteExtensionRequest); i { + file_tendermint_abci_types_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestVerifyVoteExtension); i { case 0: return &v.state case 1: @@ -36135,8 +35139,8 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FinalizeBlockRequest); i { + file_tendermint_abci_types_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestFinalizeBlock); i { case 0: return &v.state case 1: @@ -36147,7 +35151,7 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_abci_types_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Response); i { case 0: return &v.state @@ -36159,8 +35163,8 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExceptionResponse); i { + file_tendermint_abci_types_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResponseException); i { case 0: return &v.state case 1: @@ -36171,8 +35175,8 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EchoResponse); i { + file_tendermint_abci_types_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResponseEcho); i { case 0: return &v.state case 1: @@ -36183,8 +35187,8 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FlushResponse); i { + file_tendermint_abci_types_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResponseFlush); i { case 0: return &v.state case 1: @@ -36195,8 +35199,8 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InfoResponse); i { + file_tendermint_abci_types_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResponseInfo); i { case 0: return &v.state case 1: @@ -36207,8 +35211,8 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InitChainResponse); i { + file_tendermint_abci_types_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResponseInitChain); i { case 0: return &v.state case 1: @@ -36219,8 +35223,8 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryResponse); i { + file_tendermint_abci_types_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResponseQuery); i { case 0: return &v.state case 1: @@ -36231,8 +35235,8 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CheckTxResponse); i { + file_tendermint_abci_types_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResponseCheckTx); i { case 0: return &v.state case 1: @@ -36243,8 +35247,8 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommitResponse); i { + file_tendermint_abci_types_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResponseCommit); i { case 0: return &v.state case 1: @@ -36255,8 +35259,8 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListSnapshotsResponse); i { + file_tendermint_abci_types_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResponseListSnapshots); i { case 0: return &v.state case 1: @@ -36267,8 +35271,8 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OfferSnapshotResponse); i { + file_tendermint_abci_types_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResponseOfferSnapshot); i { case 0: return &v.state case 1: @@ -36279,8 +35283,8 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LoadSnapshotChunkResponse); i { + file_tendermint_abci_types_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResponseLoadSnapshotChunk); i { case 0: return &v.state case 1: @@ -36291,8 +35295,8 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplySnapshotChunkResponse); i { + file_tendermint_abci_types_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResponseApplySnapshotChunk); i { case 0: return &v.state case 1: @@ -36303,8 +35307,8 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PrepareProposalResponse); i { + file_tendermint_abci_types_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResponsePrepareProposal); i { case 0: return &v.state case 1: @@ -36315,8 +35319,8 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProcessProposalResponse); i { + file_tendermint_abci_types_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResponseProcessProposal); i { case 0: return &v.state case 1: @@ -36327,8 +35331,8 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExtendVoteResponse); i { + file_tendermint_abci_types_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResponseExtendVote); i { case 0: return &v.state case 1: @@ -36339,8 +35343,8 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VerifyVoteExtensionResponse); i { + file_tendermint_abci_types_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResponseVerifyVoteExtension); i { case 0: return &v.state case 1: @@ -36351,8 +35355,8 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FinalizeBlockResponse); i { + file_tendermint_abci_types_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResponseFinalizeBlock); i { case 0: return &v.state case 1: @@ -36363,7 +35367,7 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_abci_types_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CommitInfo); i { case 0: return &v.state @@ -36375,7 +35379,7 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_abci_types_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ExtendedCommitInfo); i { case 0: return &v.state @@ -36387,7 +35391,7 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_abci_types_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Event); i { case 0: return &v.state @@ -36399,7 +35403,7 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_abci_types_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EventAttribute); i { case 0: return &v.state @@ -36411,7 +35415,7 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_abci_types_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ExecTxResult); i { case 0: return &v.state @@ -36423,7 +35427,7 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_abci_types_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TxResult); i { case 0: return &v.state @@ -36435,7 +35439,7 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_abci_types_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Validator); i { case 0: return &v.state @@ -36447,7 +35451,7 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_abci_types_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ValidatorUpdate); i { case 0: return &v.state @@ -36459,7 +35463,7 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_abci_types_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*VoteInfo); i { case 0: return &v.state @@ -36471,7 +35475,7 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_abci_types_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ExtendedVoteInfo); i { case 0: return &v.state @@ -36483,7 +35487,7 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_abci_types_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Misbehavior); i { case 0: return &v.state @@ -36495,7 +35499,7 @@ func file_cometbft_abci_v2_types_proto_init() { return nil } } - file_cometbft_abci_v2_types_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_abci_types_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Snapshot); i { case 0: return &v.state @@ -36508,7 +35512,7 @@ func file_cometbft_abci_v2_types_proto_init() { } } } - file_cometbft_abci_v2_types_proto_msgTypes[0].OneofWrappers = []interface{}{ + file_tendermint_abci_types_proto_msgTypes[0].OneofWrappers = []interface{}{ (*Request_Echo)(nil), (*Request_Flush)(nil), (*Request_Info)(nil), @@ -36526,7 +35530,7 @@ func file_cometbft_abci_v2_types_proto_init() { (*Request_VerifyVoteExtension)(nil), (*Request_FinalizeBlock)(nil), } - file_cometbft_abci_v2_types_proto_msgTypes[17].OneofWrappers = []interface{}{ + file_tendermint_abci_types_proto_msgTypes[17].OneofWrappers = []interface{}{ (*Response_Exception)(nil), (*Response_Echo)(nil), (*Response_Flush)(nil), @@ -36549,19 +35553,19 @@ func file_cometbft_abci_v2_types_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cometbft_abci_v2_types_proto_rawDesc, + RawDescriptor: file_tendermint_abci_types_proto_rawDesc, NumEnums: 6, - NumMessages: 48, + NumMessages: 47, NumExtensions: 0, - NumServices: 0, + NumServices: 1, }, - GoTypes: file_cometbft_abci_v2_types_proto_goTypes, - DependencyIndexes: file_cometbft_abci_v2_types_proto_depIdxs, - EnumInfos: file_cometbft_abci_v2_types_proto_enumTypes, - MessageInfos: file_cometbft_abci_v2_types_proto_msgTypes, + GoTypes: file_tendermint_abci_types_proto_goTypes, + DependencyIndexes: file_tendermint_abci_types_proto_depIdxs, + EnumInfos: file_tendermint_abci_types_proto_enumTypes, + MessageInfos: file_tendermint_abci_types_proto_msgTypes, }.Build() - File_cometbft_abci_v2_types_proto = out.File - file_cometbft_abci_v2_types_proto_rawDesc = nil - file_cometbft_abci_v2_types_proto_goTypes = nil - file_cometbft_abci_v2_types_proto_depIdxs = nil + File_tendermint_abci_types_proto = out.File + file_tendermint_abci_types_proto_rawDesc = nil + file_tendermint_abci_types_proto_goTypes = nil + file_tendermint_abci_types_proto_depIdxs = nil } diff --git a/api/tendermint/abci/types_grpc.pb.go b/api/tendermint/abci/types_grpc.pb.go new file mode 100644 index 0000000000..11bd3bd1af --- /dev/null +++ b/api/tendermint/abci/types_grpc.pb.go @@ -0,0 +1,691 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc (unknown) +// source: tendermint/abci/types.proto + +package abci + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + ABCI_Echo_FullMethodName = "/tendermint.abci.ABCI/Echo" + ABCI_Flush_FullMethodName = "/tendermint.abci.ABCI/Flush" + ABCI_Info_FullMethodName = "/tendermint.abci.ABCI/Info" + ABCI_CheckTx_FullMethodName = "/tendermint.abci.ABCI/CheckTx" + ABCI_Query_FullMethodName = "/tendermint.abci.ABCI/Query" + ABCI_Commit_FullMethodName = "/tendermint.abci.ABCI/Commit" + ABCI_InitChain_FullMethodName = "/tendermint.abci.ABCI/InitChain" + ABCI_ListSnapshots_FullMethodName = "/tendermint.abci.ABCI/ListSnapshots" + ABCI_OfferSnapshot_FullMethodName = "/tendermint.abci.ABCI/OfferSnapshot" + ABCI_LoadSnapshotChunk_FullMethodName = "/tendermint.abci.ABCI/LoadSnapshotChunk" + ABCI_ApplySnapshotChunk_FullMethodName = "/tendermint.abci.ABCI/ApplySnapshotChunk" + ABCI_PrepareProposal_FullMethodName = "/tendermint.abci.ABCI/PrepareProposal" + ABCI_ProcessProposal_FullMethodName = "/tendermint.abci.ABCI/ProcessProposal" + ABCI_ExtendVote_FullMethodName = "/tendermint.abci.ABCI/ExtendVote" + ABCI_VerifyVoteExtension_FullMethodName = "/tendermint.abci.ABCI/VerifyVoteExtension" + ABCI_FinalizeBlock_FullMethodName = "/tendermint.abci.ABCI/FinalizeBlock" +) + +// ABCIClient is the client API for ABCI service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type ABCIClient interface { + Echo(ctx context.Context, in *RequestEcho, opts ...grpc.CallOption) (*ResponseEcho, error) + Flush(ctx context.Context, in *RequestFlush, opts ...grpc.CallOption) (*ResponseFlush, error) + Info(ctx context.Context, in *RequestInfo, opts ...grpc.CallOption) (*ResponseInfo, error) + CheckTx(ctx context.Context, in *RequestCheckTx, opts ...grpc.CallOption) (*ResponseCheckTx, error) + Query(ctx context.Context, in *RequestQuery, opts ...grpc.CallOption) (*ResponseQuery, error) + Commit(ctx context.Context, in *RequestCommit, opts ...grpc.CallOption) (*ResponseCommit, error) + InitChain(ctx context.Context, in *RequestInitChain, opts ...grpc.CallOption) (*ResponseInitChain, error) + ListSnapshots(ctx context.Context, in *RequestListSnapshots, opts ...grpc.CallOption) (*ResponseListSnapshots, error) + OfferSnapshot(ctx context.Context, in *RequestOfferSnapshot, opts ...grpc.CallOption) (*ResponseOfferSnapshot, error) + LoadSnapshotChunk(ctx context.Context, in *RequestLoadSnapshotChunk, opts ...grpc.CallOption) (*ResponseLoadSnapshotChunk, error) + ApplySnapshotChunk(ctx context.Context, in *RequestApplySnapshotChunk, opts ...grpc.CallOption) (*ResponseApplySnapshotChunk, error) + PrepareProposal(ctx context.Context, in *RequestPrepareProposal, opts ...grpc.CallOption) (*ResponsePrepareProposal, error) + ProcessProposal(ctx context.Context, in *RequestProcessProposal, opts ...grpc.CallOption) (*ResponseProcessProposal, error) + ExtendVote(ctx context.Context, in *RequestExtendVote, opts ...grpc.CallOption) (*ResponseExtendVote, error) + VerifyVoteExtension(ctx context.Context, in *RequestVerifyVoteExtension, opts ...grpc.CallOption) (*ResponseVerifyVoteExtension, error) + FinalizeBlock(ctx context.Context, in *RequestFinalizeBlock, opts ...grpc.CallOption) (*ResponseFinalizeBlock, error) +} + +type aBCIClient struct { + cc grpc.ClientConnInterface +} + +func NewABCIClient(cc grpc.ClientConnInterface) ABCIClient { + return &aBCIClient{cc} +} + +func (c *aBCIClient) Echo(ctx context.Context, in *RequestEcho, opts ...grpc.CallOption) (*ResponseEcho, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ResponseEcho) + err := c.cc.Invoke(ctx, ABCI_Echo_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aBCIClient) Flush(ctx context.Context, in *RequestFlush, opts ...grpc.CallOption) (*ResponseFlush, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ResponseFlush) + err := c.cc.Invoke(ctx, ABCI_Flush_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aBCIClient) Info(ctx context.Context, in *RequestInfo, opts ...grpc.CallOption) (*ResponseInfo, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ResponseInfo) + err := c.cc.Invoke(ctx, ABCI_Info_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aBCIClient) CheckTx(ctx context.Context, in *RequestCheckTx, opts ...grpc.CallOption) (*ResponseCheckTx, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ResponseCheckTx) + err := c.cc.Invoke(ctx, ABCI_CheckTx_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aBCIClient) Query(ctx context.Context, in *RequestQuery, opts ...grpc.CallOption) (*ResponseQuery, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ResponseQuery) + err := c.cc.Invoke(ctx, ABCI_Query_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aBCIClient) Commit(ctx context.Context, in *RequestCommit, opts ...grpc.CallOption) (*ResponseCommit, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ResponseCommit) + err := c.cc.Invoke(ctx, ABCI_Commit_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aBCIClient) InitChain(ctx context.Context, in *RequestInitChain, opts ...grpc.CallOption) (*ResponseInitChain, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ResponseInitChain) + err := c.cc.Invoke(ctx, ABCI_InitChain_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aBCIClient) ListSnapshots(ctx context.Context, in *RequestListSnapshots, opts ...grpc.CallOption) (*ResponseListSnapshots, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ResponseListSnapshots) + err := c.cc.Invoke(ctx, ABCI_ListSnapshots_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aBCIClient) OfferSnapshot(ctx context.Context, in *RequestOfferSnapshot, opts ...grpc.CallOption) (*ResponseOfferSnapshot, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ResponseOfferSnapshot) + err := c.cc.Invoke(ctx, ABCI_OfferSnapshot_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aBCIClient) LoadSnapshotChunk(ctx context.Context, in *RequestLoadSnapshotChunk, opts ...grpc.CallOption) (*ResponseLoadSnapshotChunk, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ResponseLoadSnapshotChunk) + err := c.cc.Invoke(ctx, ABCI_LoadSnapshotChunk_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aBCIClient) ApplySnapshotChunk(ctx context.Context, in *RequestApplySnapshotChunk, opts ...grpc.CallOption) (*ResponseApplySnapshotChunk, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ResponseApplySnapshotChunk) + err := c.cc.Invoke(ctx, ABCI_ApplySnapshotChunk_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aBCIClient) PrepareProposal(ctx context.Context, in *RequestPrepareProposal, opts ...grpc.CallOption) (*ResponsePrepareProposal, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ResponsePrepareProposal) + err := c.cc.Invoke(ctx, ABCI_PrepareProposal_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aBCIClient) ProcessProposal(ctx context.Context, in *RequestProcessProposal, opts ...grpc.CallOption) (*ResponseProcessProposal, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ResponseProcessProposal) + err := c.cc.Invoke(ctx, ABCI_ProcessProposal_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aBCIClient) ExtendVote(ctx context.Context, in *RequestExtendVote, opts ...grpc.CallOption) (*ResponseExtendVote, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ResponseExtendVote) + err := c.cc.Invoke(ctx, ABCI_ExtendVote_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aBCIClient) VerifyVoteExtension(ctx context.Context, in *RequestVerifyVoteExtension, opts ...grpc.CallOption) (*ResponseVerifyVoteExtension, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ResponseVerifyVoteExtension) + err := c.cc.Invoke(ctx, ABCI_VerifyVoteExtension_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aBCIClient) FinalizeBlock(ctx context.Context, in *RequestFinalizeBlock, opts ...grpc.CallOption) (*ResponseFinalizeBlock, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ResponseFinalizeBlock) + err := c.cc.Invoke(ctx, ABCI_FinalizeBlock_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ABCIServer is the server API for ABCI service. +// All implementations must embed UnimplementedABCIServer +// for forward compatibility. +type ABCIServer interface { + Echo(context.Context, *RequestEcho) (*ResponseEcho, error) + Flush(context.Context, *RequestFlush) (*ResponseFlush, error) + Info(context.Context, *RequestInfo) (*ResponseInfo, error) + CheckTx(context.Context, *RequestCheckTx) (*ResponseCheckTx, error) + Query(context.Context, *RequestQuery) (*ResponseQuery, error) + Commit(context.Context, *RequestCommit) (*ResponseCommit, error) + InitChain(context.Context, *RequestInitChain) (*ResponseInitChain, error) + ListSnapshots(context.Context, *RequestListSnapshots) (*ResponseListSnapshots, error) + OfferSnapshot(context.Context, *RequestOfferSnapshot) (*ResponseOfferSnapshot, error) + LoadSnapshotChunk(context.Context, *RequestLoadSnapshotChunk) (*ResponseLoadSnapshotChunk, error) + ApplySnapshotChunk(context.Context, *RequestApplySnapshotChunk) (*ResponseApplySnapshotChunk, error) + PrepareProposal(context.Context, *RequestPrepareProposal) (*ResponsePrepareProposal, error) + ProcessProposal(context.Context, *RequestProcessProposal) (*ResponseProcessProposal, error) + ExtendVote(context.Context, *RequestExtendVote) (*ResponseExtendVote, error) + VerifyVoteExtension(context.Context, *RequestVerifyVoteExtension) (*ResponseVerifyVoteExtension, error) + FinalizeBlock(context.Context, *RequestFinalizeBlock) (*ResponseFinalizeBlock, error) + mustEmbedUnimplementedABCIServer() +} + +// UnimplementedABCIServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedABCIServer struct{} + +func (UnimplementedABCIServer) Echo(context.Context, *RequestEcho) (*ResponseEcho, error) { + return nil, status.Errorf(codes.Unimplemented, "method Echo not implemented") +} +func (UnimplementedABCIServer) Flush(context.Context, *RequestFlush) (*ResponseFlush, error) { + return nil, status.Errorf(codes.Unimplemented, "method Flush not implemented") +} +func (UnimplementedABCIServer) Info(context.Context, *RequestInfo) (*ResponseInfo, error) { + return nil, status.Errorf(codes.Unimplemented, "method Info not implemented") +} +func (UnimplementedABCIServer) CheckTx(context.Context, *RequestCheckTx) (*ResponseCheckTx, error) { + return nil, status.Errorf(codes.Unimplemented, "method CheckTx not implemented") +} +func (UnimplementedABCIServer) Query(context.Context, *RequestQuery) (*ResponseQuery, error) { + return nil, status.Errorf(codes.Unimplemented, "method Query not implemented") +} +func (UnimplementedABCIServer) Commit(context.Context, *RequestCommit) (*ResponseCommit, error) { + return nil, status.Errorf(codes.Unimplemented, "method Commit not implemented") +} +func (UnimplementedABCIServer) InitChain(context.Context, *RequestInitChain) (*ResponseInitChain, error) { + return nil, status.Errorf(codes.Unimplemented, "method InitChain not implemented") +} +func (UnimplementedABCIServer) ListSnapshots(context.Context, *RequestListSnapshots) (*ResponseListSnapshots, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListSnapshots not implemented") +} +func (UnimplementedABCIServer) OfferSnapshot(context.Context, *RequestOfferSnapshot) (*ResponseOfferSnapshot, error) { + return nil, status.Errorf(codes.Unimplemented, "method OfferSnapshot not implemented") +} +func (UnimplementedABCIServer) LoadSnapshotChunk(context.Context, *RequestLoadSnapshotChunk) (*ResponseLoadSnapshotChunk, error) { + return nil, status.Errorf(codes.Unimplemented, "method LoadSnapshotChunk not implemented") +} +func (UnimplementedABCIServer) ApplySnapshotChunk(context.Context, *RequestApplySnapshotChunk) (*ResponseApplySnapshotChunk, error) { + return nil, status.Errorf(codes.Unimplemented, "method ApplySnapshotChunk not implemented") +} +func (UnimplementedABCIServer) PrepareProposal(context.Context, *RequestPrepareProposal) (*ResponsePrepareProposal, error) { + return nil, status.Errorf(codes.Unimplemented, "method PrepareProposal not implemented") +} +func (UnimplementedABCIServer) ProcessProposal(context.Context, *RequestProcessProposal) (*ResponseProcessProposal, error) { + return nil, status.Errorf(codes.Unimplemented, "method ProcessProposal not implemented") +} +func (UnimplementedABCIServer) ExtendVote(context.Context, *RequestExtendVote) (*ResponseExtendVote, error) { + return nil, status.Errorf(codes.Unimplemented, "method ExtendVote not implemented") +} +func (UnimplementedABCIServer) VerifyVoteExtension(context.Context, *RequestVerifyVoteExtension) (*ResponseVerifyVoteExtension, error) { + return nil, status.Errorf(codes.Unimplemented, "method VerifyVoteExtension not implemented") +} +func (UnimplementedABCIServer) FinalizeBlock(context.Context, *RequestFinalizeBlock) (*ResponseFinalizeBlock, error) { + return nil, status.Errorf(codes.Unimplemented, "method FinalizeBlock not implemented") +} +func (UnimplementedABCIServer) mustEmbedUnimplementedABCIServer() {} +func (UnimplementedABCIServer) testEmbeddedByValue() {} + +// UnsafeABCIServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ABCIServer will +// result in compilation errors. +type UnsafeABCIServer interface { + mustEmbedUnimplementedABCIServer() +} + +func RegisterABCIServer(s grpc.ServiceRegistrar, srv ABCIServer) { + // If the following call pancis, it indicates UnimplementedABCIServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&ABCI_ServiceDesc, srv) +} + +func _ABCI_Echo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RequestEcho) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ABCIServer).Echo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ABCI_Echo_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ABCIServer).Echo(ctx, req.(*RequestEcho)) + } + return interceptor(ctx, in, info, handler) +} + +func _ABCI_Flush_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RequestFlush) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ABCIServer).Flush(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ABCI_Flush_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ABCIServer).Flush(ctx, req.(*RequestFlush)) + } + return interceptor(ctx, in, info, handler) +} + +func _ABCI_Info_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RequestInfo) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ABCIServer).Info(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ABCI_Info_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ABCIServer).Info(ctx, req.(*RequestInfo)) + } + return interceptor(ctx, in, info, handler) +} + +func _ABCI_CheckTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RequestCheckTx) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ABCIServer).CheckTx(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ABCI_CheckTx_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ABCIServer).CheckTx(ctx, req.(*RequestCheckTx)) + } + return interceptor(ctx, in, info, handler) +} + +func _ABCI_Query_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RequestQuery) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ABCIServer).Query(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ABCI_Query_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ABCIServer).Query(ctx, req.(*RequestQuery)) + } + return interceptor(ctx, in, info, handler) +} + +func _ABCI_Commit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RequestCommit) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ABCIServer).Commit(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ABCI_Commit_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ABCIServer).Commit(ctx, req.(*RequestCommit)) + } + return interceptor(ctx, in, info, handler) +} + +func _ABCI_InitChain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RequestInitChain) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ABCIServer).InitChain(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ABCI_InitChain_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ABCIServer).InitChain(ctx, req.(*RequestInitChain)) + } + return interceptor(ctx, in, info, handler) +} + +func _ABCI_ListSnapshots_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RequestListSnapshots) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ABCIServer).ListSnapshots(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ABCI_ListSnapshots_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ABCIServer).ListSnapshots(ctx, req.(*RequestListSnapshots)) + } + return interceptor(ctx, in, info, handler) +} + +func _ABCI_OfferSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RequestOfferSnapshot) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ABCIServer).OfferSnapshot(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ABCI_OfferSnapshot_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ABCIServer).OfferSnapshot(ctx, req.(*RequestOfferSnapshot)) + } + return interceptor(ctx, in, info, handler) +} + +func _ABCI_LoadSnapshotChunk_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RequestLoadSnapshotChunk) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ABCIServer).LoadSnapshotChunk(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ABCI_LoadSnapshotChunk_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ABCIServer).LoadSnapshotChunk(ctx, req.(*RequestLoadSnapshotChunk)) + } + return interceptor(ctx, in, info, handler) +} + +func _ABCI_ApplySnapshotChunk_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RequestApplySnapshotChunk) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ABCIServer).ApplySnapshotChunk(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ABCI_ApplySnapshotChunk_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ABCIServer).ApplySnapshotChunk(ctx, req.(*RequestApplySnapshotChunk)) + } + return interceptor(ctx, in, info, handler) +} + +func _ABCI_PrepareProposal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RequestPrepareProposal) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ABCIServer).PrepareProposal(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ABCI_PrepareProposal_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ABCIServer).PrepareProposal(ctx, req.(*RequestPrepareProposal)) + } + return interceptor(ctx, in, info, handler) +} + +func _ABCI_ProcessProposal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RequestProcessProposal) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ABCIServer).ProcessProposal(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ABCI_ProcessProposal_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ABCIServer).ProcessProposal(ctx, req.(*RequestProcessProposal)) + } + return interceptor(ctx, in, info, handler) +} + +func _ABCI_ExtendVote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RequestExtendVote) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ABCIServer).ExtendVote(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ABCI_ExtendVote_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ABCIServer).ExtendVote(ctx, req.(*RequestExtendVote)) + } + return interceptor(ctx, in, info, handler) +} + +func _ABCI_VerifyVoteExtension_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RequestVerifyVoteExtension) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ABCIServer).VerifyVoteExtension(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ABCI_VerifyVoteExtension_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ABCIServer).VerifyVoteExtension(ctx, req.(*RequestVerifyVoteExtension)) + } + return interceptor(ctx, in, info, handler) +} + +func _ABCI_FinalizeBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RequestFinalizeBlock) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ABCIServer).FinalizeBlock(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ABCI_FinalizeBlock_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ABCIServer).FinalizeBlock(ctx, req.(*RequestFinalizeBlock)) + } + return interceptor(ctx, in, info, handler) +} + +// ABCI_ServiceDesc is the grpc.ServiceDesc for ABCI service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var ABCI_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "tendermint.abci.ABCI", + HandlerType: (*ABCIServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Echo", + Handler: _ABCI_Echo_Handler, + }, + { + MethodName: "Flush", + Handler: _ABCI_Flush_Handler, + }, + { + MethodName: "Info", + Handler: _ABCI_Info_Handler, + }, + { + MethodName: "CheckTx", + Handler: _ABCI_CheckTx_Handler, + }, + { + MethodName: "Query", + Handler: _ABCI_Query_Handler, + }, + { + MethodName: "Commit", + Handler: _ABCI_Commit_Handler, + }, + { + MethodName: "InitChain", + Handler: _ABCI_InitChain_Handler, + }, + { + MethodName: "ListSnapshots", + Handler: _ABCI_ListSnapshots_Handler, + }, + { + MethodName: "OfferSnapshot", + Handler: _ABCI_OfferSnapshot_Handler, + }, + { + MethodName: "LoadSnapshotChunk", + Handler: _ABCI_LoadSnapshotChunk_Handler, + }, + { + MethodName: "ApplySnapshotChunk", + Handler: _ABCI_ApplySnapshotChunk_Handler, + }, + { + MethodName: "PrepareProposal", + Handler: _ABCI_PrepareProposal_Handler, + }, + { + MethodName: "ProcessProposal", + Handler: _ABCI_ProcessProposal_Handler, + }, + { + MethodName: "ExtendVote", + Handler: _ABCI_ExtendVote_Handler, + }, + { + MethodName: "VerifyVoteExtension", + Handler: _ABCI_VerifyVoteExtension_Handler, + }, + { + MethodName: "FinalizeBlock", + Handler: _ABCI_FinalizeBlock_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "tendermint/abci/types.proto", +} diff --git a/api/cometbft/crypto/v1/keys.pulsar.go b/api/tendermint/crypto/keys.pulsar.go similarity index 68% rename from api/cometbft/crypto/v1/keys.pulsar.go rename to api/tendermint/crypto/keys.pulsar.go index 53233b9c66..4a20760327 100644 --- a/api/cometbft/crypto/v1/keys.pulsar.go +++ b/api/tendermint/crypto/keys.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package cryptov1 +package crypto import ( fmt "fmt" @@ -17,15 +17,13 @@ var ( md_PublicKey protoreflect.MessageDescriptor fd_PublicKey_ed25519 protoreflect.FieldDescriptor fd_PublicKey_secp256k1 protoreflect.FieldDescriptor - fd_PublicKey_bls12381 protoreflect.FieldDescriptor ) func init() { - file_cometbft_crypto_v1_keys_proto_init() - md_PublicKey = File_cometbft_crypto_v1_keys_proto.Messages().ByName("PublicKey") + file_tendermint_crypto_keys_proto_init() + md_PublicKey = File_tendermint_crypto_keys_proto.Messages().ByName("PublicKey") fd_PublicKey_ed25519 = md_PublicKey.Fields().ByName("ed25519") fd_PublicKey_secp256k1 = md_PublicKey.Fields().ByName("secp256k1") - fd_PublicKey_bls12381 = md_PublicKey.Fields().ByName("bls12381") } var _ protoreflect.Message = (*fastReflection_PublicKey)(nil) @@ -37,7 +35,7 @@ func (x *PublicKey) ProtoReflect() protoreflect.Message { } func (x *PublicKey) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_crypto_v1_keys_proto_msgTypes[0] + mi := &file_tendermint_crypto_keys_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -107,12 +105,6 @@ func (x *fastReflection_PublicKey) Range(f func(protoreflect.FieldDescriptor, pr if !f(fd_PublicKey_secp256k1, value) { return } - case *PublicKey_Bls12381: - v := o.Bls12381 - value := protoreflect.ValueOfBytes(v) - if !f(fd_PublicKey_bls12381, value) { - return - } } } } @@ -130,7 +122,7 @@ func (x *fastReflection_PublicKey) Range(f func(protoreflect.FieldDescriptor, pr // a repeated field is populated if it is non-empty. func (x *fastReflection_PublicKey) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.crypto.v1.PublicKey.ed25519": + case "tendermint.crypto.PublicKey.ed25519": if x.Sum == nil { return false } else if _, ok := x.Sum.(*PublicKey_Ed25519); ok { @@ -138,7 +130,7 @@ func (x *fastReflection_PublicKey) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "cometbft.crypto.v1.PublicKey.secp256k1": + case "tendermint.crypto.PublicKey.secp256k1": if x.Sum == nil { return false } else if _, ok := x.Sum.(*PublicKey_Secp256K1); ok { @@ -146,19 +138,11 @@ func (x *fastReflection_PublicKey) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "cometbft.crypto.v1.PublicKey.bls12381": - if x.Sum == nil { - return false - } else if _, ok := x.Sum.(*PublicKey_Bls12381); ok { - return true - } else { - return false - } default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.PublicKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.PublicKey")) } - panic(fmt.Errorf("message cometbft.crypto.v1.PublicKey does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.crypto.PublicKey does not contain field %s", fd.FullName())) } } @@ -170,17 +154,15 @@ func (x *fastReflection_PublicKey) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_PublicKey) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.crypto.v1.PublicKey.ed25519": + case "tendermint.crypto.PublicKey.ed25519": x.Sum = nil - case "cometbft.crypto.v1.PublicKey.secp256k1": - x.Sum = nil - case "cometbft.crypto.v1.PublicKey.bls12381": + case "tendermint.crypto.PublicKey.secp256k1": x.Sum = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.PublicKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.PublicKey")) } - panic(fmt.Errorf("message cometbft.crypto.v1.PublicKey does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.crypto.PublicKey does not contain field %s", fd.FullName())) } } @@ -192,7 +174,7 @@ func (x *fastReflection_PublicKey) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_PublicKey) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.crypto.v1.PublicKey.ed25519": + case "tendermint.crypto.PublicKey.ed25519": if x.Sum == nil { return protoreflect.ValueOfBytes(nil) } else if v, ok := x.Sum.(*PublicKey_Ed25519); ok { @@ -200,7 +182,7 @@ func (x *fastReflection_PublicKey) Get(descriptor protoreflect.FieldDescriptor) } else { return protoreflect.ValueOfBytes(nil) } - case "cometbft.crypto.v1.PublicKey.secp256k1": + case "tendermint.crypto.PublicKey.secp256k1": if x.Sum == nil { return protoreflect.ValueOfBytes(nil) } else if v, ok := x.Sum.(*PublicKey_Secp256K1); ok { @@ -208,19 +190,11 @@ func (x *fastReflection_PublicKey) Get(descriptor protoreflect.FieldDescriptor) } else { return protoreflect.ValueOfBytes(nil) } - case "cometbft.crypto.v1.PublicKey.bls12381": - if x.Sum == nil { - return protoreflect.ValueOfBytes(nil) - } else if v, ok := x.Sum.(*PublicKey_Bls12381); ok { - return protoreflect.ValueOfBytes(v.Bls12381) - } else { - return protoreflect.ValueOfBytes(nil) - } default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.PublicKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.PublicKey")) } - panic(fmt.Errorf("message cometbft.crypto.v1.PublicKey does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.crypto.PublicKey does not contain field %s", descriptor.FullName())) } } @@ -236,20 +210,17 @@ func (x *fastReflection_PublicKey) Get(descriptor protoreflect.FieldDescriptor) // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_PublicKey) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.crypto.v1.PublicKey.ed25519": + case "tendermint.crypto.PublicKey.ed25519": cv := value.Bytes() x.Sum = &PublicKey_Ed25519{Ed25519: cv} - case "cometbft.crypto.v1.PublicKey.secp256k1": + case "tendermint.crypto.PublicKey.secp256k1": cv := value.Bytes() x.Sum = &PublicKey_Secp256K1{Secp256K1: cv} - case "cometbft.crypto.v1.PublicKey.bls12381": - cv := value.Bytes() - x.Sum = &PublicKey_Bls12381{Bls12381: cv} default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.PublicKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.PublicKey")) } - panic(fmt.Errorf("message cometbft.crypto.v1.PublicKey does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.crypto.PublicKey does not contain field %s", fd.FullName())) } } @@ -265,17 +236,15 @@ func (x *fastReflection_PublicKey) Set(fd protoreflect.FieldDescriptor, value pr // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_PublicKey) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.crypto.v1.PublicKey.ed25519": - panic(fmt.Errorf("field ed25519 of message cometbft.crypto.v1.PublicKey is not mutable")) - case "cometbft.crypto.v1.PublicKey.secp256k1": - panic(fmt.Errorf("field secp256k1 of message cometbft.crypto.v1.PublicKey is not mutable")) - case "cometbft.crypto.v1.PublicKey.bls12381": - panic(fmt.Errorf("field bls12381 of message cometbft.crypto.v1.PublicKey is not mutable")) + case "tendermint.crypto.PublicKey.ed25519": + panic(fmt.Errorf("field ed25519 of message tendermint.crypto.PublicKey is not mutable")) + case "tendermint.crypto.PublicKey.secp256k1": + panic(fmt.Errorf("field secp256k1 of message tendermint.crypto.PublicKey is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.PublicKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.PublicKey")) } - panic(fmt.Errorf("message cometbft.crypto.v1.PublicKey does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.crypto.PublicKey does not contain field %s", fd.FullName())) } } @@ -284,17 +253,15 @@ func (x *fastReflection_PublicKey) Mutable(fd protoreflect.FieldDescriptor) prot // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_PublicKey) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.crypto.v1.PublicKey.ed25519": + case "tendermint.crypto.PublicKey.ed25519": return protoreflect.ValueOfBytes(nil) - case "cometbft.crypto.v1.PublicKey.secp256k1": - return protoreflect.ValueOfBytes(nil) - case "cometbft.crypto.v1.PublicKey.bls12381": + case "tendermint.crypto.PublicKey.secp256k1": return protoreflect.ValueOfBytes(nil) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.PublicKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.PublicKey")) } - panic(fmt.Errorf("message cometbft.crypto.v1.PublicKey does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.crypto.PublicKey does not contain field %s", fd.FullName())) } } @@ -303,7 +270,7 @@ func (x *fastReflection_PublicKey) NewField(fd protoreflect.FieldDescriptor) pro // It panics if the oneof descriptor does not belong to this message. func (x *fastReflection_PublicKey) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { - case "cometbft.crypto.v1.PublicKey.sum": + case "tendermint.crypto.PublicKey.sum": if x.Sum == nil { return nil } @@ -312,11 +279,9 @@ func (x *fastReflection_PublicKey) WhichOneof(d protoreflect.OneofDescriptor) pr return x.Descriptor().Fields().ByName("ed25519") case *PublicKey_Secp256K1: return x.Descriptor().Fields().ByName("secp256k1") - case *PublicKey_Bls12381: - return x.Descriptor().Fields().ByName("bls12381") } default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.crypto.v1.PublicKey", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.crypto.PublicKey", d.FullName())) } panic("unreachable") } @@ -384,12 +349,6 @@ func (x *fastReflection_PublicKey) ProtoMethods() *protoiface.Methods { } l = len(x.Secp256K1) n += 1 + l + runtime.Sov(uint64(l)) - case *PublicKey_Bls12381: - if x == nil { - break - } - l = len(x.Bls12381) - n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -433,12 +392,6 @@ func (x *fastReflection_PublicKey) ProtoMethods() *protoiface.Methods { i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Secp256K1))) i-- dAtA[i] = 0x12 - case *PublicKey_Bls12381: - i -= len(x.Bls12381) - copy(dAtA[i:], x.Bls12381) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Bls12381))) - i-- - dAtA[i] = 0x1a } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -555,39 +508,6 @@ func (x *fastReflection_PublicKey) ProtoMethods() *protoiface.Methods { copy(v, dAtA[iNdEx:postIndex]) x.Sum = &PublicKey_Secp256K1{v} iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Bls12381", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - v := make([]byte, postIndex-iNdEx) - copy(v, dAtA[iNdEx:postIndex]) - x.Sum = &PublicKey_Bls12381{v} - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -627,7 +547,7 @@ func (x *fastReflection_PublicKey) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: cometbft/crypto/v1/keys.proto +// source: tendermint/crypto/keys.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -636,26 +556,23 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// PublicKey is a ED25519 or a secp256k1 public key. +// PublicKey defines the keys available for use with Validators type PublicKey struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // The type of key. - // // Types that are assignable to Sum: // // *PublicKey_Ed25519 // *PublicKey_Secp256K1 - // *PublicKey_Bls12381 Sum isPublicKey_Sum `protobuf_oneof:"sum"` } func (x *PublicKey) Reset() { *x = PublicKey{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_crypto_v1_keys_proto_msgTypes[0] + mi := &file_tendermint_crypto_keys_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -669,7 +586,7 @@ func (*PublicKey) ProtoMessage() {} // Deprecated: Use PublicKey.ProtoReflect.Descriptor instead. func (*PublicKey) Descriptor() ([]byte, []int) { - return file_cometbft_crypto_v1_keys_proto_rawDescGZIP(), []int{0} + return file_tendermint_crypto_keys_proto_rawDescGZIP(), []int{0} } func (x *PublicKey) GetSum() isPublicKey_Sum { @@ -693,13 +610,6 @@ func (x *PublicKey) GetSecp256K1() []byte { return nil } -func (x *PublicKey) GetBls12381() []byte { - if x, ok := x.GetSum().(*PublicKey_Bls12381); ok { - return x.Bls12381 - } - return nil -} - type isPublicKey_Sum interface { isPublicKey_Sum() } @@ -712,63 +622,54 @@ type PublicKey_Secp256K1 struct { Secp256K1 []byte `protobuf:"bytes,2,opt,name=secp256k1,proto3,oneof"` } -type PublicKey_Bls12381 struct { - Bls12381 []byte `protobuf:"bytes,3,opt,name=bls12381,proto3,oneof"` -} - func (*PublicKey_Ed25519) isPublicKey_Sum() {} func (*PublicKey_Secp256K1) isPublicKey_Sum() {} -func (*PublicKey_Bls12381) isPublicKey_Sum() {} +var File_tendermint_crypto_keys_proto protoreflect.FileDescriptor -var File_cometbft_crypto_v1_keys_proto protoreflect.FileDescriptor - -var file_cometbft_crypto_v1_keys_proto_rawDesc = []byte{ - 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74, - 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x12, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, - 0x2e, 0x76, 0x31, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, - 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x76, 0x0a, 0x09, 0x50, 0x75, 0x62, - 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x1a, 0x0a, 0x07, 0x65, 0x64, 0x32, 0x35, 0x35, 0x31, - 0x39, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x07, 0x65, 0x64, 0x32, 0x35, 0x35, - 0x31, 0x39, 0x12, 0x1e, 0x0a, 0x09, 0x73, 0x65, 0x63, 0x70, 0x32, 0x35, 0x36, 0x6b, 0x31, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x09, 0x73, 0x65, 0x63, 0x70, 0x32, 0x35, 0x36, - 0x6b, 0x31, 0x12, 0x1c, 0x0a, 0x08, 0x62, 0x6c, 0x73, 0x31, 0x32, 0x33, 0x38, 0x31, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x08, 0x62, 0x6c, 0x73, 0x31, 0x32, 0x33, 0x38, 0x31, +var file_tendermint_crypto_keys_proto_rawDesc = []byte{ + 0x0a, 0x1c, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x63, 0x72, 0x79, + 0x70, 0x74, 0x6f, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, + 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, + 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x58, 0x0a, 0x09, 0x50, 0x75, 0x62, 0x6c, 0x69, + 0x63, 0x4b, 0x65, 0x79, 0x12, 0x1a, 0x0a, 0x07, 0x65, 0x64, 0x32, 0x35, 0x35, 0x31, 0x39, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x07, 0x65, 0x64, 0x32, 0x35, 0x35, 0x31, 0x39, + 0x12, 0x1e, 0x0a, 0x09, 0x73, 0x65, 0x63, 0x70, 0x32, 0x35, 0x36, 0x6b, 0x31, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x09, 0x73, 0x65, 0x63, 0x70, 0x32, 0x35, 0x36, 0x6b, 0x31, 0x3a, 0x08, 0xe8, 0xa0, 0x1f, 0x01, 0xe8, 0xa1, 0x1f, 0x01, 0x42, 0x05, 0x0a, 0x03, 0x73, 0x75, - 0x6d, 0x42, 0xbb, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, - 0x66, 0x74, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x76, 0x31, 0x42, 0x09, 0x4b, 0x65, - 0x79, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x65, - 0x74, 0x62, 0x66, 0x74, 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x3b, 0x63, - 0x72, 0x79, 0x70, 0x74, 0x6f, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x12, - 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, - 0x56, 0x31, 0xca, 0x02, 0x12, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x5c, 0x43, 0x72, - 0x79, 0x70, 0x74, 0x6f, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1e, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, - 0x66, 0x74, 0x5c, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x43, 0x6f, 0x6d, 0x65, 0x74, - 0x62, 0x66, 0x74, 0x3a, 0x3a, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x3a, 0x3a, 0x56, 0x31, 0x62, + 0x6d, 0x42, 0xab, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x42, 0x09, 0x4b, 0x65, 0x79, + 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x22, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x74, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0xa2, 0x02, 0x03, 0x54, + 0x43, 0x58, 0xaa, 0x02, 0x11, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, + 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0xca, 0x02, 0x11, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, + 0x69, 0x6e, 0x74, 0x5c, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0xe2, 0x02, 0x1d, 0x54, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x5c, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x5c, 0x47, + 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x12, 0x54, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x3a, 0x3a, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_cometbft_crypto_v1_keys_proto_rawDescOnce sync.Once - file_cometbft_crypto_v1_keys_proto_rawDescData = file_cometbft_crypto_v1_keys_proto_rawDesc + file_tendermint_crypto_keys_proto_rawDescOnce sync.Once + file_tendermint_crypto_keys_proto_rawDescData = file_tendermint_crypto_keys_proto_rawDesc ) -func file_cometbft_crypto_v1_keys_proto_rawDescGZIP() []byte { - file_cometbft_crypto_v1_keys_proto_rawDescOnce.Do(func() { - file_cometbft_crypto_v1_keys_proto_rawDescData = protoimpl.X.CompressGZIP(file_cometbft_crypto_v1_keys_proto_rawDescData) +func file_tendermint_crypto_keys_proto_rawDescGZIP() []byte { + file_tendermint_crypto_keys_proto_rawDescOnce.Do(func() { + file_tendermint_crypto_keys_proto_rawDescData = protoimpl.X.CompressGZIP(file_tendermint_crypto_keys_proto_rawDescData) }) - return file_cometbft_crypto_v1_keys_proto_rawDescData + return file_tendermint_crypto_keys_proto_rawDescData } -var file_cometbft_crypto_v1_keys_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_cometbft_crypto_v1_keys_proto_goTypes = []interface{}{ - (*PublicKey)(nil), // 0: cometbft.crypto.v1.PublicKey +var file_tendermint_crypto_keys_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_tendermint_crypto_keys_proto_goTypes = []interface{}{ + (*PublicKey)(nil), // 0: tendermint.crypto.PublicKey } -var file_cometbft_crypto_v1_keys_proto_depIdxs = []int32{ +var file_tendermint_crypto_keys_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name @@ -776,13 +677,13 @@ var file_cometbft_crypto_v1_keys_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for field type_name } -func init() { file_cometbft_crypto_v1_keys_proto_init() } -func file_cometbft_crypto_v1_keys_proto_init() { - if File_cometbft_crypto_v1_keys_proto != nil { +func init() { file_tendermint_crypto_keys_proto_init() } +func file_tendermint_crypto_keys_proto_init() { + if File_tendermint_crypto_keys_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_cometbft_crypto_v1_keys_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_crypto_keys_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*PublicKey); i { case 0: return &v.state @@ -795,27 +696,26 @@ func file_cometbft_crypto_v1_keys_proto_init() { } } } - file_cometbft_crypto_v1_keys_proto_msgTypes[0].OneofWrappers = []interface{}{ + file_tendermint_crypto_keys_proto_msgTypes[0].OneofWrappers = []interface{}{ (*PublicKey_Ed25519)(nil), (*PublicKey_Secp256K1)(nil), - (*PublicKey_Bls12381)(nil), } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cometbft_crypto_v1_keys_proto_rawDesc, + RawDescriptor: file_tendermint_crypto_keys_proto_rawDesc, NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_cometbft_crypto_v1_keys_proto_goTypes, - DependencyIndexes: file_cometbft_crypto_v1_keys_proto_depIdxs, - MessageInfos: file_cometbft_crypto_v1_keys_proto_msgTypes, + GoTypes: file_tendermint_crypto_keys_proto_goTypes, + DependencyIndexes: file_tendermint_crypto_keys_proto_depIdxs, + MessageInfos: file_tendermint_crypto_keys_proto_msgTypes, }.Build() - File_cometbft_crypto_v1_keys_proto = out.File - file_cometbft_crypto_v1_keys_proto_rawDesc = nil - file_cometbft_crypto_v1_keys_proto_goTypes = nil - file_cometbft_crypto_v1_keys_proto_depIdxs = nil + File_tendermint_crypto_keys_proto = out.File + file_tendermint_crypto_keys_proto_rawDesc = nil + file_tendermint_crypto_keys_proto_goTypes = nil + file_tendermint_crypto_keys_proto_depIdxs = nil } diff --git a/api/cometbft/crypto/v1/proof.pulsar.go b/api/tendermint/crypto/proof.pulsar.go similarity index 85% rename from api/cometbft/crypto/v1/proof.pulsar.go rename to api/tendermint/crypto/proof.pulsar.go index 937c334a20..a3128844e4 100644 --- a/api/cometbft/crypto/v1/proof.pulsar.go +++ b/api/tendermint/crypto/proof.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package cryptov1 +package crypto import ( fmt "fmt" @@ -68,8 +68,8 @@ var ( ) func init() { - file_cometbft_crypto_v1_proof_proto_init() - md_Proof = File_cometbft_crypto_v1_proof_proto.Messages().ByName("Proof") + file_tendermint_crypto_proof_proto_init() + md_Proof = File_tendermint_crypto_proof_proto.Messages().ByName("Proof") fd_Proof_total = md_Proof.Fields().ByName("total") fd_Proof_index = md_Proof.Fields().ByName("index") fd_Proof_leaf_hash = md_Proof.Fields().ByName("leaf_hash") @@ -85,7 +85,7 @@ func (x *Proof) ProtoReflect() protoreflect.Message { } func (x *Proof) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_crypto_v1_proof_proto_msgTypes[0] + mi := &file_tendermint_crypto_proof_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -180,19 +180,19 @@ func (x *fastReflection_Proof) Range(f func(protoreflect.FieldDescriptor, protor // a repeated field is populated if it is non-empty. func (x *fastReflection_Proof) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.crypto.v1.Proof.total": + case "tendermint.crypto.Proof.total": return x.Total != int64(0) - case "cometbft.crypto.v1.Proof.index": + case "tendermint.crypto.Proof.index": return x.Index != int64(0) - case "cometbft.crypto.v1.Proof.leaf_hash": + case "tendermint.crypto.Proof.leaf_hash": return len(x.LeafHash) != 0 - case "cometbft.crypto.v1.Proof.aunts": + case "tendermint.crypto.Proof.aunts": return len(x.Aunts) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.Proof")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.Proof")) } - panic(fmt.Errorf("message cometbft.crypto.v1.Proof does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.crypto.Proof does not contain field %s", fd.FullName())) } } @@ -204,19 +204,19 @@ func (x *fastReflection_Proof) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Proof) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.crypto.v1.Proof.total": + case "tendermint.crypto.Proof.total": x.Total = int64(0) - case "cometbft.crypto.v1.Proof.index": + case "tendermint.crypto.Proof.index": x.Index = int64(0) - case "cometbft.crypto.v1.Proof.leaf_hash": + case "tendermint.crypto.Proof.leaf_hash": x.LeafHash = nil - case "cometbft.crypto.v1.Proof.aunts": + case "tendermint.crypto.Proof.aunts": x.Aunts = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.Proof")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.Proof")) } - panic(fmt.Errorf("message cometbft.crypto.v1.Proof does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.crypto.Proof does not contain field %s", fd.FullName())) } } @@ -228,16 +228,16 @@ func (x *fastReflection_Proof) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Proof) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.crypto.v1.Proof.total": + case "tendermint.crypto.Proof.total": value := x.Total return protoreflect.ValueOfInt64(value) - case "cometbft.crypto.v1.Proof.index": + case "tendermint.crypto.Proof.index": value := x.Index return protoreflect.ValueOfInt64(value) - case "cometbft.crypto.v1.Proof.leaf_hash": + case "tendermint.crypto.Proof.leaf_hash": value := x.LeafHash return protoreflect.ValueOfBytes(value) - case "cometbft.crypto.v1.Proof.aunts": + case "tendermint.crypto.Proof.aunts": if len(x.Aunts) == 0 { return protoreflect.ValueOfList(&_Proof_4_list{}) } @@ -245,9 +245,9 @@ func (x *fastReflection_Proof) Get(descriptor protoreflect.FieldDescriptor) prot return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.Proof")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.Proof")) } - panic(fmt.Errorf("message cometbft.crypto.v1.Proof does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.crypto.Proof does not contain field %s", descriptor.FullName())) } } @@ -263,21 +263,21 @@ func (x *fastReflection_Proof) Get(descriptor protoreflect.FieldDescriptor) prot // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Proof) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.crypto.v1.Proof.total": + case "tendermint.crypto.Proof.total": x.Total = value.Int() - case "cometbft.crypto.v1.Proof.index": + case "tendermint.crypto.Proof.index": x.Index = value.Int() - case "cometbft.crypto.v1.Proof.leaf_hash": + case "tendermint.crypto.Proof.leaf_hash": x.LeafHash = value.Bytes() - case "cometbft.crypto.v1.Proof.aunts": + case "tendermint.crypto.Proof.aunts": lv := value.List() clv := lv.(*_Proof_4_list) x.Aunts = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.Proof")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.Proof")) } - panic(fmt.Errorf("message cometbft.crypto.v1.Proof does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.crypto.Proof does not contain field %s", fd.FullName())) } } @@ -293,23 +293,23 @@ func (x *fastReflection_Proof) Set(fd protoreflect.FieldDescriptor, value protor // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Proof) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.crypto.v1.Proof.aunts": + case "tendermint.crypto.Proof.aunts": if x.Aunts == nil { x.Aunts = [][]byte{} } value := &_Proof_4_list{list: &x.Aunts} return protoreflect.ValueOfList(value) - case "cometbft.crypto.v1.Proof.total": - panic(fmt.Errorf("field total of message cometbft.crypto.v1.Proof is not mutable")) - case "cometbft.crypto.v1.Proof.index": - panic(fmt.Errorf("field index of message cometbft.crypto.v1.Proof is not mutable")) - case "cometbft.crypto.v1.Proof.leaf_hash": - panic(fmt.Errorf("field leaf_hash of message cometbft.crypto.v1.Proof is not mutable")) + case "tendermint.crypto.Proof.total": + panic(fmt.Errorf("field total of message tendermint.crypto.Proof is not mutable")) + case "tendermint.crypto.Proof.index": + panic(fmt.Errorf("field index of message tendermint.crypto.Proof is not mutable")) + case "tendermint.crypto.Proof.leaf_hash": + panic(fmt.Errorf("field leaf_hash of message tendermint.crypto.Proof is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.Proof")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.Proof")) } - panic(fmt.Errorf("message cometbft.crypto.v1.Proof does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.crypto.Proof does not contain field %s", fd.FullName())) } } @@ -318,20 +318,20 @@ func (x *fastReflection_Proof) Mutable(fd protoreflect.FieldDescriptor) protoref // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Proof) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.crypto.v1.Proof.total": + case "tendermint.crypto.Proof.total": return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.crypto.v1.Proof.index": + case "tendermint.crypto.Proof.index": return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.crypto.v1.Proof.leaf_hash": + case "tendermint.crypto.Proof.leaf_hash": return protoreflect.ValueOfBytes(nil) - case "cometbft.crypto.v1.Proof.aunts": + case "tendermint.crypto.Proof.aunts": list := [][]byte{} return protoreflect.ValueOfList(&_Proof_4_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.Proof")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.Proof")) } - panic(fmt.Errorf("message cometbft.crypto.v1.Proof does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.crypto.Proof does not contain field %s", fd.FullName())) } } @@ -341,7 +341,7 @@ func (x *fastReflection_Proof) NewField(fd protoreflect.FieldDescriptor) protore func (x *fastReflection_Proof) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.crypto.v1.Proof", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.crypto.Proof", d.FullName())) } panic("unreachable") } @@ -662,8 +662,8 @@ var ( ) func init() { - file_cometbft_crypto_v1_proof_proto_init() - md_ValueOp = File_cometbft_crypto_v1_proof_proto.Messages().ByName("ValueOp") + file_tendermint_crypto_proof_proto_init() + md_ValueOp = File_tendermint_crypto_proof_proto.Messages().ByName("ValueOp") fd_ValueOp_key = md_ValueOp.Fields().ByName("key") fd_ValueOp_proof = md_ValueOp.Fields().ByName("proof") } @@ -677,7 +677,7 @@ func (x *ValueOp) ProtoReflect() protoreflect.Message { } func (x *ValueOp) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_crypto_v1_proof_proto_msgTypes[1] + mi := &file_tendermint_crypto_proof_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -760,15 +760,15 @@ func (x *fastReflection_ValueOp) Range(f func(protoreflect.FieldDescriptor, prot // a repeated field is populated if it is non-empty. func (x *fastReflection_ValueOp) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.crypto.v1.ValueOp.key": + case "tendermint.crypto.ValueOp.key": return len(x.Key) != 0 - case "cometbft.crypto.v1.ValueOp.proof": + case "tendermint.crypto.ValueOp.proof": return x.Proof != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.ValueOp")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.ValueOp")) } - panic(fmt.Errorf("message cometbft.crypto.v1.ValueOp does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.crypto.ValueOp does not contain field %s", fd.FullName())) } } @@ -780,15 +780,15 @@ func (x *fastReflection_ValueOp) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ValueOp) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.crypto.v1.ValueOp.key": + case "tendermint.crypto.ValueOp.key": x.Key = nil - case "cometbft.crypto.v1.ValueOp.proof": + case "tendermint.crypto.ValueOp.proof": x.Proof = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.ValueOp")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.ValueOp")) } - panic(fmt.Errorf("message cometbft.crypto.v1.ValueOp does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.crypto.ValueOp does not contain field %s", fd.FullName())) } } @@ -800,17 +800,17 @@ func (x *fastReflection_ValueOp) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_ValueOp) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.crypto.v1.ValueOp.key": + case "tendermint.crypto.ValueOp.key": value := x.Key return protoreflect.ValueOfBytes(value) - case "cometbft.crypto.v1.ValueOp.proof": + case "tendermint.crypto.ValueOp.proof": value := x.Proof return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.ValueOp")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.ValueOp")) } - panic(fmt.Errorf("message cometbft.crypto.v1.ValueOp does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.crypto.ValueOp does not contain field %s", descriptor.FullName())) } } @@ -826,15 +826,15 @@ func (x *fastReflection_ValueOp) Get(descriptor protoreflect.FieldDescriptor) pr // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ValueOp) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.crypto.v1.ValueOp.key": + case "tendermint.crypto.ValueOp.key": x.Key = value.Bytes() - case "cometbft.crypto.v1.ValueOp.proof": + case "tendermint.crypto.ValueOp.proof": x.Proof = value.Message().Interface().(*Proof) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.ValueOp")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.ValueOp")) } - panic(fmt.Errorf("message cometbft.crypto.v1.ValueOp does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.crypto.ValueOp does not contain field %s", fd.FullName())) } } @@ -850,18 +850,18 @@ func (x *fastReflection_ValueOp) Set(fd protoreflect.FieldDescriptor, value prot // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ValueOp) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.crypto.v1.ValueOp.proof": + case "tendermint.crypto.ValueOp.proof": if x.Proof == nil { x.Proof = new(Proof) } return protoreflect.ValueOfMessage(x.Proof.ProtoReflect()) - case "cometbft.crypto.v1.ValueOp.key": - panic(fmt.Errorf("field key of message cometbft.crypto.v1.ValueOp is not mutable")) + case "tendermint.crypto.ValueOp.key": + panic(fmt.Errorf("field key of message tendermint.crypto.ValueOp is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.ValueOp")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.ValueOp")) } - panic(fmt.Errorf("message cometbft.crypto.v1.ValueOp does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.crypto.ValueOp does not contain field %s", fd.FullName())) } } @@ -870,16 +870,16 @@ func (x *fastReflection_ValueOp) Mutable(fd protoreflect.FieldDescriptor) protor // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_ValueOp) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.crypto.v1.ValueOp.key": + case "tendermint.crypto.ValueOp.key": return protoreflect.ValueOfBytes(nil) - case "cometbft.crypto.v1.ValueOp.proof": + case "tendermint.crypto.ValueOp.proof": m := new(Proof) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.ValueOp")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.ValueOp")) } - panic(fmt.Errorf("message cometbft.crypto.v1.ValueOp does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.crypto.ValueOp does not contain field %s", fd.FullName())) } } @@ -889,7 +889,7 @@ func (x *fastReflection_ValueOp) NewField(fd protoreflect.FieldDescriptor) proto func (x *fastReflection_ValueOp) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.crypto.v1.ValueOp", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.crypto.ValueOp", d.FullName())) } panic("unreachable") } @@ -1164,8 +1164,8 @@ var ( ) func init() { - file_cometbft_crypto_v1_proof_proto_init() - md_DominoOp = File_cometbft_crypto_v1_proof_proto.Messages().ByName("DominoOp") + file_tendermint_crypto_proof_proto_init() + md_DominoOp = File_tendermint_crypto_proof_proto.Messages().ByName("DominoOp") fd_DominoOp_key = md_DominoOp.Fields().ByName("key") fd_DominoOp_input = md_DominoOp.Fields().ByName("input") fd_DominoOp_output = md_DominoOp.Fields().ByName("output") @@ -1180,7 +1180,7 @@ func (x *DominoOp) ProtoReflect() protoreflect.Message { } func (x *DominoOp) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_crypto_v1_proof_proto_msgTypes[2] + mi := &file_tendermint_crypto_proof_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1269,17 +1269,17 @@ func (x *fastReflection_DominoOp) Range(f func(protoreflect.FieldDescriptor, pro // a repeated field is populated if it is non-empty. func (x *fastReflection_DominoOp) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.crypto.v1.DominoOp.key": + case "tendermint.crypto.DominoOp.key": return x.Key != "" - case "cometbft.crypto.v1.DominoOp.input": + case "tendermint.crypto.DominoOp.input": return x.Input != "" - case "cometbft.crypto.v1.DominoOp.output": + case "tendermint.crypto.DominoOp.output": return x.Output != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.DominoOp")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.DominoOp")) } - panic(fmt.Errorf("message cometbft.crypto.v1.DominoOp does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.crypto.DominoOp does not contain field %s", fd.FullName())) } } @@ -1291,17 +1291,17 @@ func (x *fastReflection_DominoOp) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DominoOp) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.crypto.v1.DominoOp.key": + case "tendermint.crypto.DominoOp.key": x.Key = "" - case "cometbft.crypto.v1.DominoOp.input": + case "tendermint.crypto.DominoOp.input": x.Input = "" - case "cometbft.crypto.v1.DominoOp.output": + case "tendermint.crypto.DominoOp.output": x.Output = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.DominoOp")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.DominoOp")) } - panic(fmt.Errorf("message cometbft.crypto.v1.DominoOp does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.crypto.DominoOp does not contain field %s", fd.FullName())) } } @@ -1313,20 +1313,20 @@ func (x *fastReflection_DominoOp) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_DominoOp) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.crypto.v1.DominoOp.key": + case "tendermint.crypto.DominoOp.key": value := x.Key return protoreflect.ValueOfString(value) - case "cometbft.crypto.v1.DominoOp.input": + case "tendermint.crypto.DominoOp.input": value := x.Input return protoreflect.ValueOfString(value) - case "cometbft.crypto.v1.DominoOp.output": + case "tendermint.crypto.DominoOp.output": value := x.Output return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.DominoOp")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.DominoOp")) } - panic(fmt.Errorf("message cometbft.crypto.v1.DominoOp does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.crypto.DominoOp does not contain field %s", descriptor.FullName())) } } @@ -1342,17 +1342,17 @@ func (x *fastReflection_DominoOp) Get(descriptor protoreflect.FieldDescriptor) p // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DominoOp) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.crypto.v1.DominoOp.key": + case "tendermint.crypto.DominoOp.key": x.Key = value.Interface().(string) - case "cometbft.crypto.v1.DominoOp.input": + case "tendermint.crypto.DominoOp.input": x.Input = value.Interface().(string) - case "cometbft.crypto.v1.DominoOp.output": + case "tendermint.crypto.DominoOp.output": x.Output = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.DominoOp")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.DominoOp")) } - panic(fmt.Errorf("message cometbft.crypto.v1.DominoOp does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.crypto.DominoOp does not contain field %s", fd.FullName())) } } @@ -1368,17 +1368,17 @@ func (x *fastReflection_DominoOp) Set(fd protoreflect.FieldDescriptor, value pro // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DominoOp) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.crypto.v1.DominoOp.key": - panic(fmt.Errorf("field key of message cometbft.crypto.v1.DominoOp is not mutable")) - case "cometbft.crypto.v1.DominoOp.input": - panic(fmt.Errorf("field input of message cometbft.crypto.v1.DominoOp is not mutable")) - case "cometbft.crypto.v1.DominoOp.output": - panic(fmt.Errorf("field output of message cometbft.crypto.v1.DominoOp is not mutable")) + case "tendermint.crypto.DominoOp.key": + panic(fmt.Errorf("field key of message tendermint.crypto.DominoOp is not mutable")) + case "tendermint.crypto.DominoOp.input": + panic(fmt.Errorf("field input of message tendermint.crypto.DominoOp is not mutable")) + case "tendermint.crypto.DominoOp.output": + panic(fmt.Errorf("field output of message tendermint.crypto.DominoOp is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.DominoOp")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.DominoOp")) } - panic(fmt.Errorf("message cometbft.crypto.v1.DominoOp does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.crypto.DominoOp does not contain field %s", fd.FullName())) } } @@ -1387,17 +1387,17 @@ func (x *fastReflection_DominoOp) Mutable(fd protoreflect.FieldDescriptor) proto // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_DominoOp) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.crypto.v1.DominoOp.key": + case "tendermint.crypto.DominoOp.key": return protoreflect.ValueOfString("") - case "cometbft.crypto.v1.DominoOp.input": + case "tendermint.crypto.DominoOp.input": return protoreflect.ValueOfString("") - case "cometbft.crypto.v1.DominoOp.output": + case "tendermint.crypto.DominoOp.output": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.DominoOp")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.DominoOp")) } - panic(fmt.Errorf("message cometbft.crypto.v1.DominoOp does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.crypto.DominoOp does not contain field %s", fd.FullName())) } } @@ -1407,7 +1407,7 @@ func (x *fastReflection_DominoOp) NewField(fd protoreflect.FieldDescriptor) prot func (x *fastReflection_DominoOp) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.crypto.v1.DominoOp", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.crypto.DominoOp", d.FullName())) } panic("unreachable") } @@ -1712,8 +1712,8 @@ var ( ) func init() { - file_cometbft_crypto_v1_proof_proto_init() - md_ProofOp = File_cometbft_crypto_v1_proof_proto.Messages().ByName("ProofOp") + file_tendermint_crypto_proof_proto_init() + md_ProofOp = File_tendermint_crypto_proof_proto.Messages().ByName("ProofOp") fd_ProofOp_type = md_ProofOp.Fields().ByName("type") fd_ProofOp_key = md_ProofOp.Fields().ByName("key") fd_ProofOp_data = md_ProofOp.Fields().ByName("data") @@ -1728,7 +1728,7 @@ func (x *ProofOp) ProtoReflect() protoreflect.Message { } func (x *ProofOp) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_crypto_v1_proof_proto_msgTypes[3] + mi := &file_tendermint_crypto_proof_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1817,17 +1817,17 @@ func (x *fastReflection_ProofOp) Range(f func(protoreflect.FieldDescriptor, prot // a repeated field is populated if it is non-empty. func (x *fastReflection_ProofOp) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.crypto.v1.ProofOp.type": + case "tendermint.crypto.ProofOp.type": return x.Type_ != "" - case "cometbft.crypto.v1.ProofOp.key": + case "tendermint.crypto.ProofOp.key": return len(x.Key) != 0 - case "cometbft.crypto.v1.ProofOp.data": + case "tendermint.crypto.ProofOp.data": return len(x.Data) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.ProofOp")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.ProofOp")) } - panic(fmt.Errorf("message cometbft.crypto.v1.ProofOp does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.crypto.ProofOp does not contain field %s", fd.FullName())) } } @@ -1839,17 +1839,17 @@ func (x *fastReflection_ProofOp) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ProofOp) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.crypto.v1.ProofOp.type": + case "tendermint.crypto.ProofOp.type": x.Type_ = "" - case "cometbft.crypto.v1.ProofOp.key": + case "tendermint.crypto.ProofOp.key": x.Key = nil - case "cometbft.crypto.v1.ProofOp.data": + case "tendermint.crypto.ProofOp.data": x.Data = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.ProofOp")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.ProofOp")) } - panic(fmt.Errorf("message cometbft.crypto.v1.ProofOp does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.crypto.ProofOp does not contain field %s", fd.FullName())) } } @@ -1861,20 +1861,20 @@ func (x *fastReflection_ProofOp) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_ProofOp) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.crypto.v1.ProofOp.type": + case "tendermint.crypto.ProofOp.type": value := x.Type_ return protoreflect.ValueOfString(value) - case "cometbft.crypto.v1.ProofOp.key": + case "tendermint.crypto.ProofOp.key": value := x.Key return protoreflect.ValueOfBytes(value) - case "cometbft.crypto.v1.ProofOp.data": + case "tendermint.crypto.ProofOp.data": value := x.Data return protoreflect.ValueOfBytes(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.ProofOp")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.ProofOp")) } - panic(fmt.Errorf("message cometbft.crypto.v1.ProofOp does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.crypto.ProofOp does not contain field %s", descriptor.FullName())) } } @@ -1890,17 +1890,17 @@ func (x *fastReflection_ProofOp) Get(descriptor protoreflect.FieldDescriptor) pr // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ProofOp) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.crypto.v1.ProofOp.type": + case "tendermint.crypto.ProofOp.type": x.Type_ = value.Interface().(string) - case "cometbft.crypto.v1.ProofOp.key": + case "tendermint.crypto.ProofOp.key": x.Key = value.Bytes() - case "cometbft.crypto.v1.ProofOp.data": + case "tendermint.crypto.ProofOp.data": x.Data = value.Bytes() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.ProofOp")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.ProofOp")) } - panic(fmt.Errorf("message cometbft.crypto.v1.ProofOp does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.crypto.ProofOp does not contain field %s", fd.FullName())) } } @@ -1916,17 +1916,17 @@ func (x *fastReflection_ProofOp) Set(fd protoreflect.FieldDescriptor, value prot // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ProofOp) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.crypto.v1.ProofOp.type": - panic(fmt.Errorf("field type of message cometbft.crypto.v1.ProofOp is not mutable")) - case "cometbft.crypto.v1.ProofOp.key": - panic(fmt.Errorf("field key of message cometbft.crypto.v1.ProofOp is not mutable")) - case "cometbft.crypto.v1.ProofOp.data": - panic(fmt.Errorf("field data of message cometbft.crypto.v1.ProofOp is not mutable")) + case "tendermint.crypto.ProofOp.type": + panic(fmt.Errorf("field type of message tendermint.crypto.ProofOp is not mutable")) + case "tendermint.crypto.ProofOp.key": + panic(fmt.Errorf("field key of message tendermint.crypto.ProofOp is not mutable")) + case "tendermint.crypto.ProofOp.data": + panic(fmt.Errorf("field data of message tendermint.crypto.ProofOp is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.ProofOp")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.ProofOp")) } - panic(fmt.Errorf("message cometbft.crypto.v1.ProofOp does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.crypto.ProofOp does not contain field %s", fd.FullName())) } } @@ -1935,17 +1935,17 @@ func (x *fastReflection_ProofOp) Mutable(fd protoreflect.FieldDescriptor) protor // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_ProofOp) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.crypto.v1.ProofOp.type": + case "tendermint.crypto.ProofOp.type": return protoreflect.ValueOfString("") - case "cometbft.crypto.v1.ProofOp.key": + case "tendermint.crypto.ProofOp.key": return protoreflect.ValueOfBytes(nil) - case "cometbft.crypto.v1.ProofOp.data": + case "tendermint.crypto.ProofOp.data": return protoreflect.ValueOfBytes(nil) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.ProofOp")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.ProofOp")) } - panic(fmt.Errorf("message cometbft.crypto.v1.ProofOp does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.crypto.ProofOp does not contain field %s", fd.FullName())) } } @@ -1955,7 +1955,7 @@ func (x *fastReflection_ProofOp) NewField(fd protoreflect.FieldDescriptor) proto func (x *fastReflection_ProofOp) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.crypto.v1.ProofOp", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.crypto.ProofOp", d.FullName())) } panic("unreachable") } @@ -2313,8 +2313,8 @@ var ( ) func init() { - file_cometbft_crypto_v1_proof_proto_init() - md_ProofOps = File_cometbft_crypto_v1_proof_proto.Messages().ByName("ProofOps") + file_tendermint_crypto_proof_proto_init() + md_ProofOps = File_tendermint_crypto_proof_proto.Messages().ByName("ProofOps") fd_ProofOps_ops = md_ProofOps.Fields().ByName("ops") } @@ -2327,7 +2327,7 @@ func (x *ProofOps) ProtoReflect() protoreflect.Message { } func (x *ProofOps) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_crypto_v1_proof_proto_msgTypes[4] + mi := &file_tendermint_crypto_proof_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2404,13 +2404,13 @@ func (x *fastReflection_ProofOps) Range(f func(protoreflect.FieldDescriptor, pro // a repeated field is populated if it is non-empty. func (x *fastReflection_ProofOps) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.crypto.v1.ProofOps.ops": + case "tendermint.crypto.ProofOps.ops": return len(x.Ops) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.ProofOps")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.ProofOps")) } - panic(fmt.Errorf("message cometbft.crypto.v1.ProofOps does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.crypto.ProofOps does not contain field %s", fd.FullName())) } } @@ -2422,13 +2422,13 @@ func (x *fastReflection_ProofOps) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ProofOps) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.crypto.v1.ProofOps.ops": + case "tendermint.crypto.ProofOps.ops": x.Ops = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.ProofOps")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.ProofOps")) } - panic(fmt.Errorf("message cometbft.crypto.v1.ProofOps does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.crypto.ProofOps does not contain field %s", fd.FullName())) } } @@ -2440,7 +2440,7 @@ func (x *fastReflection_ProofOps) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_ProofOps) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.crypto.v1.ProofOps.ops": + case "tendermint.crypto.ProofOps.ops": if len(x.Ops) == 0 { return protoreflect.ValueOfList(&_ProofOps_1_list{}) } @@ -2448,9 +2448,9 @@ func (x *fastReflection_ProofOps) Get(descriptor protoreflect.FieldDescriptor) p return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.ProofOps")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.ProofOps")) } - panic(fmt.Errorf("message cometbft.crypto.v1.ProofOps does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.crypto.ProofOps does not contain field %s", descriptor.FullName())) } } @@ -2466,15 +2466,15 @@ func (x *fastReflection_ProofOps) Get(descriptor protoreflect.FieldDescriptor) p // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ProofOps) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.crypto.v1.ProofOps.ops": + case "tendermint.crypto.ProofOps.ops": lv := value.List() clv := lv.(*_ProofOps_1_list) x.Ops = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.ProofOps")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.ProofOps")) } - panic(fmt.Errorf("message cometbft.crypto.v1.ProofOps does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.crypto.ProofOps does not contain field %s", fd.FullName())) } } @@ -2490,7 +2490,7 @@ func (x *fastReflection_ProofOps) Set(fd protoreflect.FieldDescriptor, value pro // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ProofOps) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.crypto.v1.ProofOps.ops": + case "tendermint.crypto.ProofOps.ops": if x.Ops == nil { x.Ops = []*ProofOp{} } @@ -2498,9 +2498,9 @@ func (x *fastReflection_ProofOps) Mutable(fd protoreflect.FieldDescriptor) proto return protoreflect.ValueOfList(value) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.ProofOps")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.ProofOps")) } - panic(fmt.Errorf("message cometbft.crypto.v1.ProofOps does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.crypto.ProofOps does not contain field %s", fd.FullName())) } } @@ -2509,14 +2509,14 @@ func (x *fastReflection_ProofOps) Mutable(fd protoreflect.FieldDescriptor) proto // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_ProofOps) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.crypto.v1.ProofOps.ops": + case "tendermint.crypto.ProofOps.ops": list := []*ProofOp{} return protoreflect.ValueOfList(&_ProofOps_1_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.ProofOps")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.crypto.ProofOps")) } - panic(fmt.Errorf("message cometbft.crypto.v1.ProofOps does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.crypto.ProofOps does not contain field %s", fd.FullName())) } } @@ -2526,7 +2526,7 @@ func (x *fastReflection_ProofOps) NewField(fd protoreflect.FieldDescriptor) prot func (x *fastReflection_ProofOps) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.crypto.v1.ProofOps", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.crypto.ProofOps", d.FullName())) } panic("unreachable") } @@ -2754,7 +2754,7 @@ func (x *fastReflection_ProofOps) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: cometbft/crypto/v1/proof.proto +// source: tendermint/crypto/proof.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -2763,7 +2763,6 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Proof is a Merkle proof. type Proof struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2778,7 +2777,7 @@ type Proof struct { func (x *Proof) Reset() { *x = Proof{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_crypto_v1_proof_proto_msgTypes[0] + mi := &file_tendermint_crypto_proof_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2792,7 +2791,7 @@ func (*Proof) ProtoMessage() {} // Deprecated: Use Proof.ProtoReflect.Descriptor instead. func (*Proof) Descriptor() ([]byte, []int) { - return file_cometbft_crypto_v1_proof_proto_rawDescGZIP(), []int{0} + return file_tendermint_crypto_proof_proto_rawDescGZIP(), []int{0} } func (x *Proof) GetTotal() int64 { @@ -2823,7 +2822,6 @@ func (x *Proof) GetAunts() [][]byte { return nil } -// ValueOp is a Merkle proof for a single key. type ValueOp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2838,7 +2836,7 @@ type ValueOp struct { func (x *ValueOp) Reset() { *x = ValueOp{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_crypto_v1_proof_proto_msgTypes[1] + mi := &file_tendermint_crypto_proof_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2852,7 +2850,7 @@ func (*ValueOp) ProtoMessage() {} // Deprecated: Use ValueOp.ProtoReflect.Descriptor instead. func (*ValueOp) Descriptor() ([]byte, []int) { - return file_cometbft_crypto_v1_proof_proto_rawDescGZIP(), []int{1} + return file_tendermint_crypto_proof_proto_rawDescGZIP(), []int{1} } func (x *ValueOp) GetKey() []byte { @@ -2869,7 +2867,6 @@ func (x *ValueOp) GetProof() *Proof { return nil } -// DominoOp always returns the given output. type DominoOp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2883,7 +2880,7 @@ type DominoOp struct { func (x *DominoOp) Reset() { *x = DominoOp{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_crypto_v1_proof_proto_msgTypes[2] + mi := &file_tendermint_crypto_proof_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2897,7 +2894,7 @@ func (*DominoOp) ProtoMessage() {} // Deprecated: Use DominoOp.ProtoReflect.Descriptor instead. func (*DominoOp) Descriptor() ([]byte, []int) { - return file_cometbft_crypto_v1_proof_proto_rawDescGZIP(), []int{2} + return file_tendermint_crypto_proof_proto_rawDescGZIP(), []int{2} } func (x *DominoOp) GetKey() string { @@ -2922,7 +2919,7 @@ func (x *DominoOp) GetOutput() string { } // ProofOp defines an operation used for calculating Merkle root -// The data could be arbitrary format, providing necessary data +// The data could be arbitrary format, providing nessecary data // for example neighbouring node hash type ProofOp struct { state protoimpl.MessageState @@ -2937,7 +2934,7 @@ type ProofOp struct { func (x *ProofOp) Reset() { *x = ProofOp{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_crypto_v1_proof_proto_msgTypes[3] + mi := &file_tendermint_crypto_proof_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2951,7 +2948,7 @@ func (*ProofOp) ProtoMessage() {} // Deprecated: Use ProofOp.ProtoReflect.Descriptor instead. func (*ProofOp) Descriptor() ([]byte, []int) { - return file_cometbft_crypto_v1_proof_proto_rawDescGZIP(), []int{3} + return file_tendermint_crypto_proof_proto_rawDescGZIP(), []int{3} } func (x *ProofOp) GetType_() string { @@ -2987,7 +2984,7 @@ type ProofOps struct { func (x *ProofOps) Reset() { *x = ProofOps{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_crypto_v1_proof_proto_msgTypes[4] + mi := &file_tendermint_crypto_proof_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3001,7 +2998,7 @@ func (*ProofOps) ProtoMessage() {} // Deprecated: Use ProofOps.ProtoReflect.Descriptor instead. func (*ProofOps) Descriptor() ([]byte, []int) { - return file_cometbft_crypto_v1_proof_proto_rawDescGZIP(), []int{4} + return file_tendermint_crypto_proof_proto_rawDescGZIP(), []int{4} } func (x *ProofOps) GetOps() []*ProofOp { @@ -3011,76 +3008,75 @@ func (x *ProofOps) GetOps() []*ProofOp { return nil } -var File_cometbft_crypto_v1_proof_proto protoreflect.FileDescriptor +var File_tendermint_crypto_proof_proto protoreflect.FileDescriptor -var file_cometbft_crypto_v1_proof_proto_rawDesc = []byte{ - 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74, - 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x12, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, - 0x6f, 0x2e, 0x76, 0x31, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, - 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x66, 0x0a, 0x05, 0x50, 0x72, - 0x6f, 0x6f, 0x66, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, - 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, - 0x1b, 0x0a, 0x09, 0x6c, 0x65, 0x61, 0x66, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x08, 0x6c, 0x65, 0x61, 0x66, 0x48, 0x61, 0x73, 0x68, 0x12, 0x14, 0x0a, 0x05, - 0x61, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x05, 0x61, 0x75, 0x6e, - 0x74, 0x73, 0x22, 0x4c, 0x0a, 0x07, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4f, 0x70, 0x12, 0x10, 0x0a, - 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, - 0x2f, 0x0a, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, - 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, - 0x22, 0x4a, 0x0a, 0x08, 0x44, 0x6f, 0x6d, 0x69, 0x6e, 0x6f, 0x4f, 0x70, 0x12, 0x10, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, - 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, - 0x6e, 0x70, 0x75, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x22, 0x43, 0x0a, 0x07, - 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x4f, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, - 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x12, 0x0a, - 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, - 0x61, 0x22, 0x3f, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x4f, 0x70, 0x73, 0x12, 0x33, 0x0a, - 0x03, 0x6f, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x6f, 0x6d, - 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x76, 0x31, 0x2e, - 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x4f, 0x70, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x03, 0x6f, - 0x70, 0x73, 0x42, 0xbc, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, - 0x62, 0x66, 0x74, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x50, - 0x72, 0x6f, 0x6f, 0x66, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, - 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2f, 0x76, 0x31, - 0x3b, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, - 0x02, 0x12, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x43, 0x72, 0x79, 0x70, 0x74, - 0x6f, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x12, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x5c, - 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1e, 0x43, 0x6f, 0x6d, 0x65, - 0x74, 0x62, 0x66, 0x74, 0x5c, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x5c, 0x56, 0x31, 0x5c, 0x47, - 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x43, 0x6f, 0x6d, - 0x65, 0x74, 0x62, 0x66, 0x74, 0x3a, 0x3a, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x3a, 0x3a, 0x56, - 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +var file_tendermint_crypto_proof_proto_rawDesc = []byte{ + 0x0a, 0x1d, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x63, 0x72, 0x79, + 0x70, 0x74, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x11, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x63, 0x72, 0x79, 0x70, + 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, + 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x66, 0x0a, 0x05, 0x50, 0x72, 0x6f, 0x6f, + 0x66, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1b, 0x0a, + 0x09, 0x6c, 0x65, 0x61, 0x66, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x08, 0x6c, 0x65, 0x61, 0x66, 0x48, 0x61, 0x73, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x75, + 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x05, 0x61, 0x75, 0x6e, 0x74, 0x73, + 0x22, 0x4b, 0x0a, 0x07, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4f, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2e, 0x0a, + 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, + 0x2e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x22, 0x4a, 0x0a, + 0x08, 0x44, 0x6f, 0x6d, 0x69, 0x6e, 0x6f, 0x4f, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x69, + 0x6e, 0x70, 0x75, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x6e, 0x70, 0x75, + 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x22, 0x43, 0x0a, 0x07, 0x50, 0x72, 0x6f, + 0x6f, 0x66, 0x4f, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, + 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x3e, + 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x4f, 0x70, 0x73, 0x12, 0x32, 0x0a, 0x03, 0x6f, 0x70, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x50, 0x72, 0x6f, 0x6f, + 0x66, 0x4f, 0x70, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x03, 0x6f, 0x70, 0x73, 0x42, 0xac, + 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, + 0x74, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x42, 0x0a, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x22, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, + 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, + 0x69, 0x6e, 0x74, 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0xa2, 0x02, 0x03, 0x54, 0x43, 0x58, + 0xaa, 0x02, 0x11, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x43, 0x72, + 0x79, 0x70, 0x74, 0x6f, 0xca, 0x02, 0x11, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, + 0x74, 0x5c, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0xe2, 0x02, 0x1d, 0x54, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x5c, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x12, 0x54, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x3a, 0x3a, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_cometbft_crypto_v1_proof_proto_rawDescOnce sync.Once - file_cometbft_crypto_v1_proof_proto_rawDescData = file_cometbft_crypto_v1_proof_proto_rawDesc + file_tendermint_crypto_proof_proto_rawDescOnce sync.Once + file_tendermint_crypto_proof_proto_rawDescData = file_tendermint_crypto_proof_proto_rawDesc ) -func file_cometbft_crypto_v1_proof_proto_rawDescGZIP() []byte { - file_cometbft_crypto_v1_proof_proto_rawDescOnce.Do(func() { - file_cometbft_crypto_v1_proof_proto_rawDescData = protoimpl.X.CompressGZIP(file_cometbft_crypto_v1_proof_proto_rawDescData) +func file_tendermint_crypto_proof_proto_rawDescGZIP() []byte { + file_tendermint_crypto_proof_proto_rawDescOnce.Do(func() { + file_tendermint_crypto_proof_proto_rawDescData = protoimpl.X.CompressGZIP(file_tendermint_crypto_proof_proto_rawDescData) }) - return file_cometbft_crypto_v1_proof_proto_rawDescData + return file_tendermint_crypto_proof_proto_rawDescData } -var file_cometbft_crypto_v1_proof_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_cometbft_crypto_v1_proof_proto_goTypes = []interface{}{ - (*Proof)(nil), // 0: cometbft.crypto.v1.Proof - (*ValueOp)(nil), // 1: cometbft.crypto.v1.ValueOp - (*DominoOp)(nil), // 2: cometbft.crypto.v1.DominoOp - (*ProofOp)(nil), // 3: cometbft.crypto.v1.ProofOp - (*ProofOps)(nil), // 4: cometbft.crypto.v1.ProofOps +var file_tendermint_crypto_proof_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_tendermint_crypto_proof_proto_goTypes = []interface{}{ + (*Proof)(nil), // 0: tendermint.crypto.Proof + (*ValueOp)(nil), // 1: tendermint.crypto.ValueOp + (*DominoOp)(nil), // 2: tendermint.crypto.DominoOp + (*ProofOp)(nil), // 3: tendermint.crypto.ProofOp + (*ProofOps)(nil), // 4: tendermint.crypto.ProofOps } -var file_cometbft_crypto_v1_proof_proto_depIdxs = []int32{ - 0, // 0: cometbft.crypto.v1.ValueOp.proof:type_name -> cometbft.crypto.v1.Proof - 3, // 1: cometbft.crypto.v1.ProofOps.ops:type_name -> cometbft.crypto.v1.ProofOp +var file_tendermint_crypto_proof_proto_depIdxs = []int32{ + 0, // 0: tendermint.crypto.ValueOp.proof:type_name -> tendermint.crypto.Proof + 3, // 1: tendermint.crypto.ProofOps.ops:type_name -> tendermint.crypto.ProofOp 2, // [2:2] is the sub-list for method output_type 2, // [2:2] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name @@ -3088,13 +3084,13 @@ var file_cometbft_crypto_v1_proof_proto_depIdxs = []int32{ 0, // [0:2] is the sub-list for field type_name } -func init() { file_cometbft_crypto_v1_proof_proto_init() } -func file_cometbft_crypto_v1_proof_proto_init() { - if File_cometbft_crypto_v1_proof_proto != nil { +func init() { file_tendermint_crypto_proof_proto_init() } +func file_tendermint_crypto_proof_proto_init() { + if File_tendermint_crypto_proof_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_cometbft_crypto_v1_proof_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_crypto_proof_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Proof); i { case 0: return &v.state @@ -3106,7 +3102,7 @@ func file_cometbft_crypto_v1_proof_proto_init() { return nil } } - file_cometbft_crypto_v1_proof_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_crypto_proof_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ValueOp); i { case 0: return &v.state @@ -3118,7 +3114,7 @@ func file_cometbft_crypto_v1_proof_proto_init() { return nil } } - file_cometbft_crypto_v1_proof_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_crypto_proof_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DominoOp); i { case 0: return &v.state @@ -3130,7 +3126,7 @@ func file_cometbft_crypto_v1_proof_proto_init() { return nil } } - file_cometbft_crypto_v1_proof_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_crypto_proof_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ProofOp); i { case 0: return &v.state @@ -3142,7 +3138,7 @@ func file_cometbft_crypto_v1_proof_proto_init() { return nil } } - file_cometbft_crypto_v1_proof_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_crypto_proof_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ProofOps); i { case 0: return &v.state @@ -3159,18 +3155,18 @@ func file_cometbft_crypto_v1_proof_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cometbft_crypto_v1_proof_proto_rawDesc, + RawDescriptor: file_tendermint_crypto_proof_proto_rawDesc, NumEnums: 0, NumMessages: 5, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_cometbft_crypto_v1_proof_proto_goTypes, - DependencyIndexes: file_cometbft_crypto_v1_proof_proto_depIdxs, - MessageInfos: file_cometbft_crypto_v1_proof_proto_msgTypes, + GoTypes: file_tendermint_crypto_proof_proto_goTypes, + DependencyIndexes: file_tendermint_crypto_proof_proto_depIdxs, + MessageInfos: file_tendermint_crypto_proof_proto_msgTypes, }.Build() - File_cometbft_crypto_v1_proof_proto = out.File - file_cometbft_crypto_v1_proof_proto_rawDesc = nil - file_cometbft_crypto_v1_proof_proto_goTypes = nil - file_cometbft_crypto_v1_proof_proto_depIdxs = nil + File_tendermint_crypto_proof_proto = out.File + file_tendermint_crypto_proof_proto_rawDesc = nil + file_tendermint_crypto_proof_proto_goTypes = nil + file_tendermint_crypto_proof_proto_depIdxs = nil } diff --git a/api/cometbft/libs/bits/v1/types.pulsar.go b/api/tendermint/libs/bits/types.pulsar.go similarity index 78% rename from api/cometbft/libs/bits/v1/types.pulsar.go rename to api/tendermint/libs/bits/types.pulsar.go index 4930bfe065..652d5c9366 100644 --- a/api/cometbft/libs/bits/v1/types.pulsar.go +++ b/api/tendermint/libs/bits/types.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package bitsv1 +package bits import ( fmt "fmt" @@ -65,8 +65,8 @@ var ( ) func init() { - file_cometbft_libs_bits_v1_types_proto_init() - md_BitArray = File_cometbft_libs_bits_v1_types_proto.Messages().ByName("BitArray") + file_tendermint_libs_bits_types_proto_init() + md_BitArray = File_tendermint_libs_bits_types_proto.Messages().ByName("BitArray") fd_BitArray_bits = md_BitArray.Fields().ByName("bits") fd_BitArray_elems = md_BitArray.Fields().ByName("elems") } @@ -80,7 +80,7 @@ func (x *BitArray) ProtoReflect() protoreflect.Message { } func (x *BitArray) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_libs_bits_v1_types_proto_msgTypes[0] + mi := &file_tendermint_libs_bits_types_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -163,15 +163,15 @@ func (x *fastReflection_BitArray) Range(f func(protoreflect.FieldDescriptor, pro // a repeated field is populated if it is non-empty. func (x *fastReflection_BitArray) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.libs.bits.v1.BitArray.bits": + case "tendermint.libs.bits.BitArray.bits": return x.Bits != int64(0) - case "cometbft.libs.bits.v1.BitArray.elems": + case "tendermint.libs.bits.BitArray.elems": return len(x.Elems) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.libs.bits.v1.BitArray")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.libs.bits.BitArray")) } - panic(fmt.Errorf("message cometbft.libs.bits.v1.BitArray does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.libs.bits.BitArray does not contain field %s", fd.FullName())) } } @@ -183,15 +183,15 @@ func (x *fastReflection_BitArray) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_BitArray) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.libs.bits.v1.BitArray.bits": + case "tendermint.libs.bits.BitArray.bits": x.Bits = int64(0) - case "cometbft.libs.bits.v1.BitArray.elems": + case "tendermint.libs.bits.BitArray.elems": x.Elems = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.libs.bits.v1.BitArray")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.libs.bits.BitArray")) } - panic(fmt.Errorf("message cometbft.libs.bits.v1.BitArray does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.libs.bits.BitArray does not contain field %s", fd.FullName())) } } @@ -203,10 +203,10 @@ func (x *fastReflection_BitArray) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_BitArray) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.libs.bits.v1.BitArray.bits": + case "tendermint.libs.bits.BitArray.bits": value := x.Bits return protoreflect.ValueOfInt64(value) - case "cometbft.libs.bits.v1.BitArray.elems": + case "tendermint.libs.bits.BitArray.elems": if len(x.Elems) == 0 { return protoreflect.ValueOfList(&_BitArray_2_list{}) } @@ -214,9 +214,9 @@ func (x *fastReflection_BitArray) Get(descriptor protoreflect.FieldDescriptor) p return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.libs.bits.v1.BitArray")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.libs.bits.BitArray")) } - panic(fmt.Errorf("message cometbft.libs.bits.v1.BitArray does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.libs.bits.BitArray does not contain field %s", descriptor.FullName())) } } @@ -232,17 +232,17 @@ func (x *fastReflection_BitArray) Get(descriptor protoreflect.FieldDescriptor) p // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_BitArray) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.libs.bits.v1.BitArray.bits": + case "tendermint.libs.bits.BitArray.bits": x.Bits = value.Int() - case "cometbft.libs.bits.v1.BitArray.elems": + case "tendermint.libs.bits.BitArray.elems": lv := value.List() clv := lv.(*_BitArray_2_list) x.Elems = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.libs.bits.v1.BitArray")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.libs.bits.BitArray")) } - panic(fmt.Errorf("message cometbft.libs.bits.v1.BitArray does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.libs.bits.BitArray does not contain field %s", fd.FullName())) } } @@ -258,19 +258,19 @@ func (x *fastReflection_BitArray) Set(fd protoreflect.FieldDescriptor, value pro // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_BitArray) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.libs.bits.v1.BitArray.elems": + case "tendermint.libs.bits.BitArray.elems": if x.Elems == nil { x.Elems = []uint64{} } value := &_BitArray_2_list{list: &x.Elems} return protoreflect.ValueOfList(value) - case "cometbft.libs.bits.v1.BitArray.bits": - panic(fmt.Errorf("field bits of message cometbft.libs.bits.v1.BitArray is not mutable")) + case "tendermint.libs.bits.BitArray.bits": + panic(fmt.Errorf("field bits of message tendermint.libs.bits.BitArray is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.libs.bits.v1.BitArray")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.libs.bits.BitArray")) } - panic(fmt.Errorf("message cometbft.libs.bits.v1.BitArray does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.libs.bits.BitArray does not contain field %s", fd.FullName())) } } @@ -279,16 +279,16 @@ func (x *fastReflection_BitArray) Mutable(fd protoreflect.FieldDescriptor) proto // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_BitArray) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.libs.bits.v1.BitArray.bits": + case "tendermint.libs.bits.BitArray.bits": return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.libs.bits.v1.BitArray.elems": + case "tendermint.libs.bits.BitArray.elems": list := []uint64{} return protoreflect.ValueOfList(&_BitArray_2_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.libs.bits.v1.BitArray")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.libs.bits.BitArray")) } - panic(fmt.Errorf("message cometbft.libs.bits.v1.BitArray does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.libs.bits.BitArray does not contain field %s", fd.FullName())) } } @@ -298,7 +298,7 @@ func (x *fastReflection_BitArray) NewField(fd protoreflect.FieldDescriptor) prot func (x *fastReflection_BitArray) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.libs.bits.v1.BitArray", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.libs.bits.BitArray", d.FullName())) } panic("unreachable") } @@ -600,7 +600,7 @@ func (x *fastReflection_BitArray) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: cometbft/libs/bits/v1/types.proto +// source: tendermint/libs/bits/types.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -609,7 +609,6 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// BitArray is an array of bits. type BitArray struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -622,7 +621,7 @@ type BitArray struct { func (x *BitArray) Reset() { *x = BitArray{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_libs_bits_v1_types_proto_msgTypes[0] + mi := &file_tendermint_libs_bits_types_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -636,7 +635,7 @@ func (*BitArray) ProtoMessage() {} // Deprecated: Use BitArray.ProtoReflect.Descriptor instead. func (*BitArray) Descriptor() ([]byte, []int) { - return file_cometbft_libs_bits_v1_types_proto_rawDescGZIP(), []int{0} + return file_tendermint_libs_bits_types_proto_rawDescGZIP(), []int{0} } func (x *BitArray) GetBits() int64 { @@ -653,49 +652,48 @@ func (x *BitArray) GetElems() []uint64 { return nil } -var File_cometbft_libs_bits_v1_types_proto protoreflect.FileDescriptor +var File_tendermint_libs_bits_types_proto protoreflect.FileDescriptor -var file_cometbft_libs_bits_v1_types_proto_rawDesc = []byte{ - 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x73, 0x2f, - 0x62, 0x69, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x6c, 0x69, - 0x62, 0x73, 0x2e, 0x62, 0x69, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x22, 0x34, 0x0a, 0x08, 0x42, 0x69, - 0x74, 0x41, 0x72, 0x72, 0x61, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x69, 0x74, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x62, 0x69, 0x74, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6c, - 0x65, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x04, 0x52, 0x05, 0x65, 0x6c, 0x65, 0x6d, 0x73, - 0x42, 0xcd, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, - 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x62, 0x69, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0a, - 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2d, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, - 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x73, 0x2f, 0x62, 0x69, 0x74, - 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x62, 0x69, 0x74, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x4c, - 0x42, 0xaa, 0x02, 0x15, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x4c, 0x69, 0x62, - 0x73, 0x2e, 0x42, 0x69, 0x74, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x15, 0x43, 0x6f, 0x6d, 0x65, - 0x74, 0x62, 0x66, 0x74, 0x5c, 0x4c, 0x69, 0x62, 0x73, 0x5c, 0x42, 0x69, 0x74, 0x73, 0x5c, 0x56, - 0x31, 0xe2, 0x02, 0x21, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x5c, 0x4c, 0x69, 0x62, - 0x73, 0x5c, 0x42, 0x69, 0x74, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x18, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, - 0x3a, 0x3a, 0x4c, 0x69, 0x62, 0x73, 0x3a, 0x3a, 0x42, 0x69, 0x74, 0x73, 0x3a, 0x3a, 0x56, 0x31, +var file_tendermint_libs_bits_types_proto_rawDesc = []byte{ + 0x0a, 0x20, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x6c, 0x69, 0x62, + 0x73, 0x2f, 0x62, 0x69, 0x74, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x14, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x6c, + 0x69, 0x62, 0x73, 0x2e, 0x62, 0x69, 0x74, 0x73, 0x22, 0x34, 0x0a, 0x08, 0x42, 0x69, 0x74, 0x41, + 0x72, 0x72, 0x61, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x69, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x04, 0x62, 0x69, 0x74, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6c, 0x65, 0x6d, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x04, 0x52, 0x05, 0x65, 0x6c, 0x65, 0x6d, 0x73, 0x42, 0xbf, + 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, + 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x62, 0x69, 0x74, 0x73, 0x42, 0x0a, 0x54, 0x79, 0x70, + 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x25, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x74, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x73, 0x2f, 0x62, 0x69, 0x74, 0x73, + 0xa2, 0x02, 0x03, 0x54, 0x4c, 0x42, 0xaa, 0x02, 0x14, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, + 0x69, 0x6e, 0x74, 0x2e, 0x4c, 0x69, 0x62, 0x73, 0x2e, 0x42, 0x69, 0x74, 0x73, 0xca, 0x02, 0x14, + 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x5c, 0x4c, 0x69, 0x62, 0x73, 0x5c, + 0x42, 0x69, 0x74, 0x73, 0xe2, 0x02, 0x20, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, + 0x74, 0x5c, 0x4c, 0x69, 0x62, 0x73, 0x5c, 0x42, 0x69, 0x74, 0x73, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x16, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x6d, 0x69, 0x6e, 0x74, 0x3a, 0x3a, 0x4c, 0x69, 0x62, 0x73, 0x3a, 0x3a, 0x42, 0x69, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_cometbft_libs_bits_v1_types_proto_rawDescOnce sync.Once - file_cometbft_libs_bits_v1_types_proto_rawDescData = file_cometbft_libs_bits_v1_types_proto_rawDesc + file_tendermint_libs_bits_types_proto_rawDescOnce sync.Once + file_tendermint_libs_bits_types_proto_rawDescData = file_tendermint_libs_bits_types_proto_rawDesc ) -func file_cometbft_libs_bits_v1_types_proto_rawDescGZIP() []byte { - file_cometbft_libs_bits_v1_types_proto_rawDescOnce.Do(func() { - file_cometbft_libs_bits_v1_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_cometbft_libs_bits_v1_types_proto_rawDescData) +func file_tendermint_libs_bits_types_proto_rawDescGZIP() []byte { + file_tendermint_libs_bits_types_proto_rawDescOnce.Do(func() { + file_tendermint_libs_bits_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_tendermint_libs_bits_types_proto_rawDescData) }) - return file_cometbft_libs_bits_v1_types_proto_rawDescData + return file_tendermint_libs_bits_types_proto_rawDescData } -var file_cometbft_libs_bits_v1_types_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_cometbft_libs_bits_v1_types_proto_goTypes = []interface{}{ - (*BitArray)(nil), // 0: cometbft.libs.bits.v1.BitArray +var file_tendermint_libs_bits_types_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_tendermint_libs_bits_types_proto_goTypes = []interface{}{ + (*BitArray)(nil), // 0: tendermint.libs.bits.BitArray } -var file_cometbft_libs_bits_v1_types_proto_depIdxs = []int32{ +var file_tendermint_libs_bits_types_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name @@ -703,13 +701,13 @@ var file_cometbft_libs_bits_v1_types_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for field type_name } -func init() { file_cometbft_libs_bits_v1_types_proto_init() } -func file_cometbft_libs_bits_v1_types_proto_init() { - if File_cometbft_libs_bits_v1_types_proto != nil { +func init() { file_tendermint_libs_bits_types_proto_init() } +func file_tendermint_libs_bits_types_proto_init() { + if File_tendermint_libs_bits_types_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_cometbft_libs_bits_v1_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_libs_bits_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*BitArray); i { case 0: return &v.state @@ -726,18 +724,18 @@ func file_cometbft_libs_bits_v1_types_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cometbft_libs_bits_v1_types_proto_rawDesc, + RawDescriptor: file_tendermint_libs_bits_types_proto_rawDesc, NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_cometbft_libs_bits_v1_types_proto_goTypes, - DependencyIndexes: file_cometbft_libs_bits_v1_types_proto_depIdxs, - MessageInfos: file_cometbft_libs_bits_v1_types_proto_msgTypes, + GoTypes: file_tendermint_libs_bits_types_proto_goTypes, + DependencyIndexes: file_tendermint_libs_bits_types_proto_depIdxs, + MessageInfos: file_tendermint_libs_bits_types_proto_msgTypes, }.Build() - File_cometbft_libs_bits_v1_types_proto = out.File - file_cometbft_libs_bits_v1_types_proto_rawDesc = nil - file_cometbft_libs_bits_v1_types_proto_goTypes = nil - file_cometbft_libs_bits_v1_types_proto_depIdxs = nil + File_tendermint_libs_bits_types_proto = out.File + file_tendermint_libs_bits_types_proto_rawDesc = nil + file_tendermint_libs_bits_types_proto_goTypes = nil + file_tendermint_libs_bits_types_proto_depIdxs = nil } diff --git a/api/cometbft/p2p/v1/types.pulsar.go b/api/tendermint/p2p/types.pulsar.go similarity index 82% rename from api/cometbft/p2p/v1/types.pulsar.go rename to api/tendermint/p2p/types.pulsar.go index 1f70fb8d22..9bcb152d54 100644 --- a/api/cometbft/p2p/v1/types.pulsar.go +++ b/api/tendermint/p2p/types.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package p2pv1 +package p2p import ( fmt "fmt" @@ -21,8 +21,8 @@ var ( ) func init() { - file_cometbft_p2p_v1_types_proto_init() - md_NetAddress = File_cometbft_p2p_v1_types_proto.Messages().ByName("NetAddress") + file_tendermint_p2p_types_proto_init() + md_NetAddress = File_tendermint_p2p_types_proto.Messages().ByName("NetAddress") fd_NetAddress_id = md_NetAddress.Fields().ByName("id") fd_NetAddress_ip = md_NetAddress.Fields().ByName("ip") fd_NetAddress_port = md_NetAddress.Fields().ByName("port") @@ -37,7 +37,7 @@ func (x *NetAddress) ProtoReflect() protoreflect.Message { } func (x *NetAddress) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_p2p_v1_types_proto_msgTypes[0] + mi := &file_tendermint_p2p_types_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -126,17 +126,17 @@ func (x *fastReflection_NetAddress) Range(f func(protoreflect.FieldDescriptor, p // a repeated field is populated if it is non-empty. func (x *fastReflection_NetAddress) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.p2p.v1.NetAddress.id": + case "tendermint.p2p.NetAddress.id": return x.Id != "" - case "cometbft.p2p.v1.NetAddress.ip": + case "tendermint.p2p.NetAddress.ip": return x.Ip != "" - case "cometbft.p2p.v1.NetAddress.port": + case "tendermint.p2p.NetAddress.port": return x.Port != uint32(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.NetAddress")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.p2p.NetAddress")) } - panic(fmt.Errorf("message cometbft.p2p.v1.NetAddress does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.p2p.NetAddress does not contain field %s", fd.FullName())) } } @@ -148,17 +148,17 @@ func (x *fastReflection_NetAddress) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_NetAddress) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.p2p.v1.NetAddress.id": + case "tendermint.p2p.NetAddress.id": x.Id = "" - case "cometbft.p2p.v1.NetAddress.ip": + case "tendermint.p2p.NetAddress.ip": x.Ip = "" - case "cometbft.p2p.v1.NetAddress.port": + case "tendermint.p2p.NetAddress.port": x.Port = uint32(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.NetAddress")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.p2p.NetAddress")) } - panic(fmt.Errorf("message cometbft.p2p.v1.NetAddress does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.p2p.NetAddress does not contain field %s", fd.FullName())) } } @@ -170,20 +170,20 @@ func (x *fastReflection_NetAddress) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_NetAddress) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.p2p.v1.NetAddress.id": + case "tendermint.p2p.NetAddress.id": value := x.Id return protoreflect.ValueOfString(value) - case "cometbft.p2p.v1.NetAddress.ip": + case "tendermint.p2p.NetAddress.ip": value := x.Ip return protoreflect.ValueOfString(value) - case "cometbft.p2p.v1.NetAddress.port": + case "tendermint.p2p.NetAddress.port": value := x.Port return protoreflect.ValueOfUint32(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.NetAddress")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.p2p.NetAddress")) } - panic(fmt.Errorf("message cometbft.p2p.v1.NetAddress does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.p2p.NetAddress does not contain field %s", descriptor.FullName())) } } @@ -199,17 +199,17 @@ func (x *fastReflection_NetAddress) Get(descriptor protoreflect.FieldDescriptor) // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_NetAddress) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.p2p.v1.NetAddress.id": + case "tendermint.p2p.NetAddress.id": x.Id = value.Interface().(string) - case "cometbft.p2p.v1.NetAddress.ip": + case "tendermint.p2p.NetAddress.ip": x.Ip = value.Interface().(string) - case "cometbft.p2p.v1.NetAddress.port": + case "tendermint.p2p.NetAddress.port": x.Port = uint32(value.Uint()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.NetAddress")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.p2p.NetAddress")) } - panic(fmt.Errorf("message cometbft.p2p.v1.NetAddress does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.p2p.NetAddress does not contain field %s", fd.FullName())) } } @@ -225,17 +225,17 @@ func (x *fastReflection_NetAddress) Set(fd protoreflect.FieldDescriptor, value p // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_NetAddress) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.p2p.v1.NetAddress.id": - panic(fmt.Errorf("field id of message cometbft.p2p.v1.NetAddress is not mutable")) - case "cometbft.p2p.v1.NetAddress.ip": - panic(fmt.Errorf("field ip of message cometbft.p2p.v1.NetAddress is not mutable")) - case "cometbft.p2p.v1.NetAddress.port": - panic(fmt.Errorf("field port of message cometbft.p2p.v1.NetAddress is not mutable")) + case "tendermint.p2p.NetAddress.id": + panic(fmt.Errorf("field id of message tendermint.p2p.NetAddress is not mutable")) + case "tendermint.p2p.NetAddress.ip": + panic(fmt.Errorf("field ip of message tendermint.p2p.NetAddress is not mutable")) + case "tendermint.p2p.NetAddress.port": + panic(fmt.Errorf("field port of message tendermint.p2p.NetAddress is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.NetAddress")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.p2p.NetAddress")) } - panic(fmt.Errorf("message cometbft.p2p.v1.NetAddress does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.p2p.NetAddress does not contain field %s", fd.FullName())) } } @@ -244,17 +244,17 @@ func (x *fastReflection_NetAddress) Mutable(fd protoreflect.FieldDescriptor) pro // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_NetAddress) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.p2p.v1.NetAddress.id": + case "tendermint.p2p.NetAddress.id": return protoreflect.ValueOfString("") - case "cometbft.p2p.v1.NetAddress.ip": + case "tendermint.p2p.NetAddress.ip": return protoreflect.ValueOfString("") - case "cometbft.p2p.v1.NetAddress.port": + case "tendermint.p2p.NetAddress.port": return protoreflect.ValueOfUint32(uint32(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.NetAddress")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.p2p.NetAddress")) } - panic(fmt.Errorf("message cometbft.p2p.v1.NetAddress does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.p2p.NetAddress does not contain field %s", fd.FullName())) } } @@ -264,7 +264,7 @@ func (x *fastReflection_NetAddress) NewField(fd protoreflect.FieldDescriptor) pr func (x *fastReflection_NetAddress) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.p2p.v1.NetAddress", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.p2p.NetAddress", d.FullName())) } panic("unreachable") } @@ -553,8 +553,8 @@ var ( ) func init() { - file_cometbft_p2p_v1_types_proto_init() - md_ProtocolVersion = File_cometbft_p2p_v1_types_proto.Messages().ByName("ProtocolVersion") + file_tendermint_p2p_types_proto_init() + md_ProtocolVersion = File_tendermint_p2p_types_proto.Messages().ByName("ProtocolVersion") fd_ProtocolVersion_p2p = md_ProtocolVersion.Fields().ByName("p2p") fd_ProtocolVersion_block = md_ProtocolVersion.Fields().ByName("block") fd_ProtocolVersion_app = md_ProtocolVersion.Fields().ByName("app") @@ -569,7 +569,7 @@ func (x *ProtocolVersion) ProtoReflect() protoreflect.Message { } func (x *ProtocolVersion) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_p2p_v1_types_proto_msgTypes[1] + mi := &file_tendermint_p2p_types_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -658,17 +658,17 @@ func (x *fastReflection_ProtocolVersion) Range(f func(protoreflect.FieldDescript // a repeated field is populated if it is non-empty. func (x *fastReflection_ProtocolVersion) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.p2p.v1.ProtocolVersion.p2p": + case "tendermint.p2p.ProtocolVersion.p2p": return x.P2P != uint64(0) - case "cometbft.p2p.v1.ProtocolVersion.block": + case "tendermint.p2p.ProtocolVersion.block": return x.Block != uint64(0) - case "cometbft.p2p.v1.ProtocolVersion.app": + case "tendermint.p2p.ProtocolVersion.app": return x.App != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.ProtocolVersion")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.p2p.ProtocolVersion")) } - panic(fmt.Errorf("message cometbft.p2p.v1.ProtocolVersion does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.p2p.ProtocolVersion does not contain field %s", fd.FullName())) } } @@ -680,17 +680,17 @@ func (x *fastReflection_ProtocolVersion) Has(fd protoreflect.FieldDescriptor) bo // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ProtocolVersion) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.p2p.v1.ProtocolVersion.p2p": + case "tendermint.p2p.ProtocolVersion.p2p": x.P2P = uint64(0) - case "cometbft.p2p.v1.ProtocolVersion.block": + case "tendermint.p2p.ProtocolVersion.block": x.Block = uint64(0) - case "cometbft.p2p.v1.ProtocolVersion.app": + case "tendermint.p2p.ProtocolVersion.app": x.App = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.ProtocolVersion")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.p2p.ProtocolVersion")) } - panic(fmt.Errorf("message cometbft.p2p.v1.ProtocolVersion does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.p2p.ProtocolVersion does not contain field %s", fd.FullName())) } } @@ -702,20 +702,20 @@ func (x *fastReflection_ProtocolVersion) Clear(fd protoreflect.FieldDescriptor) // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_ProtocolVersion) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.p2p.v1.ProtocolVersion.p2p": + case "tendermint.p2p.ProtocolVersion.p2p": value := x.P2P return protoreflect.ValueOfUint64(value) - case "cometbft.p2p.v1.ProtocolVersion.block": + case "tendermint.p2p.ProtocolVersion.block": value := x.Block return protoreflect.ValueOfUint64(value) - case "cometbft.p2p.v1.ProtocolVersion.app": + case "tendermint.p2p.ProtocolVersion.app": value := x.App return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.ProtocolVersion")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.p2p.ProtocolVersion")) } - panic(fmt.Errorf("message cometbft.p2p.v1.ProtocolVersion does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.p2p.ProtocolVersion does not contain field %s", descriptor.FullName())) } } @@ -731,17 +731,17 @@ func (x *fastReflection_ProtocolVersion) Get(descriptor protoreflect.FieldDescri // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ProtocolVersion) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.p2p.v1.ProtocolVersion.p2p": + case "tendermint.p2p.ProtocolVersion.p2p": x.P2P = value.Uint() - case "cometbft.p2p.v1.ProtocolVersion.block": + case "tendermint.p2p.ProtocolVersion.block": x.Block = value.Uint() - case "cometbft.p2p.v1.ProtocolVersion.app": + case "tendermint.p2p.ProtocolVersion.app": x.App = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.ProtocolVersion")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.p2p.ProtocolVersion")) } - panic(fmt.Errorf("message cometbft.p2p.v1.ProtocolVersion does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.p2p.ProtocolVersion does not contain field %s", fd.FullName())) } } @@ -757,17 +757,17 @@ func (x *fastReflection_ProtocolVersion) Set(fd protoreflect.FieldDescriptor, va // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ProtocolVersion) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.p2p.v1.ProtocolVersion.p2p": - panic(fmt.Errorf("field p2p of message cometbft.p2p.v1.ProtocolVersion is not mutable")) - case "cometbft.p2p.v1.ProtocolVersion.block": - panic(fmt.Errorf("field block of message cometbft.p2p.v1.ProtocolVersion is not mutable")) - case "cometbft.p2p.v1.ProtocolVersion.app": - panic(fmt.Errorf("field app of message cometbft.p2p.v1.ProtocolVersion is not mutable")) + case "tendermint.p2p.ProtocolVersion.p2p": + panic(fmt.Errorf("field p2p of message tendermint.p2p.ProtocolVersion is not mutable")) + case "tendermint.p2p.ProtocolVersion.block": + panic(fmt.Errorf("field block of message tendermint.p2p.ProtocolVersion is not mutable")) + case "tendermint.p2p.ProtocolVersion.app": + panic(fmt.Errorf("field app of message tendermint.p2p.ProtocolVersion is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.ProtocolVersion")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.p2p.ProtocolVersion")) } - panic(fmt.Errorf("message cometbft.p2p.v1.ProtocolVersion does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.p2p.ProtocolVersion does not contain field %s", fd.FullName())) } } @@ -776,17 +776,17 @@ func (x *fastReflection_ProtocolVersion) Mutable(fd protoreflect.FieldDescriptor // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_ProtocolVersion) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.p2p.v1.ProtocolVersion.p2p": + case "tendermint.p2p.ProtocolVersion.p2p": return protoreflect.ValueOfUint64(uint64(0)) - case "cometbft.p2p.v1.ProtocolVersion.block": + case "tendermint.p2p.ProtocolVersion.block": return protoreflect.ValueOfUint64(uint64(0)) - case "cometbft.p2p.v1.ProtocolVersion.app": + case "tendermint.p2p.ProtocolVersion.app": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.ProtocolVersion")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.p2p.ProtocolVersion")) } - panic(fmt.Errorf("message cometbft.p2p.v1.ProtocolVersion does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.p2p.ProtocolVersion does not contain field %s", fd.FullName())) } } @@ -796,7 +796,7 @@ func (x *fastReflection_ProtocolVersion) NewField(fd protoreflect.FieldDescripto func (x *fastReflection_ProtocolVersion) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.p2p.v1.ProtocolVersion", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.p2p.ProtocolVersion", d.FullName())) } panic("unreachable") } @@ -1058,8 +1058,8 @@ var ( ) func init() { - file_cometbft_p2p_v1_types_proto_init() - md_DefaultNodeInfo = File_cometbft_p2p_v1_types_proto.Messages().ByName("DefaultNodeInfo") + file_tendermint_p2p_types_proto_init() + md_DefaultNodeInfo = File_tendermint_p2p_types_proto.Messages().ByName("DefaultNodeInfo") fd_DefaultNodeInfo_protocol_version = md_DefaultNodeInfo.Fields().ByName("protocol_version") fd_DefaultNodeInfo_default_node_id = md_DefaultNodeInfo.Fields().ByName("default_node_id") fd_DefaultNodeInfo_listen_addr = md_DefaultNodeInfo.Fields().ByName("listen_addr") @@ -1079,7 +1079,7 @@ func (x *DefaultNodeInfo) ProtoReflect() protoreflect.Message { } func (x *DefaultNodeInfo) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_p2p_v1_types_proto_msgTypes[2] + mi := &file_tendermint_p2p_types_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1198,27 +1198,27 @@ func (x *fastReflection_DefaultNodeInfo) Range(f func(protoreflect.FieldDescript // a repeated field is populated if it is non-empty. func (x *fastReflection_DefaultNodeInfo) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.p2p.v1.DefaultNodeInfo.protocol_version": + case "tendermint.p2p.DefaultNodeInfo.protocol_version": return x.ProtocolVersion != nil - case "cometbft.p2p.v1.DefaultNodeInfo.default_node_id": + case "tendermint.p2p.DefaultNodeInfo.default_node_id": return x.DefaultNodeId != "" - case "cometbft.p2p.v1.DefaultNodeInfo.listen_addr": + case "tendermint.p2p.DefaultNodeInfo.listen_addr": return x.ListenAddr != "" - case "cometbft.p2p.v1.DefaultNodeInfo.network": + case "tendermint.p2p.DefaultNodeInfo.network": return x.Network != "" - case "cometbft.p2p.v1.DefaultNodeInfo.version": + case "tendermint.p2p.DefaultNodeInfo.version": return x.Version != "" - case "cometbft.p2p.v1.DefaultNodeInfo.channels": + case "tendermint.p2p.DefaultNodeInfo.channels": return len(x.Channels) != 0 - case "cometbft.p2p.v1.DefaultNodeInfo.moniker": + case "tendermint.p2p.DefaultNodeInfo.moniker": return x.Moniker != "" - case "cometbft.p2p.v1.DefaultNodeInfo.other": + case "tendermint.p2p.DefaultNodeInfo.other": return x.Other != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.DefaultNodeInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.p2p.DefaultNodeInfo")) } - panic(fmt.Errorf("message cometbft.p2p.v1.DefaultNodeInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.p2p.DefaultNodeInfo does not contain field %s", fd.FullName())) } } @@ -1230,27 +1230,27 @@ func (x *fastReflection_DefaultNodeInfo) Has(fd protoreflect.FieldDescriptor) bo // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DefaultNodeInfo) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.p2p.v1.DefaultNodeInfo.protocol_version": + case "tendermint.p2p.DefaultNodeInfo.protocol_version": x.ProtocolVersion = nil - case "cometbft.p2p.v1.DefaultNodeInfo.default_node_id": + case "tendermint.p2p.DefaultNodeInfo.default_node_id": x.DefaultNodeId = "" - case "cometbft.p2p.v1.DefaultNodeInfo.listen_addr": + case "tendermint.p2p.DefaultNodeInfo.listen_addr": x.ListenAddr = "" - case "cometbft.p2p.v1.DefaultNodeInfo.network": + case "tendermint.p2p.DefaultNodeInfo.network": x.Network = "" - case "cometbft.p2p.v1.DefaultNodeInfo.version": + case "tendermint.p2p.DefaultNodeInfo.version": x.Version = "" - case "cometbft.p2p.v1.DefaultNodeInfo.channels": + case "tendermint.p2p.DefaultNodeInfo.channels": x.Channels = nil - case "cometbft.p2p.v1.DefaultNodeInfo.moniker": + case "tendermint.p2p.DefaultNodeInfo.moniker": x.Moniker = "" - case "cometbft.p2p.v1.DefaultNodeInfo.other": + case "tendermint.p2p.DefaultNodeInfo.other": x.Other = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.DefaultNodeInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.p2p.DefaultNodeInfo")) } - panic(fmt.Errorf("message cometbft.p2p.v1.DefaultNodeInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.p2p.DefaultNodeInfo does not contain field %s", fd.FullName())) } } @@ -1262,35 +1262,35 @@ func (x *fastReflection_DefaultNodeInfo) Clear(fd protoreflect.FieldDescriptor) // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_DefaultNodeInfo) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.p2p.v1.DefaultNodeInfo.protocol_version": + case "tendermint.p2p.DefaultNodeInfo.protocol_version": value := x.ProtocolVersion return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.p2p.v1.DefaultNodeInfo.default_node_id": + case "tendermint.p2p.DefaultNodeInfo.default_node_id": value := x.DefaultNodeId return protoreflect.ValueOfString(value) - case "cometbft.p2p.v1.DefaultNodeInfo.listen_addr": + case "tendermint.p2p.DefaultNodeInfo.listen_addr": value := x.ListenAddr return protoreflect.ValueOfString(value) - case "cometbft.p2p.v1.DefaultNodeInfo.network": + case "tendermint.p2p.DefaultNodeInfo.network": value := x.Network return protoreflect.ValueOfString(value) - case "cometbft.p2p.v1.DefaultNodeInfo.version": + case "tendermint.p2p.DefaultNodeInfo.version": value := x.Version return protoreflect.ValueOfString(value) - case "cometbft.p2p.v1.DefaultNodeInfo.channels": + case "tendermint.p2p.DefaultNodeInfo.channels": value := x.Channels return protoreflect.ValueOfBytes(value) - case "cometbft.p2p.v1.DefaultNodeInfo.moniker": + case "tendermint.p2p.DefaultNodeInfo.moniker": value := x.Moniker return protoreflect.ValueOfString(value) - case "cometbft.p2p.v1.DefaultNodeInfo.other": + case "tendermint.p2p.DefaultNodeInfo.other": value := x.Other return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.DefaultNodeInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.p2p.DefaultNodeInfo")) } - panic(fmt.Errorf("message cometbft.p2p.v1.DefaultNodeInfo does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.p2p.DefaultNodeInfo does not contain field %s", descriptor.FullName())) } } @@ -1306,27 +1306,27 @@ func (x *fastReflection_DefaultNodeInfo) Get(descriptor protoreflect.FieldDescri // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DefaultNodeInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.p2p.v1.DefaultNodeInfo.protocol_version": + case "tendermint.p2p.DefaultNodeInfo.protocol_version": x.ProtocolVersion = value.Message().Interface().(*ProtocolVersion) - case "cometbft.p2p.v1.DefaultNodeInfo.default_node_id": + case "tendermint.p2p.DefaultNodeInfo.default_node_id": x.DefaultNodeId = value.Interface().(string) - case "cometbft.p2p.v1.DefaultNodeInfo.listen_addr": + case "tendermint.p2p.DefaultNodeInfo.listen_addr": x.ListenAddr = value.Interface().(string) - case "cometbft.p2p.v1.DefaultNodeInfo.network": + case "tendermint.p2p.DefaultNodeInfo.network": x.Network = value.Interface().(string) - case "cometbft.p2p.v1.DefaultNodeInfo.version": + case "tendermint.p2p.DefaultNodeInfo.version": x.Version = value.Interface().(string) - case "cometbft.p2p.v1.DefaultNodeInfo.channels": + case "tendermint.p2p.DefaultNodeInfo.channels": x.Channels = value.Bytes() - case "cometbft.p2p.v1.DefaultNodeInfo.moniker": + case "tendermint.p2p.DefaultNodeInfo.moniker": x.Moniker = value.Interface().(string) - case "cometbft.p2p.v1.DefaultNodeInfo.other": + case "tendermint.p2p.DefaultNodeInfo.other": x.Other = value.Message().Interface().(*DefaultNodeInfoOther) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.DefaultNodeInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.p2p.DefaultNodeInfo")) } - panic(fmt.Errorf("message cometbft.p2p.v1.DefaultNodeInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.p2p.DefaultNodeInfo does not contain field %s", fd.FullName())) } } @@ -1342,33 +1342,33 @@ func (x *fastReflection_DefaultNodeInfo) Set(fd protoreflect.FieldDescriptor, va // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DefaultNodeInfo) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.p2p.v1.DefaultNodeInfo.protocol_version": + case "tendermint.p2p.DefaultNodeInfo.protocol_version": if x.ProtocolVersion == nil { x.ProtocolVersion = new(ProtocolVersion) } return protoreflect.ValueOfMessage(x.ProtocolVersion.ProtoReflect()) - case "cometbft.p2p.v1.DefaultNodeInfo.other": + case "tendermint.p2p.DefaultNodeInfo.other": if x.Other == nil { x.Other = new(DefaultNodeInfoOther) } return protoreflect.ValueOfMessage(x.Other.ProtoReflect()) - case "cometbft.p2p.v1.DefaultNodeInfo.default_node_id": - panic(fmt.Errorf("field default_node_id of message cometbft.p2p.v1.DefaultNodeInfo is not mutable")) - case "cometbft.p2p.v1.DefaultNodeInfo.listen_addr": - panic(fmt.Errorf("field listen_addr of message cometbft.p2p.v1.DefaultNodeInfo is not mutable")) - case "cometbft.p2p.v1.DefaultNodeInfo.network": - panic(fmt.Errorf("field network of message cometbft.p2p.v1.DefaultNodeInfo is not mutable")) - case "cometbft.p2p.v1.DefaultNodeInfo.version": - panic(fmt.Errorf("field version of message cometbft.p2p.v1.DefaultNodeInfo is not mutable")) - case "cometbft.p2p.v1.DefaultNodeInfo.channels": - panic(fmt.Errorf("field channels of message cometbft.p2p.v1.DefaultNodeInfo is not mutable")) - case "cometbft.p2p.v1.DefaultNodeInfo.moniker": - panic(fmt.Errorf("field moniker of message cometbft.p2p.v1.DefaultNodeInfo is not mutable")) + case "tendermint.p2p.DefaultNodeInfo.default_node_id": + panic(fmt.Errorf("field default_node_id of message tendermint.p2p.DefaultNodeInfo is not mutable")) + case "tendermint.p2p.DefaultNodeInfo.listen_addr": + panic(fmt.Errorf("field listen_addr of message tendermint.p2p.DefaultNodeInfo is not mutable")) + case "tendermint.p2p.DefaultNodeInfo.network": + panic(fmt.Errorf("field network of message tendermint.p2p.DefaultNodeInfo is not mutable")) + case "tendermint.p2p.DefaultNodeInfo.version": + panic(fmt.Errorf("field version of message tendermint.p2p.DefaultNodeInfo is not mutable")) + case "tendermint.p2p.DefaultNodeInfo.channels": + panic(fmt.Errorf("field channels of message tendermint.p2p.DefaultNodeInfo is not mutable")) + case "tendermint.p2p.DefaultNodeInfo.moniker": + panic(fmt.Errorf("field moniker of message tendermint.p2p.DefaultNodeInfo is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.DefaultNodeInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.p2p.DefaultNodeInfo")) } - panic(fmt.Errorf("message cometbft.p2p.v1.DefaultNodeInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.p2p.DefaultNodeInfo does not contain field %s", fd.FullName())) } } @@ -1377,29 +1377,29 @@ func (x *fastReflection_DefaultNodeInfo) Mutable(fd protoreflect.FieldDescriptor // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_DefaultNodeInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.p2p.v1.DefaultNodeInfo.protocol_version": + case "tendermint.p2p.DefaultNodeInfo.protocol_version": m := new(ProtocolVersion) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.p2p.v1.DefaultNodeInfo.default_node_id": + case "tendermint.p2p.DefaultNodeInfo.default_node_id": return protoreflect.ValueOfString("") - case "cometbft.p2p.v1.DefaultNodeInfo.listen_addr": + case "tendermint.p2p.DefaultNodeInfo.listen_addr": return protoreflect.ValueOfString("") - case "cometbft.p2p.v1.DefaultNodeInfo.network": + case "tendermint.p2p.DefaultNodeInfo.network": return protoreflect.ValueOfString("") - case "cometbft.p2p.v1.DefaultNodeInfo.version": + case "tendermint.p2p.DefaultNodeInfo.version": return protoreflect.ValueOfString("") - case "cometbft.p2p.v1.DefaultNodeInfo.channels": + case "tendermint.p2p.DefaultNodeInfo.channels": return protoreflect.ValueOfBytes(nil) - case "cometbft.p2p.v1.DefaultNodeInfo.moniker": + case "tendermint.p2p.DefaultNodeInfo.moniker": return protoreflect.ValueOfString("") - case "cometbft.p2p.v1.DefaultNodeInfo.other": + case "tendermint.p2p.DefaultNodeInfo.other": m := new(DefaultNodeInfoOther) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.DefaultNodeInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.p2p.DefaultNodeInfo")) } - panic(fmt.Errorf("message cometbft.p2p.v1.DefaultNodeInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.p2p.DefaultNodeInfo does not contain field %s", fd.FullName())) } } @@ -1409,7 +1409,7 @@ func (x *fastReflection_DefaultNodeInfo) NewField(fd protoreflect.FieldDescripto func (x *fastReflection_DefaultNodeInfo) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.p2p.v1.DefaultNodeInfo", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.p2p.DefaultNodeInfo", d.FullName())) } panic("unreachable") } @@ -1952,8 +1952,8 @@ var ( ) func init() { - file_cometbft_p2p_v1_types_proto_init() - md_DefaultNodeInfoOther = File_cometbft_p2p_v1_types_proto.Messages().ByName("DefaultNodeInfoOther") + file_tendermint_p2p_types_proto_init() + md_DefaultNodeInfoOther = File_tendermint_p2p_types_proto.Messages().ByName("DefaultNodeInfoOther") fd_DefaultNodeInfoOther_tx_index = md_DefaultNodeInfoOther.Fields().ByName("tx_index") fd_DefaultNodeInfoOther_rpc_address = md_DefaultNodeInfoOther.Fields().ByName("rpc_address") } @@ -1967,7 +1967,7 @@ func (x *DefaultNodeInfoOther) ProtoReflect() protoreflect.Message { } func (x *DefaultNodeInfoOther) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_p2p_v1_types_proto_msgTypes[3] + mi := &file_tendermint_p2p_types_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2050,15 +2050,15 @@ func (x *fastReflection_DefaultNodeInfoOther) Range(f func(protoreflect.FieldDes // a repeated field is populated if it is non-empty. func (x *fastReflection_DefaultNodeInfoOther) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.p2p.v1.DefaultNodeInfoOther.tx_index": + case "tendermint.p2p.DefaultNodeInfoOther.tx_index": return x.TxIndex != "" - case "cometbft.p2p.v1.DefaultNodeInfoOther.rpc_address": + case "tendermint.p2p.DefaultNodeInfoOther.rpc_address": return x.RpcAddress != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.DefaultNodeInfoOther")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.p2p.DefaultNodeInfoOther")) } - panic(fmt.Errorf("message cometbft.p2p.v1.DefaultNodeInfoOther does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.p2p.DefaultNodeInfoOther does not contain field %s", fd.FullName())) } } @@ -2070,15 +2070,15 @@ func (x *fastReflection_DefaultNodeInfoOther) Has(fd protoreflect.FieldDescripto // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DefaultNodeInfoOther) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.p2p.v1.DefaultNodeInfoOther.tx_index": + case "tendermint.p2p.DefaultNodeInfoOther.tx_index": x.TxIndex = "" - case "cometbft.p2p.v1.DefaultNodeInfoOther.rpc_address": + case "tendermint.p2p.DefaultNodeInfoOther.rpc_address": x.RpcAddress = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.DefaultNodeInfoOther")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.p2p.DefaultNodeInfoOther")) } - panic(fmt.Errorf("message cometbft.p2p.v1.DefaultNodeInfoOther does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.p2p.DefaultNodeInfoOther does not contain field %s", fd.FullName())) } } @@ -2090,17 +2090,17 @@ func (x *fastReflection_DefaultNodeInfoOther) Clear(fd protoreflect.FieldDescrip // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_DefaultNodeInfoOther) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.p2p.v1.DefaultNodeInfoOther.tx_index": + case "tendermint.p2p.DefaultNodeInfoOther.tx_index": value := x.TxIndex return protoreflect.ValueOfString(value) - case "cometbft.p2p.v1.DefaultNodeInfoOther.rpc_address": + case "tendermint.p2p.DefaultNodeInfoOther.rpc_address": value := x.RpcAddress return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.DefaultNodeInfoOther")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.p2p.DefaultNodeInfoOther")) } - panic(fmt.Errorf("message cometbft.p2p.v1.DefaultNodeInfoOther does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.p2p.DefaultNodeInfoOther does not contain field %s", descriptor.FullName())) } } @@ -2116,15 +2116,15 @@ func (x *fastReflection_DefaultNodeInfoOther) Get(descriptor protoreflect.FieldD // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DefaultNodeInfoOther) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.p2p.v1.DefaultNodeInfoOther.tx_index": + case "tendermint.p2p.DefaultNodeInfoOther.tx_index": x.TxIndex = value.Interface().(string) - case "cometbft.p2p.v1.DefaultNodeInfoOther.rpc_address": + case "tendermint.p2p.DefaultNodeInfoOther.rpc_address": x.RpcAddress = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.DefaultNodeInfoOther")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.p2p.DefaultNodeInfoOther")) } - panic(fmt.Errorf("message cometbft.p2p.v1.DefaultNodeInfoOther does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.p2p.DefaultNodeInfoOther does not contain field %s", fd.FullName())) } } @@ -2140,15 +2140,15 @@ func (x *fastReflection_DefaultNodeInfoOther) Set(fd protoreflect.FieldDescripto // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DefaultNodeInfoOther) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.p2p.v1.DefaultNodeInfoOther.tx_index": - panic(fmt.Errorf("field tx_index of message cometbft.p2p.v1.DefaultNodeInfoOther is not mutable")) - case "cometbft.p2p.v1.DefaultNodeInfoOther.rpc_address": - panic(fmt.Errorf("field rpc_address of message cometbft.p2p.v1.DefaultNodeInfoOther is not mutable")) + case "tendermint.p2p.DefaultNodeInfoOther.tx_index": + panic(fmt.Errorf("field tx_index of message tendermint.p2p.DefaultNodeInfoOther is not mutable")) + case "tendermint.p2p.DefaultNodeInfoOther.rpc_address": + panic(fmt.Errorf("field rpc_address of message tendermint.p2p.DefaultNodeInfoOther is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.DefaultNodeInfoOther")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.p2p.DefaultNodeInfoOther")) } - panic(fmt.Errorf("message cometbft.p2p.v1.DefaultNodeInfoOther does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.p2p.DefaultNodeInfoOther does not contain field %s", fd.FullName())) } } @@ -2157,15 +2157,15 @@ func (x *fastReflection_DefaultNodeInfoOther) Mutable(fd protoreflect.FieldDescr // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_DefaultNodeInfoOther) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.p2p.v1.DefaultNodeInfoOther.tx_index": + case "tendermint.p2p.DefaultNodeInfoOther.tx_index": return protoreflect.ValueOfString("") - case "cometbft.p2p.v1.DefaultNodeInfoOther.rpc_address": + case "tendermint.p2p.DefaultNodeInfoOther.rpc_address": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.p2p.v1.DefaultNodeInfoOther")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.p2p.DefaultNodeInfoOther")) } - panic(fmt.Errorf("message cometbft.p2p.v1.DefaultNodeInfoOther does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.p2p.DefaultNodeInfoOther does not contain field %s", fd.FullName())) } } @@ -2175,7 +2175,7 @@ func (x *fastReflection_DefaultNodeInfoOther) NewField(fd protoreflect.FieldDesc func (x *fastReflection_DefaultNodeInfoOther) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.p2p.v1.DefaultNodeInfoOther", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.p2p.DefaultNodeInfoOther", d.FullName())) } panic("unreachable") } @@ -2433,7 +2433,7 @@ func (x *fastReflection_DefaultNodeInfoOther) ProtoMethods() *protoiface.Methods // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: cometbft/p2p/v1/types.proto +// source: tendermint/p2p/types.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -2442,7 +2442,6 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// NetAddress represents a peer's network address. type NetAddress struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2456,7 +2455,7 @@ type NetAddress struct { func (x *NetAddress) Reset() { *x = NetAddress{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_p2p_v1_types_proto_msgTypes[0] + mi := &file_tendermint_p2p_types_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2470,7 +2469,7 @@ func (*NetAddress) ProtoMessage() {} // Deprecated: Use NetAddress.ProtoReflect.Descriptor instead. func (*NetAddress) Descriptor() ([]byte, []int) { - return file_cometbft_p2p_v1_types_proto_rawDescGZIP(), []int{0} + return file_tendermint_p2p_types_proto_rawDescGZIP(), []int{0} } func (x *NetAddress) GetId() string { @@ -2494,7 +2493,6 @@ func (x *NetAddress) GetPort() uint32 { return 0 } -// ProtocolVersion represents the current p2p protocol version. type ProtocolVersion struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2508,7 +2506,7 @@ type ProtocolVersion struct { func (x *ProtocolVersion) Reset() { *x = ProtocolVersion{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_p2p_v1_types_proto_msgTypes[1] + mi := &file_tendermint_p2p_types_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2522,7 +2520,7 @@ func (*ProtocolVersion) ProtoMessage() {} // Deprecated: Use ProtocolVersion.ProtoReflect.Descriptor instead. func (*ProtocolVersion) Descriptor() ([]byte, []int) { - return file_cometbft_p2p_v1_types_proto_rawDescGZIP(), []int{1} + return file_tendermint_p2p_types_proto_rawDescGZIP(), []int{1} } func (x *ProtocolVersion) GetP2P() uint64 { @@ -2546,8 +2544,6 @@ func (x *ProtocolVersion) GetApp() uint64 { return 0 } -// DefaultNodeInfo is a basic node's information sent to other peers during the -// p2p handshake. type DefaultNodeInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2566,7 +2562,7 @@ type DefaultNodeInfo struct { func (x *DefaultNodeInfo) Reset() { *x = DefaultNodeInfo{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_p2p_v1_types_proto_msgTypes[2] + mi := &file_tendermint_p2p_types_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2580,7 +2576,7 @@ func (*DefaultNodeInfo) ProtoMessage() {} // Deprecated: Use DefaultNodeInfo.ProtoReflect.Descriptor instead. func (*DefaultNodeInfo) Descriptor() ([]byte, []int) { - return file_cometbft_p2p_v1_types_proto_rawDescGZIP(), []int{2} + return file_tendermint_p2p_types_proto_rawDescGZIP(), []int{2} } func (x *DefaultNodeInfo) GetProtocolVersion() *ProtocolVersion { @@ -2639,7 +2635,6 @@ func (x *DefaultNodeInfo) GetOther() *DefaultNodeInfoOther { return nil } -// DefaultNodeInfoOther is the misc. application specific data. type DefaultNodeInfoOther struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2652,7 +2647,7 @@ type DefaultNodeInfoOther struct { func (x *DefaultNodeInfoOther) Reset() { *x = DefaultNodeInfoOther{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_p2p_v1_types_proto_msgTypes[3] + mi := &file_tendermint_p2p_types_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2666,7 +2661,7 @@ func (*DefaultNodeInfoOther) ProtoMessage() {} // Deprecated: Use DefaultNodeInfoOther.ProtoReflect.Descriptor instead. func (*DefaultNodeInfoOther) Descriptor() ([]byte, []int) { - return file_cometbft_p2p_v1_types_proto_rawDescGZIP(), []int{3} + return file_tendermint_p2p_types_proto_rawDescGZIP(), []int{3} } func (x *DefaultNodeInfoOther) GetTxIndex() string { @@ -2683,89 +2678,88 @@ func (x *DefaultNodeInfoOther) GetRpcAddress() string { return "" } -var File_cometbft_p2p_v1_types_proto protoreflect.FileDescriptor +var File_tendermint_p2p_types_proto protoreflect.FileDescriptor -var file_cometbft_p2p_v1_types_proto_rawDesc = []byte{ - 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x70, 0x32, 0x70, 0x2f, 0x76, - 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x63, - 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x70, 0x32, 0x70, 0x2e, 0x76, 0x31, 0x1a, 0x14, - 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x50, 0x0a, 0x0a, 0x4e, 0x65, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x12, 0x16, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, - 0xe2, 0xde, 0x1f, 0x02, 0x49, 0x44, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x02, 0x69, 0x70, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xde, 0x1f, 0x02, 0x49, 0x50, 0x52, 0x02, - 0x69, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x54, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, - 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x03, 0x70, 0x32, 0x70, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x42, 0x07, 0xe2, 0xde, 0x1f, 0x03, 0x50, 0x32, 0x50, 0x52, - 0x03, 0x70, 0x32, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x70, - 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x61, 0x70, 0x70, 0x22, 0xed, 0x02, 0x0a, - 0x0f, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, - 0x12, 0x51, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x76, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x6f, 0x6d, - 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x70, 0x32, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x04, 0xc8, 0xde, - 0x1f, 0x00, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x0f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x6e, - 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x11, 0xe2, 0xde, - 0x1f, 0x0d, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x44, 0x52, - 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1f, - 0x0a, 0x0b, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x41, 0x64, 0x64, 0x72, 0x12, - 0x18, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x12, - 0x18, 0x0a, 0x07, 0x6d, 0x6f, 0x6e, 0x69, 0x6b, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x6d, 0x6f, 0x6e, 0x69, 0x6b, 0x65, 0x72, 0x12, 0x41, 0x0a, 0x05, 0x6f, 0x74, 0x68, - 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, - 0x62, 0x66, 0x74, 0x2e, 0x70, 0x32, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, - 0x6c, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x4f, 0x74, 0x68, 0x65, 0x72, 0x42, - 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x05, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x22, 0x62, 0x0a, 0x14, - 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x4f, - 0x74, 0x68, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x78, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x78, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, - 0x2f, 0x0a, 0x0b, 0x72, 0x70, 0x63, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x0e, 0xe2, 0xde, 0x1f, 0x0a, 0x52, 0x50, 0x43, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x52, 0x0a, 0x72, 0x70, 0x63, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x42, 0xa7, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, - 0x74, 0x2e, 0x70, 0x32, 0x70, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x26, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, - 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, - 0x74, 0x2f, 0x70, 0x32, 0x70, 0x2f, 0x76, 0x31, 0x3b, 0x70, 0x32, 0x70, 0x76, 0x31, 0xa2, 0x02, - 0x03, 0x43, 0x50, 0x58, 0xaa, 0x02, 0x0f, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, - 0x50, 0x32, 0x70, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0f, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, - 0x74, 0x5c, 0x50, 0x32, 0x70, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1b, 0x43, 0x6f, 0x6d, 0x65, 0x74, - 0x62, 0x66, 0x74, 0x5c, 0x50, 0x32, 0x70, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, - 0x74, 0x3a, 0x3a, 0x50, 0x32, 0x70, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, +var file_tendermint_p2p_types_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x70, 0x32, 0x70, + 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x74, 0x65, + 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x32, 0x70, 0x1a, 0x14, 0x67, 0x6f, + 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x22, 0x50, 0x0a, 0x0a, 0x4e, 0x65, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x12, 0x16, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xde, + 0x1f, 0x02, 0x49, 0x44, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xde, 0x1f, 0x02, 0x49, 0x50, 0x52, 0x02, 0x69, 0x70, + 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, + 0x70, 0x6f, 0x72, 0x74, 0x22, 0x54, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x03, 0x70, 0x32, 0x70, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x04, 0x42, 0x07, 0xe2, 0xde, 0x1f, 0x03, 0x50, 0x32, 0x50, 0x52, 0x03, 0x70, + 0x32, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x70, 0x70, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x61, 0x70, 0x70, 0x22, 0xeb, 0x02, 0x0a, 0x0f, 0x44, + 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x50, + 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x32, 0x70, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, + 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, + 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x39, 0x0a, 0x0f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x6e, 0x6f, 0x64, 0x65, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x11, 0xe2, 0xde, 0x1f, 0x0d, 0x44, + 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x44, 0x52, 0x0d, 0x64, 0x65, + 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, + 0x69, 0x73, 0x74, 0x65, 0x6e, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0a, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x41, 0x64, 0x64, 0x72, 0x12, 0x18, 0x0a, 0x07, + 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x08, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x12, 0x18, 0x0a, 0x07, + 0x6d, 0x6f, 0x6e, 0x69, 0x6b, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, + 0x6f, 0x6e, 0x69, 0x6b, 0x65, 0x72, 0x12, 0x40, 0x0a, 0x05, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, + 0x6e, 0x74, 0x2e, 0x70, 0x32, 0x70, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4e, 0x6f, + 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x4f, 0x74, 0x68, 0x65, 0x72, 0x42, 0x04, 0xc8, 0xde, 0x1f, + 0x00, 0x52, 0x05, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x22, 0x62, 0x0a, 0x14, 0x44, 0x65, 0x66, 0x61, + 0x75, 0x6c, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x4f, 0x74, 0x68, 0x65, 0x72, + 0x12, 0x19, 0x0a, 0x08, 0x74, 0x78, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x74, 0x78, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x2f, 0x0a, 0x0b, 0x72, + 0x70, 0x63, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x0e, 0xe2, 0xde, 0x1f, 0x0a, 0x52, 0x50, 0x43, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x52, 0x0a, 0x72, 0x70, 0x63, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x9a, 0x01, 0x0a, + 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, + 0x70, 0x32, 0x70, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x1f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x70, + 0x32, 0x70, 0xa2, 0x02, 0x03, 0x54, 0x50, 0x58, 0xaa, 0x02, 0x0e, 0x54, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x50, 0x32, 0x70, 0xca, 0x02, 0x0e, 0x54, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x5c, 0x50, 0x32, 0x70, 0xe2, 0x02, 0x1a, 0x54, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x5c, 0x50, 0x32, 0x70, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x6d, 0x69, 0x6e, 0x74, 0x3a, 0x3a, 0x50, 0x32, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( - file_cometbft_p2p_v1_types_proto_rawDescOnce sync.Once - file_cometbft_p2p_v1_types_proto_rawDescData = file_cometbft_p2p_v1_types_proto_rawDesc + file_tendermint_p2p_types_proto_rawDescOnce sync.Once + file_tendermint_p2p_types_proto_rawDescData = file_tendermint_p2p_types_proto_rawDesc ) -func file_cometbft_p2p_v1_types_proto_rawDescGZIP() []byte { - file_cometbft_p2p_v1_types_proto_rawDescOnce.Do(func() { - file_cometbft_p2p_v1_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_cometbft_p2p_v1_types_proto_rawDescData) +func file_tendermint_p2p_types_proto_rawDescGZIP() []byte { + file_tendermint_p2p_types_proto_rawDescOnce.Do(func() { + file_tendermint_p2p_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_tendermint_p2p_types_proto_rawDescData) }) - return file_cometbft_p2p_v1_types_proto_rawDescData + return file_tendermint_p2p_types_proto_rawDescData } -var file_cometbft_p2p_v1_types_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_cometbft_p2p_v1_types_proto_goTypes = []interface{}{ - (*NetAddress)(nil), // 0: cometbft.p2p.v1.NetAddress - (*ProtocolVersion)(nil), // 1: cometbft.p2p.v1.ProtocolVersion - (*DefaultNodeInfo)(nil), // 2: cometbft.p2p.v1.DefaultNodeInfo - (*DefaultNodeInfoOther)(nil), // 3: cometbft.p2p.v1.DefaultNodeInfoOther +var file_tendermint_p2p_types_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_tendermint_p2p_types_proto_goTypes = []interface{}{ + (*NetAddress)(nil), // 0: tendermint.p2p.NetAddress + (*ProtocolVersion)(nil), // 1: tendermint.p2p.ProtocolVersion + (*DefaultNodeInfo)(nil), // 2: tendermint.p2p.DefaultNodeInfo + (*DefaultNodeInfoOther)(nil), // 3: tendermint.p2p.DefaultNodeInfoOther } -var file_cometbft_p2p_v1_types_proto_depIdxs = []int32{ - 1, // 0: cometbft.p2p.v1.DefaultNodeInfo.protocol_version:type_name -> cometbft.p2p.v1.ProtocolVersion - 3, // 1: cometbft.p2p.v1.DefaultNodeInfo.other:type_name -> cometbft.p2p.v1.DefaultNodeInfoOther +var file_tendermint_p2p_types_proto_depIdxs = []int32{ + 1, // 0: tendermint.p2p.DefaultNodeInfo.protocol_version:type_name -> tendermint.p2p.ProtocolVersion + 3, // 1: tendermint.p2p.DefaultNodeInfo.other:type_name -> tendermint.p2p.DefaultNodeInfoOther 2, // [2:2] is the sub-list for method output_type 2, // [2:2] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name @@ -2773,13 +2767,13 @@ var file_cometbft_p2p_v1_types_proto_depIdxs = []int32{ 0, // [0:2] is the sub-list for field type_name } -func init() { file_cometbft_p2p_v1_types_proto_init() } -func file_cometbft_p2p_v1_types_proto_init() { - if File_cometbft_p2p_v1_types_proto != nil { +func init() { file_tendermint_p2p_types_proto_init() } +func file_tendermint_p2p_types_proto_init() { + if File_tendermint_p2p_types_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_cometbft_p2p_v1_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_p2p_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*NetAddress); i { case 0: return &v.state @@ -2791,7 +2785,7 @@ func file_cometbft_p2p_v1_types_proto_init() { return nil } } - file_cometbft_p2p_v1_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_p2p_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ProtocolVersion); i { case 0: return &v.state @@ -2803,7 +2797,7 @@ func file_cometbft_p2p_v1_types_proto_init() { return nil } } - file_cometbft_p2p_v1_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_p2p_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DefaultNodeInfo); i { case 0: return &v.state @@ -2815,7 +2809,7 @@ func file_cometbft_p2p_v1_types_proto_init() { return nil } } - file_cometbft_p2p_v1_types_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_p2p_types_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DefaultNodeInfoOther); i { case 0: return &v.state @@ -2832,18 +2826,18 @@ func file_cometbft_p2p_v1_types_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cometbft_p2p_v1_types_proto_rawDesc, + RawDescriptor: file_tendermint_p2p_types_proto_rawDesc, NumEnums: 0, NumMessages: 4, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_cometbft_p2p_v1_types_proto_goTypes, - DependencyIndexes: file_cometbft_p2p_v1_types_proto_depIdxs, - MessageInfos: file_cometbft_p2p_v1_types_proto_msgTypes, + GoTypes: file_tendermint_p2p_types_proto_goTypes, + DependencyIndexes: file_tendermint_p2p_types_proto_depIdxs, + MessageInfos: file_tendermint_p2p_types_proto_msgTypes, }.Build() - File_cometbft_p2p_v1_types_proto = out.File - file_cometbft_p2p_v1_types_proto_rawDesc = nil - file_cometbft_p2p_v1_types_proto_goTypes = nil - file_cometbft_p2p_v1_types_proto_depIdxs = nil + File_tendermint_p2p_types_proto = out.File + file_tendermint_p2p_types_proto_rawDesc = nil + file_tendermint_p2p_types_proto_goTypes = nil + file_tendermint_p2p_types_proto_depIdxs = nil } diff --git a/api/cometbft/types/v2/block.pulsar.go b/api/tendermint/types/block.pulsar.go similarity index 75% rename from api/cometbft/types/v2/block.pulsar.go rename to api/tendermint/types/block.pulsar.go index 83289ff5bd..aed0ab7f34 100644 --- a/api/cometbft/types/v2/block.pulsar.go +++ b/api/tendermint/types/block.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package typesv2 +package types import ( fmt "fmt" @@ -22,8 +22,8 @@ var ( ) func init() { - file_cometbft_types_v2_block_proto_init() - md_Block = File_cometbft_types_v2_block_proto.Messages().ByName("Block") + file_tendermint_types_block_proto_init() + md_Block = File_tendermint_types_block_proto.Messages().ByName("Block") fd_Block_header = md_Block.Fields().ByName("header") fd_Block_data = md_Block.Fields().ByName("data") fd_Block_evidence = md_Block.Fields().ByName("evidence") @@ -39,7 +39,7 @@ func (x *Block) ProtoReflect() protoreflect.Message { } func (x *Block) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_block_proto_msgTypes[0] + mi := &file_tendermint_types_block_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -134,19 +134,19 @@ func (x *fastReflection_Block) Range(f func(protoreflect.FieldDescriptor, protor // a repeated field is populated if it is non-empty. func (x *fastReflection_Block) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.types.v2.Block.header": + case "tendermint.types.Block.header": return x.Header != nil - case "cometbft.types.v2.Block.data": + case "tendermint.types.Block.data": return x.Data != nil - case "cometbft.types.v2.Block.evidence": + case "tendermint.types.Block.evidence": return x.Evidence != nil - case "cometbft.types.v2.Block.last_commit": + case "tendermint.types.Block.last_commit": return x.LastCommit != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Block")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Block")) } - panic(fmt.Errorf("message cometbft.types.v2.Block does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Block does not contain field %s", fd.FullName())) } } @@ -158,19 +158,19 @@ func (x *fastReflection_Block) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Block) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.types.v2.Block.header": + case "tendermint.types.Block.header": x.Header = nil - case "cometbft.types.v2.Block.data": + case "tendermint.types.Block.data": x.Data = nil - case "cometbft.types.v2.Block.evidence": + case "tendermint.types.Block.evidence": x.Evidence = nil - case "cometbft.types.v2.Block.last_commit": + case "tendermint.types.Block.last_commit": x.LastCommit = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Block")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Block")) } - panic(fmt.Errorf("message cometbft.types.v2.Block does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Block does not contain field %s", fd.FullName())) } } @@ -182,23 +182,23 @@ func (x *fastReflection_Block) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Block) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.types.v2.Block.header": + case "tendermint.types.Block.header": value := x.Header return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.Block.data": + case "tendermint.types.Block.data": value := x.Data return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.Block.evidence": + case "tendermint.types.Block.evidence": value := x.Evidence return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.Block.last_commit": + case "tendermint.types.Block.last_commit": value := x.LastCommit return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Block")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Block")) } - panic(fmt.Errorf("message cometbft.types.v2.Block does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.types.Block does not contain field %s", descriptor.FullName())) } } @@ -214,19 +214,19 @@ func (x *fastReflection_Block) Get(descriptor protoreflect.FieldDescriptor) prot // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Block) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.types.v2.Block.header": + case "tendermint.types.Block.header": x.Header = value.Message().Interface().(*Header) - case "cometbft.types.v2.Block.data": + case "tendermint.types.Block.data": x.Data = value.Message().Interface().(*Data) - case "cometbft.types.v2.Block.evidence": + case "tendermint.types.Block.evidence": x.Evidence = value.Message().Interface().(*EvidenceList) - case "cometbft.types.v2.Block.last_commit": + case "tendermint.types.Block.last_commit": x.LastCommit = value.Message().Interface().(*Commit) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Block")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Block")) } - panic(fmt.Errorf("message cometbft.types.v2.Block does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Block does not contain field %s", fd.FullName())) } } @@ -242,31 +242,31 @@ func (x *fastReflection_Block) Set(fd protoreflect.FieldDescriptor, value protor // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Block) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.Block.header": + case "tendermint.types.Block.header": if x.Header == nil { x.Header = new(Header) } return protoreflect.ValueOfMessage(x.Header.ProtoReflect()) - case "cometbft.types.v2.Block.data": + case "tendermint.types.Block.data": if x.Data == nil { x.Data = new(Data) } return protoreflect.ValueOfMessage(x.Data.ProtoReflect()) - case "cometbft.types.v2.Block.evidence": + case "tendermint.types.Block.evidence": if x.Evidence == nil { x.Evidence = new(EvidenceList) } return protoreflect.ValueOfMessage(x.Evidence.ProtoReflect()) - case "cometbft.types.v2.Block.last_commit": + case "tendermint.types.Block.last_commit": if x.LastCommit == nil { x.LastCommit = new(Commit) } return protoreflect.ValueOfMessage(x.LastCommit.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Block")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Block")) } - panic(fmt.Errorf("message cometbft.types.v2.Block does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Block does not contain field %s", fd.FullName())) } } @@ -275,23 +275,23 @@ func (x *fastReflection_Block) Mutable(fd protoreflect.FieldDescriptor) protoref // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Block) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.Block.header": + case "tendermint.types.Block.header": m := new(Header) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.Block.data": + case "tendermint.types.Block.data": m := new(Data) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.Block.evidence": + case "tendermint.types.Block.evidence": m := new(EvidenceList) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.Block.last_commit": + case "tendermint.types.Block.last_commit": m := new(Commit) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Block")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Block")) } - panic(fmt.Errorf("message cometbft.types.v2.Block does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Block does not contain field %s", fd.FullName())) } } @@ -301,7 +301,7 @@ func (x *fastReflection_Block) NewField(fd protoreflect.FieldDescriptor) protore func (x *fastReflection_Block) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.Block", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.types.Block", d.FullName())) } panic("unreachable") } @@ -689,7 +689,7 @@ func (x *fastReflection_Block) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: cometbft/types/v2/block.proto +// source: tendermint/types/block.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -698,7 +698,6 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Block defines the structure of a block in the CometBFT blockchain. type Block struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -713,7 +712,7 @@ type Block struct { func (x *Block) Reset() { *x = Block{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_block_proto_msgTypes[0] + mi := &file_tendermint_types_block_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -727,7 +726,7 @@ func (*Block) ProtoMessage() {} // Deprecated: Use Block.ProtoReflect.Descriptor instead. func (*Block) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_block_proto_rawDescGZIP(), []int{0} + return file_tendermint_types_block_proto_rawDescGZIP(), []int{0} } func (x *Block) GetHeader() *Header { @@ -758,72 +757,71 @@ func (x *Block) GetLastCommit() *Commit { return nil } -var File_cometbft_types_v2_block_proto protoreflect.FileDescriptor +var File_tendermint_types_block_proto protoreflect.FileDescriptor -var file_cometbft_types_v2_block_proto_rawDesc = []byte{ - 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2f, 0x76, 0x32, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x11, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, - 0x76, 0x32, 0x1a, 0x1d, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, - 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf2, 0x01, 0x0a, 0x05, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x12, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x42, 0x04, - 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x31, 0x0a, 0x04, - 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x6f, 0x6d, - 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x44, - 0x61, 0x74, 0x61, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, - 0x41, 0x0a, 0x08, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x4c, 0x69, - 0x73, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, - 0x63, 0x65, 0x12, 0x3a, 0x0a, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, - 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, - 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, - 0x69, 0x74, 0x52, 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x42, 0xb5, - 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x42, 0x0a, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, - 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, - 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x32, 0x3b, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x76, 0x32, 0xa2, 0x02, 0x03, 0x43, 0x54, 0x58, 0xaa, 0x02, 0x11, 0x43, 0x6f, 0x6d, 0x65, 0x74, - 0x62, 0x66, 0x74, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x11, 0x43, - 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x5c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x56, 0x32, - 0xe2, 0x02, 0x1d, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x5c, 0x54, 0x79, 0x70, 0x65, - 0x73, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0xea, 0x02, 0x13, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x3a, 0x3a, 0x54, 0x79, 0x70, - 0x65, 0x73, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +var file_tendermint_types_block_proto_rawDesc = []byte{ + 0x0a, 0x1c, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, + 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, + 0x6e, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, + 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xee, 0x01, 0x0a, 0x05, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, + 0x36, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x18, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, + 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x30, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, + 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x42, 0x04, 0xc8, + 0xde, 0x1f, 0x00, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x40, 0x0a, 0x08, 0x65, 0x76, 0x69, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x74, 0x65, + 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x45, + 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, + 0x00, 0x52, 0x08, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x39, 0x0a, 0x0b, 0x6c, + 0x61, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x18, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x0a, 0x6c, 0x61, 0x73, 0x74, + 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x42, 0xa6, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x74, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x42, + 0x0a, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x21, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, + 0xa2, 0x02, 0x03, 0x54, 0x54, 0x58, 0xaa, 0x02, 0x10, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, + 0x69, 0x6e, 0x74, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x73, 0xca, 0x02, 0x10, 0x54, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x5c, 0x54, 0x79, 0x70, 0x65, 0x73, 0xe2, 0x02, 0x1c, 0x54, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x5c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x54, 0x65, + 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x3a, 0x3a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_cometbft_types_v2_block_proto_rawDescOnce sync.Once - file_cometbft_types_v2_block_proto_rawDescData = file_cometbft_types_v2_block_proto_rawDesc + file_tendermint_types_block_proto_rawDescOnce sync.Once + file_tendermint_types_block_proto_rawDescData = file_tendermint_types_block_proto_rawDesc ) -func file_cometbft_types_v2_block_proto_rawDescGZIP() []byte { - file_cometbft_types_v2_block_proto_rawDescOnce.Do(func() { - file_cometbft_types_v2_block_proto_rawDescData = protoimpl.X.CompressGZIP(file_cometbft_types_v2_block_proto_rawDescData) +func file_tendermint_types_block_proto_rawDescGZIP() []byte { + file_tendermint_types_block_proto_rawDescOnce.Do(func() { + file_tendermint_types_block_proto_rawDescData = protoimpl.X.CompressGZIP(file_tendermint_types_block_proto_rawDescData) }) - return file_cometbft_types_v2_block_proto_rawDescData + return file_tendermint_types_block_proto_rawDescData } -var file_cometbft_types_v2_block_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_cometbft_types_v2_block_proto_goTypes = []interface{}{ - (*Block)(nil), // 0: cometbft.types.v2.Block - (*Header)(nil), // 1: cometbft.types.v2.Header - (*Data)(nil), // 2: cometbft.types.v2.Data - (*EvidenceList)(nil), // 3: cometbft.types.v2.EvidenceList - (*Commit)(nil), // 4: cometbft.types.v2.Commit +var file_tendermint_types_block_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_tendermint_types_block_proto_goTypes = []interface{}{ + (*Block)(nil), // 0: tendermint.types.Block + (*Header)(nil), // 1: tendermint.types.Header + (*Data)(nil), // 2: tendermint.types.Data + (*EvidenceList)(nil), // 3: tendermint.types.EvidenceList + (*Commit)(nil), // 4: tendermint.types.Commit } -var file_cometbft_types_v2_block_proto_depIdxs = []int32{ - 1, // 0: cometbft.types.v2.Block.header:type_name -> cometbft.types.v2.Header - 2, // 1: cometbft.types.v2.Block.data:type_name -> cometbft.types.v2.Data - 3, // 2: cometbft.types.v2.Block.evidence:type_name -> cometbft.types.v2.EvidenceList - 4, // 3: cometbft.types.v2.Block.last_commit:type_name -> cometbft.types.v2.Commit +var file_tendermint_types_block_proto_depIdxs = []int32{ + 1, // 0: tendermint.types.Block.header:type_name -> tendermint.types.Header + 2, // 1: tendermint.types.Block.data:type_name -> tendermint.types.Data + 3, // 2: tendermint.types.Block.evidence:type_name -> tendermint.types.EvidenceList + 4, // 3: tendermint.types.Block.last_commit:type_name -> tendermint.types.Commit 4, // [4:4] is the sub-list for method output_type 4, // [4:4] is the sub-list for method input_type 4, // [4:4] is the sub-list for extension type_name @@ -831,15 +829,15 @@ var file_cometbft_types_v2_block_proto_depIdxs = []int32{ 0, // [0:4] is the sub-list for field type_name } -func init() { file_cometbft_types_v2_block_proto_init() } -func file_cometbft_types_v2_block_proto_init() { - if File_cometbft_types_v2_block_proto != nil { +func init() { file_tendermint_types_block_proto_init() } +func file_tendermint_types_block_proto_init() { + if File_tendermint_types_block_proto != nil { return } - file_cometbft_types_v2_types_proto_init() - file_cometbft_types_v2_evidence_proto_init() + file_tendermint_types_types_proto_init() + file_tendermint_types_evidence_proto_init() if !protoimpl.UnsafeEnabled { - file_cometbft_types_v2_block_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_types_block_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Block); i { case 0: return &v.state @@ -856,18 +854,18 @@ func file_cometbft_types_v2_block_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cometbft_types_v2_block_proto_rawDesc, + RawDescriptor: file_tendermint_types_block_proto_rawDesc, NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_cometbft_types_v2_block_proto_goTypes, - DependencyIndexes: file_cometbft_types_v2_block_proto_depIdxs, - MessageInfos: file_cometbft_types_v2_block_proto_msgTypes, + GoTypes: file_tendermint_types_block_proto_goTypes, + DependencyIndexes: file_tendermint_types_block_proto_depIdxs, + MessageInfos: file_tendermint_types_block_proto_msgTypes, }.Build() - File_cometbft_types_v2_block_proto = out.File - file_cometbft_types_v2_block_proto_rawDesc = nil - file_cometbft_types_v2_block_proto_goTypes = nil - file_cometbft_types_v2_block_proto_depIdxs = nil + File_tendermint_types_block_proto = out.File + file_tendermint_types_block_proto_rawDesc = nil + file_tendermint_types_block_proto_goTypes = nil + file_tendermint_types_block_proto_depIdxs = nil } diff --git a/api/cometbft/types/v2/evidence.pulsar.go b/api/tendermint/types/evidence.pulsar.go similarity index 80% rename from api/cometbft/types/v2/evidence.pulsar.go rename to api/tendermint/types/evidence.pulsar.go index 9c734673b2..a80b33b79f 100644 --- a/api/cometbft/types/v2/evidence.pulsar.go +++ b/api/tendermint/types/evidence.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package typesv2 +package types import ( fmt "fmt" @@ -21,8 +21,8 @@ var ( ) func init() { - file_cometbft_types_v2_evidence_proto_init() - md_Evidence = File_cometbft_types_v2_evidence_proto.Messages().ByName("Evidence") + file_tendermint_types_evidence_proto_init() + md_Evidence = File_tendermint_types_evidence_proto.Messages().ByName("Evidence") fd_Evidence_duplicate_vote_evidence = md_Evidence.Fields().ByName("duplicate_vote_evidence") fd_Evidence_light_client_attack_evidence = md_Evidence.Fields().ByName("light_client_attack_evidence") } @@ -36,7 +36,7 @@ func (x *Evidence) ProtoReflect() protoreflect.Message { } func (x *Evidence) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_evidence_proto_msgTypes[0] + mi := &file_tendermint_types_evidence_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -123,7 +123,7 @@ func (x *fastReflection_Evidence) Range(f func(protoreflect.FieldDescriptor, pro // a repeated field is populated if it is non-empty. func (x *fastReflection_Evidence) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.types.v2.Evidence.duplicate_vote_evidence": + case "tendermint.types.Evidence.duplicate_vote_evidence": if x.Sum == nil { return false } else if _, ok := x.Sum.(*Evidence_DuplicateVoteEvidence); ok { @@ -131,7 +131,7 @@ func (x *fastReflection_Evidence) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "cometbft.types.v2.Evidence.light_client_attack_evidence": + case "tendermint.types.Evidence.light_client_attack_evidence": if x.Sum == nil { return false } else if _, ok := x.Sum.(*Evidence_LightClientAttackEvidence); ok { @@ -141,9 +141,9 @@ func (x *fastReflection_Evidence) Has(fd protoreflect.FieldDescriptor) bool { } default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Evidence")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Evidence")) } - panic(fmt.Errorf("message cometbft.types.v2.Evidence does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Evidence does not contain field %s", fd.FullName())) } } @@ -155,15 +155,15 @@ func (x *fastReflection_Evidence) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Evidence) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.types.v2.Evidence.duplicate_vote_evidence": + case "tendermint.types.Evidence.duplicate_vote_evidence": x.Sum = nil - case "cometbft.types.v2.Evidence.light_client_attack_evidence": + case "tendermint.types.Evidence.light_client_attack_evidence": x.Sum = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Evidence")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Evidence")) } - panic(fmt.Errorf("message cometbft.types.v2.Evidence does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Evidence does not contain field %s", fd.FullName())) } } @@ -175,7 +175,7 @@ func (x *fastReflection_Evidence) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Evidence) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.types.v2.Evidence.duplicate_vote_evidence": + case "tendermint.types.Evidence.duplicate_vote_evidence": if x.Sum == nil { return protoreflect.ValueOfMessage((*DuplicateVoteEvidence)(nil).ProtoReflect()) } else if v, ok := x.Sum.(*Evidence_DuplicateVoteEvidence); ok { @@ -183,7 +183,7 @@ func (x *fastReflection_Evidence) Get(descriptor protoreflect.FieldDescriptor) p } else { return protoreflect.ValueOfMessage((*DuplicateVoteEvidence)(nil).ProtoReflect()) } - case "cometbft.types.v2.Evidence.light_client_attack_evidence": + case "tendermint.types.Evidence.light_client_attack_evidence": if x.Sum == nil { return protoreflect.ValueOfMessage((*LightClientAttackEvidence)(nil).ProtoReflect()) } else if v, ok := x.Sum.(*Evidence_LightClientAttackEvidence); ok { @@ -193,9 +193,9 @@ func (x *fastReflection_Evidence) Get(descriptor protoreflect.FieldDescriptor) p } default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Evidence")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Evidence")) } - panic(fmt.Errorf("message cometbft.types.v2.Evidence does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.types.Evidence does not contain field %s", descriptor.FullName())) } } @@ -211,17 +211,17 @@ func (x *fastReflection_Evidence) Get(descriptor protoreflect.FieldDescriptor) p // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Evidence) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.types.v2.Evidence.duplicate_vote_evidence": + case "tendermint.types.Evidence.duplicate_vote_evidence": cv := value.Message().Interface().(*DuplicateVoteEvidence) x.Sum = &Evidence_DuplicateVoteEvidence{DuplicateVoteEvidence: cv} - case "cometbft.types.v2.Evidence.light_client_attack_evidence": + case "tendermint.types.Evidence.light_client_attack_evidence": cv := value.Message().Interface().(*LightClientAttackEvidence) x.Sum = &Evidence_LightClientAttackEvidence{LightClientAttackEvidence: cv} default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Evidence")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Evidence")) } - panic(fmt.Errorf("message cometbft.types.v2.Evidence does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Evidence does not contain field %s", fd.FullName())) } } @@ -237,7 +237,7 @@ func (x *fastReflection_Evidence) Set(fd protoreflect.FieldDescriptor, value pro // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Evidence) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.Evidence.duplicate_vote_evidence": + case "tendermint.types.Evidence.duplicate_vote_evidence": if x.Sum == nil { value := &DuplicateVoteEvidence{} oneofValue := &Evidence_DuplicateVoteEvidence{DuplicateVoteEvidence: value} @@ -253,7 +253,7 @@ func (x *fastReflection_Evidence) Mutable(fd protoreflect.FieldDescriptor) proto x.Sum = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "cometbft.types.v2.Evidence.light_client_attack_evidence": + case "tendermint.types.Evidence.light_client_attack_evidence": if x.Sum == nil { value := &LightClientAttackEvidence{} oneofValue := &Evidence_LightClientAttackEvidence{LightClientAttackEvidence: value} @@ -271,9 +271,9 @@ func (x *fastReflection_Evidence) Mutable(fd protoreflect.FieldDescriptor) proto } default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Evidence")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Evidence")) } - panic(fmt.Errorf("message cometbft.types.v2.Evidence does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Evidence does not contain field %s", fd.FullName())) } } @@ -282,17 +282,17 @@ func (x *fastReflection_Evidence) Mutable(fd protoreflect.FieldDescriptor) proto // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Evidence) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.Evidence.duplicate_vote_evidence": + case "tendermint.types.Evidence.duplicate_vote_evidence": value := &DuplicateVoteEvidence{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.Evidence.light_client_attack_evidence": + case "tendermint.types.Evidence.light_client_attack_evidence": value := &LightClientAttackEvidence{} return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Evidence")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Evidence")) } - panic(fmt.Errorf("message cometbft.types.v2.Evidence does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Evidence does not contain field %s", fd.FullName())) } } @@ -301,7 +301,7 @@ func (x *fastReflection_Evidence) NewField(fd protoreflect.FieldDescriptor) prot // It panics if the oneof descriptor does not belong to this message. func (x *fastReflection_Evidence) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { - case "cometbft.types.v2.Evidence.sum": + case "tendermint.types.Evidence.sum": if x.Sum == nil { return nil } @@ -312,7 +312,7 @@ func (x *fastReflection_Evidence) WhichOneof(d protoreflect.OneofDescriptor) pro return x.Descriptor().Fields().ByName("light_client_attack_evidence") } default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.Evidence", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.types.Evidence", d.FullName())) } panic("unreachable") } @@ -602,8 +602,8 @@ var ( ) func init() { - file_cometbft_types_v2_evidence_proto_init() - md_DuplicateVoteEvidence = File_cometbft_types_v2_evidence_proto.Messages().ByName("DuplicateVoteEvidence") + file_tendermint_types_evidence_proto_init() + md_DuplicateVoteEvidence = File_tendermint_types_evidence_proto.Messages().ByName("DuplicateVoteEvidence") fd_DuplicateVoteEvidence_vote_a = md_DuplicateVoteEvidence.Fields().ByName("vote_a") fd_DuplicateVoteEvidence_vote_b = md_DuplicateVoteEvidence.Fields().ByName("vote_b") fd_DuplicateVoteEvidence_total_voting_power = md_DuplicateVoteEvidence.Fields().ByName("total_voting_power") @@ -620,7 +620,7 @@ func (x *DuplicateVoteEvidence) ProtoReflect() protoreflect.Message { } func (x *DuplicateVoteEvidence) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_evidence_proto_msgTypes[1] + mi := &file_tendermint_types_evidence_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -721,21 +721,21 @@ func (x *fastReflection_DuplicateVoteEvidence) Range(f func(protoreflect.FieldDe // a repeated field is populated if it is non-empty. func (x *fastReflection_DuplicateVoteEvidence) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.types.v2.DuplicateVoteEvidence.vote_a": + case "tendermint.types.DuplicateVoteEvidence.vote_a": return x.VoteA != nil - case "cometbft.types.v2.DuplicateVoteEvidence.vote_b": + case "tendermint.types.DuplicateVoteEvidence.vote_b": return x.VoteB != nil - case "cometbft.types.v2.DuplicateVoteEvidence.total_voting_power": + case "tendermint.types.DuplicateVoteEvidence.total_voting_power": return x.TotalVotingPower != int64(0) - case "cometbft.types.v2.DuplicateVoteEvidence.validator_power": + case "tendermint.types.DuplicateVoteEvidence.validator_power": return x.ValidatorPower != int64(0) - case "cometbft.types.v2.DuplicateVoteEvidence.timestamp": + case "tendermint.types.DuplicateVoteEvidence.timestamp": return x.Timestamp != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.DuplicateVoteEvidence")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.DuplicateVoteEvidence")) } - panic(fmt.Errorf("message cometbft.types.v2.DuplicateVoteEvidence does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.DuplicateVoteEvidence does not contain field %s", fd.FullName())) } } @@ -747,21 +747,21 @@ func (x *fastReflection_DuplicateVoteEvidence) Has(fd protoreflect.FieldDescript // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DuplicateVoteEvidence) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.types.v2.DuplicateVoteEvidence.vote_a": + case "tendermint.types.DuplicateVoteEvidence.vote_a": x.VoteA = nil - case "cometbft.types.v2.DuplicateVoteEvidence.vote_b": + case "tendermint.types.DuplicateVoteEvidence.vote_b": x.VoteB = nil - case "cometbft.types.v2.DuplicateVoteEvidence.total_voting_power": + case "tendermint.types.DuplicateVoteEvidence.total_voting_power": x.TotalVotingPower = int64(0) - case "cometbft.types.v2.DuplicateVoteEvidence.validator_power": + case "tendermint.types.DuplicateVoteEvidence.validator_power": x.ValidatorPower = int64(0) - case "cometbft.types.v2.DuplicateVoteEvidence.timestamp": + case "tendermint.types.DuplicateVoteEvidence.timestamp": x.Timestamp = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.DuplicateVoteEvidence")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.DuplicateVoteEvidence")) } - panic(fmt.Errorf("message cometbft.types.v2.DuplicateVoteEvidence does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.DuplicateVoteEvidence does not contain field %s", fd.FullName())) } } @@ -773,26 +773,26 @@ func (x *fastReflection_DuplicateVoteEvidence) Clear(fd protoreflect.FieldDescri // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_DuplicateVoteEvidence) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.types.v2.DuplicateVoteEvidence.vote_a": + case "tendermint.types.DuplicateVoteEvidence.vote_a": value := x.VoteA return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.DuplicateVoteEvidence.vote_b": + case "tendermint.types.DuplicateVoteEvidence.vote_b": value := x.VoteB return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.DuplicateVoteEvidence.total_voting_power": + case "tendermint.types.DuplicateVoteEvidence.total_voting_power": value := x.TotalVotingPower return protoreflect.ValueOfInt64(value) - case "cometbft.types.v2.DuplicateVoteEvidence.validator_power": + case "tendermint.types.DuplicateVoteEvidence.validator_power": value := x.ValidatorPower return protoreflect.ValueOfInt64(value) - case "cometbft.types.v2.DuplicateVoteEvidence.timestamp": + case "tendermint.types.DuplicateVoteEvidence.timestamp": value := x.Timestamp return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.DuplicateVoteEvidence")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.DuplicateVoteEvidence")) } - panic(fmt.Errorf("message cometbft.types.v2.DuplicateVoteEvidence does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.types.DuplicateVoteEvidence does not contain field %s", descriptor.FullName())) } } @@ -808,21 +808,21 @@ func (x *fastReflection_DuplicateVoteEvidence) Get(descriptor protoreflect.Field // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DuplicateVoteEvidence) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.types.v2.DuplicateVoteEvidence.vote_a": + case "tendermint.types.DuplicateVoteEvidence.vote_a": x.VoteA = value.Message().Interface().(*Vote) - case "cometbft.types.v2.DuplicateVoteEvidence.vote_b": + case "tendermint.types.DuplicateVoteEvidence.vote_b": x.VoteB = value.Message().Interface().(*Vote) - case "cometbft.types.v2.DuplicateVoteEvidence.total_voting_power": + case "tendermint.types.DuplicateVoteEvidence.total_voting_power": x.TotalVotingPower = value.Int() - case "cometbft.types.v2.DuplicateVoteEvidence.validator_power": + case "tendermint.types.DuplicateVoteEvidence.validator_power": x.ValidatorPower = value.Int() - case "cometbft.types.v2.DuplicateVoteEvidence.timestamp": + case "tendermint.types.DuplicateVoteEvidence.timestamp": x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.DuplicateVoteEvidence")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.DuplicateVoteEvidence")) } - panic(fmt.Errorf("message cometbft.types.v2.DuplicateVoteEvidence does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.DuplicateVoteEvidence does not contain field %s", fd.FullName())) } } @@ -838,30 +838,30 @@ func (x *fastReflection_DuplicateVoteEvidence) Set(fd protoreflect.FieldDescript // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DuplicateVoteEvidence) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.DuplicateVoteEvidence.vote_a": + case "tendermint.types.DuplicateVoteEvidence.vote_a": if x.VoteA == nil { x.VoteA = new(Vote) } return protoreflect.ValueOfMessage(x.VoteA.ProtoReflect()) - case "cometbft.types.v2.DuplicateVoteEvidence.vote_b": + case "tendermint.types.DuplicateVoteEvidence.vote_b": if x.VoteB == nil { x.VoteB = new(Vote) } return protoreflect.ValueOfMessage(x.VoteB.ProtoReflect()) - case "cometbft.types.v2.DuplicateVoteEvidence.timestamp": + case "tendermint.types.DuplicateVoteEvidence.timestamp": if x.Timestamp == nil { x.Timestamp = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) - case "cometbft.types.v2.DuplicateVoteEvidence.total_voting_power": - panic(fmt.Errorf("field total_voting_power of message cometbft.types.v2.DuplicateVoteEvidence is not mutable")) - case "cometbft.types.v2.DuplicateVoteEvidence.validator_power": - panic(fmt.Errorf("field validator_power of message cometbft.types.v2.DuplicateVoteEvidence is not mutable")) + case "tendermint.types.DuplicateVoteEvidence.total_voting_power": + panic(fmt.Errorf("field total_voting_power of message tendermint.types.DuplicateVoteEvidence is not mutable")) + case "tendermint.types.DuplicateVoteEvidence.validator_power": + panic(fmt.Errorf("field validator_power of message tendermint.types.DuplicateVoteEvidence is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.DuplicateVoteEvidence")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.DuplicateVoteEvidence")) } - panic(fmt.Errorf("message cometbft.types.v2.DuplicateVoteEvidence does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.DuplicateVoteEvidence does not contain field %s", fd.FullName())) } } @@ -870,24 +870,24 @@ func (x *fastReflection_DuplicateVoteEvidence) Mutable(fd protoreflect.FieldDesc // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_DuplicateVoteEvidence) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.DuplicateVoteEvidence.vote_a": + case "tendermint.types.DuplicateVoteEvidence.vote_a": m := new(Vote) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.DuplicateVoteEvidence.vote_b": + case "tendermint.types.DuplicateVoteEvidence.vote_b": m := new(Vote) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.DuplicateVoteEvidence.total_voting_power": + case "tendermint.types.DuplicateVoteEvidence.total_voting_power": return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.types.v2.DuplicateVoteEvidence.validator_power": + case "tendermint.types.DuplicateVoteEvidence.validator_power": return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.types.v2.DuplicateVoteEvidence.timestamp": + case "tendermint.types.DuplicateVoteEvidence.timestamp": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.DuplicateVoteEvidence")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.DuplicateVoteEvidence")) } - panic(fmt.Errorf("message cometbft.types.v2.DuplicateVoteEvidence does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.DuplicateVoteEvidence does not contain field %s", fd.FullName())) } } @@ -897,7 +897,7 @@ func (x *fastReflection_DuplicateVoteEvidence) NewField(fd protoreflect.FieldDes func (x *fastReflection_DuplicateVoteEvidence) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.DuplicateVoteEvidence", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.types.DuplicateVoteEvidence", d.FullName())) } panic("unreachable") } @@ -1342,8 +1342,8 @@ var ( ) func init() { - file_cometbft_types_v2_evidence_proto_init() - md_LightClientAttackEvidence = File_cometbft_types_v2_evidence_proto.Messages().ByName("LightClientAttackEvidence") + file_tendermint_types_evidence_proto_init() + md_LightClientAttackEvidence = File_tendermint_types_evidence_proto.Messages().ByName("LightClientAttackEvidence") fd_LightClientAttackEvidence_conflicting_block = md_LightClientAttackEvidence.Fields().ByName("conflicting_block") fd_LightClientAttackEvidence_common_height = md_LightClientAttackEvidence.Fields().ByName("common_height") fd_LightClientAttackEvidence_byzantine_validators = md_LightClientAttackEvidence.Fields().ByName("byzantine_validators") @@ -1360,7 +1360,7 @@ func (x *LightClientAttackEvidence) ProtoReflect() protoreflect.Message { } func (x *LightClientAttackEvidence) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_evidence_proto_msgTypes[2] + mi := &file_tendermint_types_evidence_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1461,21 +1461,21 @@ func (x *fastReflection_LightClientAttackEvidence) Range(f func(protoreflect.Fie // a repeated field is populated if it is non-empty. func (x *fastReflection_LightClientAttackEvidence) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.types.v2.LightClientAttackEvidence.conflicting_block": + case "tendermint.types.LightClientAttackEvidence.conflicting_block": return x.ConflictingBlock != nil - case "cometbft.types.v2.LightClientAttackEvidence.common_height": + case "tendermint.types.LightClientAttackEvidence.common_height": return x.CommonHeight != int64(0) - case "cometbft.types.v2.LightClientAttackEvidence.byzantine_validators": + case "tendermint.types.LightClientAttackEvidence.byzantine_validators": return len(x.ByzantineValidators) != 0 - case "cometbft.types.v2.LightClientAttackEvidence.total_voting_power": + case "tendermint.types.LightClientAttackEvidence.total_voting_power": return x.TotalVotingPower != int64(0) - case "cometbft.types.v2.LightClientAttackEvidence.timestamp": + case "tendermint.types.LightClientAttackEvidence.timestamp": return x.Timestamp != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.LightClientAttackEvidence")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.LightClientAttackEvidence")) } - panic(fmt.Errorf("message cometbft.types.v2.LightClientAttackEvidence does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.LightClientAttackEvidence does not contain field %s", fd.FullName())) } } @@ -1487,21 +1487,21 @@ func (x *fastReflection_LightClientAttackEvidence) Has(fd protoreflect.FieldDesc // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_LightClientAttackEvidence) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.types.v2.LightClientAttackEvidence.conflicting_block": + case "tendermint.types.LightClientAttackEvidence.conflicting_block": x.ConflictingBlock = nil - case "cometbft.types.v2.LightClientAttackEvidence.common_height": + case "tendermint.types.LightClientAttackEvidence.common_height": x.CommonHeight = int64(0) - case "cometbft.types.v2.LightClientAttackEvidence.byzantine_validators": + case "tendermint.types.LightClientAttackEvidence.byzantine_validators": x.ByzantineValidators = nil - case "cometbft.types.v2.LightClientAttackEvidence.total_voting_power": + case "tendermint.types.LightClientAttackEvidence.total_voting_power": x.TotalVotingPower = int64(0) - case "cometbft.types.v2.LightClientAttackEvidence.timestamp": + case "tendermint.types.LightClientAttackEvidence.timestamp": x.Timestamp = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.LightClientAttackEvidence")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.LightClientAttackEvidence")) } - panic(fmt.Errorf("message cometbft.types.v2.LightClientAttackEvidence does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.LightClientAttackEvidence does not contain field %s", fd.FullName())) } } @@ -1513,29 +1513,29 @@ func (x *fastReflection_LightClientAttackEvidence) Clear(fd protoreflect.FieldDe // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_LightClientAttackEvidence) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.types.v2.LightClientAttackEvidence.conflicting_block": + case "tendermint.types.LightClientAttackEvidence.conflicting_block": value := x.ConflictingBlock return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.LightClientAttackEvidence.common_height": + case "tendermint.types.LightClientAttackEvidence.common_height": value := x.CommonHeight return protoreflect.ValueOfInt64(value) - case "cometbft.types.v2.LightClientAttackEvidence.byzantine_validators": + case "tendermint.types.LightClientAttackEvidence.byzantine_validators": if len(x.ByzantineValidators) == 0 { return protoreflect.ValueOfList(&_LightClientAttackEvidence_3_list{}) } listValue := &_LightClientAttackEvidence_3_list{list: &x.ByzantineValidators} return protoreflect.ValueOfList(listValue) - case "cometbft.types.v2.LightClientAttackEvidence.total_voting_power": + case "tendermint.types.LightClientAttackEvidence.total_voting_power": value := x.TotalVotingPower return protoreflect.ValueOfInt64(value) - case "cometbft.types.v2.LightClientAttackEvidence.timestamp": + case "tendermint.types.LightClientAttackEvidence.timestamp": value := x.Timestamp return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.LightClientAttackEvidence")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.LightClientAttackEvidence")) } - panic(fmt.Errorf("message cometbft.types.v2.LightClientAttackEvidence does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.types.LightClientAttackEvidence does not contain field %s", descriptor.FullName())) } } @@ -1551,23 +1551,23 @@ func (x *fastReflection_LightClientAttackEvidence) Get(descriptor protoreflect.F // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_LightClientAttackEvidence) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.types.v2.LightClientAttackEvidence.conflicting_block": + case "tendermint.types.LightClientAttackEvidence.conflicting_block": x.ConflictingBlock = value.Message().Interface().(*LightBlock) - case "cometbft.types.v2.LightClientAttackEvidence.common_height": + case "tendermint.types.LightClientAttackEvidence.common_height": x.CommonHeight = value.Int() - case "cometbft.types.v2.LightClientAttackEvidence.byzantine_validators": + case "tendermint.types.LightClientAttackEvidence.byzantine_validators": lv := value.List() clv := lv.(*_LightClientAttackEvidence_3_list) x.ByzantineValidators = *clv.list - case "cometbft.types.v2.LightClientAttackEvidence.total_voting_power": + case "tendermint.types.LightClientAttackEvidence.total_voting_power": x.TotalVotingPower = value.Int() - case "cometbft.types.v2.LightClientAttackEvidence.timestamp": + case "tendermint.types.LightClientAttackEvidence.timestamp": x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.LightClientAttackEvidence")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.LightClientAttackEvidence")) } - panic(fmt.Errorf("message cometbft.types.v2.LightClientAttackEvidence does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.LightClientAttackEvidence does not contain field %s", fd.FullName())) } } @@ -1583,31 +1583,31 @@ func (x *fastReflection_LightClientAttackEvidence) Set(fd protoreflect.FieldDesc // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_LightClientAttackEvidence) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.LightClientAttackEvidence.conflicting_block": + case "tendermint.types.LightClientAttackEvidence.conflicting_block": if x.ConflictingBlock == nil { x.ConflictingBlock = new(LightBlock) } return protoreflect.ValueOfMessage(x.ConflictingBlock.ProtoReflect()) - case "cometbft.types.v2.LightClientAttackEvidence.byzantine_validators": + case "tendermint.types.LightClientAttackEvidence.byzantine_validators": if x.ByzantineValidators == nil { x.ByzantineValidators = []*Validator{} } value := &_LightClientAttackEvidence_3_list{list: &x.ByzantineValidators} return protoreflect.ValueOfList(value) - case "cometbft.types.v2.LightClientAttackEvidence.timestamp": + case "tendermint.types.LightClientAttackEvidence.timestamp": if x.Timestamp == nil { x.Timestamp = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) - case "cometbft.types.v2.LightClientAttackEvidence.common_height": - panic(fmt.Errorf("field common_height of message cometbft.types.v2.LightClientAttackEvidence is not mutable")) - case "cometbft.types.v2.LightClientAttackEvidence.total_voting_power": - panic(fmt.Errorf("field total_voting_power of message cometbft.types.v2.LightClientAttackEvidence is not mutable")) + case "tendermint.types.LightClientAttackEvidence.common_height": + panic(fmt.Errorf("field common_height of message tendermint.types.LightClientAttackEvidence is not mutable")) + case "tendermint.types.LightClientAttackEvidence.total_voting_power": + panic(fmt.Errorf("field total_voting_power of message tendermint.types.LightClientAttackEvidence is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.LightClientAttackEvidence")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.LightClientAttackEvidence")) } - panic(fmt.Errorf("message cometbft.types.v2.LightClientAttackEvidence does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.LightClientAttackEvidence does not contain field %s", fd.FullName())) } } @@ -1616,24 +1616,24 @@ func (x *fastReflection_LightClientAttackEvidence) Mutable(fd protoreflect.Field // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_LightClientAttackEvidence) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.LightClientAttackEvidence.conflicting_block": + case "tendermint.types.LightClientAttackEvidence.conflicting_block": m := new(LightBlock) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.LightClientAttackEvidence.common_height": + case "tendermint.types.LightClientAttackEvidence.common_height": return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.types.v2.LightClientAttackEvidence.byzantine_validators": + case "tendermint.types.LightClientAttackEvidence.byzantine_validators": list := []*Validator{} return protoreflect.ValueOfList(&_LightClientAttackEvidence_3_list{list: &list}) - case "cometbft.types.v2.LightClientAttackEvidence.total_voting_power": + case "tendermint.types.LightClientAttackEvidence.total_voting_power": return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.types.v2.LightClientAttackEvidence.timestamp": + case "tendermint.types.LightClientAttackEvidence.timestamp": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.LightClientAttackEvidence")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.LightClientAttackEvidence")) } - panic(fmt.Errorf("message cometbft.types.v2.LightClientAttackEvidence does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.LightClientAttackEvidence does not contain field %s", fd.FullName())) } } @@ -1643,7 +1643,7 @@ func (x *fastReflection_LightClientAttackEvidence) NewField(fd protoreflect.Fiel func (x *fastReflection_LightClientAttackEvidence) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.LightClientAttackEvidence", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.types.LightClientAttackEvidence", d.FullName())) } panic("unreachable") } @@ -2086,8 +2086,8 @@ var ( ) func init() { - file_cometbft_types_v2_evidence_proto_init() - md_EvidenceList = File_cometbft_types_v2_evidence_proto.Messages().ByName("EvidenceList") + file_tendermint_types_evidence_proto_init() + md_EvidenceList = File_tendermint_types_evidence_proto.Messages().ByName("EvidenceList") fd_EvidenceList_evidence = md_EvidenceList.Fields().ByName("evidence") } @@ -2100,7 +2100,7 @@ func (x *EvidenceList) ProtoReflect() protoreflect.Message { } func (x *EvidenceList) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_evidence_proto_msgTypes[3] + mi := &file_tendermint_types_evidence_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2177,13 +2177,13 @@ func (x *fastReflection_EvidenceList) Range(f func(protoreflect.FieldDescriptor, // a repeated field is populated if it is non-empty. func (x *fastReflection_EvidenceList) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.types.v2.EvidenceList.evidence": + case "tendermint.types.EvidenceList.evidence": return len(x.Evidence) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.EvidenceList")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.EvidenceList")) } - panic(fmt.Errorf("message cometbft.types.v2.EvidenceList does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.EvidenceList does not contain field %s", fd.FullName())) } } @@ -2195,13 +2195,13 @@ func (x *fastReflection_EvidenceList) Has(fd protoreflect.FieldDescriptor) bool // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EvidenceList) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.types.v2.EvidenceList.evidence": + case "tendermint.types.EvidenceList.evidence": x.Evidence = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.EvidenceList")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.EvidenceList")) } - panic(fmt.Errorf("message cometbft.types.v2.EvidenceList does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.EvidenceList does not contain field %s", fd.FullName())) } } @@ -2213,7 +2213,7 @@ func (x *fastReflection_EvidenceList) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_EvidenceList) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.types.v2.EvidenceList.evidence": + case "tendermint.types.EvidenceList.evidence": if len(x.Evidence) == 0 { return protoreflect.ValueOfList(&_EvidenceList_1_list{}) } @@ -2221,9 +2221,9 @@ func (x *fastReflection_EvidenceList) Get(descriptor protoreflect.FieldDescripto return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.EvidenceList")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.EvidenceList")) } - panic(fmt.Errorf("message cometbft.types.v2.EvidenceList does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.types.EvidenceList does not contain field %s", descriptor.FullName())) } } @@ -2239,15 +2239,15 @@ func (x *fastReflection_EvidenceList) Get(descriptor protoreflect.FieldDescripto // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EvidenceList) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.types.v2.EvidenceList.evidence": + case "tendermint.types.EvidenceList.evidence": lv := value.List() clv := lv.(*_EvidenceList_1_list) x.Evidence = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.EvidenceList")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.EvidenceList")) } - panic(fmt.Errorf("message cometbft.types.v2.EvidenceList does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.EvidenceList does not contain field %s", fd.FullName())) } } @@ -2263,7 +2263,7 @@ func (x *fastReflection_EvidenceList) Set(fd protoreflect.FieldDescriptor, value // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EvidenceList) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.EvidenceList.evidence": + case "tendermint.types.EvidenceList.evidence": if x.Evidence == nil { x.Evidence = []*Evidence{} } @@ -2271,9 +2271,9 @@ func (x *fastReflection_EvidenceList) Mutable(fd protoreflect.FieldDescriptor) p return protoreflect.ValueOfList(value) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.EvidenceList")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.EvidenceList")) } - panic(fmt.Errorf("message cometbft.types.v2.EvidenceList does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.EvidenceList does not contain field %s", fd.FullName())) } } @@ -2282,14 +2282,14 @@ func (x *fastReflection_EvidenceList) Mutable(fd protoreflect.FieldDescriptor) p // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_EvidenceList) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.EvidenceList.evidence": + case "tendermint.types.EvidenceList.evidence": list := []*Evidence{} return protoreflect.ValueOfList(&_EvidenceList_1_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.EvidenceList")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.EvidenceList")) } - panic(fmt.Errorf("message cometbft.types.v2.EvidenceList does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.EvidenceList does not contain field %s", fd.FullName())) } } @@ -2299,7 +2299,7 @@ func (x *fastReflection_EvidenceList) NewField(fd protoreflect.FieldDescriptor) func (x *fastReflection_EvidenceList) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.EvidenceList", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.types.EvidenceList", d.FullName())) } panic("unreachable") } @@ -2527,7 +2527,7 @@ func (x *fastReflection_EvidenceList) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: cometbft/types/v2/evidence.proto +// source: tendermint/types/evidence.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -2536,14 +2536,11 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Evidence is a generic type for wrapping evidence of misbehavior by a validator. type Evidence struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // The type of evidence. - // // Types that are assignable to Sum: // // *Evidence_DuplicateVoteEvidence @@ -2554,7 +2551,7 @@ type Evidence struct { func (x *Evidence) Reset() { *x = Evidence{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_evidence_proto_msgTypes[0] + mi := &file_tendermint_types_evidence_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2568,7 +2565,7 @@ func (*Evidence) ProtoMessage() {} // Deprecated: Use Evidence.ProtoReflect.Descriptor instead. func (*Evidence) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_evidence_proto_rawDescGZIP(), []int{0} + return file_tendermint_types_evidence_proto_rawDescGZIP(), []int{0} } func (x *Evidence) GetSum() isEvidence_Sum { @@ -2624,7 +2621,7 @@ type DuplicateVoteEvidence struct { func (x *DuplicateVoteEvidence) Reset() { *x = DuplicateVoteEvidence{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_evidence_proto_msgTypes[1] + mi := &file_tendermint_types_evidence_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2638,7 +2635,7 @@ func (*DuplicateVoteEvidence) ProtoMessage() {} // Deprecated: Use DuplicateVoteEvidence.ProtoReflect.Descriptor instead. func (*DuplicateVoteEvidence) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_evidence_proto_rawDescGZIP(), []int{1} + return file_tendermint_types_evidence_proto_rawDescGZIP(), []int{1} } func (x *DuplicateVoteEvidence) GetVoteA() *Vote { @@ -2692,7 +2689,7 @@ type LightClientAttackEvidence struct { func (x *LightClientAttackEvidence) Reset() { *x = LightClientAttackEvidence{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_evidence_proto_msgTypes[2] + mi := &file_tendermint_types_evidence_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2706,7 +2703,7 @@ func (*LightClientAttackEvidence) ProtoMessage() {} // Deprecated: Use LightClientAttackEvidence.ProtoReflect.Descriptor instead. func (*LightClientAttackEvidence) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_evidence_proto_rawDescGZIP(), []int{2} + return file_tendermint_types_evidence_proto_rawDescGZIP(), []int{2} } func (x *LightClientAttackEvidence) GetConflictingBlock() *LightBlock { @@ -2744,7 +2741,6 @@ func (x *LightClientAttackEvidence) GetTimestamp() *timestamppb.Timestamp { return nil } -// EvidenceList is a list of evidence. type EvidenceList struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2756,7 +2752,7 @@ type EvidenceList struct { func (x *EvidenceList) Reset() { *x = EvidenceList{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_evidence_proto_msgTypes[3] + mi := &file_tendermint_types_evidence_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2770,7 +2766,7 @@ func (*EvidenceList) ProtoMessage() {} // Deprecated: Use EvidenceList.ProtoReflect.Descriptor instead. func (*EvidenceList) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_evidence_proto_rawDescGZIP(), []int{3} + return file_tendermint_types_evidence_proto_rawDescGZIP(), []int{3} } func (x *EvidenceList) GetEvidence() []*Evidence { @@ -2780,125 +2776,124 @@ func (x *EvidenceList) GetEvidence() []*Evidence { return nil } -var File_cometbft_types_v2_evidence_proto protoreflect.FileDescriptor +var File_tendermint_types_evidence_proto protoreflect.FileDescriptor -var file_cometbft_types_v2_evidence_proto_rawDesc = []byte{ - 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2f, 0x76, 0x32, 0x2f, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x11, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x2e, 0x76, 0x32, 0x1a, 0x1d, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, - 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe6, - 0x01, 0x0a, 0x08, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x62, 0x0a, 0x17, 0x64, - 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x76, 0x6f, 0x74, 0x65, 0x5f, 0x65, 0x76, - 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, - 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, - 0x2e, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x56, 0x6f, 0x74, 0x65, 0x45, 0x76, - 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x48, 0x00, 0x52, 0x15, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x74, 0x65, 0x56, 0x6f, 0x74, 0x65, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x12, - 0x6f, 0x0a, 0x1c, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, - 0x61, 0x74, 0x74, 0x61, 0x63, 0x6b, 0x5f, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x69, 0x67, 0x68, 0x74, 0x43, - 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x6b, 0x45, 0x76, 0x69, 0x64, 0x65, - 0x6e, 0x63, 0x65, 0x48, 0x00, 0x52, 0x19, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x43, 0x6c, 0x69, 0x65, - 0x6e, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x6b, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, - 0x42, 0x05, 0x0a, 0x03, 0x73, 0x75, 0x6d, 0x22, 0x92, 0x02, 0x0a, 0x15, 0x44, 0x75, 0x70, 0x6c, +var file_tendermint_types_evidence_proto_rawDesc = []byte{ + 0x0a, 0x1f, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2f, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x10, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, + 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x74, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, + 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe4, 0x01, 0x0a, 0x08, 0x45, + 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x61, 0x0a, 0x17, 0x64, 0x75, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x65, 0x5f, 0x76, 0x6f, 0x74, 0x65, 0x5f, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x56, 0x6f, 0x74, 0x65, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, - 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x76, 0x6f, 0x74, 0x65, 0x5f, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x6f, 0x74, 0x65, 0x52, 0x05, 0x76, 0x6f, 0x74, 0x65, - 0x41, 0x12, 0x2e, 0x0a, 0x06, 0x76, 0x6f, 0x74, 0x65, 0x5f, 0x62, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x6f, 0x74, 0x65, 0x52, 0x05, 0x76, 0x6f, 0x74, 0x65, - 0x42, 0x12, 0x2c, 0x0a, 0x12, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x76, 0x6f, 0x74, 0x69, 0x6e, - 0x67, 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x74, - 0x6f, 0x74, 0x61, 0x6c, 0x56, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x12, - 0x27, 0x0a, 0x0f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x70, 0x6f, 0x77, - 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x6f, 0x72, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x12, 0x42, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, - 0x01, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xcf, 0x02, 0x0a, - 0x19, 0x4c, 0x69, 0x67, 0x68, 0x74, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x61, - 0x63, 0x6b, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x4a, 0x0a, 0x11, 0x63, 0x6f, - 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x69, 0x67, 0x68, 0x74, 0x42, - 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x10, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x69, 0x6e, - 0x67, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, - 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x63, - 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x4f, 0x0a, 0x14, 0x62, - 0x79, 0x7a, 0x61, 0x6e, 0x74, 0x69, 0x6e, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, - 0x6f, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x6f, 0x6d, 0x65, - 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x61, - 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x13, 0x62, 0x79, 0x7a, 0x61, 0x6e, 0x74, 0x69, - 0x6e, 0x65, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x2c, 0x0a, 0x12, - 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x76, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6f, 0x77, - 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x56, - 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x12, 0x42, 0x0a, 0x09, 0x74, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, - 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x4d, - 0x0a, 0x0c, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x3d, - 0x0a, 0x08, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x1b, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x42, 0x04, 0xc8, - 0xde, 0x1f, 0x00, 0x52, 0x08, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x42, 0xb8, 0x01, - 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x42, 0x0d, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, - 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x65, 0x74, - 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x32, 0x3b, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x76, 0x32, 0xa2, 0x02, 0x03, 0x43, 0x54, 0x58, 0xaa, 0x02, 0x11, 0x43, 0x6f, 0x6d, - 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, 0x32, 0xca, 0x02, - 0x11, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x5c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, - 0x56, 0x32, 0xe2, 0x02, 0x1d, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x5c, 0x54, 0x79, - 0x70, 0x65, 0x73, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0xea, 0x02, 0x13, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x3a, 0x3a, 0x54, - 0x79, 0x70, 0x65, 0x73, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x48, 0x00, 0x52, 0x15, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x56, 0x6f, + 0x74, 0x65, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x6e, 0x0a, 0x1c, 0x6c, 0x69, + 0x67, 0x68, 0x74, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x61, 0x63, + 0x6b, 0x5f, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x2b, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x4c, 0x69, 0x67, 0x68, 0x74, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x41, + 0x74, 0x74, 0x61, 0x63, 0x6b, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x48, 0x00, 0x52, + 0x19, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x61, + 0x63, 0x6b, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x42, 0x05, 0x0a, 0x03, 0x73, 0x75, + 0x6d, 0x22, 0x90, 0x02, 0x0a, 0x15, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x56, + 0x6f, 0x74, 0x65, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x76, + 0x6f, 0x74, 0x65, 0x5f, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, + 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, + 0x6f, 0x74, 0x65, 0x52, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x41, 0x12, 0x2d, 0x0a, 0x06, 0x76, 0x6f, + 0x74, 0x65, 0x5f, 0x62, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, 0x6f, + 0x74, 0x65, 0x52, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x42, 0x12, 0x2c, 0x0a, 0x12, 0x74, 0x6f, 0x74, + 0x61, 0x6c, 0x5f, 0x76, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x56, 0x6f, 0x74, 0x69, + 0x6e, 0x67, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x76, 0x61, 0x6c, 0x69, 0x64, + 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x0e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x50, 0x6f, 0x77, 0x65, 0x72, + 0x12, 0x42, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, + 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x22, 0xcd, 0x02, 0x0a, 0x19, 0x4c, 0x69, 0x67, 0x68, 0x74, 0x43, 0x6c, + 0x69, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x6b, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x12, 0x49, 0x0a, 0x11, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x69, 0x6e, + 0x67, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, + 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x4c, 0x69, 0x67, 0x68, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x10, 0x63, 0x6f, 0x6e, + 0x66, 0x6c, 0x69, 0x63, 0x74, 0x69, 0x6e, 0x67, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x23, 0x0a, + 0x0d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x48, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x12, 0x4e, 0x0a, 0x14, 0x62, 0x79, 0x7a, 0x61, 0x6e, 0x74, 0x69, 0x6e, 0x65, 0x5f, + 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x1b, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x13, 0x62, + 0x79, 0x7a, 0x61, 0x6e, 0x74, 0x69, 0x6e, 0x65, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, + 0x72, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x76, 0x6f, 0x74, 0x69, + 0x6e, 0x67, 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, + 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x56, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x77, 0x65, 0x72, + 0x12, 0x42, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, + 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x22, 0x4c, 0x0a, 0x0c, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x4c, 0x69, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x08, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, + 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x42, 0xa9, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x42, 0x0d, 0x45, 0x76, 0x69, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x21, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x74, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0xa2, + 0x02, 0x03, 0x54, 0x54, 0x58, 0xaa, 0x02, 0x10, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, + 0x6e, 0x74, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x73, 0xca, 0x02, 0x10, 0x54, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x5c, 0x54, 0x79, 0x70, 0x65, 0x73, 0xe2, 0x02, 0x1c, 0x54, 0x65, + 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x5c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x47, + 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x54, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x3a, 0x3a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_cometbft_types_v2_evidence_proto_rawDescOnce sync.Once - file_cometbft_types_v2_evidence_proto_rawDescData = file_cometbft_types_v2_evidence_proto_rawDesc + file_tendermint_types_evidence_proto_rawDescOnce sync.Once + file_tendermint_types_evidence_proto_rawDescData = file_tendermint_types_evidence_proto_rawDesc ) -func file_cometbft_types_v2_evidence_proto_rawDescGZIP() []byte { - file_cometbft_types_v2_evidence_proto_rawDescOnce.Do(func() { - file_cometbft_types_v2_evidence_proto_rawDescData = protoimpl.X.CompressGZIP(file_cometbft_types_v2_evidence_proto_rawDescData) +func file_tendermint_types_evidence_proto_rawDescGZIP() []byte { + file_tendermint_types_evidence_proto_rawDescOnce.Do(func() { + file_tendermint_types_evidence_proto_rawDescData = protoimpl.X.CompressGZIP(file_tendermint_types_evidence_proto_rawDescData) }) - return file_cometbft_types_v2_evidence_proto_rawDescData + return file_tendermint_types_evidence_proto_rawDescData } -var file_cometbft_types_v2_evidence_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_cometbft_types_v2_evidence_proto_goTypes = []interface{}{ - (*Evidence)(nil), // 0: cometbft.types.v2.Evidence - (*DuplicateVoteEvidence)(nil), // 1: cometbft.types.v2.DuplicateVoteEvidence - (*LightClientAttackEvidence)(nil), // 2: cometbft.types.v2.LightClientAttackEvidence - (*EvidenceList)(nil), // 3: cometbft.types.v2.EvidenceList - (*Vote)(nil), // 4: cometbft.types.v2.Vote +var file_tendermint_types_evidence_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_tendermint_types_evidence_proto_goTypes = []interface{}{ + (*Evidence)(nil), // 0: tendermint.types.Evidence + (*DuplicateVoteEvidence)(nil), // 1: tendermint.types.DuplicateVoteEvidence + (*LightClientAttackEvidence)(nil), // 2: tendermint.types.LightClientAttackEvidence + (*EvidenceList)(nil), // 3: tendermint.types.EvidenceList + (*Vote)(nil), // 4: tendermint.types.Vote (*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp - (*LightBlock)(nil), // 6: cometbft.types.v2.LightBlock - (*Validator)(nil), // 7: cometbft.types.v2.Validator + (*LightBlock)(nil), // 6: tendermint.types.LightBlock + (*Validator)(nil), // 7: tendermint.types.Validator } -var file_cometbft_types_v2_evidence_proto_depIdxs = []int32{ - 1, // 0: cometbft.types.v2.Evidence.duplicate_vote_evidence:type_name -> cometbft.types.v2.DuplicateVoteEvidence - 2, // 1: cometbft.types.v2.Evidence.light_client_attack_evidence:type_name -> cometbft.types.v2.LightClientAttackEvidence - 4, // 2: cometbft.types.v2.DuplicateVoteEvidence.vote_a:type_name -> cometbft.types.v2.Vote - 4, // 3: cometbft.types.v2.DuplicateVoteEvidence.vote_b:type_name -> cometbft.types.v2.Vote - 5, // 4: cometbft.types.v2.DuplicateVoteEvidence.timestamp:type_name -> google.protobuf.Timestamp - 6, // 5: cometbft.types.v2.LightClientAttackEvidence.conflicting_block:type_name -> cometbft.types.v2.LightBlock - 7, // 6: cometbft.types.v2.LightClientAttackEvidence.byzantine_validators:type_name -> cometbft.types.v2.Validator - 5, // 7: cometbft.types.v2.LightClientAttackEvidence.timestamp:type_name -> google.protobuf.Timestamp - 0, // 8: cometbft.types.v2.EvidenceList.evidence:type_name -> cometbft.types.v2.Evidence +var file_tendermint_types_evidence_proto_depIdxs = []int32{ + 1, // 0: tendermint.types.Evidence.duplicate_vote_evidence:type_name -> tendermint.types.DuplicateVoteEvidence + 2, // 1: tendermint.types.Evidence.light_client_attack_evidence:type_name -> tendermint.types.LightClientAttackEvidence + 4, // 2: tendermint.types.DuplicateVoteEvidence.vote_a:type_name -> tendermint.types.Vote + 4, // 3: tendermint.types.DuplicateVoteEvidence.vote_b:type_name -> tendermint.types.Vote + 5, // 4: tendermint.types.DuplicateVoteEvidence.timestamp:type_name -> google.protobuf.Timestamp + 6, // 5: tendermint.types.LightClientAttackEvidence.conflicting_block:type_name -> tendermint.types.LightBlock + 7, // 6: tendermint.types.LightClientAttackEvidence.byzantine_validators:type_name -> tendermint.types.Validator + 5, // 7: tendermint.types.LightClientAttackEvidence.timestamp:type_name -> google.protobuf.Timestamp + 0, // 8: tendermint.types.EvidenceList.evidence:type_name -> tendermint.types.Evidence 9, // [9:9] is the sub-list for method output_type 9, // [9:9] is the sub-list for method input_type 9, // [9:9] is the sub-list for extension type_name @@ -2906,15 +2901,15 @@ var file_cometbft_types_v2_evidence_proto_depIdxs = []int32{ 0, // [0:9] is the sub-list for field type_name } -func init() { file_cometbft_types_v2_evidence_proto_init() } -func file_cometbft_types_v2_evidence_proto_init() { - if File_cometbft_types_v2_evidence_proto != nil { +func init() { file_tendermint_types_evidence_proto_init() } +func file_tendermint_types_evidence_proto_init() { + if File_tendermint_types_evidence_proto != nil { return } - file_cometbft_types_v2_types_proto_init() - file_cometbft_types_v2_validator_proto_init() + file_tendermint_types_types_proto_init() + file_tendermint_types_validator_proto_init() if !protoimpl.UnsafeEnabled { - file_cometbft_types_v2_evidence_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_types_evidence_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Evidence); i { case 0: return &v.state @@ -2926,7 +2921,7 @@ func file_cometbft_types_v2_evidence_proto_init() { return nil } } - file_cometbft_types_v2_evidence_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_types_evidence_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DuplicateVoteEvidence); i { case 0: return &v.state @@ -2938,7 +2933,7 @@ func file_cometbft_types_v2_evidence_proto_init() { return nil } } - file_cometbft_types_v2_evidence_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_types_evidence_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LightClientAttackEvidence); i { case 0: return &v.state @@ -2950,7 +2945,7 @@ func file_cometbft_types_v2_evidence_proto_init() { return nil } } - file_cometbft_types_v2_evidence_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_types_evidence_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EvidenceList); i { case 0: return &v.state @@ -2963,7 +2958,7 @@ func file_cometbft_types_v2_evidence_proto_init() { } } } - file_cometbft_types_v2_evidence_proto_msgTypes[0].OneofWrappers = []interface{}{ + file_tendermint_types_evidence_proto_msgTypes[0].OneofWrappers = []interface{}{ (*Evidence_DuplicateVoteEvidence)(nil), (*Evidence_LightClientAttackEvidence)(nil), } @@ -2971,18 +2966,18 @@ func file_cometbft_types_v2_evidence_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cometbft_types_v2_evidence_proto_rawDesc, + RawDescriptor: file_tendermint_types_evidence_proto_rawDesc, NumEnums: 0, NumMessages: 4, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_cometbft_types_v2_evidence_proto_goTypes, - DependencyIndexes: file_cometbft_types_v2_evidence_proto_depIdxs, - MessageInfos: file_cometbft_types_v2_evidence_proto_msgTypes, + GoTypes: file_tendermint_types_evidence_proto_goTypes, + DependencyIndexes: file_tendermint_types_evidence_proto_depIdxs, + MessageInfos: file_tendermint_types_evidence_proto_msgTypes, }.Build() - File_cometbft_types_v2_evidence_proto = out.File - file_cometbft_types_v2_evidence_proto_rawDesc = nil - file_cometbft_types_v2_evidence_proto_goTypes = nil - file_cometbft_types_v2_evidence_proto_depIdxs = nil + File_tendermint_types_evidence_proto = out.File + file_tendermint_types_evidence_proto_rawDesc = nil + file_tendermint_types_evidence_proto_goTypes = nil + file_tendermint_types_evidence_proto_depIdxs = nil } diff --git a/api/cometbft/types/v2/params.pulsar.go b/api/tendermint/types/params.pulsar.go similarity index 61% rename from api/cometbft/types/v2/params.pulsar.go rename to api/tendermint/types/params.pulsar.go index 5770f85a31..8045bb7863 100644 --- a/api/cometbft/types/v2/params.pulsar.go +++ b/api/tendermint/types/params.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package typesv2 +package types import ( fmt "fmt" @@ -9,7 +9,6 @@ import ( protoiface "google.golang.org/protobuf/runtime/protoiface" protoimpl "google.golang.org/protobuf/runtime/protoimpl" durationpb "google.golang.org/protobuf/types/known/durationpb" - wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" io "io" reflect "reflect" sync "sync" @@ -22,20 +21,16 @@ var ( fd_ConsensusParams_validator protoreflect.FieldDescriptor fd_ConsensusParams_version protoreflect.FieldDescriptor fd_ConsensusParams_abci protoreflect.FieldDescriptor - fd_ConsensusParams_synchrony protoreflect.FieldDescriptor - fd_ConsensusParams_feature protoreflect.FieldDescriptor ) func init() { - file_cometbft_types_v2_params_proto_init() - md_ConsensusParams = File_cometbft_types_v2_params_proto.Messages().ByName("ConsensusParams") + file_tendermint_types_params_proto_init() + md_ConsensusParams = File_tendermint_types_params_proto.Messages().ByName("ConsensusParams") fd_ConsensusParams_block = md_ConsensusParams.Fields().ByName("block") fd_ConsensusParams_evidence = md_ConsensusParams.Fields().ByName("evidence") fd_ConsensusParams_validator = md_ConsensusParams.Fields().ByName("validator") fd_ConsensusParams_version = md_ConsensusParams.Fields().ByName("version") fd_ConsensusParams_abci = md_ConsensusParams.Fields().ByName("abci") - fd_ConsensusParams_synchrony = md_ConsensusParams.Fields().ByName("synchrony") - fd_ConsensusParams_feature = md_ConsensusParams.Fields().ByName("feature") } var _ protoreflect.Message = (*fastReflection_ConsensusParams)(nil) @@ -47,7 +42,7 @@ func (x *ConsensusParams) ProtoReflect() protoreflect.Message { } func (x *ConsensusParams) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_params_proto_msgTypes[0] + mi := &file_tendermint_types_params_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -133,18 +128,6 @@ func (x *fastReflection_ConsensusParams) Range(f func(protoreflect.FieldDescript return } } - if x.Synchrony != nil { - value := protoreflect.ValueOfMessage(x.Synchrony.ProtoReflect()) - if !f(fd_ConsensusParams_synchrony, value) { - return - } - } - if x.Feature != nil { - value := protoreflect.ValueOfMessage(x.Feature.ProtoReflect()) - if !f(fd_ConsensusParams_feature, value) { - return - } - } } // Has reports whether a field is populated. @@ -160,25 +143,21 @@ func (x *fastReflection_ConsensusParams) Range(f func(protoreflect.FieldDescript // a repeated field is populated if it is non-empty. func (x *fastReflection_ConsensusParams) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.types.v2.ConsensusParams.block": + case "tendermint.types.ConsensusParams.block": return x.Block != nil - case "cometbft.types.v2.ConsensusParams.evidence": + case "tendermint.types.ConsensusParams.evidence": return x.Evidence != nil - case "cometbft.types.v2.ConsensusParams.validator": + case "tendermint.types.ConsensusParams.validator": return x.Validator != nil - case "cometbft.types.v2.ConsensusParams.version": + case "tendermint.types.ConsensusParams.version": return x.Version != nil - case "cometbft.types.v2.ConsensusParams.abci": + case "tendermint.types.ConsensusParams.abci": return x.Abci != nil - case "cometbft.types.v2.ConsensusParams.synchrony": - return x.Synchrony != nil - case "cometbft.types.v2.ConsensusParams.feature": - return x.Feature != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ConsensusParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ConsensusParams")) } - panic(fmt.Errorf("message cometbft.types.v2.ConsensusParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.ConsensusParams does not contain field %s", fd.FullName())) } } @@ -190,25 +169,21 @@ func (x *fastReflection_ConsensusParams) Has(fd protoreflect.FieldDescriptor) bo // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ConsensusParams) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.types.v2.ConsensusParams.block": + case "tendermint.types.ConsensusParams.block": x.Block = nil - case "cometbft.types.v2.ConsensusParams.evidence": + case "tendermint.types.ConsensusParams.evidence": x.Evidence = nil - case "cometbft.types.v2.ConsensusParams.validator": + case "tendermint.types.ConsensusParams.validator": x.Validator = nil - case "cometbft.types.v2.ConsensusParams.version": + case "tendermint.types.ConsensusParams.version": x.Version = nil - case "cometbft.types.v2.ConsensusParams.abci": + case "tendermint.types.ConsensusParams.abci": x.Abci = nil - case "cometbft.types.v2.ConsensusParams.synchrony": - x.Synchrony = nil - case "cometbft.types.v2.ConsensusParams.feature": - x.Feature = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ConsensusParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ConsensusParams")) } - panic(fmt.Errorf("message cometbft.types.v2.ConsensusParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.ConsensusParams does not contain field %s", fd.FullName())) } } @@ -220,32 +195,26 @@ func (x *fastReflection_ConsensusParams) Clear(fd protoreflect.FieldDescriptor) // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_ConsensusParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.types.v2.ConsensusParams.block": + case "tendermint.types.ConsensusParams.block": value := x.Block return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.ConsensusParams.evidence": + case "tendermint.types.ConsensusParams.evidence": value := x.Evidence return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.ConsensusParams.validator": + case "tendermint.types.ConsensusParams.validator": value := x.Validator return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.ConsensusParams.version": + case "tendermint.types.ConsensusParams.version": value := x.Version return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.ConsensusParams.abci": + case "tendermint.types.ConsensusParams.abci": value := x.Abci return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.ConsensusParams.synchrony": - value := x.Synchrony - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.ConsensusParams.feature": - value := x.Feature - return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ConsensusParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ConsensusParams")) } - panic(fmt.Errorf("message cometbft.types.v2.ConsensusParams does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.types.ConsensusParams does not contain field %s", descriptor.FullName())) } } @@ -261,25 +230,21 @@ func (x *fastReflection_ConsensusParams) Get(descriptor protoreflect.FieldDescri // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ConsensusParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.types.v2.ConsensusParams.block": + case "tendermint.types.ConsensusParams.block": x.Block = value.Message().Interface().(*BlockParams) - case "cometbft.types.v2.ConsensusParams.evidence": + case "tendermint.types.ConsensusParams.evidence": x.Evidence = value.Message().Interface().(*EvidenceParams) - case "cometbft.types.v2.ConsensusParams.validator": + case "tendermint.types.ConsensusParams.validator": x.Validator = value.Message().Interface().(*ValidatorParams) - case "cometbft.types.v2.ConsensusParams.version": + case "tendermint.types.ConsensusParams.version": x.Version = value.Message().Interface().(*VersionParams) - case "cometbft.types.v2.ConsensusParams.abci": + case "tendermint.types.ConsensusParams.abci": x.Abci = value.Message().Interface().(*ABCIParams) - case "cometbft.types.v2.ConsensusParams.synchrony": - x.Synchrony = value.Message().Interface().(*SynchronyParams) - case "cometbft.types.v2.ConsensusParams.feature": - x.Feature = value.Message().Interface().(*FeatureParams) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ConsensusParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ConsensusParams")) } - panic(fmt.Errorf("message cometbft.types.v2.ConsensusParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.ConsensusParams does not contain field %s", fd.FullName())) } } @@ -295,46 +260,36 @@ func (x *fastReflection_ConsensusParams) Set(fd protoreflect.FieldDescriptor, va // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ConsensusParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.ConsensusParams.block": + case "tendermint.types.ConsensusParams.block": if x.Block == nil { x.Block = new(BlockParams) } return protoreflect.ValueOfMessage(x.Block.ProtoReflect()) - case "cometbft.types.v2.ConsensusParams.evidence": + case "tendermint.types.ConsensusParams.evidence": if x.Evidence == nil { x.Evidence = new(EvidenceParams) } return protoreflect.ValueOfMessage(x.Evidence.ProtoReflect()) - case "cometbft.types.v2.ConsensusParams.validator": + case "tendermint.types.ConsensusParams.validator": if x.Validator == nil { x.Validator = new(ValidatorParams) } return protoreflect.ValueOfMessage(x.Validator.ProtoReflect()) - case "cometbft.types.v2.ConsensusParams.version": + case "tendermint.types.ConsensusParams.version": if x.Version == nil { x.Version = new(VersionParams) } return protoreflect.ValueOfMessage(x.Version.ProtoReflect()) - case "cometbft.types.v2.ConsensusParams.abci": + case "tendermint.types.ConsensusParams.abci": if x.Abci == nil { x.Abci = new(ABCIParams) } return protoreflect.ValueOfMessage(x.Abci.ProtoReflect()) - case "cometbft.types.v2.ConsensusParams.synchrony": - if x.Synchrony == nil { - x.Synchrony = new(SynchronyParams) - } - return protoreflect.ValueOfMessage(x.Synchrony.ProtoReflect()) - case "cometbft.types.v2.ConsensusParams.feature": - if x.Feature == nil { - x.Feature = new(FeatureParams) - } - return protoreflect.ValueOfMessage(x.Feature.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ConsensusParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ConsensusParams")) } - panic(fmt.Errorf("message cometbft.types.v2.ConsensusParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.ConsensusParams does not contain field %s", fd.FullName())) } } @@ -343,32 +298,26 @@ func (x *fastReflection_ConsensusParams) Mutable(fd protoreflect.FieldDescriptor // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_ConsensusParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.ConsensusParams.block": + case "tendermint.types.ConsensusParams.block": m := new(BlockParams) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.ConsensusParams.evidence": + case "tendermint.types.ConsensusParams.evidence": m := new(EvidenceParams) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.ConsensusParams.validator": + case "tendermint.types.ConsensusParams.validator": m := new(ValidatorParams) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.ConsensusParams.version": + case "tendermint.types.ConsensusParams.version": m := new(VersionParams) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.ConsensusParams.abci": + case "tendermint.types.ConsensusParams.abci": m := new(ABCIParams) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.ConsensusParams.synchrony": - m := new(SynchronyParams) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.ConsensusParams.feature": - m := new(FeatureParams) - return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ConsensusParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ConsensusParams")) } - panic(fmt.Errorf("message cometbft.types.v2.ConsensusParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.ConsensusParams does not contain field %s", fd.FullName())) } } @@ -378,7 +327,7 @@ func (x *fastReflection_ConsensusParams) NewField(fd protoreflect.FieldDescripto func (x *fastReflection_ConsensusParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.ConsensusParams", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.types.ConsensusParams", d.FullName())) } panic("unreachable") } @@ -453,14 +402,6 @@ func (x *fastReflection_ConsensusParams) ProtoMethods() *protoiface.Methods { l = options.Size(x.Abci) n += 1 + l + runtime.Sov(uint64(l)) } - if x.Synchrony != nil { - l = options.Size(x.Synchrony) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Feature != nil { - l = options.Size(x.Feature) - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -490,34 +431,6 @@ func (x *fastReflection_ConsensusParams) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Feature != nil { - encoded, err := options.Marshal(x.Feature) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x3a - } - if x.Synchrony != nil { - encoded, err := options.Marshal(x.Synchrony) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x32 - } if x.Abci != nil { encoded, err := options.Marshal(x.Abci) if err != nil { @@ -817,78 +730,6 @@ func (x *fastReflection_ConsensusParams) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 6: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Synchrony", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Synchrony == nil { - x.Synchrony = &SynchronyParams{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Synchrony); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Feature", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Feature == nil { - x.Feature = &FeatureParams{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Feature); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -931,8 +772,8 @@ var ( ) func init() { - file_cometbft_types_v2_params_proto_init() - md_BlockParams = File_cometbft_types_v2_params_proto.Messages().ByName("BlockParams") + file_tendermint_types_params_proto_init() + md_BlockParams = File_tendermint_types_params_proto.Messages().ByName("BlockParams") fd_BlockParams_max_bytes = md_BlockParams.Fields().ByName("max_bytes") fd_BlockParams_max_gas = md_BlockParams.Fields().ByName("max_gas") } @@ -946,7 +787,7 @@ func (x *BlockParams) ProtoReflect() protoreflect.Message { } func (x *BlockParams) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_params_proto_msgTypes[1] + mi := &file_tendermint_types_params_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1029,15 +870,15 @@ func (x *fastReflection_BlockParams) Range(f func(protoreflect.FieldDescriptor, // a repeated field is populated if it is non-empty. func (x *fastReflection_BlockParams) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.types.v2.BlockParams.max_bytes": + case "tendermint.types.BlockParams.max_bytes": return x.MaxBytes != int64(0) - case "cometbft.types.v2.BlockParams.max_gas": + case "tendermint.types.BlockParams.max_gas": return x.MaxGas != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.BlockParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.BlockParams")) } - panic(fmt.Errorf("message cometbft.types.v2.BlockParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.BlockParams does not contain field %s", fd.FullName())) } } @@ -1049,15 +890,15 @@ func (x *fastReflection_BlockParams) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_BlockParams) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.types.v2.BlockParams.max_bytes": + case "tendermint.types.BlockParams.max_bytes": x.MaxBytes = int64(0) - case "cometbft.types.v2.BlockParams.max_gas": + case "tendermint.types.BlockParams.max_gas": x.MaxGas = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.BlockParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.BlockParams")) } - panic(fmt.Errorf("message cometbft.types.v2.BlockParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.BlockParams does not contain field %s", fd.FullName())) } } @@ -1069,17 +910,17 @@ func (x *fastReflection_BlockParams) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_BlockParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.types.v2.BlockParams.max_bytes": + case "tendermint.types.BlockParams.max_bytes": value := x.MaxBytes return protoreflect.ValueOfInt64(value) - case "cometbft.types.v2.BlockParams.max_gas": + case "tendermint.types.BlockParams.max_gas": value := x.MaxGas return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.BlockParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.BlockParams")) } - panic(fmt.Errorf("message cometbft.types.v2.BlockParams does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.types.BlockParams does not contain field %s", descriptor.FullName())) } } @@ -1095,15 +936,15 @@ func (x *fastReflection_BlockParams) Get(descriptor protoreflect.FieldDescriptor // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_BlockParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.types.v2.BlockParams.max_bytes": + case "tendermint.types.BlockParams.max_bytes": x.MaxBytes = value.Int() - case "cometbft.types.v2.BlockParams.max_gas": + case "tendermint.types.BlockParams.max_gas": x.MaxGas = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.BlockParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.BlockParams")) } - panic(fmt.Errorf("message cometbft.types.v2.BlockParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.BlockParams does not contain field %s", fd.FullName())) } } @@ -1119,15 +960,15 @@ func (x *fastReflection_BlockParams) Set(fd protoreflect.FieldDescriptor, value // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_BlockParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.BlockParams.max_bytes": - panic(fmt.Errorf("field max_bytes of message cometbft.types.v2.BlockParams is not mutable")) - case "cometbft.types.v2.BlockParams.max_gas": - panic(fmt.Errorf("field max_gas of message cometbft.types.v2.BlockParams is not mutable")) + case "tendermint.types.BlockParams.max_bytes": + panic(fmt.Errorf("field max_bytes of message tendermint.types.BlockParams is not mutable")) + case "tendermint.types.BlockParams.max_gas": + panic(fmt.Errorf("field max_gas of message tendermint.types.BlockParams is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.BlockParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.BlockParams")) } - panic(fmt.Errorf("message cometbft.types.v2.BlockParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.BlockParams does not contain field %s", fd.FullName())) } } @@ -1136,15 +977,15 @@ func (x *fastReflection_BlockParams) Mutable(fd protoreflect.FieldDescriptor) pr // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_BlockParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.BlockParams.max_bytes": + case "tendermint.types.BlockParams.max_bytes": return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.types.v2.BlockParams.max_gas": + case "tendermint.types.BlockParams.max_gas": return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.BlockParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.BlockParams")) } - panic(fmt.Errorf("message cometbft.types.v2.BlockParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.BlockParams does not contain field %s", fd.FullName())) } } @@ -1154,7 +995,7 @@ func (x *fastReflection_BlockParams) NewField(fd protoreflect.FieldDescriptor) p func (x *fastReflection_BlockParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.BlockParams", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.types.BlockParams", d.FullName())) } panic("unreachable") } @@ -1384,8 +1225,8 @@ var ( ) func init() { - file_cometbft_types_v2_params_proto_init() - md_EvidenceParams = File_cometbft_types_v2_params_proto.Messages().ByName("EvidenceParams") + file_tendermint_types_params_proto_init() + md_EvidenceParams = File_tendermint_types_params_proto.Messages().ByName("EvidenceParams") fd_EvidenceParams_max_age_num_blocks = md_EvidenceParams.Fields().ByName("max_age_num_blocks") fd_EvidenceParams_max_age_duration = md_EvidenceParams.Fields().ByName("max_age_duration") fd_EvidenceParams_max_bytes = md_EvidenceParams.Fields().ByName("max_bytes") @@ -1400,7 +1241,7 @@ func (x *EvidenceParams) ProtoReflect() protoreflect.Message { } func (x *EvidenceParams) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_params_proto_msgTypes[2] + mi := &file_tendermint_types_params_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1489,17 +1330,17 @@ func (x *fastReflection_EvidenceParams) Range(f func(protoreflect.FieldDescripto // a repeated field is populated if it is non-empty. func (x *fastReflection_EvidenceParams) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.types.v2.EvidenceParams.max_age_num_blocks": + case "tendermint.types.EvidenceParams.max_age_num_blocks": return x.MaxAgeNumBlocks != int64(0) - case "cometbft.types.v2.EvidenceParams.max_age_duration": + case "tendermint.types.EvidenceParams.max_age_duration": return x.MaxAgeDuration != nil - case "cometbft.types.v2.EvidenceParams.max_bytes": + case "tendermint.types.EvidenceParams.max_bytes": return x.MaxBytes != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.EvidenceParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.EvidenceParams")) } - panic(fmt.Errorf("message cometbft.types.v2.EvidenceParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.EvidenceParams does not contain field %s", fd.FullName())) } } @@ -1511,17 +1352,17 @@ func (x *fastReflection_EvidenceParams) Has(fd protoreflect.FieldDescriptor) boo // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EvidenceParams) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.types.v2.EvidenceParams.max_age_num_blocks": + case "tendermint.types.EvidenceParams.max_age_num_blocks": x.MaxAgeNumBlocks = int64(0) - case "cometbft.types.v2.EvidenceParams.max_age_duration": + case "tendermint.types.EvidenceParams.max_age_duration": x.MaxAgeDuration = nil - case "cometbft.types.v2.EvidenceParams.max_bytes": + case "tendermint.types.EvidenceParams.max_bytes": x.MaxBytes = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.EvidenceParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.EvidenceParams")) } - panic(fmt.Errorf("message cometbft.types.v2.EvidenceParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.EvidenceParams does not contain field %s", fd.FullName())) } } @@ -1533,20 +1374,20 @@ func (x *fastReflection_EvidenceParams) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_EvidenceParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.types.v2.EvidenceParams.max_age_num_blocks": + case "tendermint.types.EvidenceParams.max_age_num_blocks": value := x.MaxAgeNumBlocks return protoreflect.ValueOfInt64(value) - case "cometbft.types.v2.EvidenceParams.max_age_duration": + case "tendermint.types.EvidenceParams.max_age_duration": value := x.MaxAgeDuration return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.EvidenceParams.max_bytes": + case "tendermint.types.EvidenceParams.max_bytes": value := x.MaxBytes return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.EvidenceParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.EvidenceParams")) } - panic(fmt.Errorf("message cometbft.types.v2.EvidenceParams does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.types.EvidenceParams does not contain field %s", descriptor.FullName())) } } @@ -1562,17 +1403,17 @@ func (x *fastReflection_EvidenceParams) Get(descriptor protoreflect.FieldDescrip // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EvidenceParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.types.v2.EvidenceParams.max_age_num_blocks": + case "tendermint.types.EvidenceParams.max_age_num_blocks": x.MaxAgeNumBlocks = value.Int() - case "cometbft.types.v2.EvidenceParams.max_age_duration": + case "tendermint.types.EvidenceParams.max_age_duration": x.MaxAgeDuration = value.Message().Interface().(*durationpb.Duration) - case "cometbft.types.v2.EvidenceParams.max_bytes": + case "tendermint.types.EvidenceParams.max_bytes": x.MaxBytes = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.EvidenceParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.EvidenceParams")) } - panic(fmt.Errorf("message cometbft.types.v2.EvidenceParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.EvidenceParams does not contain field %s", fd.FullName())) } } @@ -1588,20 +1429,20 @@ func (x *fastReflection_EvidenceParams) Set(fd protoreflect.FieldDescriptor, val // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EvidenceParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.EvidenceParams.max_age_duration": + case "tendermint.types.EvidenceParams.max_age_duration": if x.MaxAgeDuration == nil { x.MaxAgeDuration = new(durationpb.Duration) } return protoreflect.ValueOfMessage(x.MaxAgeDuration.ProtoReflect()) - case "cometbft.types.v2.EvidenceParams.max_age_num_blocks": - panic(fmt.Errorf("field max_age_num_blocks of message cometbft.types.v2.EvidenceParams is not mutable")) - case "cometbft.types.v2.EvidenceParams.max_bytes": - panic(fmt.Errorf("field max_bytes of message cometbft.types.v2.EvidenceParams is not mutable")) + case "tendermint.types.EvidenceParams.max_age_num_blocks": + panic(fmt.Errorf("field max_age_num_blocks of message tendermint.types.EvidenceParams is not mutable")) + case "tendermint.types.EvidenceParams.max_bytes": + panic(fmt.Errorf("field max_bytes of message tendermint.types.EvidenceParams is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.EvidenceParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.EvidenceParams")) } - panic(fmt.Errorf("message cometbft.types.v2.EvidenceParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.EvidenceParams does not contain field %s", fd.FullName())) } } @@ -1610,18 +1451,18 @@ func (x *fastReflection_EvidenceParams) Mutable(fd protoreflect.FieldDescriptor) // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_EvidenceParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.EvidenceParams.max_age_num_blocks": + case "tendermint.types.EvidenceParams.max_age_num_blocks": return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.types.v2.EvidenceParams.max_age_duration": + case "tendermint.types.EvidenceParams.max_age_duration": m := new(durationpb.Duration) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.EvidenceParams.max_bytes": + case "tendermint.types.EvidenceParams.max_bytes": return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.EvidenceParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.EvidenceParams")) } - panic(fmt.Errorf("message cometbft.types.v2.EvidenceParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.EvidenceParams does not contain field %s", fd.FullName())) } } @@ -1631,7 +1472,7 @@ func (x *fastReflection_EvidenceParams) NewField(fd protoreflect.FieldDescriptor func (x *fastReflection_EvidenceParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.EvidenceParams", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.types.EvidenceParams", d.FullName())) } panic("unreachable") } @@ -1959,8 +1800,8 @@ var ( ) func init() { - file_cometbft_types_v2_params_proto_init() - md_ValidatorParams = File_cometbft_types_v2_params_proto.Messages().ByName("ValidatorParams") + file_tendermint_types_params_proto_init() + md_ValidatorParams = File_tendermint_types_params_proto.Messages().ByName("ValidatorParams") fd_ValidatorParams_pub_key_types = md_ValidatorParams.Fields().ByName("pub_key_types") } @@ -1973,7 +1814,7 @@ func (x *ValidatorParams) ProtoReflect() protoreflect.Message { } func (x *ValidatorParams) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_params_proto_msgTypes[3] + mi := &file_tendermint_types_params_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2050,13 +1891,13 @@ func (x *fastReflection_ValidatorParams) Range(f func(protoreflect.FieldDescript // a repeated field is populated if it is non-empty. func (x *fastReflection_ValidatorParams) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.types.v2.ValidatorParams.pub_key_types": + case "tendermint.types.ValidatorParams.pub_key_types": return len(x.PubKeyTypes) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ValidatorParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ValidatorParams")) } - panic(fmt.Errorf("message cometbft.types.v2.ValidatorParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.ValidatorParams does not contain field %s", fd.FullName())) } } @@ -2068,13 +1909,13 @@ func (x *fastReflection_ValidatorParams) Has(fd protoreflect.FieldDescriptor) bo // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ValidatorParams) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.types.v2.ValidatorParams.pub_key_types": + case "tendermint.types.ValidatorParams.pub_key_types": x.PubKeyTypes = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ValidatorParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ValidatorParams")) } - panic(fmt.Errorf("message cometbft.types.v2.ValidatorParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.ValidatorParams does not contain field %s", fd.FullName())) } } @@ -2086,7 +1927,7 @@ func (x *fastReflection_ValidatorParams) Clear(fd protoreflect.FieldDescriptor) // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_ValidatorParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.types.v2.ValidatorParams.pub_key_types": + case "tendermint.types.ValidatorParams.pub_key_types": if len(x.PubKeyTypes) == 0 { return protoreflect.ValueOfList(&_ValidatorParams_1_list{}) } @@ -2094,9 +1935,9 @@ func (x *fastReflection_ValidatorParams) Get(descriptor protoreflect.FieldDescri return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ValidatorParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ValidatorParams")) } - panic(fmt.Errorf("message cometbft.types.v2.ValidatorParams does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.types.ValidatorParams does not contain field %s", descriptor.FullName())) } } @@ -2112,15 +1953,15 @@ func (x *fastReflection_ValidatorParams) Get(descriptor protoreflect.FieldDescri // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ValidatorParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.types.v2.ValidatorParams.pub_key_types": + case "tendermint.types.ValidatorParams.pub_key_types": lv := value.List() clv := lv.(*_ValidatorParams_1_list) x.PubKeyTypes = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ValidatorParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ValidatorParams")) } - panic(fmt.Errorf("message cometbft.types.v2.ValidatorParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.ValidatorParams does not contain field %s", fd.FullName())) } } @@ -2136,7 +1977,7 @@ func (x *fastReflection_ValidatorParams) Set(fd protoreflect.FieldDescriptor, va // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ValidatorParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.ValidatorParams.pub_key_types": + case "tendermint.types.ValidatorParams.pub_key_types": if x.PubKeyTypes == nil { x.PubKeyTypes = []string{} } @@ -2144,9 +1985,9 @@ func (x *fastReflection_ValidatorParams) Mutable(fd protoreflect.FieldDescriptor return protoreflect.ValueOfList(value) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ValidatorParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ValidatorParams")) } - panic(fmt.Errorf("message cometbft.types.v2.ValidatorParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.ValidatorParams does not contain field %s", fd.FullName())) } } @@ -2155,14 +1996,14 @@ func (x *fastReflection_ValidatorParams) Mutable(fd protoreflect.FieldDescriptor // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_ValidatorParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.ValidatorParams.pub_key_types": + case "tendermint.types.ValidatorParams.pub_key_types": list := []string{} return protoreflect.ValueOfList(&_ValidatorParams_1_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ValidatorParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ValidatorParams")) } - panic(fmt.Errorf("message cometbft.types.v2.ValidatorParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.ValidatorParams does not contain field %s", fd.FullName())) } } @@ -2172,7 +2013,7 @@ func (x *fastReflection_ValidatorParams) NewField(fd protoreflect.FieldDescripto func (x *fastReflection_ValidatorParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.ValidatorParams", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.types.ValidatorParams", d.FullName())) } panic("unreachable") } @@ -2393,8 +2234,8 @@ var ( ) func init() { - file_cometbft_types_v2_params_proto_init() - md_VersionParams = File_cometbft_types_v2_params_proto.Messages().ByName("VersionParams") + file_tendermint_types_params_proto_init() + md_VersionParams = File_tendermint_types_params_proto.Messages().ByName("VersionParams") fd_VersionParams_app = md_VersionParams.Fields().ByName("app") } @@ -2407,7 +2248,7 @@ func (x *VersionParams) ProtoReflect() protoreflect.Message { } func (x *VersionParams) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_params_proto_msgTypes[4] + mi := &file_tendermint_types_params_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2484,13 +2325,13 @@ func (x *fastReflection_VersionParams) Range(f func(protoreflect.FieldDescriptor // a repeated field is populated if it is non-empty. func (x *fastReflection_VersionParams) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.types.v2.VersionParams.app": + case "tendermint.types.VersionParams.app": return x.App != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.VersionParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.VersionParams")) } - panic(fmt.Errorf("message cometbft.types.v2.VersionParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.VersionParams does not contain field %s", fd.FullName())) } } @@ -2502,13 +2343,13 @@ func (x *fastReflection_VersionParams) Has(fd protoreflect.FieldDescriptor) bool // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_VersionParams) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.types.v2.VersionParams.app": + case "tendermint.types.VersionParams.app": x.App = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.VersionParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.VersionParams")) } - panic(fmt.Errorf("message cometbft.types.v2.VersionParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.VersionParams does not contain field %s", fd.FullName())) } } @@ -2520,14 +2361,14 @@ func (x *fastReflection_VersionParams) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_VersionParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.types.v2.VersionParams.app": + case "tendermint.types.VersionParams.app": value := x.App return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.VersionParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.VersionParams")) } - panic(fmt.Errorf("message cometbft.types.v2.VersionParams does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.types.VersionParams does not contain field %s", descriptor.FullName())) } } @@ -2543,13 +2384,13 @@ func (x *fastReflection_VersionParams) Get(descriptor protoreflect.FieldDescript // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_VersionParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.types.v2.VersionParams.app": + case "tendermint.types.VersionParams.app": x.App = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.VersionParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.VersionParams")) } - panic(fmt.Errorf("message cometbft.types.v2.VersionParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.VersionParams does not contain field %s", fd.FullName())) } } @@ -2565,13 +2406,13 @@ func (x *fastReflection_VersionParams) Set(fd protoreflect.FieldDescriptor, valu // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_VersionParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.VersionParams.app": - panic(fmt.Errorf("field app of message cometbft.types.v2.VersionParams is not mutable")) + case "tendermint.types.VersionParams.app": + panic(fmt.Errorf("field app of message tendermint.types.VersionParams is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.VersionParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.VersionParams")) } - panic(fmt.Errorf("message cometbft.types.v2.VersionParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.VersionParams does not contain field %s", fd.FullName())) } } @@ -2580,13 +2421,13 @@ func (x *fastReflection_VersionParams) Mutable(fd protoreflect.FieldDescriptor) // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_VersionParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.VersionParams.app": + case "tendermint.types.VersionParams.app": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.VersionParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.VersionParams")) } - panic(fmt.Errorf("message cometbft.types.v2.VersionParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.VersionParams does not contain field %s", fd.FullName())) } } @@ -2596,7 +2437,7 @@ func (x *fastReflection_VersionParams) NewField(fd protoreflect.FieldDescriptor) func (x *fastReflection_VersionParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.VersionParams", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.types.VersionParams", d.FullName())) } panic("unreachable") } @@ -2798,8 +2639,8 @@ var ( ) func init() { - file_cometbft_types_v2_params_proto_init() - md_HashedParams = File_cometbft_types_v2_params_proto.Messages().ByName("HashedParams") + file_tendermint_types_params_proto_init() + md_HashedParams = File_tendermint_types_params_proto.Messages().ByName("HashedParams") fd_HashedParams_block_max_bytes = md_HashedParams.Fields().ByName("block_max_bytes") fd_HashedParams_block_max_gas = md_HashedParams.Fields().ByName("block_max_gas") } @@ -2813,7 +2654,7 @@ func (x *HashedParams) ProtoReflect() protoreflect.Message { } func (x *HashedParams) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_params_proto_msgTypes[5] + mi := &file_tendermint_types_params_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2896,15 +2737,15 @@ func (x *fastReflection_HashedParams) Range(f func(protoreflect.FieldDescriptor, // a repeated field is populated if it is non-empty. func (x *fastReflection_HashedParams) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.types.v2.HashedParams.block_max_bytes": + case "tendermint.types.HashedParams.block_max_bytes": return x.BlockMaxBytes != int64(0) - case "cometbft.types.v2.HashedParams.block_max_gas": + case "tendermint.types.HashedParams.block_max_gas": return x.BlockMaxGas != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.HashedParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.HashedParams")) } - panic(fmt.Errorf("message cometbft.types.v2.HashedParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.HashedParams does not contain field %s", fd.FullName())) } } @@ -2916,15 +2757,15 @@ func (x *fastReflection_HashedParams) Has(fd protoreflect.FieldDescriptor) bool // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_HashedParams) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.types.v2.HashedParams.block_max_bytes": + case "tendermint.types.HashedParams.block_max_bytes": x.BlockMaxBytes = int64(0) - case "cometbft.types.v2.HashedParams.block_max_gas": + case "tendermint.types.HashedParams.block_max_gas": x.BlockMaxGas = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.HashedParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.HashedParams")) } - panic(fmt.Errorf("message cometbft.types.v2.HashedParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.HashedParams does not contain field %s", fd.FullName())) } } @@ -2936,17 +2777,17 @@ func (x *fastReflection_HashedParams) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_HashedParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.types.v2.HashedParams.block_max_bytes": + case "tendermint.types.HashedParams.block_max_bytes": value := x.BlockMaxBytes return protoreflect.ValueOfInt64(value) - case "cometbft.types.v2.HashedParams.block_max_gas": + case "tendermint.types.HashedParams.block_max_gas": value := x.BlockMaxGas return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.HashedParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.HashedParams")) } - panic(fmt.Errorf("message cometbft.types.v2.HashedParams does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.types.HashedParams does not contain field %s", descriptor.FullName())) } } @@ -2962,15 +2803,15 @@ func (x *fastReflection_HashedParams) Get(descriptor protoreflect.FieldDescripto // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_HashedParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.types.v2.HashedParams.block_max_bytes": + case "tendermint.types.HashedParams.block_max_bytes": x.BlockMaxBytes = value.Int() - case "cometbft.types.v2.HashedParams.block_max_gas": + case "tendermint.types.HashedParams.block_max_gas": x.BlockMaxGas = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.HashedParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.HashedParams")) } - panic(fmt.Errorf("message cometbft.types.v2.HashedParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.HashedParams does not contain field %s", fd.FullName())) } } @@ -2986,15 +2827,15 @@ func (x *fastReflection_HashedParams) Set(fd protoreflect.FieldDescriptor, value // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_HashedParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.HashedParams.block_max_bytes": - panic(fmt.Errorf("field block_max_bytes of message cometbft.types.v2.HashedParams is not mutable")) - case "cometbft.types.v2.HashedParams.block_max_gas": - panic(fmt.Errorf("field block_max_gas of message cometbft.types.v2.HashedParams is not mutable")) + case "tendermint.types.HashedParams.block_max_bytes": + panic(fmt.Errorf("field block_max_bytes of message tendermint.types.HashedParams is not mutable")) + case "tendermint.types.HashedParams.block_max_gas": + panic(fmt.Errorf("field block_max_gas of message tendermint.types.HashedParams is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.HashedParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.HashedParams")) } - panic(fmt.Errorf("message cometbft.types.v2.HashedParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.HashedParams does not contain field %s", fd.FullName())) } } @@ -3003,15 +2844,15 @@ func (x *fastReflection_HashedParams) Mutable(fd protoreflect.FieldDescriptor) p // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_HashedParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.HashedParams.block_max_bytes": + case "tendermint.types.HashedParams.block_max_bytes": return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.types.v2.HashedParams.block_max_gas": + case "tendermint.types.HashedParams.block_max_gas": return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.HashedParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.HashedParams")) } - panic(fmt.Errorf("message cometbft.types.v2.HashedParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.HashedParams does not contain field %s", fd.FullName())) } } @@ -3021,7 +2862,7 @@ func (x *fastReflection_HashedParams) NewField(fd protoreflect.FieldDescriptor) func (x *fastReflection_HashedParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.HashedParams", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.types.HashedParams", d.FullName())) } panic("unreachable") } @@ -3243,1042 +3084,14 @@ func (x *fastReflection_HashedParams) ProtoMethods() *protoiface.Methods { } } -var ( - md_SynchronyParams protoreflect.MessageDescriptor - fd_SynchronyParams_precision protoreflect.FieldDescriptor - fd_SynchronyParams_message_delay protoreflect.FieldDescriptor -) - -func init() { - file_cometbft_types_v2_params_proto_init() - md_SynchronyParams = File_cometbft_types_v2_params_proto.Messages().ByName("SynchronyParams") - fd_SynchronyParams_precision = md_SynchronyParams.Fields().ByName("precision") - fd_SynchronyParams_message_delay = md_SynchronyParams.Fields().ByName("message_delay") -} - -var _ protoreflect.Message = (*fastReflection_SynchronyParams)(nil) - -type fastReflection_SynchronyParams SynchronyParams - -func (x *SynchronyParams) ProtoReflect() protoreflect.Message { - return (*fastReflection_SynchronyParams)(x) -} - -func (x *SynchronyParams) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_params_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_SynchronyParams_messageType fastReflection_SynchronyParams_messageType -var _ protoreflect.MessageType = fastReflection_SynchronyParams_messageType{} - -type fastReflection_SynchronyParams_messageType struct{} - -func (x fastReflection_SynchronyParams_messageType) Zero() protoreflect.Message { - return (*fastReflection_SynchronyParams)(nil) -} -func (x fastReflection_SynchronyParams_messageType) New() protoreflect.Message { - return new(fastReflection_SynchronyParams) -} -func (x fastReflection_SynchronyParams_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_SynchronyParams -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_SynchronyParams) Descriptor() protoreflect.MessageDescriptor { - return md_SynchronyParams -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_SynchronyParams) Type() protoreflect.MessageType { - return _fastReflection_SynchronyParams_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_SynchronyParams) New() protoreflect.Message { - return new(fastReflection_SynchronyParams) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_SynchronyParams) Interface() protoreflect.ProtoMessage { - return (*SynchronyParams)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_SynchronyParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Precision != nil { - value := protoreflect.ValueOfMessage(x.Precision.ProtoReflect()) - if !f(fd_SynchronyParams_precision, value) { - return - } - } - if x.MessageDelay != nil { - value := protoreflect.ValueOfMessage(x.MessageDelay.ProtoReflect()) - if !f(fd_SynchronyParams_message_delay, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_SynchronyParams) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cometbft.types.v2.SynchronyParams.precision": - return x.Precision != nil - case "cometbft.types.v2.SynchronyParams.message_delay": - return x.MessageDelay != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.SynchronyParams")) - } - panic(fmt.Errorf("message cometbft.types.v2.SynchronyParams does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_SynchronyParams) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cometbft.types.v2.SynchronyParams.precision": - x.Precision = nil - case "cometbft.types.v2.SynchronyParams.message_delay": - x.MessageDelay = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.SynchronyParams")) - } - panic(fmt.Errorf("message cometbft.types.v2.SynchronyParams does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_SynchronyParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cometbft.types.v2.SynchronyParams.precision": - value := x.Precision - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.SynchronyParams.message_delay": - value := x.MessageDelay - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.SynchronyParams")) - } - panic(fmt.Errorf("message cometbft.types.v2.SynchronyParams does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_SynchronyParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cometbft.types.v2.SynchronyParams.precision": - x.Precision = value.Message().Interface().(*durationpb.Duration) - case "cometbft.types.v2.SynchronyParams.message_delay": - x.MessageDelay = value.Message().Interface().(*durationpb.Duration) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.SynchronyParams")) - } - panic(fmt.Errorf("message cometbft.types.v2.SynchronyParams does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_SynchronyParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cometbft.types.v2.SynchronyParams.precision": - if x.Precision == nil { - x.Precision = new(durationpb.Duration) - } - return protoreflect.ValueOfMessage(x.Precision.ProtoReflect()) - case "cometbft.types.v2.SynchronyParams.message_delay": - if x.MessageDelay == nil { - x.MessageDelay = new(durationpb.Duration) - } - return protoreflect.ValueOfMessage(x.MessageDelay.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.SynchronyParams")) - } - panic(fmt.Errorf("message cometbft.types.v2.SynchronyParams does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_SynchronyParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cometbft.types.v2.SynchronyParams.precision": - m := new(durationpb.Duration) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.SynchronyParams.message_delay": - m := new(durationpb.Duration) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.SynchronyParams")) - } - panic(fmt.Errorf("message cometbft.types.v2.SynchronyParams does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_SynchronyParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.SynchronyParams", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_SynchronyParams) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_SynchronyParams) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_SynchronyParams) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_SynchronyParams) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*SynchronyParams) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Precision != nil { - l = options.Size(x.Precision) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.MessageDelay != nil { - l = options.Size(x.MessageDelay) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*SynchronyParams) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.MessageDelay != nil { - encoded, err := options.Marshal(x.MessageDelay) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if x.Precision != nil { - encoded, err := options.Marshal(x.Precision) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*SynchronyParams) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SynchronyParams: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SynchronyParams: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Precision", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Precision == nil { - x.Precision = &durationpb.Duration{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Precision); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MessageDelay", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.MessageDelay == nil { - x.MessageDelay = &durationpb.Duration{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.MessageDelay); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_FeatureParams protoreflect.MessageDescriptor - fd_FeatureParams_vote_extensions_enable_height protoreflect.FieldDescriptor - fd_FeatureParams_pbts_enable_height protoreflect.FieldDescriptor -) - -func init() { - file_cometbft_types_v2_params_proto_init() - md_FeatureParams = File_cometbft_types_v2_params_proto.Messages().ByName("FeatureParams") - fd_FeatureParams_vote_extensions_enable_height = md_FeatureParams.Fields().ByName("vote_extensions_enable_height") - fd_FeatureParams_pbts_enable_height = md_FeatureParams.Fields().ByName("pbts_enable_height") -} - -var _ protoreflect.Message = (*fastReflection_FeatureParams)(nil) - -type fastReflection_FeatureParams FeatureParams - -func (x *FeatureParams) ProtoReflect() protoreflect.Message { - return (*fastReflection_FeatureParams)(x) -} - -func (x *FeatureParams) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_params_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_FeatureParams_messageType fastReflection_FeatureParams_messageType -var _ protoreflect.MessageType = fastReflection_FeatureParams_messageType{} - -type fastReflection_FeatureParams_messageType struct{} - -func (x fastReflection_FeatureParams_messageType) Zero() protoreflect.Message { - return (*fastReflection_FeatureParams)(nil) -} -func (x fastReflection_FeatureParams_messageType) New() protoreflect.Message { - return new(fastReflection_FeatureParams) -} -func (x fastReflection_FeatureParams_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_FeatureParams -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_FeatureParams) Descriptor() protoreflect.MessageDescriptor { - return md_FeatureParams -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_FeatureParams) Type() protoreflect.MessageType { - return _fastReflection_FeatureParams_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_FeatureParams) New() protoreflect.Message { - return new(fastReflection_FeatureParams) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_FeatureParams) Interface() protoreflect.ProtoMessage { - return (*FeatureParams)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_FeatureParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.VoteExtensionsEnableHeight != nil { - value := protoreflect.ValueOfMessage(x.VoteExtensionsEnableHeight.ProtoReflect()) - if !f(fd_FeatureParams_vote_extensions_enable_height, value) { - return - } - } - if x.PbtsEnableHeight != nil { - value := protoreflect.ValueOfMessage(x.PbtsEnableHeight.ProtoReflect()) - if !f(fd_FeatureParams_pbts_enable_height, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_FeatureParams) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cometbft.types.v2.FeatureParams.vote_extensions_enable_height": - return x.VoteExtensionsEnableHeight != nil - case "cometbft.types.v2.FeatureParams.pbts_enable_height": - return x.PbtsEnableHeight != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.FeatureParams")) - } - panic(fmt.Errorf("message cometbft.types.v2.FeatureParams does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_FeatureParams) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cometbft.types.v2.FeatureParams.vote_extensions_enable_height": - x.VoteExtensionsEnableHeight = nil - case "cometbft.types.v2.FeatureParams.pbts_enable_height": - x.PbtsEnableHeight = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.FeatureParams")) - } - panic(fmt.Errorf("message cometbft.types.v2.FeatureParams does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_FeatureParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cometbft.types.v2.FeatureParams.vote_extensions_enable_height": - value := x.VoteExtensionsEnableHeight - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.FeatureParams.pbts_enable_height": - value := x.PbtsEnableHeight - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.FeatureParams")) - } - panic(fmt.Errorf("message cometbft.types.v2.FeatureParams does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_FeatureParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cometbft.types.v2.FeatureParams.vote_extensions_enable_height": - x.VoteExtensionsEnableHeight = value.Message().Interface().(*wrapperspb.Int64Value) - case "cometbft.types.v2.FeatureParams.pbts_enable_height": - x.PbtsEnableHeight = value.Message().Interface().(*wrapperspb.Int64Value) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.FeatureParams")) - } - panic(fmt.Errorf("message cometbft.types.v2.FeatureParams does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_FeatureParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cometbft.types.v2.FeatureParams.vote_extensions_enable_height": - if x.VoteExtensionsEnableHeight == nil { - x.VoteExtensionsEnableHeight = new(wrapperspb.Int64Value) - } - return protoreflect.ValueOfMessage(x.VoteExtensionsEnableHeight.ProtoReflect()) - case "cometbft.types.v2.FeatureParams.pbts_enable_height": - if x.PbtsEnableHeight == nil { - x.PbtsEnableHeight = new(wrapperspb.Int64Value) - } - return protoreflect.ValueOfMessage(x.PbtsEnableHeight.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.FeatureParams")) - } - panic(fmt.Errorf("message cometbft.types.v2.FeatureParams does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_FeatureParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cometbft.types.v2.FeatureParams.vote_extensions_enable_height": - m := new(wrapperspb.Int64Value) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.FeatureParams.pbts_enable_height": - m := new(wrapperspb.Int64Value) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.FeatureParams")) - } - panic(fmt.Errorf("message cometbft.types.v2.FeatureParams does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_FeatureParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.FeatureParams", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_FeatureParams) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_FeatureParams) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_FeatureParams) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_FeatureParams) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*FeatureParams) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.VoteExtensionsEnableHeight != nil { - l = options.Size(x.VoteExtensionsEnableHeight) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.PbtsEnableHeight != nil { - l = options.Size(x.PbtsEnableHeight) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*FeatureParams) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.PbtsEnableHeight != nil { - encoded, err := options.Marshal(x.PbtsEnableHeight) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if x.VoteExtensionsEnableHeight != nil { - encoded, err := options.Marshal(x.VoteExtensionsEnableHeight) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*FeatureParams) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: FeatureParams: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: FeatureParams: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VoteExtensionsEnableHeight", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.VoteExtensionsEnableHeight == nil { - x.VoteExtensionsEnableHeight = &wrapperspb.Int64Value{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.VoteExtensionsEnableHeight); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PbtsEnableHeight", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.PbtsEnableHeight == nil { - x.PbtsEnableHeight = &wrapperspb.Int64Value{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PbtsEnableHeight); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - var ( md_ABCIParams protoreflect.MessageDescriptor fd_ABCIParams_vote_extensions_enable_height protoreflect.FieldDescriptor ) func init() { - file_cometbft_types_v2_params_proto_init() - md_ABCIParams = File_cometbft_types_v2_params_proto.Messages().ByName("ABCIParams") + file_tendermint_types_params_proto_init() + md_ABCIParams = File_tendermint_types_params_proto.Messages().ByName("ABCIParams") fd_ABCIParams_vote_extensions_enable_height = md_ABCIParams.Fields().ByName("vote_extensions_enable_height") } @@ -4291,7 +3104,7 @@ func (x *ABCIParams) ProtoReflect() protoreflect.Message { } func (x *ABCIParams) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_params_proto_msgTypes[8] + mi := &file_tendermint_types_params_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4368,13 +3181,13 @@ func (x *fastReflection_ABCIParams) Range(f func(protoreflect.FieldDescriptor, p // a repeated field is populated if it is non-empty. func (x *fastReflection_ABCIParams) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.types.v2.ABCIParams.vote_extensions_enable_height": + case "tendermint.types.ABCIParams.vote_extensions_enable_height": return x.VoteExtensionsEnableHeight != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ABCIParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ABCIParams")) } - panic(fmt.Errorf("message cometbft.types.v2.ABCIParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.ABCIParams does not contain field %s", fd.FullName())) } } @@ -4386,13 +3199,13 @@ func (x *fastReflection_ABCIParams) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ABCIParams) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.types.v2.ABCIParams.vote_extensions_enable_height": + case "tendermint.types.ABCIParams.vote_extensions_enable_height": x.VoteExtensionsEnableHeight = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ABCIParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ABCIParams")) } - panic(fmt.Errorf("message cometbft.types.v2.ABCIParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.ABCIParams does not contain field %s", fd.FullName())) } } @@ -4404,14 +3217,14 @@ func (x *fastReflection_ABCIParams) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_ABCIParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.types.v2.ABCIParams.vote_extensions_enable_height": + case "tendermint.types.ABCIParams.vote_extensions_enable_height": value := x.VoteExtensionsEnableHeight return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ABCIParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ABCIParams")) } - panic(fmt.Errorf("message cometbft.types.v2.ABCIParams does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.types.ABCIParams does not contain field %s", descriptor.FullName())) } } @@ -4427,13 +3240,13 @@ func (x *fastReflection_ABCIParams) Get(descriptor protoreflect.FieldDescriptor) // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ABCIParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.types.v2.ABCIParams.vote_extensions_enable_height": + case "tendermint.types.ABCIParams.vote_extensions_enable_height": x.VoteExtensionsEnableHeight = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ABCIParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ABCIParams")) } - panic(fmt.Errorf("message cometbft.types.v2.ABCIParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.ABCIParams does not contain field %s", fd.FullName())) } } @@ -4449,13 +3262,13 @@ func (x *fastReflection_ABCIParams) Set(fd protoreflect.FieldDescriptor, value p // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ABCIParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.ABCIParams.vote_extensions_enable_height": - panic(fmt.Errorf("field vote_extensions_enable_height of message cometbft.types.v2.ABCIParams is not mutable")) + case "tendermint.types.ABCIParams.vote_extensions_enable_height": + panic(fmt.Errorf("field vote_extensions_enable_height of message tendermint.types.ABCIParams is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ABCIParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ABCIParams")) } - panic(fmt.Errorf("message cometbft.types.v2.ABCIParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.ABCIParams does not contain field %s", fd.FullName())) } } @@ -4464,13 +3277,13 @@ func (x *fastReflection_ABCIParams) Mutable(fd protoreflect.FieldDescriptor) pro // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_ABCIParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.ABCIParams.vote_extensions_enable_height": + case "tendermint.types.ABCIParams.vote_extensions_enable_height": return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ABCIParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ABCIParams")) } - panic(fmt.Errorf("message cometbft.types.v2.ABCIParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.ABCIParams does not contain field %s", fd.FullName())) } } @@ -4480,7 +3293,7 @@ func (x *fastReflection_ABCIParams) NewField(fd protoreflect.FieldDescriptor) pr func (x *fastReflection_ABCIParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.ABCIParams", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.types.ABCIParams", d.FullName())) } panic("unreachable") } @@ -4679,7 +3492,7 @@ func (x *fastReflection_ABCIParams) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: cometbft/types/v2/params.proto +// source: tendermint/types/params.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -4699,16 +3512,13 @@ type ConsensusParams struct { Evidence *EvidenceParams `protobuf:"bytes,2,opt,name=evidence,proto3" json:"evidence,omitempty"` Validator *ValidatorParams `protobuf:"bytes,3,opt,name=validator,proto3" json:"validator,omitempty"` Version *VersionParams `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` - // Deprecated: Do not use. - Abci *ABCIParams `protobuf:"bytes,5,opt,name=abci,proto3" json:"abci,omitempty"` // Use FeatureParams.vote_extensions_enable_height instead - Synchrony *SynchronyParams `protobuf:"bytes,6,opt,name=synchrony,proto3" json:"synchrony,omitempty"` - Feature *FeatureParams `protobuf:"bytes,7,opt,name=feature,proto3" json:"feature,omitempty"` + Abci *ABCIParams `protobuf:"bytes,5,opt,name=abci,proto3" json:"abci,omitempty"` } func (x *ConsensusParams) Reset() { *x = ConsensusParams{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_params_proto_msgTypes[0] + mi := &file_tendermint_types_params_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4722,7 +3532,7 @@ func (*ConsensusParams) ProtoMessage() {} // Deprecated: Use ConsensusParams.ProtoReflect.Descriptor instead. func (*ConsensusParams) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_params_proto_rawDescGZIP(), []int{0} + return file_tendermint_types_params_proto_rawDescGZIP(), []int{0} } func (x *ConsensusParams) GetBlock() *BlockParams { @@ -4753,7 +3563,6 @@ func (x *ConsensusParams) GetVersion() *VersionParams { return nil } -// Deprecated: Do not use. func (x *ConsensusParams) GetAbci() *ABCIParams { if x != nil { return x.Abci @@ -4761,43 +3570,24 @@ func (x *ConsensusParams) GetAbci() *ABCIParams { return nil } -func (x *ConsensusParams) GetSynchrony() *SynchronyParams { - if x != nil { - return x.Synchrony - } - return nil -} - -func (x *ConsensusParams) GetFeature() *FeatureParams { - if x != nil { - return x.Feature - } - return nil -} - -// BlockParams define limits on the block size and gas. +// BlockParams contains limits on the block size. type BlockParams struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Maximum size of a block, in bytes. - // - // Must be greater or equal to -1 and cannot be greater than the hard-coded - // maximum block size, which is 100MB. - // - // If set to -1, the limit is the hard-coded maximum block size. + // Max block size, in bytes. + // Note: must be greater than 0 MaxBytes int64 `protobuf:"varint,1,opt,name=max_bytes,json=maxBytes,proto3" json:"max_bytes,omitempty"` - // Maximum gas wanted by transactions included in a block. - // - // Must be greater or equal to -1. If set to -1, no limit is enforced. + // Max gas per block. + // Note: must be greater or equal to -1 MaxGas int64 `protobuf:"varint,2,opt,name=max_gas,json=maxGas,proto3" json:"max_gas,omitempty"` } func (x *BlockParams) Reset() { *x = BlockParams{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_params_proto_msgTypes[1] + mi := &file_tendermint_types_params_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4811,7 +3601,7 @@ func (*BlockParams) ProtoMessage() {} // Deprecated: Use BlockParams.ProtoReflect.Descriptor instead. func (*BlockParams) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_params_proto_rawDescGZIP(), []int{1} + return file_tendermint_types_params_proto_rawDescGZIP(), []int{1} } func (x *BlockParams) GetMaxBytes() int64 { @@ -4828,35 +3618,33 @@ func (x *BlockParams) GetMaxGas() int64 { return 0 } -// EvidenceParams determine the validity of evidences of Byzantine behavior. +// EvidenceParams determine how we handle evidence of malfeasance. type EvidenceParams struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Maximum age of evidence, in blocks. + // Max age of evidence, in blocks. // - // The recommended formula for calculating it is max_age_duration / {average - // block time}. + // The basic formula for calculating this is: MaxAgeDuration / {average block + // time}. MaxAgeNumBlocks int64 `protobuf:"varint,1,opt,name=max_age_num_blocks,json=maxAgeNumBlocks,proto3" json:"max_age_num_blocks,omitempty"` - // Maximum age of evidence, in time. + // Max age of evidence, in time. // - // The recommended value of is should correspond to the application's - // "unbonding period" or other similar mechanism for handling - // Nothing-At-Stake attacks. - // See: - // https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed. + // 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). MaxAgeDuration *durationpb.Duration `protobuf:"bytes,2,opt,name=max_age_duration,json=maxAgeDuration,proto3" json:"max_age_duration,omitempty"` - // Maximum size in bytes of evidence allowed to be included in a block. - // - // It should fall comfortably under the maximum size of a block. + // 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 MaxBytes int64 `protobuf:"varint,3,opt,name=max_bytes,json=maxBytes,proto3" json:"max_bytes,omitempty"` } func (x *EvidenceParams) Reset() { *x = EvidenceParams{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_params_proto_msgTypes[2] + mi := &file_tendermint_types_params_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4870,7 +3658,7 @@ func (*EvidenceParams) ProtoMessage() {} // Deprecated: Use EvidenceParams.ProtoReflect.Descriptor instead. func (*EvidenceParams) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_params_proto_rawDescGZIP(), []int{2} + return file_tendermint_types_params_proto_rawDescGZIP(), []int{2} } func (x *EvidenceParams) GetMaxAgeNumBlocks() int64 { @@ -4895,8 +3683,7 @@ func (x *EvidenceParams) GetMaxBytes() int64 { } // ValidatorParams restrict the public key types validators can use. -// -// NOTE: uses ABCI public keys naming, not Amino names. +// NOTE: uses ABCI pubkey naming, not Amino names. type ValidatorParams struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -4908,7 +3695,7 @@ type ValidatorParams struct { func (x *ValidatorParams) Reset() { *x = ValidatorParams{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_params_proto_msgTypes[3] + mi := &file_tendermint_types_params_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4922,7 +3709,7 @@ func (*ValidatorParams) ProtoMessage() {} // Deprecated: Use ValidatorParams.ProtoReflect.Descriptor instead. func (*ValidatorParams) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_params_proto_rawDescGZIP(), []int{3} + return file_tendermint_types_params_proto_rawDescGZIP(), []int{3} } func (x *ValidatorParams) GetPubKeyTypes() []string { @@ -4932,22 +3719,19 @@ func (x *ValidatorParams) GetPubKeyTypes() []string { return nil } -// VersionParams contain the version of specific components of CometBFT. +// VersionParams contains the ABCI application version. type VersionParams struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // The ABCI application version. - // - // It was named app_version in CometBFT 0.34. App uint64 `protobuf:"varint,1,opt,name=app,proto3" json:"app,omitempty"` } func (x *VersionParams) Reset() { *x = VersionParams{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_params_proto_msgTypes[4] + mi := &file_tendermint_types_params_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4961,7 +3745,7 @@ func (*VersionParams) ProtoMessage() {} // Deprecated: Use VersionParams.ProtoReflect.Descriptor instead. func (*VersionParams) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_params_proto_rawDescGZIP(), []int{4} + return file_tendermint_types_params_proto_rawDescGZIP(), []int{4} } func (x *VersionParams) GetApp() uint64 { @@ -4986,7 +3770,7 @@ type HashedParams struct { func (x *HashedParams) Reset() { *x = HashedParams{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_params_proto_msgTypes[5] + mi := &file_tendermint_types_params_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5000,7 +3784,7 @@ func (*HashedParams) ProtoMessage() {} // Deprecated: Use HashedParams.ProtoReflect.Descriptor instead. func (*HashedParams) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_params_proto_rawDescGZIP(), []int{5} + return file_tendermint_types_params_proto_rawDescGZIP(), []int{5} } func (x *HashedParams) GetBlockMaxBytes() int64 { @@ -5017,146 +3801,28 @@ func (x *HashedParams) GetBlockMaxGas() int64 { return 0 } -// SynchronyParams determine the validity of block timestamps. -// -// These parameters are part of the Proposer-Based Timestamps (PBTS) algorithm. -// For more information on the relationship of the synchrony parameters to -// block timestamps validity, refer to the PBTS specification: -// https://github.com/tendermint/spec/blob/master/spec/consensus/proposer-based-timestamp/README.md -type SynchronyParams struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Bound for how skewed a proposer's clock may be from any validator on the - // network while still producing valid proposals. - Precision *durationpb.Duration `protobuf:"bytes,1,opt,name=precision,proto3" json:"precision,omitempty"` - // Bound for how long a proposal message may take to reach all validators on - // a network and still be considered valid. - MessageDelay *durationpb.Duration `protobuf:"bytes,2,opt,name=message_delay,json=messageDelay,proto3" json:"message_delay,omitempty"` -} - -func (x *SynchronyParams) Reset() { - *x = SynchronyParams{} - if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_params_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SynchronyParams) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SynchronyParams) ProtoMessage() {} - -// Deprecated: Use SynchronyParams.ProtoReflect.Descriptor instead. -func (*SynchronyParams) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_params_proto_rawDescGZIP(), []int{6} -} - -func (x *SynchronyParams) GetPrecision() *durationpb.Duration { - if x != nil { - return x.Precision - } - return nil -} - -func (x *SynchronyParams) GetMessageDelay() *durationpb.Duration { - if x != nil { - return x.MessageDelay - } - return nil -} - -// FeatureParams configure the height from which features of CometBFT are enabled. -type FeatureParams struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Height during which vote extensions will be enabled. - // - // A value of 0 means vote extensions are disabled. A value > 0 denotes - // the height at which vote extensions will be (or have been) enabled. - // - // During the specified height, and for all subsequent heights, precommit - // messages that do not contain valid extension data will be considered - // invalid. Prior to this height, or when this height is set to 0, 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, validated by the application in VerifyVoteExtension, and - // used by the application in PrepareProposal, when proposing the next block. - // - // Cannot be set to heights lower or equal to the current blockchain height. - VoteExtensionsEnableHeight *wrapperspb.Int64Value `protobuf:"bytes,1,opt,name=vote_extensions_enable_height,json=voteExtensionsEnableHeight,proto3" json:"vote_extensions_enable_height,omitempty"` - // Height at which Proposer-Based Timestamps (PBTS) will be enabled. - // - // A value of 0 means PBTS is disabled. A value > 0 denotes the height at - // which PBTS will be (or has been) enabled. - // - // From the specified height, and for all subsequent heights, the PBTS - // algorithm will be used to produce and validate block timestamps. Prior to - // this height, or when this height is set to 0, the legacy BFT Time - // algorithm is used to produce and validate timestamps. - // - // Cannot be set to heights lower or equal to the current blockchain height. - PbtsEnableHeight *wrapperspb.Int64Value `protobuf:"bytes,2,opt,name=pbts_enable_height,json=pbtsEnableHeight,proto3" json:"pbts_enable_height,omitempty"` -} - -func (x *FeatureParams) Reset() { - *x = FeatureParams{} - if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_params_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FeatureParams) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FeatureParams) ProtoMessage() {} - -// Deprecated: Use FeatureParams.ProtoReflect.Descriptor instead. -func (*FeatureParams) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_params_proto_rawDescGZIP(), []int{7} -} - -func (x *FeatureParams) GetVoteExtensionsEnableHeight() *wrapperspb.Int64Value { - if x != nil { - return x.VoteExtensionsEnableHeight - } - return nil -} - -func (x *FeatureParams) GetPbtsEnableHeight() *wrapperspb.Int64Value { - if x != nil { - return x.PbtsEnableHeight - } - return nil -} - -// ABCIParams is deprecated and its contents moved to FeatureParams -// -// Deprecated: Do not use. +// ABCIParams configure functionality specific to the Application Blockchain Interface. type ABCIParams struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // vote_extensions_enable_height has been deprecated. - // Instead, use FeatureParams.vote_extensions_enable_height. + // 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. VoteExtensionsEnableHeight int64 `protobuf:"varint,1,opt,name=vote_extensions_enable_height,json=voteExtensionsEnableHeight,proto3" json:"vote_extensions_enable_height,omitempty"` } func (x *ABCIParams) Reset() { *x = ABCIParams{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_params_proto_msgTypes[8] + mi := &file_tendermint_types_params_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5170,7 +3836,7 @@ func (*ABCIParams) ProtoMessage() {} // Deprecated: Use ABCIParams.ProtoReflect.Descriptor instead. func (*ABCIParams) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_params_proto_rawDescGZIP(), []int{8} + return file_tendermint_types_params_proto_rawDescGZIP(), []int{6} } func (x *ABCIParams) GetVoteExtensionsEnableHeight() int64 { @@ -5180,169 +3846,126 @@ func (x *ABCIParams) GetVoteExtensionsEnableHeight() int64 { return 0 } -var File_cometbft_types_v2_params_proto protoreflect.FileDescriptor +var File_tendermint_types_params_proto protoreflect.FileDescriptor -var file_cometbft_types_v2_params_proto_rawDesc = []byte{ - 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2f, 0x76, 0x32, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x11, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x76, 0x32, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, - 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, - 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb9, 0x03, 0x0a, 0x0f, 0x43, 0x6f, - 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x34, 0x0a, - 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, - 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, - 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x05, 0x62, 0x6c, - 0x6f, 0x63, 0x6b, 0x12, 0x3d, 0x0a, 0x08, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, - 0x63, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x08, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, - 0x63, 0x65, 0x12, 0x40, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x6f, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, - 0x61, 0x74, 0x6f, 0x72, 0x12, 0x3a, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x12, 0x35, 0x0a, 0x04, 0x61, 0x62, 0x63, 0x69, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, - 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, - 0x76, 0x32, 0x2e, 0x41, 0x42, 0x43, 0x49, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x02, 0x18, - 0x01, 0x52, 0x04, 0x61, 0x62, 0x63, 0x69, 0x12, 0x40, 0x0a, 0x09, 0x73, 0x79, 0x6e, 0x63, 0x68, - 0x72, 0x6f, 0x6e, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x6f, 0x6d, - 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x53, - 0x79, 0x6e, 0x63, 0x68, 0x72, 0x6f, 0x6e, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x09, - 0x73, 0x79, 0x6e, 0x63, 0x68, 0x72, 0x6f, 0x6e, 0x79, 0x12, 0x3a, 0x0a, 0x07, 0x66, 0x65, 0x61, - 0x74, 0x75, 0x72, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x6f, 0x6d, - 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x46, - 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x07, 0x66, 0x65, - 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x49, 0x0a, 0x0b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x78, 0x5f, 0x62, 0x79, 0x74, 0x65, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6d, 0x61, 0x78, 0x42, 0x79, 0x74, 0x65, - 0x73, 0x12, 0x17, 0x0a, 0x07, 0x6d, 0x61, 0x78, 0x5f, 0x67, 0x61, 0x73, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x06, 0x6d, 0x61, 0x78, 0x47, 0x61, 0x73, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, - 0x22, 0xa9, 0x01, 0x0a, 0x0e, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x12, 0x2b, 0x0a, 0x12, 0x6d, 0x61, 0x78, 0x5f, 0x61, 0x67, 0x65, 0x5f, 0x6e, - 0x75, 0x6d, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x0f, 0x6d, 0x61, 0x78, 0x41, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, - 0x12, 0x4d, 0x0a, 0x10, 0x6d, 0x61, 0x78, 0x5f, 0x61, 0x67, 0x65, 0x5f, 0x64, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x98, 0xdf, 0x1f, 0x01, 0x52, - 0x0e, 0x6d, 0x61, 0x78, 0x41, 0x67, 0x65, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x78, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x08, 0x6d, 0x61, 0x78, 0x42, 0x79, 0x74, 0x65, 0x73, 0x22, 0x3f, 0x0a, 0x0f, - 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, - 0x22, 0x0a, 0x0d, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x54, 0x79, - 0x70, 0x65, 0x73, 0x3a, 0x08, 0xb8, 0xa0, 0x1f, 0x01, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0x2b, 0x0a, - 0x0d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x10, - 0x0a, 0x03, 0x61, 0x70, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x61, 0x70, 0x70, - 0x3a, 0x08, 0xb8, 0xa0, 0x1f, 0x01, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0x5a, 0x0a, 0x0c, 0x48, 0x61, - 0x73, 0x68, 0x65, 0x64, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x62, 0x6c, - 0x6f, 0x63, 0x6b, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x0d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4d, 0x61, 0x78, 0x42, 0x79, 0x74, - 0x65, 0x73, 0x12, 0x22, 0x0a, 0x0d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6d, 0x61, 0x78, 0x5f, - 0x67, 0x61, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, - 0x4d, 0x61, 0x78, 0x47, 0x61, 0x73, 0x22, 0x96, 0x01, 0x0a, 0x0f, 0x53, 0x79, 0x6e, 0x63, 0x68, - 0x72, 0x6f, 0x6e, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x3d, 0x0a, 0x09, 0x70, 0x72, - 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x04, 0x98, 0xdf, 0x1f, 0x01, 0x52, 0x09, - 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x44, 0x0a, 0x0d, 0x6d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x5f, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x04, 0x98, 0xdf, 0x1f, - 0x01, 0x52, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x65, 0x6c, 0x61, 0x79, 0x22, - 0xc6, 0x01, 0x0a, 0x0d, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x12, 0x64, 0x0a, 0x1d, 0x76, 0x6f, 0x74, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x68, 0x65, 0x69, 0x67, - 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x36, 0x34, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x01, 0x52, 0x1a, 0x76, 0x6f, 0x74, - 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x61, 0x62, 0x6c, - 0x65, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x4f, 0x0a, 0x12, 0x70, 0x62, 0x74, 0x73, 0x5f, - 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x01, 0x52, 0x10, 0x70, 0x62, 0x74, 0x73, 0x45, 0x6e, 0x61, 0x62, - 0x6c, 0x65, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x53, 0x0a, 0x0a, 0x41, 0x42, 0x43, 0x49, - 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x41, 0x0a, 0x1d, 0x76, 0x6f, 0x74, 0x65, 0x5f, 0x65, - 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, - 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x1a, 0x76, - 0x6f, 0x74, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x61, - 0x62, 0x6c, 0x65, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x3a, 0x02, 0x18, 0x01, 0x42, 0xba, 0x01, - 0xa8, 0xe2, 0x1e, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, - 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x42, 0x0b, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6d, - 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x32, 0x3b, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x76, 0x32, 0xa2, 0x02, 0x03, 0x43, 0x54, 0x58, 0xaa, 0x02, 0x11, 0x43, - 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, 0x32, - 0xca, 0x02, 0x11, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x5c, 0x54, 0x79, 0x70, 0x65, - 0x73, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x1d, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x5c, - 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x3a, - 0x3a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, +var file_tendermint_types_params_proto_rawDesc = []byte{ + 0x0a, 0x1d, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x10, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, + 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb2, 0x02, 0x0a, 0x0f, 0x43, 0x6f, 0x6e, 0x73, + 0x65, 0x6e, 0x73, 0x75, 0x73, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x33, 0x0a, 0x05, 0x62, + 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, + 0x12, 0x3c, 0x0a, 0x08, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x52, 0x08, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x3f, + 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x21, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, + 0x39, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x73, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x0a, 0x04, 0x61, 0x62, + 0x63, 0x69, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x41, 0x42, 0x43, 0x49, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x04, 0x61, 0x62, 0x63, 0x69, 0x22, 0x49, 0x0a, 0x0b, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x6d, + 0x61, 0x78, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, + 0x6d, 0x61, 0x78, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x6d, 0x61, 0x78, 0x5f, + 0x67, 0x61, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6d, 0x61, 0x78, 0x47, 0x61, + 0x73, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x22, 0xa9, 0x01, 0x0a, 0x0e, 0x45, 0x76, 0x69, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2b, 0x0a, 0x12, 0x6d, 0x61, + 0x78, 0x5f, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x6d, 0x61, 0x78, 0x41, 0x67, 0x65, 0x4e, 0x75, + 0x6d, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x12, 0x4d, 0x0a, 0x10, 0x6d, 0x61, 0x78, 0x5f, 0x61, + 0x67, 0x65, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x08, 0xc8, 0xde, + 0x1f, 0x00, 0x98, 0xdf, 0x1f, 0x01, 0x52, 0x0e, 0x6d, 0x61, 0x78, 0x41, 0x67, 0x65, 0x44, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x78, 0x5f, 0x62, 0x79, + 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6d, 0x61, 0x78, 0x42, 0x79, + 0x74, 0x65, 0x73, 0x22, 0x3f, 0x0a, 0x0f, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x22, 0x0a, 0x0d, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, + 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x70, + 0x75, 0x62, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x73, 0x3a, 0x08, 0xb8, 0xa0, 0x1f, 0x01, + 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0x2b, 0x0a, 0x0d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x70, 0x70, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x03, 0x61, 0x70, 0x70, 0x3a, 0x08, 0xb8, 0xa0, 0x1f, 0x01, 0xe8, 0xa0, 0x1f, + 0x01, 0x22, 0x5a, 0x0a, 0x0c, 0x48, 0x61, 0x73, 0x68, 0x65, 0x64, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x62, + 0x79, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x4d, 0x61, 0x78, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x22, 0x0a, 0x0d, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x67, 0x61, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4d, 0x61, 0x78, 0x47, 0x61, 0x73, 0x22, 0x4f, 0x0a, + 0x0a, 0x41, 0x42, 0x43, 0x49, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x41, 0x0a, 0x1d, 0x76, + 0x6f, 0x74, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5f, 0x65, + 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x1a, 0x76, 0x6f, 0x74, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x42, 0xab, + 0x01, 0xa8, 0xe2, 0x1e, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x42, 0x0b, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x21, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x74, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0xa2, 0x02, 0x03, + 0x54, 0x54, 0x58, 0xaa, 0x02, 0x10, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, + 0x2e, 0x54, 0x79, 0x70, 0x65, 0x73, 0xca, 0x02, 0x10, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, + 0x69, 0x6e, 0x74, 0x5c, 0x54, 0x79, 0x70, 0x65, 0x73, 0xe2, 0x02, 0x1c, 0x54, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x5c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x54, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x3a, 0x3a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( - file_cometbft_types_v2_params_proto_rawDescOnce sync.Once - file_cometbft_types_v2_params_proto_rawDescData = file_cometbft_types_v2_params_proto_rawDesc + file_tendermint_types_params_proto_rawDescOnce sync.Once + file_tendermint_types_params_proto_rawDescData = file_tendermint_types_params_proto_rawDesc ) -func file_cometbft_types_v2_params_proto_rawDescGZIP() []byte { - file_cometbft_types_v2_params_proto_rawDescOnce.Do(func() { - file_cometbft_types_v2_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_cometbft_types_v2_params_proto_rawDescData) +func file_tendermint_types_params_proto_rawDescGZIP() []byte { + file_tendermint_types_params_proto_rawDescOnce.Do(func() { + file_tendermint_types_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_tendermint_types_params_proto_rawDescData) }) - return file_cometbft_types_v2_params_proto_rawDescData + return file_tendermint_types_params_proto_rawDescData } -var file_cometbft_types_v2_params_proto_msgTypes = make([]protoimpl.MessageInfo, 9) -var file_cometbft_types_v2_params_proto_goTypes = []interface{}{ - (*ConsensusParams)(nil), // 0: cometbft.types.v2.ConsensusParams - (*BlockParams)(nil), // 1: cometbft.types.v2.BlockParams - (*EvidenceParams)(nil), // 2: cometbft.types.v2.EvidenceParams - (*ValidatorParams)(nil), // 3: cometbft.types.v2.ValidatorParams - (*VersionParams)(nil), // 4: cometbft.types.v2.VersionParams - (*HashedParams)(nil), // 5: cometbft.types.v2.HashedParams - (*SynchronyParams)(nil), // 6: cometbft.types.v2.SynchronyParams - (*FeatureParams)(nil), // 7: cometbft.types.v2.FeatureParams - (*ABCIParams)(nil), // 8: cometbft.types.v2.ABCIParams - (*durationpb.Duration)(nil), // 9: google.protobuf.Duration - (*wrapperspb.Int64Value)(nil), // 10: google.protobuf.Int64Value +var file_tendermint_types_params_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_tendermint_types_params_proto_goTypes = []interface{}{ + (*ConsensusParams)(nil), // 0: tendermint.types.ConsensusParams + (*BlockParams)(nil), // 1: tendermint.types.BlockParams + (*EvidenceParams)(nil), // 2: tendermint.types.EvidenceParams + (*ValidatorParams)(nil), // 3: tendermint.types.ValidatorParams + (*VersionParams)(nil), // 4: tendermint.types.VersionParams + (*HashedParams)(nil), // 5: tendermint.types.HashedParams + (*ABCIParams)(nil), // 6: tendermint.types.ABCIParams + (*durationpb.Duration)(nil), // 7: google.protobuf.Duration } -var file_cometbft_types_v2_params_proto_depIdxs = []int32{ - 1, // 0: cometbft.types.v2.ConsensusParams.block:type_name -> cometbft.types.v2.BlockParams - 2, // 1: cometbft.types.v2.ConsensusParams.evidence:type_name -> cometbft.types.v2.EvidenceParams - 3, // 2: cometbft.types.v2.ConsensusParams.validator:type_name -> cometbft.types.v2.ValidatorParams - 4, // 3: cometbft.types.v2.ConsensusParams.version:type_name -> cometbft.types.v2.VersionParams - 8, // 4: cometbft.types.v2.ConsensusParams.abci:type_name -> cometbft.types.v2.ABCIParams - 6, // 5: cometbft.types.v2.ConsensusParams.synchrony:type_name -> cometbft.types.v2.SynchronyParams - 7, // 6: cometbft.types.v2.ConsensusParams.feature:type_name -> cometbft.types.v2.FeatureParams - 9, // 7: cometbft.types.v2.EvidenceParams.max_age_duration:type_name -> google.protobuf.Duration - 9, // 8: cometbft.types.v2.SynchronyParams.precision:type_name -> google.protobuf.Duration - 9, // 9: cometbft.types.v2.SynchronyParams.message_delay:type_name -> google.protobuf.Duration - 10, // 10: cometbft.types.v2.FeatureParams.vote_extensions_enable_height:type_name -> google.protobuf.Int64Value - 10, // 11: cometbft.types.v2.FeatureParams.pbts_enable_height:type_name -> google.protobuf.Int64Value - 12, // [12:12] is the sub-list for method output_type - 12, // [12:12] is the sub-list for method input_type - 12, // [12:12] is the sub-list for extension type_name - 12, // [12:12] is the sub-list for extension extendee - 0, // [0:12] is the sub-list for field type_name +var file_tendermint_types_params_proto_depIdxs = []int32{ + 1, // 0: tendermint.types.ConsensusParams.block:type_name -> tendermint.types.BlockParams + 2, // 1: tendermint.types.ConsensusParams.evidence:type_name -> tendermint.types.EvidenceParams + 3, // 2: tendermint.types.ConsensusParams.validator:type_name -> tendermint.types.ValidatorParams + 4, // 3: tendermint.types.ConsensusParams.version:type_name -> tendermint.types.VersionParams + 6, // 4: tendermint.types.ConsensusParams.abci:type_name -> tendermint.types.ABCIParams + 7, // 5: tendermint.types.EvidenceParams.max_age_duration:type_name -> google.protobuf.Duration + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name } -func init() { file_cometbft_types_v2_params_proto_init() } -func file_cometbft_types_v2_params_proto_init() { - if File_cometbft_types_v2_params_proto != nil { +func init() { file_tendermint_types_params_proto_init() } +func file_tendermint_types_params_proto_init() { + if File_tendermint_types_params_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_cometbft_types_v2_params_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_types_params_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ConsensusParams); i { case 0: return &v.state @@ -5354,7 +3977,7 @@ func file_cometbft_types_v2_params_proto_init() { return nil } } - file_cometbft_types_v2_params_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_types_params_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*BlockParams); i { case 0: return &v.state @@ -5366,7 +3989,7 @@ func file_cometbft_types_v2_params_proto_init() { return nil } } - file_cometbft_types_v2_params_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_types_params_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EvidenceParams); i { case 0: return &v.state @@ -5378,7 +4001,7 @@ func file_cometbft_types_v2_params_proto_init() { return nil } } - file_cometbft_types_v2_params_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_types_params_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ValidatorParams); i { case 0: return &v.state @@ -5390,7 +4013,7 @@ func file_cometbft_types_v2_params_proto_init() { return nil } } - file_cometbft_types_v2_params_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_types_params_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*VersionParams); i { case 0: return &v.state @@ -5402,7 +4025,7 @@ func file_cometbft_types_v2_params_proto_init() { return nil } } - file_cometbft_types_v2_params_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_types_params_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*HashedParams); i { case 0: return &v.state @@ -5414,31 +4037,7 @@ func file_cometbft_types_v2_params_proto_init() { return nil } } - file_cometbft_types_v2_params_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SynchronyParams); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cometbft_types_v2_params_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FeatureParams); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cometbft_types_v2_params_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_types_params_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ABCIParams); i { case 0: return &v.state @@ -5455,18 +4054,18 @@ func file_cometbft_types_v2_params_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cometbft_types_v2_params_proto_rawDesc, + RawDescriptor: file_tendermint_types_params_proto_rawDesc, NumEnums: 0, - NumMessages: 9, + NumMessages: 7, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_cometbft_types_v2_params_proto_goTypes, - DependencyIndexes: file_cometbft_types_v2_params_proto_depIdxs, - MessageInfos: file_cometbft_types_v2_params_proto_msgTypes, + GoTypes: file_tendermint_types_params_proto_goTypes, + DependencyIndexes: file_tendermint_types_params_proto_depIdxs, + MessageInfos: file_tendermint_types_params_proto_msgTypes, }.Build() - File_cometbft_types_v2_params_proto = out.File - file_cometbft_types_v2_params_proto_rawDesc = nil - file_cometbft_types_v2_params_proto_goTypes = nil - file_cometbft_types_v2_params_proto_depIdxs = nil + File_tendermint_types_params_proto = out.File + file_tendermint_types_params_proto_rawDesc = nil + file_tendermint_types_params_proto_goTypes = nil + file_tendermint_types_params_proto_depIdxs = nil } diff --git a/api/cometbft/types/v2/types.pulsar.go b/api/tendermint/types/types.pulsar.go similarity index 80% rename from api/cometbft/types/v2/types.pulsar.go rename to api/tendermint/types/types.pulsar.go index 70cef5feb3..6a7f55da81 100644 --- a/api/cometbft/types/v2/types.pulsar.go +++ b/api/tendermint/types/types.pulsar.go @@ -1,9 +1,9 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package typesv2 +package types import ( - v1 "cosmossdk.io/api/cometbft/crypto/v1" - v11 "cosmossdk.io/api/cometbft/version/v1" + crypto "cosmossdk.io/api/tendermint/crypto" + version "cosmossdk.io/api/tendermint/version" fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" @@ -23,8 +23,8 @@ var ( ) func init() { - file_cometbft_types_v2_types_proto_init() - md_PartSetHeader = File_cometbft_types_v2_types_proto.Messages().ByName("PartSetHeader") + file_tendermint_types_types_proto_init() + md_PartSetHeader = File_tendermint_types_types_proto.Messages().ByName("PartSetHeader") fd_PartSetHeader_total = md_PartSetHeader.Fields().ByName("total") fd_PartSetHeader_hash = md_PartSetHeader.Fields().ByName("hash") } @@ -38,7 +38,7 @@ func (x *PartSetHeader) ProtoReflect() protoreflect.Message { } func (x *PartSetHeader) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_types_proto_msgTypes[0] + mi := &file_tendermint_types_types_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -121,15 +121,15 @@ func (x *fastReflection_PartSetHeader) Range(f func(protoreflect.FieldDescriptor // a repeated field is populated if it is non-empty. func (x *fastReflection_PartSetHeader) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.types.v2.PartSetHeader.total": + case "tendermint.types.PartSetHeader.total": return x.Total != uint32(0) - case "cometbft.types.v2.PartSetHeader.hash": + case "tendermint.types.PartSetHeader.hash": return len(x.Hash) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.PartSetHeader")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.PartSetHeader")) } - panic(fmt.Errorf("message cometbft.types.v2.PartSetHeader does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.PartSetHeader does not contain field %s", fd.FullName())) } } @@ -141,15 +141,15 @@ func (x *fastReflection_PartSetHeader) Has(fd protoreflect.FieldDescriptor) bool // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_PartSetHeader) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.types.v2.PartSetHeader.total": + case "tendermint.types.PartSetHeader.total": x.Total = uint32(0) - case "cometbft.types.v2.PartSetHeader.hash": + case "tendermint.types.PartSetHeader.hash": x.Hash = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.PartSetHeader")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.PartSetHeader")) } - panic(fmt.Errorf("message cometbft.types.v2.PartSetHeader does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.PartSetHeader does not contain field %s", fd.FullName())) } } @@ -161,17 +161,17 @@ func (x *fastReflection_PartSetHeader) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_PartSetHeader) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.types.v2.PartSetHeader.total": + case "tendermint.types.PartSetHeader.total": value := x.Total return protoreflect.ValueOfUint32(value) - case "cometbft.types.v2.PartSetHeader.hash": + case "tendermint.types.PartSetHeader.hash": value := x.Hash return protoreflect.ValueOfBytes(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.PartSetHeader")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.PartSetHeader")) } - panic(fmt.Errorf("message cometbft.types.v2.PartSetHeader does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.types.PartSetHeader does not contain field %s", descriptor.FullName())) } } @@ -187,15 +187,15 @@ func (x *fastReflection_PartSetHeader) Get(descriptor protoreflect.FieldDescript // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_PartSetHeader) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.types.v2.PartSetHeader.total": + case "tendermint.types.PartSetHeader.total": x.Total = uint32(value.Uint()) - case "cometbft.types.v2.PartSetHeader.hash": + case "tendermint.types.PartSetHeader.hash": x.Hash = value.Bytes() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.PartSetHeader")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.PartSetHeader")) } - panic(fmt.Errorf("message cometbft.types.v2.PartSetHeader does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.PartSetHeader does not contain field %s", fd.FullName())) } } @@ -211,15 +211,15 @@ func (x *fastReflection_PartSetHeader) Set(fd protoreflect.FieldDescriptor, valu // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_PartSetHeader) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.PartSetHeader.total": - panic(fmt.Errorf("field total of message cometbft.types.v2.PartSetHeader is not mutable")) - case "cometbft.types.v2.PartSetHeader.hash": - panic(fmt.Errorf("field hash of message cometbft.types.v2.PartSetHeader is not mutable")) + case "tendermint.types.PartSetHeader.total": + panic(fmt.Errorf("field total of message tendermint.types.PartSetHeader is not mutable")) + case "tendermint.types.PartSetHeader.hash": + panic(fmt.Errorf("field hash of message tendermint.types.PartSetHeader is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.PartSetHeader")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.PartSetHeader")) } - panic(fmt.Errorf("message cometbft.types.v2.PartSetHeader does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.PartSetHeader does not contain field %s", fd.FullName())) } } @@ -228,15 +228,15 @@ func (x *fastReflection_PartSetHeader) Mutable(fd protoreflect.FieldDescriptor) // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_PartSetHeader) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.PartSetHeader.total": + case "tendermint.types.PartSetHeader.total": return protoreflect.ValueOfUint32(uint32(0)) - case "cometbft.types.v2.PartSetHeader.hash": + case "tendermint.types.PartSetHeader.hash": return protoreflect.ValueOfBytes(nil) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.PartSetHeader")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.PartSetHeader")) } - panic(fmt.Errorf("message cometbft.types.v2.PartSetHeader does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.PartSetHeader does not contain field %s", fd.FullName())) } } @@ -246,7 +246,7 @@ func (x *fastReflection_PartSetHeader) NewField(fd protoreflect.FieldDescriptor) func (x *fastReflection_PartSetHeader) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.PartSetHeader", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.types.PartSetHeader", d.FullName())) } panic("unreachable") } @@ -494,8 +494,8 @@ var ( ) func init() { - file_cometbft_types_v2_types_proto_init() - md_Part = File_cometbft_types_v2_types_proto.Messages().ByName("Part") + file_tendermint_types_types_proto_init() + md_Part = File_tendermint_types_types_proto.Messages().ByName("Part") fd_Part_index = md_Part.Fields().ByName("index") fd_Part_bytes = md_Part.Fields().ByName("bytes") fd_Part_proof = md_Part.Fields().ByName("proof") @@ -510,7 +510,7 @@ func (x *Part) ProtoReflect() protoreflect.Message { } func (x *Part) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_types_proto_msgTypes[1] + mi := &file_tendermint_types_types_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -599,17 +599,17 @@ func (x *fastReflection_Part) Range(f func(protoreflect.FieldDescriptor, protore // a repeated field is populated if it is non-empty. func (x *fastReflection_Part) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.types.v2.Part.index": + case "tendermint.types.Part.index": return x.Index != uint32(0) - case "cometbft.types.v2.Part.bytes": + case "tendermint.types.Part.bytes": return len(x.Bytes) != 0 - case "cometbft.types.v2.Part.proof": + case "tendermint.types.Part.proof": return x.Proof != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Part")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Part")) } - panic(fmt.Errorf("message cometbft.types.v2.Part does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Part does not contain field %s", fd.FullName())) } } @@ -621,17 +621,17 @@ func (x *fastReflection_Part) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Part) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.types.v2.Part.index": + case "tendermint.types.Part.index": x.Index = uint32(0) - case "cometbft.types.v2.Part.bytes": + case "tendermint.types.Part.bytes": x.Bytes = nil - case "cometbft.types.v2.Part.proof": + case "tendermint.types.Part.proof": x.Proof = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Part")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Part")) } - panic(fmt.Errorf("message cometbft.types.v2.Part does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Part does not contain field %s", fd.FullName())) } } @@ -643,20 +643,20 @@ func (x *fastReflection_Part) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Part) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.types.v2.Part.index": + case "tendermint.types.Part.index": value := x.Index return protoreflect.ValueOfUint32(value) - case "cometbft.types.v2.Part.bytes": + case "tendermint.types.Part.bytes": value := x.Bytes return protoreflect.ValueOfBytes(value) - case "cometbft.types.v2.Part.proof": + case "tendermint.types.Part.proof": value := x.Proof return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Part")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Part")) } - panic(fmt.Errorf("message cometbft.types.v2.Part does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.types.Part does not contain field %s", descriptor.FullName())) } } @@ -672,17 +672,17 @@ func (x *fastReflection_Part) Get(descriptor protoreflect.FieldDescriptor) proto // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Part) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.types.v2.Part.index": + case "tendermint.types.Part.index": x.Index = uint32(value.Uint()) - case "cometbft.types.v2.Part.bytes": + case "tendermint.types.Part.bytes": x.Bytes = value.Bytes() - case "cometbft.types.v2.Part.proof": - x.Proof = value.Message().Interface().(*v1.Proof) + case "tendermint.types.Part.proof": + x.Proof = value.Message().Interface().(*crypto.Proof) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Part")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Part")) } - panic(fmt.Errorf("message cometbft.types.v2.Part does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Part does not contain field %s", fd.FullName())) } } @@ -698,20 +698,20 @@ func (x *fastReflection_Part) Set(fd protoreflect.FieldDescriptor, value protore // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Part) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.Part.proof": + case "tendermint.types.Part.proof": if x.Proof == nil { - x.Proof = new(v1.Proof) + x.Proof = new(crypto.Proof) } return protoreflect.ValueOfMessage(x.Proof.ProtoReflect()) - case "cometbft.types.v2.Part.index": - panic(fmt.Errorf("field index of message cometbft.types.v2.Part is not mutable")) - case "cometbft.types.v2.Part.bytes": - panic(fmt.Errorf("field bytes of message cometbft.types.v2.Part is not mutable")) + case "tendermint.types.Part.index": + panic(fmt.Errorf("field index of message tendermint.types.Part is not mutable")) + case "tendermint.types.Part.bytes": + panic(fmt.Errorf("field bytes of message tendermint.types.Part is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Part")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Part")) } - panic(fmt.Errorf("message cometbft.types.v2.Part does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Part does not contain field %s", fd.FullName())) } } @@ -720,18 +720,18 @@ func (x *fastReflection_Part) Mutable(fd protoreflect.FieldDescriptor) protorefl // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Part) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.Part.index": + case "tendermint.types.Part.index": return protoreflect.ValueOfUint32(uint32(0)) - case "cometbft.types.v2.Part.bytes": + case "tendermint.types.Part.bytes": return protoreflect.ValueOfBytes(nil) - case "cometbft.types.v2.Part.proof": - m := new(v1.Proof) + case "tendermint.types.Part.proof": + m := new(crypto.Proof) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Part")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Part")) } - panic(fmt.Errorf("message cometbft.types.v2.Part does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Part does not contain field %s", fd.FullName())) } } @@ -741,7 +741,7 @@ func (x *fastReflection_Part) NewField(fd protoreflect.FieldDescriptor) protoref func (x *fastReflection_Part) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.Part", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.types.Part", d.FullName())) } panic("unreachable") } @@ -994,7 +994,7 @@ func (x *fastReflection_Part) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.Proof == nil { - x.Proof = &v1.Proof{} + x.Proof = &crypto.Proof{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Proof); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -1042,8 +1042,8 @@ var ( ) func init() { - file_cometbft_types_v2_types_proto_init() - md_BlockID = File_cometbft_types_v2_types_proto.Messages().ByName("BlockID") + file_tendermint_types_types_proto_init() + md_BlockID = File_tendermint_types_types_proto.Messages().ByName("BlockID") fd_BlockID_hash = md_BlockID.Fields().ByName("hash") fd_BlockID_part_set_header = md_BlockID.Fields().ByName("part_set_header") } @@ -1057,7 +1057,7 @@ func (x *BlockID) ProtoReflect() protoreflect.Message { } func (x *BlockID) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_types_proto_msgTypes[2] + mi := &file_tendermint_types_types_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1140,15 +1140,15 @@ func (x *fastReflection_BlockID) Range(f func(protoreflect.FieldDescriptor, prot // a repeated field is populated if it is non-empty. func (x *fastReflection_BlockID) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.types.v2.BlockID.hash": + case "tendermint.types.BlockID.hash": return len(x.Hash) != 0 - case "cometbft.types.v2.BlockID.part_set_header": + case "tendermint.types.BlockID.part_set_header": return x.PartSetHeader != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.BlockID")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.BlockID")) } - panic(fmt.Errorf("message cometbft.types.v2.BlockID does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.BlockID does not contain field %s", fd.FullName())) } } @@ -1160,15 +1160,15 @@ func (x *fastReflection_BlockID) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_BlockID) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.types.v2.BlockID.hash": + case "tendermint.types.BlockID.hash": x.Hash = nil - case "cometbft.types.v2.BlockID.part_set_header": + case "tendermint.types.BlockID.part_set_header": x.PartSetHeader = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.BlockID")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.BlockID")) } - panic(fmt.Errorf("message cometbft.types.v2.BlockID does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.BlockID does not contain field %s", fd.FullName())) } } @@ -1180,17 +1180,17 @@ func (x *fastReflection_BlockID) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_BlockID) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.types.v2.BlockID.hash": + case "tendermint.types.BlockID.hash": value := x.Hash return protoreflect.ValueOfBytes(value) - case "cometbft.types.v2.BlockID.part_set_header": + case "tendermint.types.BlockID.part_set_header": value := x.PartSetHeader return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.BlockID")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.BlockID")) } - panic(fmt.Errorf("message cometbft.types.v2.BlockID does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.types.BlockID does not contain field %s", descriptor.FullName())) } } @@ -1206,15 +1206,15 @@ func (x *fastReflection_BlockID) Get(descriptor protoreflect.FieldDescriptor) pr // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_BlockID) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.types.v2.BlockID.hash": + case "tendermint.types.BlockID.hash": x.Hash = value.Bytes() - case "cometbft.types.v2.BlockID.part_set_header": + case "tendermint.types.BlockID.part_set_header": x.PartSetHeader = value.Message().Interface().(*PartSetHeader) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.BlockID")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.BlockID")) } - panic(fmt.Errorf("message cometbft.types.v2.BlockID does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.BlockID does not contain field %s", fd.FullName())) } } @@ -1230,18 +1230,18 @@ func (x *fastReflection_BlockID) Set(fd protoreflect.FieldDescriptor, value prot // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_BlockID) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.BlockID.part_set_header": + case "tendermint.types.BlockID.part_set_header": if x.PartSetHeader == nil { x.PartSetHeader = new(PartSetHeader) } return protoreflect.ValueOfMessage(x.PartSetHeader.ProtoReflect()) - case "cometbft.types.v2.BlockID.hash": - panic(fmt.Errorf("field hash of message cometbft.types.v2.BlockID is not mutable")) + case "tendermint.types.BlockID.hash": + panic(fmt.Errorf("field hash of message tendermint.types.BlockID is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.BlockID")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.BlockID")) } - panic(fmt.Errorf("message cometbft.types.v2.BlockID does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.BlockID does not contain field %s", fd.FullName())) } } @@ -1250,16 +1250,16 @@ func (x *fastReflection_BlockID) Mutable(fd protoreflect.FieldDescriptor) protor // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_BlockID) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.BlockID.hash": + case "tendermint.types.BlockID.hash": return protoreflect.ValueOfBytes(nil) - case "cometbft.types.v2.BlockID.part_set_header": + case "tendermint.types.BlockID.part_set_header": m := new(PartSetHeader) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.BlockID")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.BlockID")) } - panic(fmt.Errorf("message cometbft.types.v2.BlockID does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.BlockID does not contain field %s", fd.FullName())) } } @@ -1269,7 +1269,7 @@ func (x *fastReflection_BlockID) NewField(fd protoreflect.FieldDescriptor) proto func (x *fastReflection_BlockID) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.BlockID", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.types.BlockID", d.FullName())) } panic("unreachable") } @@ -1555,8 +1555,8 @@ var ( ) func init() { - file_cometbft_types_v2_types_proto_init() - md_Header = File_cometbft_types_v2_types_proto.Messages().ByName("Header") + file_tendermint_types_types_proto_init() + md_Header = File_tendermint_types_types_proto.Messages().ByName("Header") fd_Header_version = md_Header.Fields().ByName("version") fd_Header_chain_id = md_Header.Fields().ByName("chain_id") fd_Header_height = md_Header.Fields().ByName("height") @@ -1582,7 +1582,7 @@ func (x *Header) ProtoReflect() protoreflect.Message { } func (x *Header) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_types_proto_msgTypes[3] + mi := &file_tendermint_types_types_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1737,39 +1737,39 @@ func (x *fastReflection_Header) Range(f func(protoreflect.FieldDescriptor, proto // a repeated field is populated if it is non-empty. func (x *fastReflection_Header) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.types.v2.Header.version": + case "tendermint.types.Header.version": return x.Version != nil - case "cometbft.types.v2.Header.chain_id": + case "tendermint.types.Header.chain_id": return x.ChainId != "" - case "cometbft.types.v2.Header.height": + case "tendermint.types.Header.height": return x.Height != int64(0) - case "cometbft.types.v2.Header.time": + case "tendermint.types.Header.time": return x.Time != nil - case "cometbft.types.v2.Header.last_block_id": + case "tendermint.types.Header.last_block_id": return x.LastBlockId != nil - case "cometbft.types.v2.Header.last_commit_hash": + case "tendermint.types.Header.last_commit_hash": return len(x.LastCommitHash) != 0 - case "cometbft.types.v2.Header.data_hash": + case "tendermint.types.Header.data_hash": return len(x.DataHash) != 0 - case "cometbft.types.v2.Header.validators_hash": + case "tendermint.types.Header.validators_hash": return len(x.ValidatorsHash) != 0 - case "cometbft.types.v2.Header.next_validators_hash": + case "tendermint.types.Header.next_validators_hash": return len(x.NextValidatorsHash) != 0 - case "cometbft.types.v2.Header.consensus_hash": + case "tendermint.types.Header.consensus_hash": return len(x.ConsensusHash) != 0 - case "cometbft.types.v2.Header.app_hash": + case "tendermint.types.Header.app_hash": return len(x.AppHash) != 0 - case "cometbft.types.v2.Header.last_results_hash": + case "tendermint.types.Header.last_results_hash": return len(x.LastResultsHash) != 0 - case "cometbft.types.v2.Header.evidence_hash": + case "tendermint.types.Header.evidence_hash": return len(x.EvidenceHash) != 0 - case "cometbft.types.v2.Header.proposer_address": + case "tendermint.types.Header.proposer_address": return len(x.ProposerAddress) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Header")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Header")) } - panic(fmt.Errorf("message cometbft.types.v2.Header does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Header does not contain field %s", fd.FullName())) } } @@ -1781,39 +1781,39 @@ func (x *fastReflection_Header) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Header) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.types.v2.Header.version": + case "tendermint.types.Header.version": x.Version = nil - case "cometbft.types.v2.Header.chain_id": + case "tendermint.types.Header.chain_id": x.ChainId = "" - case "cometbft.types.v2.Header.height": + case "tendermint.types.Header.height": x.Height = int64(0) - case "cometbft.types.v2.Header.time": + case "tendermint.types.Header.time": x.Time = nil - case "cometbft.types.v2.Header.last_block_id": + case "tendermint.types.Header.last_block_id": x.LastBlockId = nil - case "cometbft.types.v2.Header.last_commit_hash": + case "tendermint.types.Header.last_commit_hash": x.LastCommitHash = nil - case "cometbft.types.v2.Header.data_hash": + case "tendermint.types.Header.data_hash": x.DataHash = nil - case "cometbft.types.v2.Header.validators_hash": + case "tendermint.types.Header.validators_hash": x.ValidatorsHash = nil - case "cometbft.types.v2.Header.next_validators_hash": + case "tendermint.types.Header.next_validators_hash": x.NextValidatorsHash = nil - case "cometbft.types.v2.Header.consensus_hash": + case "tendermint.types.Header.consensus_hash": x.ConsensusHash = nil - case "cometbft.types.v2.Header.app_hash": + case "tendermint.types.Header.app_hash": x.AppHash = nil - case "cometbft.types.v2.Header.last_results_hash": + case "tendermint.types.Header.last_results_hash": x.LastResultsHash = nil - case "cometbft.types.v2.Header.evidence_hash": + case "tendermint.types.Header.evidence_hash": x.EvidenceHash = nil - case "cometbft.types.v2.Header.proposer_address": + case "tendermint.types.Header.proposer_address": x.ProposerAddress = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Header")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Header")) } - panic(fmt.Errorf("message cometbft.types.v2.Header does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Header does not contain field %s", fd.FullName())) } } @@ -1825,53 +1825,53 @@ func (x *fastReflection_Header) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Header) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.types.v2.Header.version": + case "tendermint.types.Header.version": value := x.Version return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.Header.chain_id": + case "tendermint.types.Header.chain_id": value := x.ChainId return protoreflect.ValueOfString(value) - case "cometbft.types.v2.Header.height": + case "tendermint.types.Header.height": value := x.Height return protoreflect.ValueOfInt64(value) - case "cometbft.types.v2.Header.time": + case "tendermint.types.Header.time": value := x.Time return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.Header.last_block_id": + case "tendermint.types.Header.last_block_id": value := x.LastBlockId return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.Header.last_commit_hash": + case "tendermint.types.Header.last_commit_hash": value := x.LastCommitHash return protoreflect.ValueOfBytes(value) - case "cometbft.types.v2.Header.data_hash": + case "tendermint.types.Header.data_hash": value := x.DataHash return protoreflect.ValueOfBytes(value) - case "cometbft.types.v2.Header.validators_hash": + case "tendermint.types.Header.validators_hash": value := x.ValidatorsHash return protoreflect.ValueOfBytes(value) - case "cometbft.types.v2.Header.next_validators_hash": + case "tendermint.types.Header.next_validators_hash": value := x.NextValidatorsHash return protoreflect.ValueOfBytes(value) - case "cometbft.types.v2.Header.consensus_hash": + case "tendermint.types.Header.consensus_hash": value := x.ConsensusHash return protoreflect.ValueOfBytes(value) - case "cometbft.types.v2.Header.app_hash": + case "tendermint.types.Header.app_hash": value := x.AppHash return protoreflect.ValueOfBytes(value) - case "cometbft.types.v2.Header.last_results_hash": + case "tendermint.types.Header.last_results_hash": value := x.LastResultsHash return protoreflect.ValueOfBytes(value) - case "cometbft.types.v2.Header.evidence_hash": + case "tendermint.types.Header.evidence_hash": value := x.EvidenceHash return protoreflect.ValueOfBytes(value) - case "cometbft.types.v2.Header.proposer_address": + case "tendermint.types.Header.proposer_address": value := x.ProposerAddress return protoreflect.ValueOfBytes(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Header")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Header")) } - panic(fmt.Errorf("message cometbft.types.v2.Header does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.types.Header does not contain field %s", descriptor.FullName())) } } @@ -1887,39 +1887,39 @@ func (x *fastReflection_Header) Get(descriptor protoreflect.FieldDescriptor) pro // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Header) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.types.v2.Header.version": - x.Version = value.Message().Interface().(*v11.Consensus) - case "cometbft.types.v2.Header.chain_id": + case "tendermint.types.Header.version": + x.Version = value.Message().Interface().(*version.Consensus) + case "tendermint.types.Header.chain_id": x.ChainId = value.Interface().(string) - case "cometbft.types.v2.Header.height": + case "tendermint.types.Header.height": x.Height = value.Int() - case "cometbft.types.v2.Header.time": + case "tendermint.types.Header.time": x.Time = value.Message().Interface().(*timestamppb.Timestamp) - case "cometbft.types.v2.Header.last_block_id": + case "tendermint.types.Header.last_block_id": x.LastBlockId = value.Message().Interface().(*BlockID) - case "cometbft.types.v2.Header.last_commit_hash": + case "tendermint.types.Header.last_commit_hash": x.LastCommitHash = value.Bytes() - case "cometbft.types.v2.Header.data_hash": + case "tendermint.types.Header.data_hash": x.DataHash = value.Bytes() - case "cometbft.types.v2.Header.validators_hash": + case "tendermint.types.Header.validators_hash": x.ValidatorsHash = value.Bytes() - case "cometbft.types.v2.Header.next_validators_hash": + case "tendermint.types.Header.next_validators_hash": x.NextValidatorsHash = value.Bytes() - case "cometbft.types.v2.Header.consensus_hash": + case "tendermint.types.Header.consensus_hash": x.ConsensusHash = value.Bytes() - case "cometbft.types.v2.Header.app_hash": + case "tendermint.types.Header.app_hash": x.AppHash = value.Bytes() - case "cometbft.types.v2.Header.last_results_hash": + case "tendermint.types.Header.last_results_hash": x.LastResultsHash = value.Bytes() - case "cometbft.types.v2.Header.evidence_hash": + case "tendermint.types.Header.evidence_hash": x.EvidenceHash = value.Bytes() - case "cometbft.types.v2.Header.proposer_address": + case "tendermint.types.Header.proposer_address": x.ProposerAddress = value.Bytes() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Header")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Header")) } - panic(fmt.Errorf("message cometbft.types.v2.Header does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Header does not contain field %s", fd.FullName())) } } @@ -1935,48 +1935,48 @@ func (x *fastReflection_Header) Set(fd protoreflect.FieldDescriptor, value proto // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Header) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.Header.version": + case "tendermint.types.Header.version": if x.Version == nil { - x.Version = new(v11.Consensus) + x.Version = new(version.Consensus) } return protoreflect.ValueOfMessage(x.Version.ProtoReflect()) - case "cometbft.types.v2.Header.time": + case "tendermint.types.Header.time": if x.Time == nil { x.Time = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.Time.ProtoReflect()) - case "cometbft.types.v2.Header.last_block_id": + case "tendermint.types.Header.last_block_id": if x.LastBlockId == nil { x.LastBlockId = new(BlockID) } return protoreflect.ValueOfMessage(x.LastBlockId.ProtoReflect()) - case "cometbft.types.v2.Header.chain_id": - panic(fmt.Errorf("field chain_id of message cometbft.types.v2.Header is not mutable")) - case "cometbft.types.v2.Header.height": - panic(fmt.Errorf("field height of message cometbft.types.v2.Header is not mutable")) - case "cometbft.types.v2.Header.last_commit_hash": - panic(fmt.Errorf("field last_commit_hash of message cometbft.types.v2.Header is not mutable")) - case "cometbft.types.v2.Header.data_hash": - panic(fmt.Errorf("field data_hash of message cometbft.types.v2.Header is not mutable")) - case "cometbft.types.v2.Header.validators_hash": - panic(fmt.Errorf("field validators_hash of message cometbft.types.v2.Header is not mutable")) - case "cometbft.types.v2.Header.next_validators_hash": - panic(fmt.Errorf("field next_validators_hash of message cometbft.types.v2.Header is not mutable")) - case "cometbft.types.v2.Header.consensus_hash": - panic(fmt.Errorf("field consensus_hash of message cometbft.types.v2.Header is not mutable")) - case "cometbft.types.v2.Header.app_hash": - panic(fmt.Errorf("field app_hash of message cometbft.types.v2.Header is not mutable")) - case "cometbft.types.v2.Header.last_results_hash": - panic(fmt.Errorf("field last_results_hash of message cometbft.types.v2.Header is not mutable")) - case "cometbft.types.v2.Header.evidence_hash": - panic(fmt.Errorf("field evidence_hash of message cometbft.types.v2.Header is not mutable")) - case "cometbft.types.v2.Header.proposer_address": - panic(fmt.Errorf("field proposer_address of message cometbft.types.v2.Header is not mutable")) + case "tendermint.types.Header.chain_id": + panic(fmt.Errorf("field chain_id of message tendermint.types.Header is not mutable")) + case "tendermint.types.Header.height": + panic(fmt.Errorf("field height of message tendermint.types.Header is not mutable")) + case "tendermint.types.Header.last_commit_hash": + panic(fmt.Errorf("field last_commit_hash of message tendermint.types.Header is not mutable")) + case "tendermint.types.Header.data_hash": + panic(fmt.Errorf("field data_hash of message tendermint.types.Header is not mutable")) + case "tendermint.types.Header.validators_hash": + panic(fmt.Errorf("field validators_hash of message tendermint.types.Header is not mutable")) + case "tendermint.types.Header.next_validators_hash": + panic(fmt.Errorf("field next_validators_hash of message tendermint.types.Header is not mutable")) + case "tendermint.types.Header.consensus_hash": + panic(fmt.Errorf("field consensus_hash of message tendermint.types.Header is not mutable")) + case "tendermint.types.Header.app_hash": + panic(fmt.Errorf("field app_hash of message tendermint.types.Header is not mutable")) + case "tendermint.types.Header.last_results_hash": + panic(fmt.Errorf("field last_results_hash of message tendermint.types.Header is not mutable")) + case "tendermint.types.Header.evidence_hash": + panic(fmt.Errorf("field evidence_hash of message tendermint.types.Header is not mutable")) + case "tendermint.types.Header.proposer_address": + panic(fmt.Errorf("field proposer_address of message tendermint.types.Header is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Header")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Header")) } - panic(fmt.Errorf("message cometbft.types.v2.Header does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Header does not contain field %s", fd.FullName())) } } @@ -1985,42 +1985,42 @@ func (x *fastReflection_Header) Mutable(fd protoreflect.FieldDescriptor) protore // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Header) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.Header.version": - m := new(v11.Consensus) + case "tendermint.types.Header.version": + m := new(version.Consensus) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.Header.chain_id": + case "tendermint.types.Header.chain_id": return protoreflect.ValueOfString("") - case "cometbft.types.v2.Header.height": + case "tendermint.types.Header.height": return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.types.v2.Header.time": + case "tendermint.types.Header.time": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.Header.last_block_id": + case "tendermint.types.Header.last_block_id": m := new(BlockID) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.Header.last_commit_hash": + case "tendermint.types.Header.last_commit_hash": return protoreflect.ValueOfBytes(nil) - case "cometbft.types.v2.Header.data_hash": + case "tendermint.types.Header.data_hash": return protoreflect.ValueOfBytes(nil) - case "cometbft.types.v2.Header.validators_hash": + case "tendermint.types.Header.validators_hash": return protoreflect.ValueOfBytes(nil) - case "cometbft.types.v2.Header.next_validators_hash": + case "tendermint.types.Header.next_validators_hash": return protoreflect.ValueOfBytes(nil) - case "cometbft.types.v2.Header.consensus_hash": + case "tendermint.types.Header.consensus_hash": return protoreflect.ValueOfBytes(nil) - case "cometbft.types.v2.Header.app_hash": + case "tendermint.types.Header.app_hash": return protoreflect.ValueOfBytes(nil) - case "cometbft.types.v2.Header.last_results_hash": + case "tendermint.types.Header.last_results_hash": return protoreflect.ValueOfBytes(nil) - case "cometbft.types.v2.Header.evidence_hash": + case "tendermint.types.Header.evidence_hash": return protoreflect.ValueOfBytes(nil) - case "cometbft.types.v2.Header.proposer_address": + case "tendermint.types.Header.proposer_address": return protoreflect.ValueOfBytes(nil) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Header")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Header")) } - panic(fmt.Errorf("message cometbft.types.v2.Header does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Header does not contain field %s", fd.FullName())) } } @@ -2030,7 +2030,7 @@ func (x *fastReflection_Header) NewField(fd protoreflect.FieldDescriptor) protor func (x *fastReflection_Header) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.Header", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.types.Header", d.FullName())) } panic("unreachable") } @@ -2365,7 +2365,7 @@ func (x *fastReflection_Header) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.Version == nil { - x.Version = &v11.Consensus{} + x.Version = &version.Consensus{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Version); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -2887,8 +2887,8 @@ var ( ) func init() { - file_cometbft_types_v2_types_proto_init() - md_Data = File_cometbft_types_v2_types_proto.Messages().ByName("Data") + file_tendermint_types_types_proto_init() + md_Data = File_tendermint_types_types_proto.Messages().ByName("Data") fd_Data_txs = md_Data.Fields().ByName("txs") } @@ -2901,7 +2901,7 @@ func (x *Data) ProtoReflect() protoreflect.Message { } func (x *Data) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_types_proto_msgTypes[4] + mi := &file_tendermint_types_types_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2978,13 +2978,13 @@ func (x *fastReflection_Data) Range(f func(protoreflect.FieldDescriptor, protore // a repeated field is populated if it is non-empty. func (x *fastReflection_Data) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.types.v2.Data.txs": + case "tendermint.types.Data.txs": return len(x.Txs) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Data")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Data")) } - panic(fmt.Errorf("message cometbft.types.v2.Data does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Data does not contain field %s", fd.FullName())) } } @@ -2996,13 +2996,13 @@ func (x *fastReflection_Data) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Data) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.types.v2.Data.txs": + case "tendermint.types.Data.txs": x.Txs = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Data")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Data")) } - panic(fmt.Errorf("message cometbft.types.v2.Data does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Data does not contain field %s", fd.FullName())) } } @@ -3014,7 +3014,7 @@ func (x *fastReflection_Data) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Data) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.types.v2.Data.txs": + case "tendermint.types.Data.txs": if len(x.Txs) == 0 { return protoreflect.ValueOfList(&_Data_1_list{}) } @@ -3022,9 +3022,9 @@ func (x *fastReflection_Data) Get(descriptor protoreflect.FieldDescriptor) proto return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Data")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Data")) } - panic(fmt.Errorf("message cometbft.types.v2.Data does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.types.Data does not contain field %s", descriptor.FullName())) } } @@ -3040,15 +3040,15 @@ func (x *fastReflection_Data) Get(descriptor protoreflect.FieldDescriptor) proto // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Data) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.types.v2.Data.txs": + case "tendermint.types.Data.txs": lv := value.List() clv := lv.(*_Data_1_list) x.Txs = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Data")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Data")) } - panic(fmt.Errorf("message cometbft.types.v2.Data does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Data does not contain field %s", fd.FullName())) } } @@ -3064,7 +3064,7 @@ func (x *fastReflection_Data) Set(fd protoreflect.FieldDescriptor, value protore // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Data) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.Data.txs": + case "tendermint.types.Data.txs": if x.Txs == nil { x.Txs = [][]byte{} } @@ -3072,9 +3072,9 @@ func (x *fastReflection_Data) Mutable(fd protoreflect.FieldDescriptor) protorefl return protoreflect.ValueOfList(value) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Data")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Data")) } - panic(fmt.Errorf("message cometbft.types.v2.Data does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Data does not contain field %s", fd.FullName())) } } @@ -3083,14 +3083,14 @@ func (x *fastReflection_Data) Mutable(fd protoreflect.FieldDescriptor) protorefl // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Data) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.Data.txs": + case "tendermint.types.Data.txs": list := [][]byte{} return protoreflect.ValueOfList(&_Data_1_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Data")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Data")) } - panic(fmt.Errorf("message cometbft.types.v2.Data does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Data does not contain field %s", fd.FullName())) } } @@ -3100,7 +3100,7 @@ func (x *fastReflection_Data) NewField(fd protoreflect.FieldDescriptor) protoref func (x *fastReflection_Data) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.Data", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.types.Data", d.FullName())) } panic("unreachable") } @@ -3316,24 +3316,22 @@ func (x *fastReflection_Data) ProtoMethods() *protoiface.Methods { } var ( - md_Vote protoreflect.MessageDescriptor - fd_Vote_type protoreflect.FieldDescriptor - fd_Vote_height protoreflect.FieldDescriptor - fd_Vote_round protoreflect.FieldDescriptor - fd_Vote_block_id protoreflect.FieldDescriptor - fd_Vote_timestamp protoreflect.FieldDescriptor - fd_Vote_validator_address protoreflect.FieldDescriptor - fd_Vote_validator_index protoreflect.FieldDescriptor - fd_Vote_signature protoreflect.FieldDescriptor - fd_Vote_extension protoreflect.FieldDescriptor - fd_Vote_extension_signature protoreflect.FieldDescriptor - fd_Vote_non_rp_extension protoreflect.FieldDescriptor - fd_Vote_non_rp_extension_signature protoreflect.FieldDescriptor + md_Vote protoreflect.MessageDescriptor + fd_Vote_type protoreflect.FieldDescriptor + fd_Vote_height protoreflect.FieldDescriptor + fd_Vote_round protoreflect.FieldDescriptor + fd_Vote_block_id protoreflect.FieldDescriptor + fd_Vote_timestamp protoreflect.FieldDescriptor + fd_Vote_validator_address protoreflect.FieldDescriptor + fd_Vote_validator_index protoreflect.FieldDescriptor + fd_Vote_signature protoreflect.FieldDescriptor + fd_Vote_extension protoreflect.FieldDescriptor + fd_Vote_extension_signature protoreflect.FieldDescriptor ) func init() { - file_cometbft_types_v2_types_proto_init() - md_Vote = File_cometbft_types_v2_types_proto.Messages().ByName("Vote") + file_tendermint_types_types_proto_init() + md_Vote = File_tendermint_types_types_proto.Messages().ByName("Vote") fd_Vote_type = md_Vote.Fields().ByName("type") fd_Vote_height = md_Vote.Fields().ByName("height") fd_Vote_round = md_Vote.Fields().ByName("round") @@ -3344,8 +3342,6 @@ func init() { fd_Vote_signature = md_Vote.Fields().ByName("signature") fd_Vote_extension = md_Vote.Fields().ByName("extension") fd_Vote_extension_signature = md_Vote.Fields().ByName("extension_signature") - fd_Vote_non_rp_extension = md_Vote.Fields().ByName("non_rp_extension") - fd_Vote_non_rp_extension_signature = md_Vote.Fields().ByName("non_rp_extension_signature") } var _ protoreflect.Message = (*fastReflection_Vote)(nil) @@ -3357,7 +3353,7 @@ func (x *Vote) ProtoReflect() protoreflect.Message { } func (x *Vote) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_types_proto_msgTypes[5] + mi := &file_tendermint_types_types_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3473,18 +3469,6 @@ func (x *fastReflection_Vote) Range(f func(protoreflect.FieldDescriptor, protore return } } - if len(x.NonRpExtension) != 0 { - value := protoreflect.ValueOfBytes(x.NonRpExtension) - if !f(fd_Vote_non_rp_extension, value) { - return - } - } - if len(x.NonRpExtensionSignature) != 0 { - value := protoreflect.ValueOfBytes(x.NonRpExtensionSignature) - if !f(fd_Vote_non_rp_extension_signature, value) { - return - } - } } // Has reports whether a field is populated. @@ -3500,35 +3484,31 @@ func (x *fastReflection_Vote) Range(f func(protoreflect.FieldDescriptor, protore // a repeated field is populated if it is non-empty. func (x *fastReflection_Vote) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.types.v2.Vote.type": + case "tendermint.types.Vote.type": return x.Type_ != 0 - case "cometbft.types.v2.Vote.height": + case "tendermint.types.Vote.height": return x.Height != int64(0) - case "cometbft.types.v2.Vote.round": + case "tendermint.types.Vote.round": return x.Round != int32(0) - case "cometbft.types.v2.Vote.block_id": + case "tendermint.types.Vote.block_id": return x.BlockId != nil - case "cometbft.types.v2.Vote.timestamp": + case "tendermint.types.Vote.timestamp": return x.Timestamp != nil - case "cometbft.types.v2.Vote.validator_address": + case "tendermint.types.Vote.validator_address": return len(x.ValidatorAddress) != 0 - case "cometbft.types.v2.Vote.validator_index": + case "tendermint.types.Vote.validator_index": return x.ValidatorIndex != int32(0) - case "cometbft.types.v2.Vote.signature": + case "tendermint.types.Vote.signature": return len(x.Signature) != 0 - case "cometbft.types.v2.Vote.extension": + case "tendermint.types.Vote.extension": return len(x.Extension) != 0 - case "cometbft.types.v2.Vote.extension_signature": + case "tendermint.types.Vote.extension_signature": return len(x.ExtensionSignature) != 0 - case "cometbft.types.v2.Vote.non_rp_extension": - return len(x.NonRpExtension) != 0 - case "cometbft.types.v2.Vote.non_rp_extension_signature": - return len(x.NonRpExtensionSignature) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Vote")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Vote")) } - panic(fmt.Errorf("message cometbft.types.v2.Vote does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Vote does not contain field %s", fd.FullName())) } } @@ -3540,35 +3520,31 @@ func (x *fastReflection_Vote) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Vote) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.types.v2.Vote.type": + case "tendermint.types.Vote.type": x.Type_ = 0 - case "cometbft.types.v2.Vote.height": + case "tendermint.types.Vote.height": x.Height = int64(0) - case "cometbft.types.v2.Vote.round": + case "tendermint.types.Vote.round": x.Round = int32(0) - case "cometbft.types.v2.Vote.block_id": + case "tendermint.types.Vote.block_id": x.BlockId = nil - case "cometbft.types.v2.Vote.timestamp": + case "tendermint.types.Vote.timestamp": x.Timestamp = nil - case "cometbft.types.v2.Vote.validator_address": + case "tendermint.types.Vote.validator_address": x.ValidatorAddress = nil - case "cometbft.types.v2.Vote.validator_index": + case "tendermint.types.Vote.validator_index": x.ValidatorIndex = int32(0) - case "cometbft.types.v2.Vote.signature": + case "tendermint.types.Vote.signature": x.Signature = nil - case "cometbft.types.v2.Vote.extension": + case "tendermint.types.Vote.extension": x.Extension = nil - case "cometbft.types.v2.Vote.extension_signature": + case "tendermint.types.Vote.extension_signature": x.ExtensionSignature = nil - case "cometbft.types.v2.Vote.non_rp_extension": - x.NonRpExtension = nil - case "cometbft.types.v2.Vote.non_rp_extension_signature": - x.NonRpExtensionSignature = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Vote")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Vote")) } - panic(fmt.Errorf("message cometbft.types.v2.Vote does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Vote does not contain field %s", fd.FullName())) } } @@ -3580,47 +3556,41 @@ func (x *fastReflection_Vote) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Vote) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.types.v2.Vote.type": + case "tendermint.types.Vote.type": value := x.Type_ return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "cometbft.types.v2.Vote.height": + case "tendermint.types.Vote.height": value := x.Height return protoreflect.ValueOfInt64(value) - case "cometbft.types.v2.Vote.round": + case "tendermint.types.Vote.round": value := x.Round return protoreflect.ValueOfInt32(value) - case "cometbft.types.v2.Vote.block_id": + case "tendermint.types.Vote.block_id": value := x.BlockId return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.Vote.timestamp": + case "tendermint.types.Vote.timestamp": value := x.Timestamp return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.Vote.validator_address": + case "tendermint.types.Vote.validator_address": value := x.ValidatorAddress return protoreflect.ValueOfBytes(value) - case "cometbft.types.v2.Vote.validator_index": + case "tendermint.types.Vote.validator_index": value := x.ValidatorIndex return protoreflect.ValueOfInt32(value) - case "cometbft.types.v2.Vote.signature": + case "tendermint.types.Vote.signature": value := x.Signature return protoreflect.ValueOfBytes(value) - case "cometbft.types.v2.Vote.extension": + case "tendermint.types.Vote.extension": value := x.Extension return protoreflect.ValueOfBytes(value) - case "cometbft.types.v2.Vote.extension_signature": + case "tendermint.types.Vote.extension_signature": value := x.ExtensionSignature return protoreflect.ValueOfBytes(value) - case "cometbft.types.v2.Vote.non_rp_extension": - value := x.NonRpExtension - return protoreflect.ValueOfBytes(value) - case "cometbft.types.v2.Vote.non_rp_extension_signature": - value := x.NonRpExtensionSignature - return protoreflect.ValueOfBytes(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Vote")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Vote")) } - panic(fmt.Errorf("message cometbft.types.v2.Vote does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.types.Vote does not contain field %s", descriptor.FullName())) } } @@ -3636,35 +3606,31 @@ func (x *fastReflection_Vote) Get(descriptor protoreflect.FieldDescriptor) proto // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Vote) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.types.v2.Vote.type": + case "tendermint.types.Vote.type": x.Type_ = (SignedMsgType)(value.Enum()) - case "cometbft.types.v2.Vote.height": + case "tendermint.types.Vote.height": x.Height = value.Int() - case "cometbft.types.v2.Vote.round": + case "tendermint.types.Vote.round": x.Round = int32(value.Int()) - case "cometbft.types.v2.Vote.block_id": + case "tendermint.types.Vote.block_id": x.BlockId = value.Message().Interface().(*BlockID) - case "cometbft.types.v2.Vote.timestamp": + case "tendermint.types.Vote.timestamp": x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) - case "cometbft.types.v2.Vote.validator_address": + case "tendermint.types.Vote.validator_address": x.ValidatorAddress = value.Bytes() - case "cometbft.types.v2.Vote.validator_index": + case "tendermint.types.Vote.validator_index": x.ValidatorIndex = int32(value.Int()) - case "cometbft.types.v2.Vote.signature": + case "tendermint.types.Vote.signature": x.Signature = value.Bytes() - case "cometbft.types.v2.Vote.extension": + case "tendermint.types.Vote.extension": x.Extension = value.Bytes() - case "cometbft.types.v2.Vote.extension_signature": + case "tendermint.types.Vote.extension_signature": x.ExtensionSignature = value.Bytes() - case "cometbft.types.v2.Vote.non_rp_extension": - x.NonRpExtension = value.Bytes() - case "cometbft.types.v2.Vote.non_rp_extension_signature": - x.NonRpExtensionSignature = value.Bytes() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Vote")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Vote")) } - panic(fmt.Errorf("message cometbft.types.v2.Vote does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Vote does not contain field %s", fd.FullName())) } } @@ -3680,41 +3646,37 @@ func (x *fastReflection_Vote) Set(fd protoreflect.FieldDescriptor, value protore // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Vote) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.Vote.block_id": + case "tendermint.types.Vote.block_id": if x.BlockId == nil { x.BlockId = new(BlockID) } return protoreflect.ValueOfMessage(x.BlockId.ProtoReflect()) - case "cometbft.types.v2.Vote.timestamp": + case "tendermint.types.Vote.timestamp": if x.Timestamp == nil { x.Timestamp = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) - case "cometbft.types.v2.Vote.type": - panic(fmt.Errorf("field type of message cometbft.types.v2.Vote is not mutable")) - case "cometbft.types.v2.Vote.height": - panic(fmt.Errorf("field height of message cometbft.types.v2.Vote is not mutable")) - case "cometbft.types.v2.Vote.round": - panic(fmt.Errorf("field round of message cometbft.types.v2.Vote is not mutable")) - case "cometbft.types.v2.Vote.validator_address": - panic(fmt.Errorf("field validator_address of message cometbft.types.v2.Vote is not mutable")) - case "cometbft.types.v2.Vote.validator_index": - panic(fmt.Errorf("field validator_index of message cometbft.types.v2.Vote is not mutable")) - case "cometbft.types.v2.Vote.signature": - panic(fmt.Errorf("field signature of message cometbft.types.v2.Vote is not mutable")) - case "cometbft.types.v2.Vote.extension": - panic(fmt.Errorf("field extension of message cometbft.types.v2.Vote is not mutable")) - case "cometbft.types.v2.Vote.extension_signature": - panic(fmt.Errorf("field extension_signature of message cometbft.types.v2.Vote is not mutable")) - case "cometbft.types.v2.Vote.non_rp_extension": - panic(fmt.Errorf("field non_rp_extension of message cometbft.types.v2.Vote is not mutable")) - case "cometbft.types.v2.Vote.non_rp_extension_signature": - panic(fmt.Errorf("field non_rp_extension_signature of message cometbft.types.v2.Vote is not mutable")) + case "tendermint.types.Vote.type": + panic(fmt.Errorf("field type of message tendermint.types.Vote is not mutable")) + case "tendermint.types.Vote.height": + panic(fmt.Errorf("field height of message tendermint.types.Vote is not mutable")) + case "tendermint.types.Vote.round": + panic(fmt.Errorf("field round of message tendermint.types.Vote is not mutable")) + case "tendermint.types.Vote.validator_address": + panic(fmt.Errorf("field validator_address of message tendermint.types.Vote is not mutable")) + case "tendermint.types.Vote.validator_index": + panic(fmt.Errorf("field validator_index of message tendermint.types.Vote is not mutable")) + case "tendermint.types.Vote.signature": + panic(fmt.Errorf("field signature of message tendermint.types.Vote is not mutable")) + case "tendermint.types.Vote.extension": + panic(fmt.Errorf("field extension of message tendermint.types.Vote is not mutable")) + case "tendermint.types.Vote.extension_signature": + panic(fmt.Errorf("field extension_signature of message tendermint.types.Vote is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Vote")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Vote")) } - panic(fmt.Errorf("message cometbft.types.v2.Vote does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Vote does not contain field %s", fd.FullName())) } } @@ -3723,37 +3685,33 @@ func (x *fastReflection_Vote) Mutable(fd protoreflect.FieldDescriptor) protorefl // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Vote) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.Vote.type": + case "tendermint.types.Vote.type": return protoreflect.ValueOfEnum(0) - case "cometbft.types.v2.Vote.height": + case "tendermint.types.Vote.height": return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.types.v2.Vote.round": + case "tendermint.types.Vote.round": return protoreflect.ValueOfInt32(int32(0)) - case "cometbft.types.v2.Vote.block_id": + case "tendermint.types.Vote.block_id": m := new(BlockID) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.Vote.timestamp": + case "tendermint.types.Vote.timestamp": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.Vote.validator_address": + case "tendermint.types.Vote.validator_address": return protoreflect.ValueOfBytes(nil) - case "cometbft.types.v2.Vote.validator_index": + case "tendermint.types.Vote.validator_index": return protoreflect.ValueOfInt32(int32(0)) - case "cometbft.types.v2.Vote.signature": + case "tendermint.types.Vote.signature": return protoreflect.ValueOfBytes(nil) - case "cometbft.types.v2.Vote.extension": + case "tendermint.types.Vote.extension": return protoreflect.ValueOfBytes(nil) - case "cometbft.types.v2.Vote.extension_signature": - return protoreflect.ValueOfBytes(nil) - case "cometbft.types.v2.Vote.non_rp_extension": - return protoreflect.ValueOfBytes(nil) - case "cometbft.types.v2.Vote.non_rp_extension_signature": + case "tendermint.types.Vote.extension_signature": return protoreflect.ValueOfBytes(nil) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Vote")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Vote")) } - panic(fmt.Errorf("message cometbft.types.v2.Vote does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Vote does not contain field %s", fd.FullName())) } } @@ -3763,7 +3721,7 @@ func (x *fastReflection_Vote) NewField(fd protoreflect.FieldDescriptor) protoref func (x *fastReflection_Vote) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.Vote", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.types.Vote", d.FullName())) } panic("unreachable") } @@ -3854,14 +3812,6 @@ func (x *fastReflection_Vote) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.NonRpExtension) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.NonRpExtensionSignature) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -3891,20 +3841,6 @@ func (x *fastReflection_Vote) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.NonRpExtensionSignature) > 0 { - i -= len(x.NonRpExtensionSignature) - copy(dAtA[i:], x.NonRpExtensionSignature) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NonRpExtensionSignature))) - i-- - dAtA[i] = 0x62 - } - if len(x.NonRpExtension) > 0 { - i -= len(x.NonRpExtension) - copy(dAtA[i:], x.NonRpExtension) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NonRpExtension))) - i-- - dAtA[i] = 0x5a - } if len(x.ExtensionSignature) > 0 { i -= len(x.ExtensionSignature) copy(dAtA[i:], x.ExtensionSignature) @@ -4314,74 +4250,6 @@ func (x *fastReflection_Vote) ProtoMethods() *protoiface.Methods { x.ExtensionSignature = []byte{} } iNdEx = postIndex - case 11: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NonRpExtension", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.NonRpExtension = append(x.NonRpExtension[:0], dAtA[iNdEx:postIndex]...) - if x.NonRpExtension == nil { - x.NonRpExtension = []byte{} - } - iNdEx = postIndex - case 12: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NonRpExtensionSignature", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.NonRpExtensionSignature = append(x.NonRpExtensionSignature[:0], dAtA[iNdEx:postIndex]...) - if x.NonRpExtensionSignature == nil { - x.NonRpExtensionSignature = []byte{} - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -4477,8 +4345,8 @@ var ( ) func init() { - file_cometbft_types_v2_types_proto_init() - md_Commit = File_cometbft_types_v2_types_proto.Messages().ByName("Commit") + file_tendermint_types_types_proto_init() + md_Commit = File_tendermint_types_types_proto.Messages().ByName("Commit") fd_Commit_height = md_Commit.Fields().ByName("height") fd_Commit_round = md_Commit.Fields().ByName("round") fd_Commit_block_id = md_Commit.Fields().ByName("block_id") @@ -4494,7 +4362,7 @@ func (x *Commit) ProtoReflect() protoreflect.Message { } func (x *Commit) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_types_proto_msgTypes[6] + mi := &file_tendermint_types_types_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4589,19 +4457,19 @@ func (x *fastReflection_Commit) Range(f func(protoreflect.FieldDescriptor, proto // a repeated field is populated if it is non-empty. func (x *fastReflection_Commit) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.types.v2.Commit.height": + case "tendermint.types.Commit.height": return x.Height != int64(0) - case "cometbft.types.v2.Commit.round": + case "tendermint.types.Commit.round": return x.Round != int32(0) - case "cometbft.types.v2.Commit.block_id": + case "tendermint.types.Commit.block_id": return x.BlockId != nil - case "cometbft.types.v2.Commit.signatures": + case "tendermint.types.Commit.signatures": return len(x.Signatures) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Commit")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Commit")) } - panic(fmt.Errorf("message cometbft.types.v2.Commit does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Commit does not contain field %s", fd.FullName())) } } @@ -4613,19 +4481,19 @@ func (x *fastReflection_Commit) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Commit) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.types.v2.Commit.height": + case "tendermint.types.Commit.height": x.Height = int64(0) - case "cometbft.types.v2.Commit.round": + case "tendermint.types.Commit.round": x.Round = int32(0) - case "cometbft.types.v2.Commit.block_id": + case "tendermint.types.Commit.block_id": x.BlockId = nil - case "cometbft.types.v2.Commit.signatures": + case "tendermint.types.Commit.signatures": x.Signatures = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Commit")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Commit")) } - panic(fmt.Errorf("message cometbft.types.v2.Commit does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Commit does not contain field %s", fd.FullName())) } } @@ -4637,16 +4505,16 @@ func (x *fastReflection_Commit) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Commit) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.types.v2.Commit.height": + case "tendermint.types.Commit.height": value := x.Height return protoreflect.ValueOfInt64(value) - case "cometbft.types.v2.Commit.round": + case "tendermint.types.Commit.round": value := x.Round return protoreflect.ValueOfInt32(value) - case "cometbft.types.v2.Commit.block_id": + case "tendermint.types.Commit.block_id": value := x.BlockId return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.Commit.signatures": + case "tendermint.types.Commit.signatures": if len(x.Signatures) == 0 { return protoreflect.ValueOfList(&_Commit_4_list{}) } @@ -4654,9 +4522,9 @@ func (x *fastReflection_Commit) Get(descriptor protoreflect.FieldDescriptor) pro return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Commit")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Commit")) } - panic(fmt.Errorf("message cometbft.types.v2.Commit does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.types.Commit does not contain field %s", descriptor.FullName())) } } @@ -4672,21 +4540,21 @@ func (x *fastReflection_Commit) Get(descriptor protoreflect.FieldDescriptor) pro // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Commit) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.types.v2.Commit.height": + case "tendermint.types.Commit.height": x.Height = value.Int() - case "cometbft.types.v2.Commit.round": + case "tendermint.types.Commit.round": x.Round = int32(value.Int()) - case "cometbft.types.v2.Commit.block_id": + case "tendermint.types.Commit.block_id": x.BlockId = value.Message().Interface().(*BlockID) - case "cometbft.types.v2.Commit.signatures": + case "tendermint.types.Commit.signatures": lv := value.List() clv := lv.(*_Commit_4_list) x.Signatures = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Commit")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Commit")) } - panic(fmt.Errorf("message cometbft.types.v2.Commit does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Commit does not contain field %s", fd.FullName())) } } @@ -4702,26 +4570,26 @@ func (x *fastReflection_Commit) Set(fd protoreflect.FieldDescriptor, value proto // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Commit) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.Commit.block_id": + case "tendermint.types.Commit.block_id": if x.BlockId == nil { x.BlockId = new(BlockID) } return protoreflect.ValueOfMessage(x.BlockId.ProtoReflect()) - case "cometbft.types.v2.Commit.signatures": + case "tendermint.types.Commit.signatures": if x.Signatures == nil { x.Signatures = []*CommitSig{} } value := &_Commit_4_list{list: &x.Signatures} return protoreflect.ValueOfList(value) - case "cometbft.types.v2.Commit.height": - panic(fmt.Errorf("field height of message cometbft.types.v2.Commit is not mutable")) - case "cometbft.types.v2.Commit.round": - panic(fmt.Errorf("field round of message cometbft.types.v2.Commit is not mutable")) + case "tendermint.types.Commit.height": + panic(fmt.Errorf("field height of message tendermint.types.Commit is not mutable")) + case "tendermint.types.Commit.round": + panic(fmt.Errorf("field round of message tendermint.types.Commit is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Commit")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Commit")) } - panic(fmt.Errorf("message cometbft.types.v2.Commit does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Commit does not contain field %s", fd.FullName())) } } @@ -4730,21 +4598,21 @@ func (x *fastReflection_Commit) Mutable(fd protoreflect.FieldDescriptor) protore // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Commit) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.Commit.height": + case "tendermint.types.Commit.height": return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.types.v2.Commit.round": + case "tendermint.types.Commit.round": return protoreflect.ValueOfInt32(int32(0)) - case "cometbft.types.v2.Commit.block_id": + case "tendermint.types.Commit.block_id": m := new(BlockID) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.Commit.signatures": + case "tendermint.types.Commit.signatures": list := []*CommitSig{} return protoreflect.ValueOfList(&_Commit_4_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Commit")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Commit")) } - panic(fmt.Errorf("message cometbft.types.v2.Commit does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Commit does not contain field %s", fd.FullName())) } } @@ -4754,7 +4622,7 @@ func (x *fastReflection_Commit) NewField(fd protoreflect.FieldDescriptor) protor func (x *fastReflection_Commit) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.Commit", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.types.Commit", d.FullName())) } panic("unreachable") } @@ -5095,8 +4963,8 @@ var ( ) func init() { - file_cometbft_types_v2_types_proto_init() - md_CommitSig = File_cometbft_types_v2_types_proto.Messages().ByName("CommitSig") + file_tendermint_types_types_proto_init() + md_CommitSig = File_tendermint_types_types_proto.Messages().ByName("CommitSig") fd_CommitSig_block_id_flag = md_CommitSig.Fields().ByName("block_id_flag") fd_CommitSig_validator_address = md_CommitSig.Fields().ByName("validator_address") fd_CommitSig_timestamp = md_CommitSig.Fields().ByName("timestamp") @@ -5112,7 +4980,7 @@ func (x *CommitSig) ProtoReflect() protoreflect.Message { } func (x *CommitSig) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_types_proto_msgTypes[7] + mi := &file_tendermint_types_types_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5207,19 +5075,19 @@ func (x *fastReflection_CommitSig) Range(f func(protoreflect.FieldDescriptor, pr // a repeated field is populated if it is non-empty. func (x *fastReflection_CommitSig) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.types.v2.CommitSig.block_id_flag": + case "tendermint.types.CommitSig.block_id_flag": return x.BlockIdFlag != 0 - case "cometbft.types.v2.CommitSig.validator_address": + case "tendermint.types.CommitSig.validator_address": return len(x.ValidatorAddress) != 0 - case "cometbft.types.v2.CommitSig.timestamp": + case "tendermint.types.CommitSig.timestamp": return x.Timestamp != nil - case "cometbft.types.v2.CommitSig.signature": + case "tendermint.types.CommitSig.signature": return len(x.Signature) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CommitSig")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.CommitSig")) } - panic(fmt.Errorf("message cometbft.types.v2.CommitSig does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.CommitSig does not contain field %s", fd.FullName())) } } @@ -5231,19 +5099,19 @@ func (x *fastReflection_CommitSig) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_CommitSig) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.types.v2.CommitSig.block_id_flag": + case "tendermint.types.CommitSig.block_id_flag": x.BlockIdFlag = 0 - case "cometbft.types.v2.CommitSig.validator_address": + case "tendermint.types.CommitSig.validator_address": x.ValidatorAddress = nil - case "cometbft.types.v2.CommitSig.timestamp": + case "tendermint.types.CommitSig.timestamp": x.Timestamp = nil - case "cometbft.types.v2.CommitSig.signature": + case "tendermint.types.CommitSig.signature": x.Signature = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CommitSig")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.CommitSig")) } - panic(fmt.Errorf("message cometbft.types.v2.CommitSig does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.CommitSig does not contain field %s", fd.FullName())) } } @@ -5255,23 +5123,23 @@ func (x *fastReflection_CommitSig) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_CommitSig) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.types.v2.CommitSig.block_id_flag": + case "tendermint.types.CommitSig.block_id_flag": value := x.BlockIdFlag return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "cometbft.types.v2.CommitSig.validator_address": + case "tendermint.types.CommitSig.validator_address": value := x.ValidatorAddress return protoreflect.ValueOfBytes(value) - case "cometbft.types.v2.CommitSig.timestamp": + case "tendermint.types.CommitSig.timestamp": value := x.Timestamp return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.CommitSig.signature": + case "tendermint.types.CommitSig.signature": value := x.Signature return protoreflect.ValueOfBytes(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CommitSig")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.CommitSig")) } - panic(fmt.Errorf("message cometbft.types.v2.CommitSig does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.types.CommitSig does not contain field %s", descriptor.FullName())) } } @@ -5287,19 +5155,19 @@ func (x *fastReflection_CommitSig) Get(descriptor protoreflect.FieldDescriptor) // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_CommitSig) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.types.v2.CommitSig.block_id_flag": + case "tendermint.types.CommitSig.block_id_flag": x.BlockIdFlag = (BlockIDFlag)(value.Enum()) - case "cometbft.types.v2.CommitSig.validator_address": + case "tendermint.types.CommitSig.validator_address": x.ValidatorAddress = value.Bytes() - case "cometbft.types.v2.CommitSig.timestamp": + case "tendermint.types.CommitSig.timestamp": x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) - case "cometbft.types.v2.CommitSig.signature": + case "tendermint.types.CommitSig.signature": x.Signature = value.Bytes() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CommitSig")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.CommitSig")) } - panic(fmt.Errorf("message cometbft.types.v2.CommitSig does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.CommitSig does not contain field %s", fd.FullName())) } } @@ -5315,22 +5183,22 @@ func (x *fastReflection_CommitSig) Set(fd protoreflect.FieldDescriptor, value pr // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_CommitSig) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.CommitSig.timestamp": + case "tendermint.types.CommitSig.timestamp": if x.Timestamp == nil { x.Timestamp = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) - case "cometbft.types.v2.CommitSig.block_id_flag": - panic(fmt.Errorf("field block_id_flag of message cometbft.types.v2.CommitSig is not mutable")) - case "cometbft.types.v2.CommitSig.validator_address": - panic(fmt.Errorf("field validator_address of message cometbft.types.v2.CommitSig is not mutable")) - case "cometbft.types.v2.CommitSig.signature": - panic(fmt.Errorf("field signature of message cometbft.types.v2.CommitSig is not mutable")) + case "tendermint.types.CommitSig.block_id_flag": + panic(fmt.Errorf("field block_id_flag of message tendermint.types.CommitSig is not mutable")) + case "tendermint.types.CommitSig.validator_address": + panic(fmt.Errorf("field validator_address of message tendermint.types.CommitSig is not mutable")) + case "tendermint.types.CommitSig.signature": + panic(fmt.Errorf("field signature of message tendermint.types.CommitSig is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CommitSig")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.CommitSig")) } - panic(fmt.Errorf("message cometbft.types.v2.CommitSig does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.CommitSig does not contain field %s", fd.FullName())) } } @@ -5339,20 +5207,20 @@ func (x *fastReflection_CommitSig) Mutable(fd protoreflect.FieldDescriptor) prot // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_CommitSig) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.CommitSig.block_id_flag": + case "tendermint.types.CommitSig.block_id_flag": return protoreflect.ValueOfEnum(0) - case "cometbft.types.v2.CommitSig.validator_address": + case "tendermint.types.CommitSig.validator_address": return protoreflect.ValueOfBytes(nil) - case "cometbft.types.v2.CommitSig.timestamp": + case "tendermint.types.CommitSig.timestamp": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.CommitSig.signature": + case "tendermint.types.CommitSig.signature": return protoreflect.ValueOfBytes(nil) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.CommitSig")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.CommitSig")) } - panic(fmt.Errorf("message cometbft.types.v2.CommitSig does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.CommitSig does not contain field %s", fd.FullName())) } } @@ -5362,7 +5230,7 @@ func (x *fastReflection_CommitSig) NewField(fd protoreflect.FieldDescriptor) pro func (x *fastReflection_CommitSig) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.CommitSig", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.types.CommitSig", d.FullName())) } panic("unreachable") } @@ -5761,8 +5629,8 @@ var ( ) func init() { - file_cometbft_types_v2_types_proto_init() - md_ExtendedCommit = File_cometbft_types_v2_types_proto.Messages().ByName("ExtendedCommit") + file_tendermint_types_types_proto_init() + md_ExtendedCommit = File_tendermint_types_types_proto.Messages().ByName("ExtendedCommit") fd_ExtendedCommit_height = md_ExtendedCommit.Fields().ByName("height") fd_ExtendedCommit_round = md_ExtendedCommit.Fields().ByName("round") fd_ExtendedCommit_block_id = md_ExtendedCommit.Fields().ByName("block_id") @@ -5778,7 +5646,7 @@ func (x *ExtendedCommit) ProtoReflect() protoreflect.Message { } func (x *ExtendedCommit) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_types_proto_msgTypes[8] + mi := &file_tendermint_types_types_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5873,19 +5741,19 @@ func (x *fastReflection_ExtendedCommit) Range(f func(protoreflect.FieldDescripto // a repeated field is populated if it is non-empty. func (x *fastReflection_ExtendedCommit) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.types.v2.ExtendedCommit.height": + case "tendermint.types.ExtendedCommit.height": return x.Height != int64(0) - case "cometbft.types.v2.ExtendedCommit.round": + case "tendermint.types.ExtendedCommit.round": return x.Round != int32(0) - case "cometbft.types.v2.ExtendedCommit.block_id": + case "tendermint.types.ExtendedCommit.block_id": return x.BlockId != nil - case "cometbft.types.v2.ExtendedCommit.extended_signatures": + case "tendermint.types.ExtendedCommit.extended_signatures": return len(x.ExtendedSignatures) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ExtendedCommit")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ExtendedCommit")) } - panic(fmt.Errorf("message cometbft.types.v2.ExtendedCommit does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.ExtendedCommit does not contain field %s", fd.FullName())) } } @@ -5897,19 +5765,19 @@ func (x *fastReflection_ExtendedCommit) Has(fd protoreflect.FieldDescriptor) boo // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ExtendedCommit) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.types.v2.ExtendedCommit.height": + case "tendermint.types.ExtendedCommit.height": x.Height = int64(0) - case "cometbft.types.v2.ExtendedCommit.round": + case "tendermint.types.ExtendedCommit.round": x.Round = int32(0) - case "cometbft.types.v2.ExtendedCommit.block_id": + case "tendermint.types.ExtendedCommit.block_id": x.BlockId = nil - case "cometbft.types.v2.ExtendedCommit.extended_signatures": + case "tendermint.types.ExtendedCommit.extended_signatures": x.ExtendedSignatures = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ExtendedCommit")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ExtendedCommit")) } - panic(fmt.Errorf("message cometbft.types.v2.ExtendedCommit does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.ExtendedCommit does not contain field %s", fd.FullName())) } } @@ -5921,16 +5789,16 @@ func (x *fastReflection_ExtendedCommit) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_ExtendedCommit) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.types.v2.ExtendedCommit.height": + case "tendermint.types.ExtendedCommit.height": value := x.Height return protoreflect.ValueOfInt64(value) - case "cometbft.types.v2.ExtendedCommit.round": + case "tendermint.types.ExtendedCommit.round": value := x.Round return protoreflect.ValueOfInt32(value) - case "cometbft.types.v2.ExtendedCommit.block_id": + case "tendermint.types.ExtendedCommit.block_id": value := x.BlockId return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.ExtendedCommit.extended_signatures": + case "tendermint.types.ExtendedCommit.extended_signatures": if len(x.ExtendedSignatures) == 0 { return protoreflect.ValueOfList(&_ExtendedCommit_4_list{}) } @@ -5938,9 +5806,9 @@ func (x *fastReflection_ExtendedCommit) Get(descriptor protoreflect.FieldDescrip return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ExtendedCommit")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ExtendedCommit")) } - panic(fmt.Errorf("message cometbft.types.v2.ExtendedCommit does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.types.ExtendedCommit does not contain field %s", descriptor.FullName())) } } @@ -5956,21 +5824,21 @@ func (x *fastReflection_ExtendedCommit) Get(descriptor protoreflect.FieldDescrip // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ExtendedCommit) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.types.v2.ExtendedCommit.height": + case "tendermint.types.ExtendedCommit.height": x.Height = value.Int() - case "cometbft.types.v2.ExtendedCommit.round": + case "tendermint.types.ExtendedCommit.round": x.Round = int32(value.Int()) - case "cometbft.types.v2.ExtendedCommit.block_id": + case "tendermint.types.ExtendedCommit.block_id": x.BlockId = value.Message().Interface().(*BlockID) - case "cometbft.types.v2.ExtendedCommit.extended_signatures": + case "tendermint.types.ExtendedCommit.extended_signatures": lv := value.List() clv := lv.(*_ExtendedCommit_4_list) x.ExtendedSignatures = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ExtendedCommit")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ExtendedCommit")) } - panic(fmt.Errorf("message cometbft.types.v2.ExtendedCommit does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.ExtendedCommit does not contain field %s", fd.FullName())) } } @@ -5986,26 +5854,26 @@ func (x *fastReflection_ExtendedCommit) Set(fd protoreflect.FieldDescriptor, val // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ExtendedCommit) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.ExtendedCommit.block_id": + case "tendermint.types.ExtendedCommit.block_id": if x.BlockId == nil { x.BlockId = new(BlockID) } return protoreflect.ValueOfMessage(x.BlockId.ProtoReflect()) - case "cometbft.types.v2.ExtendedCommit.extended_signatures": + case "tendermint.types.ExtendedCommit.extended_signatures": if x.ExtendedSignatures == nil { x.ExtendedSignatures = []*ExtendedCommitSig{} } value := &_ExtendedCommit_4_list{list: &x.ExtendedSignatures} return protoreflect.ValueOfList(value) - case "cometbft.types.v2.ExtendedCommit.height": - panic(fmt.Errorf("field height of message cometbft.types.v2.ExtendedCommit is not mutable")) - case "cometbft.types.v2.ExtendedCommit.round": - panic(fmt.Errorf("field round of message cometbft.types.v2.ExtendedCommit is not mutable")) + case "tendermint.types.ExtendedCommit.height": + panic(fmt.Errorf("field height of message tendermint.types.ExtendedCommit is not mutable")) + case "tendermint.types.ExtendedCommit.round": + panic(fmt.Errorf("field round of message tendermint.types.ExtendedCommit is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ExtendedCommit")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ExtendedCommit")) } - panic(fmt.Errorf("message cometbft.types.v2.ExtendedCommit does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.ExtendedCommit does not contain field %s", fd.FullName())) } } @@ -6014,21 +5882,21 @@ func (x *fastReflection_ExtendedCommit) Mutable(fd protoreflect.FieldDescriptor) // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_ExtendedCommit) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.ExtendedCommit.height": + case "tendermint.types.ExtendedCommit.height": return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.types.v2.ExtendedCommit.round": + case "tendermint.types.ExtendedCommit.round": return protoreflect.ValueOfInt32(int32(0)) - case "cometbft.types.v2.ExtendedCommit.block_id": + case "tendermint.types.ExtendedCommit.block_id": m := new(BlockID) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.ExtendedCommit.extended_signatures": + case "tendermint.types.ExtendedCommit.extended_signatures": list := []*ExtendedCommitSig{} return protoreflect.ValueOfList(&_ExtendedCommit_4_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ExtendedCommit")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ExtendedCommit")) } - panic(fmt.Errorf("message cometbft.types.v2.ExtendedCommit does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.ExtendedCommit does not contain field %s", fd.FullName())) } } @@ -6038,7 +5906,7 @@ func (x *fastReflection_ExtendedCommit) NewField(fd protoreflect.FieldDescriptor func (x *fastReflection_ExtendedCommit) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.ExtendedCommit", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.types.ExtendedCommit", d.FullName())) } panic("unreachable") } @@ -6371,28 +6239,24 @@ func (x *fastReflection_ExtendedCommit) ProtoMethods() *protoiface.Methods { } var ( - md_ExtendedCommitSig protoreflect.MessageDescriptor - fd_ExtendedCommitSig_block_id_flag protoreflect.FieldDescriptor - fd_ExtendedCommitSig_validator_address protoreflect.FieldDescriptor - fd_ExtendedCommitSig_timestamp protoreflect.FieldDescriptor - fd_ExtendedCommitSig_signature protoreflect.FieldDescriptor - fd_ExtendedCommitSig_extension protoreflect.FieldDescriptor - fd_ExtendedCommitSig_extension_signature protoreflect.FieldDescriptor - fd_ExtendedCommitSig_non_rp_extension protoreflect.FieldDescriptor - fd_ExtendedCommitSig_non_rp_extension_signature protoreflect.FieldDescriptor + md_ExtendedCommitSig protoreflect.MessageDescriptor + fd_ExtendedCommitSig_block_id_flag protoreflect.FieldDescriptor + fd_ExtendedCommitSig_validator_address protoreflect.FieldDescriptor + fd_ExtendedCommitSig_timestamp protoreflect.FieldDescriptor + fd_ExtendedCommitSig_signature protoreflect.FieldDescriptor + fd_ExtendedCommitSig_extension protoreflect.FieldDescriptor + fd_ExtendedCommitSig_extension_signature protoreflect.FieldDescriptor ) func init() { - file_cometbft_types_v2_types_proto_init() - md_ExtendedCommitSig = File_cometbft_types_v2_types_proto.Messages().ByName("ExtendedCommitSig") + file_tendermint_types_types_proto_init() + md_ExtendedCommitSig = File_tendermint_types_types_proto.Messages().ByName("ExtendedCommitSig") fd_ExtendedCommitSig_block_id_flag = md_ExtendedCommitSig.Fields().ByName("block_id_flag") fd_ExtendedCommitSig_validator_address = md_ExtendedCommitSig.Fields().ByName("validator_address") fd_ExtendedCommitSig_timestamp = md_ExtendedCommitSig.Fields().ByName("timestamp") fd_ExtendedCommitSig_signature = md_ExtendedCommitSig.Fields().ByName("signature") fd_ExtendedCommitSig_extension = md_ExtendedCommitSig.Fields().ByName("extension") fd_ExtendedCommitSig_extension_signature = md_ExtendedCommitSig.Fields().ByName("extension_signature") - fd_ExtendedCommitSig_non_rp_extension = md_ExtendedCommitSig.Fields().ByName("non_rp_extension") - fd_ExtendedCommitSig_non_rp_extension_signature = md_ExtendedCommitSig.Fields().ByName("non_rp_extension_signature") } var _ protoreflect.Message = (*fastReflection_ExtendedCommitSig)(nil) @@ -6404,7 +6268,7 @@ func (x *ExtendedCommitSig) ProtoReflect() protoreflect.Message { } func (x *ExtendedCommitSig) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_types_proto_msgTypes[9] + mi := &file_tendermint_types_types_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6496,18 +6360,6 @@ func (x *fastReflection_ExtendedCommitSig) Range(f func(protoreflect.FieldDescri return } } - if len(x.NonRpExtension) != 0 { - value := protoreflect.ValueOfBytes(x.NonRpExtension) - if !f(fd_ExtendedCommitSig_non_rp_extension, value) { - return - } - } - if len(x.NonRpExtensionSignature) != 0 { - value := protoreflect.ValueOfBytes(x.NonRpExtensionSignature) - if !f(fd_ExtendedCommitSig_non_rp_extension_signature, value) { - return - } - } } // Has reports whether a field is populated. @@ -6523,27 +6375,23 @@ func (x *fastReflection_ExtendedCommitSig) Range(f func(protoreflect.FieldDescri // a repeated field is populated if it is non-empty. func (x *fastReflection_ExtendedCommitSig) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.types.v2.ExtendedCommitSig.block_id_flag": + case "tendermint.types.ExtendedCommitSig.block_id_flag": return x.BlockIdFlag != 0 - case "cometbft.types.v2.ExtendedCommitSig.validator_address": + case "tendermint.types.ExtendedCommitSig.validator_address": return len(x.ValidatorAddress) != 0 - case "cometbft.types.v2.ExtendedCommitSig.timestamp": + case "tendermint.types.ExtendedCommitSig.timestamp": return x.Timestamp != nil - case "cometbft.types.v2.ExtendedCommitSig.signature": + case "tendermint.types.ExtendedCommitSig.signature": return len(x.Signature) != 0 - case "cometbft.types.v2.ExtendedCommitSig.extension": + case "tendermint.types.ExtendedCommitSig.extension": return len(x.Extension) != 0 - case "cometbft.types.v2.ExtendedCommitSig.extension_signature": + case "tendermint.types.ExtendedCommitSig.extension_signature": return len(x.ExtensionSignature) != 0 - case "cometbft.types.v2.ExtendedCommitSig.non_rp_extension": - return len(x.NonRpExtension) != 0 - case "cometbft.types.v2.ExtendedCommitSig.non_rp_extension_signature": - return len(x.NonRpExtensionSignature) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ExtendedCommitSig")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ExtendedCommitSig")) } - panic(fmt.Errorf("message cometbft.types.v2.ExtendedCommitSig does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.ExtendedCommitSig does not contain field %s", fd.FullName())) } } @@ -6555,27 +6403,23 @@ func (x *fastReflection_ExtendedCommitSig) Has(fd protoreflect.FieldDescriptor) // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ExtendedCommitSig) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.types.v2.ExtendedCommitSig.block_id_flag": + case "tendermint.types.ExtendedCommitSig.block_id_flag": x.BlockIdFlag = 0 - case "cometbft.types.v2.ExtendedCommitSig.validator_address": + case "tendermint.types.ExtendedCommitSig.validator_address": x.ValidatorAddress = nil - case "cometbft.types.v2.ExtendedCommitSig.timestamp": + case "tendermint.types.ExtendedCommitSig.timestamp": x.Timestamp = nil - case "cometbft.types.v2.ExtendedCommitSig.signature": + case "tendermint.types.ExtendedCommitSig.signature": x.Signature = nil - case "cometbft.types.v2.ExtendedCommitSig.extension": + case "tendermint.types.ExtendedCommitSig.extension": x.Extension = nil - case "cometbft.types.v2.ExtendedCommitSig.extension_signature": + case "tendermint.types.ExtendedCommitSig.extension_signature": x.ExtensionSignature = nil - case "cometbft.types.v2.ExtendedCommitSig.non_rp_extension": - x.NonRpExtension = nil - case "cometbft.types.v2.ExtendedCommitSig.non_rp_extension_signature": - x.NonRpExtensionSignature = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ExtendedCommitSig")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ExtendedCommitSig")) } - panic(fmt.Errorf("message cometbft.types.v2.ExtendedCommitSig does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.ExtendedCommitSig does not contain field %s", fd.FullName())) } } @@ -6587,35 +6431,29 @@ func (x *fastReflection_ExtendedCommitSig) Clear(fd protoreflect.FieldDescriptor // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_ExtendedCommitSig) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.types.v2.ExtendedCommitSig.block_id_flag": + case "tendermint.types.ExtendedCommitSig.block_id_flag": value := x.BlockIdFlag return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "cometbft.types.v2.ExtendedCommitSig.validator_address": + case "tendermint.types.ExtendedCommitSig.validator_address": value := x.ValidatorAddress return protoreflect.ValueOfBytes(value) - case "cometbft.types.v2.ExtendedCommitSig.timestamp": + case "tendermint.types.ExtendedCommitSig.timestamp": value := x.Timestamp return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.ExtendedCommitSig.signature": + case "tendermint.types.ExtendedCommitSig.signature": value := x.Signature return protoreflect.ValueOfBytes(value) - case "cometbft.types.v2.ExtendedCommitSig.extension": + case "tendermint.types.ExtendedCommitSig.extension": value := x.Extension return protoreflect.ValueOfBytes(value) - case "cometbft.types.v2.ExtendedCommitSig.extension_signature": + case "tendermint.types.ExtendedCommitSig.extension_signature": value := x.ExtensionSignature return protoreflect.ValueOfBytes(value) - case "cometbft.types.v2.ExtendedCommitSig.non_rp_extension": - value := x.NonRpExtension - return protoreflect.ValueOfBytes(value) - case "cometbft.types.v2.ExtendedCommitSig.non_rp_extension_signature": - value := x.NonRpExtensionSignature - return protoreflect.ValueOfBytes(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ExtendedCommitSig")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ExtendedCommitSig")) } - panic(fmt.Errorf("message cometbft.types.v2.ExtendedCommitSig does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.types.ExtendedCommitSig does not contain field %s", descriptor.FullName())) } } @@ -6631,27 +6469,23 @@ func (x *fastReflection_ExtendedCommitSig) Get(descriptor protoreflect.FieldDesc // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ExtendedCommitSig) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.types.v2.ExtendedCommitSig.block_id_flag": + case "tendermint.types.ExtendedCommitSig.block_id_flag": x.BlockIdFlag = (BlockIDFlag)(value.Enum()) - case "cometbft.types.v2.ExtendedCommitSig.validator_address": + case "tendermint.types.ExtendedCommitSig.validator_address": x.ValidatorAddress = value.Bytes() - case "cometbft.types.v2.ExtendedCommitSig.timestamp": + case "tendermint.types.ExtendedCommitSig.timestamp": x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) - case "cometbft.types.v2.ExtendedCommitSig.signature": + case "tendermint.types.ExtendedCommitSig.signature": x.Signature = value.Bytes() - case "cometbft.types.v2.ExtendedCommitSig.extension": + case "tendermint.types.ExtendedCommitSig.extension": x.Extension = value.Bytes() - case "cometbft.types.v2.ExtendedCommitSig.extension_signature": + case "tendermint.types.ExtendedCommitSig.extension_signature": x.ExtensionSignature = value.Bytes() - case "cometbft.types.v2.ExtendedCommitSig.non_rp_extension": - x.NonRpExtension = value.Bytes() - case "cometbft.types.v2.ExtendedCommitSig.non_rp_extension_signature": - x.NonRpExtensionSignature = value.Bytes() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ExtendedCommitSig")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ExtendedCommitSig")) } - panic(fmt.Errorf("message cometbft.types.v2.ExtendedCommitSig does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.ExtendedCommitSig does not contain field %s", fd.FullName())) } } @@ -6667,30 +6501,26 @@ func (x *fastReflection_ExtendedCommitSig) Set(fd protoreflect.FieldDescriptor, // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ExtendedCommitSig) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.ExtendedCommitSig.timestamp": + case "tendermint.types.ExtendedCommitSig.timestamp": if x.Timestamp == nil { x.Timestamp = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) - case "cometbft.types.v2.ExtendedCommitSig.block_id_flag": - panic(fmt.Errorf("field block_id_flag of message cometbft.types.v2.ExtendedCommitSig is not mutable")) - case "cometbft.types.v2.ExtendedCommitSig.validator_address": - panic(fmt.Errorf("field validator_address of message cometbft.types.v2.ExtendedCommitSig is not mutable")) - case "cometbft.types.v2.ExtendedCommitSig.signature": - panic(fmt.Errorf("field signature of message cometbft.types.v2.ExtendedCommitSig is not mutable")) - case "cometbft.types.v2.ExtendedCommitSig.extension": - panic(fmt.Errorf("field extension of message cometbft.types.v2.ExtendedCommitSig is not mutable")) - case "cometbft.types.v2.ExtendedCommitSig.extension_signature": - panic(fmt.Errorf("field extension_signature of message cometbft.types.v2.ExtendedCommitSig is not mutable")) - case "cometbft.types.v2.ExtendedCommitSig.non_rp_extension": - panic(fmt.Errorf("field non_rp_extension of message cometbft.types.v2.ExtendedCommitSig is not mutable")) - case "cometbft.types.v2.ExtendedCommitSig.non_rp_extension_signature": - panic(fmt.Errorf("field non_rp_extension_signature of message cometbft.types.v2.ExtendedCommitSig is not mutable")) + case "tendermint.types.ExtendedCommitSig.block_id_flag": + panic(fmt.Errorf("field block_id_flag of message tendermint.types.ExtendedCommitSig is not mutable")) + case "tendermint.types.ExtendedCommitSig.validator_address": + panic(fmt.Errorf("field validator_address of message tendermint.types.ExtendedCommitSig is not mutable")) + case "tendermint.types.ExtendedCommitSig.signature": + panic(fmt.Errorf("field signature of message tendermint.types.ExtendedCommitSig is not mutable")) + case "tendermint.types.ExtendedCommitSig.extension": + panic(fmt.Errorf("field extension of message tendermint.types.ExtendedCommitSig is not mutable")) + case "tendermint.types.ExtendedCommitSig.extension_signature": + panic(fmt.Errorf("field extension_signature of message tendermint.types.ExtendedCommitSig is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ExtendedCommitSig")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ExtendedCommitSig")) } - panic(fmt.Errorf("message cometbft.types.v2.ExtendedCommitSig does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.ExtendedCommitSig does not contain field %s", fd.FullName())) } } @@ -6699,28 +6529,24 @@ func (x *fastReflection_ExtendedCommitSig) Mutable(fd protoreflect.FieldDescript // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_ExtendedCommitSig) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.ExtendedCommitSig.block_id_flag": + case "tendermint.types.ExtendedCommitSig.block_id_flag": return protoreflect.ValueOfEnum(0) - case "cometbft.types.v2.ExtendedCommitSig.validator_address": + case "tendermint.types.ExtendedCommitSig.validator_address": return protoreflect.ValueOfBytes(nil) - case "cometbft.types.v2.ExtendedCommitSig.timestamp": + case "tendermint.types.ExtendedCommitSig.timestamp": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.ExtendedCommitSig.signature": + case "tendermint.types.ExtendedCommitSig.signature": return protoreflect.ValueOfBytes(nil) - case "cometbft.types.v2.ExtendedCommitSig.extension": + case "tendermint.types.ExtendedCommitSig.extension": return protoreflect.ValueOfBytes(nil) - case "cometbft.types.v2.ExtendedCommitSig.extension_signature": - return protoreflect.ValueOfBytes(nil) - case "cometbft.types.v2.ExtendedCommitSig.non_rp_extension": - return protoreflect.ValueOfBytes(nil) - case "cometbft.types.v2.ExtendedCommitSig.non_rp_extension_signature": + case "tendermint.types.ExtendedCommitSig.extension_signature": return protoreflect.ValueOfBytes(nil) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ExtendedCommitSig")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ExtendedCommitSig")) } - panic(fmt.Errorf("message cometbft.types.v2.ExtendedCommitSig does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.ExtendedCommitSig does not contain field %s", fd.FullName())) } } @@ -6730,7 +6556,7 @@ func (x *fastReflection_ExtendedCommitSig) NewField(fd protoreflect.FieldDescrip func (x *fastReflection_ExtendedCommitSig) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.ExtendedCommitSig", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.types.ExtendedCommitSig", d.FullName())) } panic("unreachable") } @@ -6808,14 +6634,6 @@ func (x *fastReflection_ExtendedCommitSig) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.NonRpExtension) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.NonRpExtensionSignature) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -6845,20 +6663,6 @@ func (x *fastReflection_ExtendedCommitSig) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.NonRpExtensionSignature) > 0 { - i -= len(x.NonRpExtensionSignature) - copy(dAtA[i:], x.NonRpExtensionSignature) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NonRpExtensionSignature))) - i-- - dAtA[i] = 0x42 - } - if len(x.NonRpExtension) > 0 { - i -= len(x.NonRpExtension) - copy(dAtA[i:], x.NonRpExtension) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NonRpExtension))) - i-- - dAtA[i] = 0x3a - } if len(x.ExtensionSignature) > 0 { i -= len(x.ExtensionSignature) copy(dAtA[i:], x.ExtensionSignature) @@ -7146,74 +6950,6 @@ func (x *fastReflection_ExtendedCommitSig) ProtoMethods() *protoiface.Methods { x.ExtensionSignature = []byte{} } iNdEx = postIndex - case 7: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NonRpExtension", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.NonRpExtension = append(x.NonRpExtension[:0], dAtA[iNdEx:postIndex]...) - if x.NonRpExtension == nil { - x.NonRpExtension = []byte{} - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NonRpExtensionSignature", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.NonRpExtensionSignature = append(x.NonRpExtensionSignature[:0], dAtA[iNdEx:postIndex]...) - if x.NonRpExtensionSignature == nil { - x.NonRpExtensionSignature = []byte{} - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -7261,8 +6997,8 @@ var ( ) func init() { - file_cometbft_types_v2_types_proto_init() - md_Proposal = File_cometbft_types_v2_types_proto.Messages().ByName("Proposal") + file_tendermint_types_types_proto_init() + md_Proposal = File_tendermint_types_types_proto.Messages().ByName("Proposal") fd_Proposal_type = md_Proposal.Fields().ByName("type") fd_Proposal_height = md_Proposal.Fields().ByName("height") fd_Proposal_round = md_Proposal.Fields().ByName("round") @@ -7281,7 +7017,7 @@ func (x *Proposal) ProtoReflect() protoreflect.Message { } func (x *Proposal) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_types_proto_msgTypes[10] + mi := &file_tendermint_types_types_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7394,25 +7130,25 @@ func (x *fastReflection_Proposal) Range(f func(protoreflect.FieldDescriptor, pro // a repeated field is populated if it is non-empty. func (x *fastReflection_Proposal) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.types.v2.Proposal.type": + case "tendermint.types.Proposal.type": return x.Type_ != 0 - case "cometbft.types.v2.Proposal.height": + case "tendermint.types.Proposal.height": return x.Height != int64(0) - case "cometbft.types.v2.Proposal.round": + case "tendermint.types.Proposal.round": return x.Round != int32(0) - case "cometbft.types.v2.Proposal.pol_round": + case "tendermint.types.Proposal.pol_round": return x.PolRound != int32(0) - case "cometbft.types.v2.Proposal.block_id": + case "tendermint.types.Proposal.block_id": return x.BlockId != nil - case "cometbft.types.v2.Proposal.timestamp": + case "tendermint.types.Proposal.timestamp": return x.Timestamp != nil - case "cometbft.types.v2.Proposal.signature": + case "tendermint.types.Proposal.signature": return len(x.Signature) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Proposal")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Proposal")) } - panic(fmt.Errorf("message cometbft.types.v2.Proposal does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Proposal does not contain field %s", fd.FullName())) } } @@ -7424,25 +7160,25 @@ func (x *fastReflection_Proposal) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Proposal) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.types.v2.Proposal.type": + case "tendermint.types.Proposal.type": x.Type_ = 0 - case "cometbft.types.v2.Proposal.height": + case "tendermint.types.Proposal.height": x.Height = int64(0) - case "cometbft.types.v2.Proposal.round": + case "tendermint.types.Proposal.round": x.Round = int32(0) - case "cometbft.types.v2.Proposal.pol_round": + case "tendermint.types.Proposal.pol_round": x.PolRound = int32(0) - case "cometbft.types.v2.Proposal.block_id": + case "tendermint.types.Proposal.block_id": x.BlockId = nil - case "cometbft.types.v2.Proposal.timestamp": + case "tendermint.types.Proposal.timestamp": x.Timestamp = nil - case "cometbft.types.v2.Proposal.signature": + case "tendermint.types.Proposal.signature": x.Signature = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Proposal")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Proposal")) } - panic(fmt.Errorf("message cometbft.types.v2.Proposal does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Proposal does not contain field %s", fd.FullName())) } } @@ -7454,32 +7190,32 @@ func (x *fastReflection_Proposal) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Proposal) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.types.v2.Proposal.type": + case "tendermint.types.Proposal.type": value := x.Type_ return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "cometbft.types.v2.Proposal.height": + case "tendermint.types.Proposal.height": value := x.Height return protoreflect.ValueOfInt64(value) - case "cometbft.types.v2.Proposal.round": + case "tendermint.types.Proposal.round": value := x.Round return protoreflect.ValueOfInt32(value) - case "cometbft.types.v2.Proposal.pol_round": + case "tendermint.types.Proposal.pol_round": value := x.PolRound return protoreflect.ValueOfInt32(value) - case "cometbft.types.v2.Proposal.block_id": + case "tendermint.types.Proposal.block_id": value := x.BlockId return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.Proposal.timestamp": + case "tendermint.types.Proposal.timestamp": value := x.Timestamp return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.Proposal.signature": + case "tendermint.types.Proposal.signature": value := x.Signature return protoreflect.ValueOfBytes(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Proposal")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Proposal")) } - panic(fmt.Errorf("message cometbft.types.v2.Proposal does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.types.Proposal does not contain field %s", descriptor.FullName())) } } @@ -7495,25 +7231,25 @@ func (x *fastReflection_Proposal) Get(descriptor protoreflect.FieldDescriptor) p // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Proposal) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.types.v2.Proposal.type": + case "tendermint.types.Proposal.type": x.Type_ = (SignedMsgType)(value.Enum()) - case "cometbft.types.v2.Proposal.height": + case "tendermint.types.Proposal.height": x.Height = value.Int() - case "cometbft.types.v2.Proposal.round": + case "tendermint.types.Proposal.round": x.Round = int32(value.Int()) - case "cometbft.types.v2.Proposal.pol_round": + case "tendermint.types.Proposal.pol_round": x.PolRound = int32(value.Int()) - case "cometbft.types.v2.Proposal.block_id": + case "tendermint.types.Proposal.block_id": x.BlockId = value.Message().Interface().(*BlockID) - case "cometbft.types.v2.Proposal.timestamp": + case "tendermint.types.Proposal.timestamp": x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) - case "cometbft.types.v2.Proposal.signature": + case "tendermint.types.Proposal.signature": x.Signature = value.Bytes() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Proposal")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Proposal")) } - panic(fmt.Errorf("message cometbft.types.v2.Proposal does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Proposal does not contain field %s", fd.FullName())) } } @@ -7529,31 +7265,31 @@ func (x *fastReflection_Proposal) Set(fd protoreflect.FieldDescriptor, value pro // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Proposal) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.Proposal.block_id": + case "tendermint.types.Proposal.block_id": if x.BlockId == nil { x.BlockId = new(BlockID) } return protoreflect.ValueOfMessage(x.BlockId.ProtoReflect()) - case "cometbft.types.v2.Proposal.timestamp": + case "tendermint.types.Proposal.timestamp": if x.Timestamp == nil { x.Timestamp = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) - case "cometbft.types.v2.Proposal.type": - panic(fmt.Errorf("field type of message cometbft.types.v2.Proposal is not mutable")) - case "cometbft.types.v2.Proposal.height": - panic(fmt.Errorf("field height of message cometbft.types.v2.Proposal is not mutable")) - case "cometbft.types.v2.Proposal.round": - panic(fmt.Errorf("field round of message cometbft.types.v2.Proposal is not mutable")) - case "cometbft.types.v2.Proposal.pol_round": - panic(fmt.Errorf("field pol_round of message cometbft.types.v2.Proposal is not mutable")) - case "cometbft.types.v2.Proposal.signature": - panic(fmt.Errorf("field signature of message cometbft.types.v2.Proposal is not mutable")) + case "tendermint.types.Proposal.type": + panic(fmt.Errorf("field type of message tendermint.types.Proposal is not mutable")) + case "tendermint.types.Proposal.height": + panic(fmt.Errorf("field height of message tendermint.types.Proposal is not mutable")) + case "tendermint.types.Proposal.round": + panic(fmt.Errorf("field round of message tendermint.types.Proposal is not mutable")) + case "tendermint.types.Proposal.pol_round": + panic(fmt.Errorf("field pol_round of message tendermint.types.Proposal is not mutable")) + case "tendermint.types.Proposal.signature": + panic(fmt.Errorf("field signature of message tendermint.types.Proposal is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Proposal")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Proposal")) } - panic(fmt.Errorf("message cometbft.types.v2.Proposal does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Proposal does not contain field %s", fd.FullName())) } } @@ -7562,27 +7298,27 @@ func (x *fastReflection_Proposal) Mutable(fd protoreflect.FieldDescriptor) proto // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Proposal) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.Proposal.type": + case "tendermint.types.Proposal.type": return protoreflect.ValueOfEnum(0) - case "cometbft.types.v2.Proposal.height": + case "tendermint.types.Proposal.height": return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.types.v2.Proposal.round": + case "tendermint.types.Proposal.round": return protoreflect.ValueOfInt32(int32(0)) - case "cometbft.types.v2.Proposal.pol_round": + case "tendermint.types.Proposal.pol_round": return protoreflect.ValueOfInt32(int32(0)) - case "cometbft.types.v2.Proposal.block_id": + case "tendermint.types.Proposal.block_id": m := new(BlockID) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.Proposal.timestamp": + case "tendermint.types.Proposal.timestamp": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.Proposal.signature": + case "tendermint.types.Proposal.signature": return protoreflect.ValueOfBytes(nil) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Proposal")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Proposal")) } - panic(fmt.Errorf("message cometbft.types.v2.Proposal does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Proposal does not contain field %s", fd.FullName())) } } @@ -7592,7 +7328,7 @@ func (x *fastReflection_Proposal) NewField(fd protoreflect.FieldDescriptor) prot func (x *fastReflection_Proposal) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.Proposal", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.types.Proposal", d.FullName())) } panic("unreachable") } @@ -8028,8 +7764,8 @@ var ( ) func init() { - file_cometbft_types_v2_types_proto_init() - md_SignedHeader = File_cometbft_types_v2_types_proto.Messages().ByName("SignedHeader") + file_tendermint_types_types_proto_init() + md_SignedHeader = File_tendermint_types_types_proto.Messages().ByName("SignedHeader") fd_SignedHeader_header = md_SignedHeader.Fields().ByName("header") fd_SignedHeader_commit = md_SignedHeader.Fields().ByName("commit") } @@ -8043,7 +7779,7 @@ func (x *SignedHeader) ProtoReflect() protoreflect.Message { } func (x *SignedHeader) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_types_proto_msgTypes[11] + mi := &file_tendermint_types_types_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8126,15 +7862,15 @@ func (x *fastReflection_SignedHeader) Range(f func(protoreflect.FieldDescriptor, // a repeated field is populated if it is non-empty. func (x *fastReflection_SignedHeader) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.types.v2.SignedHeader.header": + case "tendermint.types.SignedHeader.header": return x.Header != nil - case "cometbft.types.v2.SignedHeader.commit": + case "tendermint.types.SignedHeader.commit": return x.Commit != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.SignedHeader")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.SignedHeader")) } - panic(fmt.Errorf("message cometbft.types.v2.SignedHeader does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.SignedHeader does not contain field %s", fd.FullName())) } } @@ -8146,15 +7882,15 @@ func (x *fastReflection_SignedHeader) Has(fd protoreflect.FieldDescriptor) bool // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_SignedHeader) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.types.v2.SignedHeader.header": + case "tendermint.types.SignedHeader.header": x.Header = nil - case "cometbft.types.v2.SignedHeader.commit": + case "tendermint.types.SignedHeader.commit": x.Commit = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.SignedHeader")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.SignedHeader")) } - panic(fmt.Errorf("message cometbft.types.v2.SignedHeader does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.SignedHeader does not contain field %s", fd.FullName())) } } @@ -8166,17 +7902,17 @@ func (x *fastReflection_SignedHeader) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_SignedHeader) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.types.v2.SignedHeader.header": + case "tendermint.types.SignedHeader.header": value := x.Header return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.SignedHeader.commit": + case "tendermint.types.SignedHeader.commit": value := x.Commit return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.SignedHeader")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.SignedHeader")) } - panic(fmt.Errorf("message cometbft.types.v2.SignedHeader does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.types.SignedHeader does not contain field %s", descriptor.FullName())) } } @@ -8192,15 +7928,15 @@ func (x *fastReflection_SignedHeader) Get(descriptor protoreflect.FieldDescripto // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_SignedHeader) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.types.v2.SignedHeader.header": + case "tendermint.types.SignedHeader.header": x.Header = value.Message().Interface().(*Header) - case "cometbft.types.v2.SignedHeader.commit": + case "tendermint.types.SignedHeader.commit": x.Commit = value.Message().Interface().(*Commit) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.SignedHeader")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.SignedHeader")) } - panic(fmt.Errorf("message cometbft.types.v2.SignedHeader does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.SignedHeader does not contain field %s", fd.FullName())) } } @@ -8216,21 +7952,21 @@ func (x *fastReflection_SignedHeader) Set(fd protoreflect.FieldDescriptor, value // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_SignedHeader) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.SignedHeader.header": + case "tendermint.types.SignedHeader.header": if x.Header == nil { x.Header = new(Header) } return protoreflect.ValueOfMessage(x.Header.ProtoReflect()) - case "cometbft.types.v2.SignedHeader.commit": + case "tendermint.types.SignedHeader.commit": if x.Commit == nil { x.Commit = new(Commit) } return protoreflect.ValueOfMessage(x.Commit.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.SignedHeader")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.SignedHeader")) } - panic(fmt.Errorf("message cometbft.types.v2.SignedHeader does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.SignedHeader does not contain field %s", fd.FullName())) } } @@ -8239,17 +7975,17 @@ func (x *fastReflection_SignedHeader) Mutable(fd protoreflect.FieldDescriptor) p // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_SignedHeader) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.SignedHeader.header": + case "tendermint.types.SignedHeader.header": m := new(Header) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.SignedHeader.commit": + case "tendermint.types.SignedHeader.commit": m := new(Commit) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.SignedHeader")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.SignedHeader")) } - panic(fmt.Errorf("message cometbft.types.v2.SignedHeader does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.SignedHeader does not contain field %s", fd.FullName())) } } @@ -8259,7 +7995,7 @@ func (x *fastReflection_SignedHeader) NewField(fd protoreflect.FieldDescriptor) func (x *fastReflection_SignedHeader) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.SignedHeader", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.types.SignedHeader", d.FullName())) } panic("unreachable") } @@ -8542,8 +8278,8 @@ var ( ) func init() { - file_cometbft_types_v2_types_proto_init() - md_LightBlock = File_cometbft_types_v2_types_proto.Messages().ByName("LightBlock") + file_tendermint_types_types_proto_init() + md_LightBlock = File_tendermint_types_types_proto.Messages().ByName("LightBlock") fd_LightBlock_signed_header = md_LightBlock.Fields().ByName("signed_header") fd_LightBlock_validator_set = md_LightBlock.Fields().ByName("validator_set") } @@ -8557,7 +8293,7 @@ func (x *LightBlock) ProtoReflect() protoreflect.Message { } func (x *LightBlock) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_types_proto_msgTypes[12] + mi := &file_tendermint_types_types_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8640,15 +8376,15 @@ func (x *fastReflection_LightBlock) Range(f func(protoreflect.FieldDescriptor, p // a repeated field is populated if it is non-empty. func (x *fastReflection_LightBlock) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.types.v2.LightBlock.signed_header": + case "tendermint.types.LightBlock.signed_header": return x.SignedHeader != nil - case "cometbft.types.v2.LightBlock.validator_set": + case "tendermint.types.LightBlock.validator_set": return x.ValidatorSet != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.LightBlock")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.LightBlock")) } - panic(fmt.Errorf("message cometbft.types.v2.LightBlock does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.LightBlock does not contain field %s", fd.FullName())) } } @@ -8660,15 +8396,15 @@ func (x *fastReflection_LightBlock) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_LightBlock) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.types.v2.LightBlock.signed_header": + case "tendermint.types.LightBlock.signed_header": x.SignedHeader = nil - case "cometbft.types.v2.LightBlock.validator_set": + case "tendermint.types.LightBlock.validator_set": x.ValidatorSet = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.LightBlock")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.LightBlock")) } - panic(fmt.Errorf("message cometbft.types.v2.LightBlock does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.LightBlock does not contain field %s", fd.FullName())) } } @@ -8680,17 +8416,17 @@ func (x *fastReflection_LightBlock) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_LightBlock) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.types.v2.LightBlock.signed_header": + case "tendermint.types.LightBlock.signed_header": value := x.SignedHeader return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.LightBlock.validator_set": + case "tendermint.types.LightBlock.validator_set": value := x.ValidatorSet return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.LightBlock")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.LightBlock")) } - panic(fmt.Errorf("message cometbft.types.v2.LightBlock does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.types.LightBlock does not contain field %s", descriptor.FullName())) } } @@ -8706,15 +8442,15 @@ func (x *fastReflection_LightBlock) Get(descriptor protoreflect.FieldDescriptor) // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_LightBlock) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.types.v2.LightBlock.signed_header": + case "tendermint.types.LightBlock.signed_header": x.SignedHeader = value.Message().Interface().(*SignedHeader) - case "cometbft.types.v2.LightBlock.validator_set": + case "tendermint.types.LightBlock.validator_set": x.ValidatorSet = value.Message().Interface().(*ValidatorSet) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.LightBlock")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.LightBlock")) } - panic(fmt.Errorf("message cometbft.types.v2.LightBlock does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.LightBlock does not contain field %s", fd.FullName())) } } @@ -8730,21 +8466,21 @@ func (x *fastReflection_LightBlock) Set(fd protoreflect.FieldDescriptor, value p // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_LightBlock) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.LightBlock.signed_header": + case "tendermint.types.LightBlock.signed_header": if x.SignedHeader == nil { x.SignedHeader = new(SignedHeader) } return protoreflect.ValueOfMessage(x.SignedHeader.ProtoReflect()) - case "cometbft.types.v2.LightBlock.validator_set": + case "tendermint.types.LightBlock.validator_set": if x.ValidatorSet == nil { x.ValidatorSet = new(ValidatorSet) } return protoreflect.ValueOfMessage(x.ValidatorSet.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.LightBlock")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.LightBlock")) } - panic(fmt.Errorf("message cometbft.types.v2.LightBlock does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.LightBlock does not contain field %s", fd.FullName())) } } @@ -8753,17 +8489,17 @@ func (x *fastReflection_LightBlock) Mutable(fd protoreflect.FieldDescriptor) pro // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_LightBlock) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.LightBlock.signed_header": + case "tendermint.types.LightBlock.signed_header": m := new(SignedHeader) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.LightBlock.validator_set": + case "tendermint.types.LightBlock.validator_set": m := new(ValidatorSet) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.LightBlock")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.LightBlock")) } - panic(fmt.Errorf("message cometbft.types.v2.LightBlock does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.LightBlock does not contain field %s", fd.FullName())) } } @@ -8773,7 +8509,7 @@ func (x *fastReflection_LightBlock) NewField(fd protoreflect.FieldDescriptor) pr func (x *fastReflection_LightBlock) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.LightBlock", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.types.LightBlock", d.FullName())) } panic("unreachable") } @@ -9058,8 +8794,8 @@ var ( ) func init() { - file_cometbft_types_v2_types_proto_init() - md_BlockMeta = File_cometbft_types_v2_types_proto.Messages().ByName("BlockMeta") + file_tendermint_types_types_proto_init() + md_BlockMeta = File_tendermint_types_types_proto.Messages().ByName("BlockMeta") fd_BlockMeta_block_id = md_BlockMeta.Fields().ByName("block_id") fd_BlockMeta_block_size = md_BlockMeta.Fields().ByName("block_size") fd_BlockMeta_header = md_BlockMeta.Fields().ByName("header") @@ -9075,7 +8811,7 @@ func (x *BlockMeta) ProtoReflect() protoreflect.Message { } func (x *BlockMeta) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_types_proto_msgTypes[13] + mi := &file_tendermint_types_types_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9170,19 +8906,19 @@ func (x *fastReflection_BlockMeta) Range(f func(protoreflect.FieldDescriptor, pr // a repeated field is populated if it is non-empty. func (x *fastReflection_BlockMeta) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.types.v2.BlockMeta.block_id": + case "tendermint.types.BlockMeta.block_id": return x.BlockId != nil - case "cometbft.types.v2.BlockMeta.block_size": + case "tendermint.types.BlockMeta.block_size": return x.BlockSize != int64(0) - case "cometbft.types.v2.BlockMeta.header": + case "tendermint.types.BlockMeta.header": return x.Header != nil - case "cometbft.types.v2.BlockMeta.num_txs": + case "tendermint.types.BlockMeta.num_txs": return x.NumTxs != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.BlockMeta")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.BlockMeta")) } - panic(fmt.Errorf("message cometbft.types.v2.BlockMeta does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.BlockMeta does not contain field %s", fd.FullName())) } } @@ -9194,19 +8930,19 @@ func (x *fastReflection_BlockMeta) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_BlockMeta) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.types.v2.BlockMeta.block_id": + case "tendermint.types.BlockMeta.block_id": x.BlockId = nil - case "cometbft.types.v2.BlockMeta.block_size": + case "tendermint.types.BlockMeta.block_size": x.BlockSize = int64(0) - case "cometbft.types.v2.BlockMeta.header": + case "tendermint.types.BlockMeta.header": x.Header = nil - case "cometbft.types.v2.BlockMeta.num_txs": + case "tendermint.types.BlockMeta.num_txs": x.NumTxs = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.BlockMeta")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.BlockMeta")) } - panic(fmt.Errorf("message cometbft.types.v2.BlockMeta does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.BlockMeta does not contain field %s", fd.FullName())) } } @@ -9218,23 +8954,23 @@ func (x *fastReflection_BlockMeta) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_BlockMeta) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.types.v2.BlockMeta.block_id": + case "tendermint.types.BlockMeta.block_id": value := x.BlockId return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.BlockMeta.block_size": + case "tendermint.types.BlockMeta.block_size": value := x.BlockSize return protoreflect.ValueOfInt64(value) - case "cometbft.types.v2.BlockMeta.header": + case "tendermint.types.BlockMeta.header": value := x.Header return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.BlockMeta.num_txs": + case "tendermint.types.BlockMeta.num_txs": value := x.NumTxs return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.BlockMeta")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.BlockMeta")) } - panic(fmt.Errorf("message cometbft.types.v2.BlockMeta does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.types.BlockMeta does not contain field %s", descriptor.FullName())) } } @@ -9250,19 +8986,19 @@ func (x *fastReflection_BlockMeta) Get(descriptor protoreflect.FieldDescriptor) // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_BlockMeta) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.types.v2.BlockMeta.block_id": + case "tendermint.types.BlockMeta.block_id": x.BlockId = value.Message().Interface().(*BlockID) - case "cometbft.types.v2.BlockMeta.block_size": + case "tendermint.types.BlockMeta.block_size": x.BlockSize = value.Int() - case "cometbft.types.v2.BlockMeta.header": + case "tendermint.types.BlockMeta.header": x.Header = value.Message().Interface().(*Header) - case "cometbft.types.v2.BlockMeta.num_txs": + case "tendermint.types.BlockMeta.num_txs": x.NumTxs = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.BlockMeta")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.BlockMeta")) } - panic(fmt.Errorf("message cometbft.types.v2.BlockMeta does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.BlockMeta does not contain field %s", fd.FullName())) } } @@ -9278,25 +9014,25 @@ func (x *fastReflection_BlockMeta) Set(fd protoreflect.FieldDescriptor, value pr // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_BlockMeta) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.BlockMeta.block_id": + case "tendermint.types.BlockMeta.block_id": if x.BlockId == nil { x.BlockId = new(BlockID) } return protoreflect.ValueOfMessage(x.BlockId.ProtoReflect()) - case "cometbft.types.v2.BlockMeta.header": + case "tendermint.types.BlockMeta.header": if x.Header == nil { x.Header = new(Header) } return protoreflect.ValueOfMessage(x.Header.ProtoReflect()) - case "cometbft.types.v2.BlockMeta.block_size": - panic(fmt.Errorf("field block_size of message cometbft.types.v2.BlockMeta is not mutable")) - case "cometbft.types.v2.BlockMeta.num_txs": - panic(fmt.Errorf("field num_txs of message cometbft.types.v2.BlockMeta is not mutable")) + case "tendermint.types.BlockMeta.block_size": + panic(fmt.Errorf("field block_size of message tendermint.types.BlockMeta is not mutable")) + case "tendermint.types.BlockMeta.num_txs": + panic(fmt.Errorf("field num_txs of message tendermint.types.BlockMeta is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.BlockMeta")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.BlockMeta")) } - panic(fmt.Errorf("message cometbft.types.v2.BlockMeta does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.BlockMeta does not contain field %s", fd.FullName())) } } @@ -9305,21 +9041,21 @@ func (x *fastReflection_BlockMeta) Mutable(fd protoreflect.FieldDescriptor) prot // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_BlockMeta) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.BlockMeta.block_id": + case "tendermint.types.BlockMeta.block_id": m := new(BlockID) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.BlockMeta.block_size": + case "tendermint.types.BlockMeta.block_size": return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.types.v2.BlockMeta.header": + case "tendermint.types.BlockMeta.header": m := new(Header) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.BlockMeta.num_txs": + case "tendermint.types.BlockMeta.num_txs": return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.BlockMeta")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.BlockMeta")) } - panic(fmt.Errorf("message cometbft.types.v2.BlockMeta does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.BlockMeta does not contain field %s", fd.FullName())) } } @@ -9329,7 +9065,7 @@ func (x *fastReflection_BlockMeta) NewField(fd protoreflect.FieldDescriptor) pro func (x *fastReflection_BlockMeta) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.BlockMeta", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.types.BlockMeta", d.FullName())) } panic("unreachable") } @@ -9667,8 +9403,8 @@ var ( ) func init() { - file_cometbft_types_v2_types_proto_init() - md_TxProof = File_cometbft_types_v2_types_proto.Messages().ByName("TxProof") + file_tendermint_types_types_proto_init() + md_TxProof = File_tendermint_types_types_proto.Messages().ByName("TxProof") fd_TxProof_root_hash = md_TxProof.Fields().ByName("root_hash") fd_TxProof_data = md_TxProof.Fields().ByName("data") fd_TxProof_proof = md_TxProof.Fields().ByName("proof") @@ -9683,7 +9419,7 @@ func (x *TxProof) ProtoReflect() protoreflect.Message { } func (x *TxProof) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_types_proto_msgTypes[14] + mi := &file_tendermint_types_types_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9772,17 +9508,17 @@ func (x *fastReflection_TxProof) Range(f func(protoreflect.FieldDescriptor, prot // a repeated field is populated if it is non-empty. func (x *fastReflection_TxProof) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.types.v2.TxProof.root_hash": + case "tendermint.types.TxProof.root_hash": return len(x.RootHash) != 0 - case "cometbft.types.v2.TxProof.data": + case "tendermint.types.TxProof.data": return len(x.Data) != 0 - case "cometbft.types.v2.TxProof.proof": + case "tendermint.types.TxProof.proof": return x.Proof != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.TxProof")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.TxProof")) } - panic(fmt.Errorf("message cometbft.types.v2.TxProof does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.TxProof does not contain field %s", fd.FullName())) } } @@ -9794,17 +9530,17 @@ func (x *fastReflection_TxProof) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_TxProof) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.types.v2.TxProof.root_hash": + case "tendermint.types.TxProof.root_hash": x.RootHash = nil - case "cometbft.types.v2.TxProof.data": + case "tendermint.types.TxProof.data": x.Data = nil - case "cometbft.types.v2.TxProof.proof": + case "tendermint.types.TxProof.proof": x.Proof = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.TxProof")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.TxProof")) } - panic(fmt.Errorf("message cometbft.types.v2.TxProof does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.TxProof does not contain field %s", fd.FullName())) } } @@ -9816,20 +9552,20 @@ func (x *fastReflection_TxProof) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_TxProof) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.types.v2.TxProof.root_hash": + case "tendermint.types.TxProof.root_hash": value := x.RootHash return protoreflect.ValueOfBytes(value) - case "cometbft.types.v2.TxProof.data": + case "tendermint.types.TxProof.data": value := x.Data return protoreflect.ValueOfBytes(value) - case "cometbft.types.v2.TxProof.proof": + case "tendermint.types.TxProof.proof": value := x.Proof return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.TxProof")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.TxProof")) } - panic(fmt.Errorf("message cometbft.types.v2.TxProof does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.types.TxProof does not contain field %s", descriptor.FullName())) } } @@ -9845,17 +9581,17 @@ func (x *fastReflection_TxProof) Get(descriptor protoreflect.FieldDescriptor) pr // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_TxProof) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.types.v2.TxProof.root_hash": + case "tendermint.types.TxProof.root_hash": x.RootHash = value.Bytes() - case "cometbft.types.v2.TxProof.data": + case "tendermint.types.TxProof.data": x.Data = value.Bytes() - case "cometbft.types.v2.TxProof.proof": - x.Proof = value.Message().Interface().(*v1.Proof) + case "tendermint.types.TxProof.proof": + x.Proof = value.Message().Interface().(*crypto.Proof) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.TxProof")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.TxProof")) } - panic(fmt.Errorf("message cometbft.types.v2.TxProof does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.TxProof does not contain field %s", fd.FullName())) } } @@ -9871,20 +9607,20 @@ func (x *fastReflection_TxProof) Set(fd protoreflect.FieldDescriptor, value prot // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_TxProof) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.TxProof.proof": + case "tendermint.types.TxProof.proof": if x.Proof == nil { - x.Proof = new(v1.Proof) + x.Proof = new(crypto.Proof) } return protoreflect.ValueOfMessage(x.Proof.ProtoReflect()) - case "cometbft.types.v2.TxProof.root_hash": - panic(fmt.Errorf("field root_hash of message cometbft.types.v2.TxProof is not mutable")) - case "cometbft.types.v2.TxProof.data": - panic(fmt.Errorf("field data of message cometbft.types.v2.TxProof is not mutable")) + case "tendermint.types.TxProof.root_hash": + panic(fmt.Errorf("field root_hash of message tendermint.types.TxProof is not mutable")) + case "tendermint.types.TxProof.data": + panic(fmt.Errorf("field data of message tendermint.types.TxProof is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.TxProof")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.TxProof")) } - panic(fmt.Errorf("message cometbft.types.v2.TxProof does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.TxProof does not contain field %s", fd.FullName())) } } @@ -9893,18 +9629,18 @@ func (x *fastReflection_TxProof) Mutable(fd protoreflect.FieldDescriptor) protor // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_TxProof) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.TxProof.root_hash": + case "tendermint.types.TxProof.root_hash": return protoreflect.ValueOfBytes(nil) - case "cometbft.types.v2.TxProof.data": + case "tendermint.types.TxProof.data": return protoreflect.ValueOfBytes(nil) - case "cometbft.types.v2.TxProof.proof": - m := new(v1.Proof) + case "tendermint.types.TxProof.proof": + m := new(crypto.Proof) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.TxProof")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.TxProof")) } - panic(fmt.Errorf("message cometbft.types.v2.TxProof does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.TxProof does not contain field %s", fd.FullName())) } } @@ -9914,7 +9650,7 @@ func (x *fastReflection_TxProof) NewField(fd protoreflect.FieldDescriptor) proto func (x *fastReflection_TxProof) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.TxProof", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.types.TxProof", d.FullName())) } panic("unreachable") } @@ -10185,7 +9921,7 @@ func (x *fastReflection_TxProof) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.Proof == nil { - x.Proof = &v1.Proof{} + x.Proof = &crypto.Proof{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Proof); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -10230,7 +9966,7 @@ func (x *fastReflection_TxProof) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: cometbft/types/v2/types.proto +// source: tendermint/types/types.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -10243,13 +9979,11 @@ const ( type SignedMsgType int32 const ( - // Unknown SignedMsgType_SIGNED_MSG_TYPE_UNKNOWN SignedMsgType = 0 - // Prevote - SignedMsgType_SIGNED_MSG_TYPE_PREVOTE SignedMsgType = 1 - // Precommit + // Votes + SignedMsgType_SIGNED_MSG_TYPE_PREVOTE SignedMsgType = 1 SignedMsgType_SIGNED_MSG_TYPE_PRECOMMIT SignedMsgType = 2 - // Proposal + // Proposals SignedMsgType_SIGNED_MSG_TYPE_PROPOSAL SignedMsgType = 32 ) @@ -10280,11 +10014,11 @@ func (x SignedMsgType) String() string { } func (SignedMsgType) Descriptor() protoreflect.EnumDescriptor { - return file_cometbft_types_v2_types_proto_enumTypes[0].Descriptor() + return file_tendermint_types_types_proto_enumTypes[0].Descriptor() } func (SignedMsgType) Type() protoreflect.EnumType { - return &file_cometbft_types_v2_types_proto_enumTypes[0] + return &file_tendermint_types_types_proto_enumTypes[0] } func (x SignedMsgType) Number() protoreflect.EnumNumber { @@ -10293,10 +10027,10 @@ func (x SignedMsgType) Number() protoreflect.EnumNumber { // Deprecated: Use SignedMsgType.Descriptor instead. func (SignedMsgType) EnumDescriptor() ([]byte, []int) { - return file_cometbft_types_v2_types_proto_rawDescGZIP(), []int{0} + return file_tendermint_types_types_proto_rawDescGZIP(), []int{0} } -// Header of the parts set for a block. +// PartsetHeader type PartSetHeader struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -10309,7 +10043,7 @@ type PartSetHeader struct { func (x *PartSetHeader) Reset() { *x = PartSetHeader{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_types_proto_msgTypes[0] + mi := &file_tendermint_types_types_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10323,7 +10057,7 @@ func (*PartSetHeader) ProtoMessage() {} // Deprecated: Use PartSetHeader.ProtoReflect.Descriptor instead. func (*PartSetHeader) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_types_proto_rawDescGZIP(), []int{0} + return file_tendermint_types_types_proto_rawDescGZIP(), []int{0} } func (x *PartSetHeader) GetTotal() uint32 { @@ -10340,21 +10074,20 @@ func (x *PartSetHeader) GetHash() []byte { return nil } -// Part of the block. type Part struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` - Bytes []byte `protobuf:"bytes,2,opt,name=bytes,proto3" json:"bytes,omitempty"` - Proof *v1.Proof `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof,omitempty"` + Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` + Bytes []byte `protobuf:"bytes,2,opt,name=bytes,proto3" json:"bytes,omitempty"` + Proof *crypto.Proof `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof,omitempty"` } func (x *Part) Reset() { *x = Part{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_types_proto_msgTypes[1] + mi := &file_tendermint_types_types_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10368,7 +10101,7 @@ func (*Part) ProtoMessage() {} // Deprecated: Use Part.ProtoReflect.Descriptor instead. func (*Part) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_types_proto_rawDescGZIP(), []int{1} + return file_tendermint_types_types_proto_rawDescGZIP(), []int{1} } func (x *Part) GetIndex() uint32 { @@ -10385,14 +10118,14 @@ func (x *Part) GetBytes() []byte { return nil } -func (x *Part) GetProof() *v1.Proof { +func (x *Part) GetProof() *crypto.Proof { if x != nil { return x.Proof } return nil } -// BlockID defines the unique ID of a block as its hash and its `PartSetHeader`. +// BlockID type BlockID struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -10405,7 +10138,7 @@ type BlockID struct { func (x *BlockID) Reset() { *x = BlockID{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_types_proto_msgTypes[2] + mi := &file_tendermint_types_types_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10419,7 +10152,7 @@ func (*BlockID) ProtoMessage() {} // Deprecated: Use BlockID.ProtoReflect.Descriptor instead. func (*BlockID) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_types_proto_rawDescGZIP(), []int{2} + return file_tendermint_types_types_proto_rawDescGZIP(), []int{2} } func (x *BlockID) GetHash() []byte { @@ -10443,7 +10176,7 @@ type Header struct { unknownFields protoimpl.UnknownFields // basic block info - Version *v11.Consensus `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + Version *version.Consensus `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` Time *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=time,proto3" json:"time,omitempty"` @@ -10466,7 +10199,7 @@ type Header struct { func (x *Header) Reset() { *x = Header{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_types_proto_msgTypes[3] + mi := &file_tendermint_types_types_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10480,10 +10213,10 @@ func (*Header) ProtoMessage() {} // Deprecated: Use Header.ProtoReflect.Descriptor instead. func (*Header) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_types_proto_rawDescGZIP(), []int{3} + return file_tendermint_types_types_proto_rawDescGZIP(), []int{3} } -func (x *Header) GetVersion() *v11.Consensus { +func (x *Header) GetVersion() *version.Consensus { if x != nil { return x.Version } @@ -10596,7 +10329,7 @@ type Data struct { func (x *Data) Reset() { *x = Data{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_types_proto_msgTypes[4] + mi := &file_tendermint_types_types_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10610,7 +10343,7 @@ func (*Data) ProtoMessage() {} // Deprecated: Use Data.ProtoReflect.Descriptor instead. func (*Data) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_types_proto_rawDescGZIP(), []int{4} + return file_tendermint_types_types_proto_rawDescGZIP(), []int{4} } func (x *Data) GetTxs() [][]byte { @@ -10622,14 +10355,12 @@ func (x *Data) GetTxs() [][]byte { // Vote represents a prevote or precommit vote from validators for // consensus. -// For precommit messages, the message contains vote extensions (replay-protected and non-replay-protected) -// and their signatures. type Vote struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Type_ SignedMsgType `protobuf:"varint,1,opt,name=type,proto3,enum=cometbft.types.v2.SignedMsgType" json:"type,omitempty"` + Type_ SignedMsgType `protobuf:"varint,1,opt,name=type,proto3,enum=tendermint.types.SignedMsgType" json:"type,omitempty"` Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` Round int32 `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"` BlockId *BlockID `protobuf:"bytes,4,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` // zero if vote is nil. @@ -10646,19 +10377,12 @@ type Vote struct { // consensus for the associated block. // Only valid for precommit messages. ExtensionSignature []byte `protobuf:"bytes,10,opt,name=extension_signature,json=extensionSignature,proto3" json:"extension_signature,omitempty"` - // Non-Replay-Protected (NRP) vote extension provided by the application. - // Only valid for precommit messages. - NonRpExtension []byte `protobuf:"bytes,11,opt,name=non_rp_extension,json=nonRpExtension,proto3" json:"non_rp_extension,omitempty"` - // Non-Replay-Protected (NRP) vote extension signature by the validator if - // they participated in consensus for the associated block. - // Only valid for precommit messages. - NonRpExtensionSignature []byte `protobuf:"bytes,12,opt,name=non_rp_extension_signature,json=nonRpExtensionSignature,proto3" json:"non_rp_extension_signature,omitempty"` } func (x *Vote) Reset() { *x = Vote{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_types_proto_msgTypes[5] + mi := &file_tendermint_types_types_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10672,7 +10396,7 @@ func (*Vote) ProtoMessage() {} // Deprecated: Use Vote.ProtoReflect.Descriptor instead. func (*Vote) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_types_proto_rawDescGZIP(), []int{5} + return file_tendermint_types_types_proto_rawDescGZIP(), []int{5} } func (x *Vote) GetType_() SignedMsgType { @@ -10745,20 +10469,6 @@ func (x *Vote) GetExtensionSignature() []byte { return nil } -func (x *Vote) GetNonRpExtension() []byte { - if x != nil { - return x.NonRpExtension - } - return nil -} - -func (x *Vote) GetNonRpExtensionSignature() []byte { - if x != nil { - return x.NonRpExtensionSignature - } - return nil -} - // Commit contains the evidence that a block was committed by a set of validators. type Commit struct { state protoimpl.MessageState @@ -10774,7 +10484,7 @@ type Commit struct { func (x *Commit) Reset() { *x = Commit{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_types_proto_msgTypes[6] + mi := &file_tendermint_types_types_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10788,7 +10498,7 @@ func (*Commit) ProtoMessage() {} // Deprecated: Use Commit.ProtoReflect.Descriptor instead. func (*Commit) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_types_proto_rawDescGZIP(), []int{6} + return file_tendermint_types_types_proto_rawDescGZIP(), []int{6} } func (x *Commit) GetHeight() int64 { @@ -10825,7 +10535,7 @@ type CommitSig struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - BlockIdFlag BlockIDFlag `protobuf:"varint,1,opt,name=block_id_flag,json=blockIdFlag,proto3,enum=cometbft.types.v2.BlockIDFlag" json:"block_id_flag,omitempty"` + BlockIdFlag BlockIDFlag `protobuf:"varint,1,opt,name=block_id_flag,json=blockIdFlag,proto3,enum=tendermint.types.BlockIDFlag" json:"block_id_flag,omitempty"` ValidatorAddress []byte `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Signature []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"` @@ -10834,7 +10544,7 @@ type CommitSig struct { func (x *CommitSig) Reset() { *x = CommitSig{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_types_proto_msgTypes[7] + mi := &file_tendermint_types_types_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10848,7 +10558,7 @@ func (*CommitSig) ProtoMessage() {} // Deprecated: Use CommitSig.ProtoReflect.Descriptor instead. func (*CommitSig) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_types_proto_rawDescGZIP(), []int{7} + return file_tendermint_types_types_proto_rawDescGZIP(), []int{7} } func (x *CommitSig) GetBlockIdFlag() BlockIDFlag { @@ -10879,7 +10589,6 @@ func (x *CommitSig) GetSignature() []byte { return nil } -// ExtendedCommit is a Commit with ExtendedCommitSig. type ExtendedCommit struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -10894,7 +10603,7 @@ type ExtendedCommit struct { func (x *ExtendedCommit) Reset() { *x = ExtendedCommit{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_types_proto_msgTypes[8] + mi := &file_tendermint_types_types_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10908,7 +10617,7 @@ func (*ExtendedCommit) ProtoMessage() {} // Deprecated: Use ExtendedCommit.ProtoReflect.Descriptor instead. func (*ExtendedCommit) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_types_proto_rawDescGZIP(), []int{8} + return file_tendermint_types_types_proto_rawDescGZIP(), []int{8} } func (x *ExtendedCommit) GetHeight() int64 { @@ -10940,17 +10649,14 @@ func (x *ExtendedCommit) GetExtendedSignatures() []*ExtendedCommitSig { } // ExtendedCommitSig retains all the same fields as CommitSig but adds vote -// extension-related fields, where: -// 'extension' and 'extension_signature' are used for replay-protected vote extensions. -// 'non_rp_extension' and 'non_rp_extension_signature' are used for non-replay-protected vote extensions. -// We use two signatures to ensure backwards compatibility. +// 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 type ExtendedCommitSig struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - BlockIdFlag BlockIDFlag `protobuf:"varint,1,opt,name=block_id_flag,json=blockIdFlag,proto3,enum=cometbft.types.v2.BlockIDFlag" json:"block_id_flag,omitempty"` + BlockIdFlag BlockIDFlag `protobuf:"varint,1,opt,name=block_id_flag,json=blockIdFlag,proto3,enum=tendermint.types.BlockIDFlag" json:"block_id_flag,omitempty"` ValidatorAddress []byte `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Signature []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"` @@ -10958,16 +10664,12 @@ type ExtendedCommitSig struct { Extension []byte `protobuf:"bytes,5,opt,name=extension,proto3" json:"extension,omitempty"` // Vote extension signature ExtensionSignature []byte `protobuf:"bytes,6,opt,name=extension_signature,json=extensionSignature,proto3" json:"extension_signature,omitempty"` - // Non-Replay-Protected vote extension data - NonRpExtension []byte `protobuf:"bytes,7,opt,name=non_rp_extension,json=nonRpExtension,proto3" json:"non_rp_extension,omitempty"` - // Non-Replay-Protected vote extension signature - NonRpExtensionSignature []byte `protobuf:"bytes,8,opt,name=non_rp_extension_signature,json=nonRpExtensionSignature,proto3" json:"non_rp_extension_signature,omitempty"` } func (x *ExtendedCommitSig) Reset() { *x = ExtendedCommitSig{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_types_proto_msgTypes[9] + mi := &file_tendermint_types_types_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10981,7 +10683,7 @@ func (*ExtendedCommitSig) ProtoMessage() {} // Deprecated: Use ExtendedCommitSig.ProtoReflect.Descriptor instead. func (*ExtendedCommitSig) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_types_proto_rawDescGZIP(), []int{9} + return file_tendermint_types_types_proto_rawDescGZIP(), []int{9} } func (x *ExtendedCommitSig) GetBlockIdFlag() BlockIDFlag { @@ -11026,27 +10728,12 @@ func (x *ExtendedCommitSig) GetExtensionSignature() []byte { return nil } -func (x *ExtendedCommitSig) GetNonRpExtension() []byte { - if x != nil { - return x.NonRpExtension - } - return nil -} - -func (x *ExtendedCommitSig) GetNonRpExtensionSignature() []byte { - if x != nil { - return x.NonRpExtensionSignature - } - return nil -} - -// Block proposal. type Proposal struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Type_ SignedMsgType `protobuf:"varint,1,opt,name=type,proto3,enum=cometbft.types.v2.SignedMsgType" json:"type,omitempty"` + Type_ SignedMsgType `protobuf:"varint,1,opt,name=type,proto3,enum=tendermint.types.SignedMsgType" json:"type,omitempty"` Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` Round int32 `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"` PolRound int32 `protobuf:"varint,4,opt,name=pol_round,json=polRound,proto3" json:"pol_round,omitempty"` @@ -11058,7 +10745,7 @@ type Proposal struct { func (x *Proposal) Reset() { *x = Proposal{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_types_proto_msgTypes[10] + mi := &file_tendermint_types_types_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -11072,7 +10759,7 @@ func (*Proposal) ProtoMessage() {} // Deprecated: Use Proposal.ProtoReflect.Descriptor instead. func (*Proposal) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_types_proto_rawDescGZIP(), []int{10} + return file_tendermint_types_types_proto_rawDescGZIP(), []int{10} } func (x *Proposal) GetType_() SignedMsgType { @@ -11124,7 +10811,6 @@ func (x *Proposal) GetSignature() []byte { return nil } -// SignedHeader contains a Header(H) and Commit(H+1) with signatures of validators who signed it. type SignedHeader struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -11137,7 +10823,7 @@ type SignedHeader struct { func (x *SignedHeader) Reset() { *x = SignedHeader{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_types_proto_msgTypes[11] + mi := &file_tendermint_types_types_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -11151,7 +10837,7 @@ func (*SignedHeader) ProtoMessage() {} // Deprecated: Use SignedHeader.ProtoReflect.Descriptor instead. func (*SignedHeader) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_types_proto_rawDescGZIP(), []int{11} + return file_tendermint_types_types_proto_rawDescGZIP(), []int{11} } func (x *SignedHeader) GetHeader() *Header { @@ -11168,7 +10854,6 @@ func (x *SignedHeader) GetCommit() *Commit { return nil } -// LightBlock is a combination of SignedHeader and ValidatorSet. It is used by light clients. type LightBlock struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -11181,7 +10866,7 @@ type LightBlock struct { func (x *LightBlock) Reset() { *x = LightBlock{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_types_proto_msgTypes[12] + mi := &file_tendermint_types_types_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -11195,7 +10880,7 @@ func (*LightBlock) ProtoMessage() {} // Deprecated: Use LightBlock.ProtoReflect.Descriptor instead. func (*LightBlock) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_types_proto_rawDescGZIP(), []int{12} + return file_tendermint_types_types_proto_rawDescGZIP(), []int{12} } func (x *LightBlock) GetSignedHeader() *SignedHeader { @@ -11212,7 +10897,6 @@ func (x *LightBlock) GetValidatorSet() *ValidatorSet { return nil } -// BlockMeta contains meta information about a block. type BlockMeta struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -11227,7 +10911,7 @@ type BlockMeta struct { func (x *BlockMeta) Reset() { *x = BlockMeta{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_types_proto_msgTypes[13] + mi := &file_tendermint_types_types_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -11241,7 +10925,7 @@ func (*BlockMeta) ProtoMessage() {} // Deprecated: Use BlockMeta.ProtoReflect.Descriptor instead. func (*BlockMeta) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_types_proto_rawDescGZIP(), []int{13} + return file_tendermint_types_types_proto_rawDescGZIP(), []int{13} } func (x *BlockMeta) GetBlockId() *BlockID { @@ -11278,15 +10962,15 @@ type TxProof struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - RootHash []byte `protobuf:"bytes,1,opt,name=root_hash,json=rootHash,proto3" json:"root_hash,omitempty"` - Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - Proof *v1.Proof `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof,omitempty"` + RootHash []byte `protobuf:"bytes,1,opt,name=root_hash,json=rootHash,proto3" json:"root_hash,omitempty"` + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + Proof *crypto.Proof `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof,omitempty"` } func (x *TxProof) Reset() { *x = TxProof{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_types_proto_msgTypes[14] + mi := &file_tendermint_types_types_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -11300,7 +10984,7 @@ func (*TxProof) ProtoMessage() {} // Deprecated: Use TxProof.ProtoReflect.Descriptor instead. func (*TxProof) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_types_proto_rawDescGZIP(), []int{14} + return file_tendermint_types_types_proto_rawDescGZIP(), []int{14} } func (x *TxProof) GetRootHash() []byte { @@ -11317,335 +11001,320 @@ func (x *TxProof) GetData() []byte { return nil } -func (x *TxProof) GetProof() *v1.Proof { +func (x *TxProof) GetProof() *crypto.Proof { if x != nil { return x.Proof } return nil } -var File_cometbft_types_v2_types_proto protoreflect.FileDescriptor +var File_tendermint_types_types_proto protoreflect.FileDescriptor -var file_cometbft_types_v2_types_proto_rawDesc = []byte{ - 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x11, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, - 0x76, 0x32, 0x1a, 0x1e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x63, 0x72, 0x79, - 0x70, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, - 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x39, 0x0a, - 0x0d, 0x50, 0x61, 0x72, 0x74, 0x53, 0x65, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x14, - 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x74, - 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x22, 0x69, 0x0a, 0x04, 0x50, 0x61, 0x72, 0x74, - 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, - 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x12, 0x35, 0x0a, 0x05, - 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, - 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x76, 0x31, - 0x2e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x05, 0x70, 0x72, - 0x6f, 0x6f, 0x66, 0x22, 0x6d, 0x0a, 0x07, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x12, 0x12, - 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x68, 0x61, - 0x73, 0x68, 0x12, 0x4e, 0x0a, 0x0f, 0x70, 0x61, 0x72, 0x74, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x68, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x6f, - 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, - 0x50, 0x61, 0x72, 0x74, 0x53, 0x65, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x42, 0x04, 0xc8, - 0xde, 0x1f, 0x00, 0x52, 0x0d, 0x70, 0x61, 0x72, 0x74, 0x53, 0x65, 0x74, 0x48, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x22, 0xe8, 0x04, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3e, 0x0a, - 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, - 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x42, 0x04, - 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x26, 0x0a, - 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x0b, 0xe2, 0xde, 0x1f, 0x07, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x44, 0x52, 0x07, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x38, 0x0a, - 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, - 0x01, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x44, 0x0a, 0x0d, 0x6c, 0x61, 0x73, 0x74, 0x5f, - 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, - 0x76, 0x32, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, - 0x52, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x64, 0x12, 0x28, 0x0a, - 0x10, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x68, 0x61, 0x73, - 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x6c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, - 0x6d, 0x69, 0x74, 0x48, 0x61, 0x73, 0x68, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, - 0x68, 0x61, 0x73, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, - 0x48, 0x61, 0x73, 0x68, 0x12, 0x27, 0x0a, 0x0f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, - 0x72, 0x73, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x76, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x48, 0x61, 0x73, 0x68, 0x12, 0x30, 0x0a, - 0x14, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, - 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x12, 0x6e, 0x65, 0x78, - 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x48, 0x61, 0x73, 0x68, 0x12, - 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x5f, 0x68, 0x61, 0x73, - 0x68, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, - 0x75, 0x73, 0x48, 0x61, 0x73, 0x68, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x70, 0x70, 0x5f, 0x68, 0x61, - 0x73, 0x68, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x70, 0x70, 0x48, 0x61, 0x73, - 0x68, 0x12, 0x2a, 0x0a, 0x11, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x73, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x6c, 0x61, - 0x73, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x48, 0x61, 0x73, 0x68, 0x12, 0x23, 0x0a, - 0x0d, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x0d, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x48, 0x61, - 0x73, 0x68, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x5f, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x70, 0x72, - 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x18, 0x0a, - 0x04, 0x44, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x78, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0c, 0x52, 0x03, 0x74, 0x78, 0x73, 0x22, 0xa0, 0x04, 0x0a, 0x04, 0x56, 0x6f, 0x74, 0x65, - 0x12, 0x34, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, - 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, - 0x76, 0x32, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x4d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, - 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x14, - 0x0a, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x72, - 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x46, 0x0a, 0x08, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, - 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x49, 0x44, 0x42, 0x0f, 0xc8, 0xde, 0x1f, 0x00, 0xe2, 0xde, 0x1f, 0x07, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x49, 0x44, 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x64, 0x12, 0x42, 0x0a, 0x09, - 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, - 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x12, 0x2b, 0x0a, 0x11, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x76, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x27, 0x0a, - 0x0f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, - 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, - 0x72, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, - 0x75, 0x72, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, - 0x74, 0x75, 0x72, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, - 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, - 0x6f, 0x6e, 0x12, 0x2f, 0x0a, 0x13, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, - 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x12, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, - 0x75, 0x72, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x6e, 0x6f, 0x6e, 0x5f, 0x72, 0x70, 0x5f, 0x65, 0x78, - 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x6e, - 0x6f, 0x6e, 0x52, 0x70, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, - 0x1a, 0x6e, 0x6f, 0x6e, 0x5f, 0x72, 0x70, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, - 0x6e, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x17, 0x6e, 0x6f, 0x6e, 0x52, 0x70, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, - 0x6e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0xc2, 0x01, 0x0a, 0x06, 0x43, - 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x14, 0x0a, - 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x72, 0x6f, - 0x75, 0x6e, 0x64, 0x12, 0x46, 0x0a, 0x08, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, - 0x44, 0x42, 0x0f, 0xc8, 0xde, 0x1f, 0x00, 0xe2, 0xde, 0x1f, 0x07, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x49, 0x44, 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x64, 0x12, 0x42, 0x0a, 0x0a, 0x73, - 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x1c, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x53, 0x69, 0x67, 0x42, 0x04, 0xc8, - 0xde, 0x1f, 0x00, 0x52, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x22, - 0xde, 0x01, 0x0a, 0x09, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x53, 0x69, 0x67, 0x12, 0x42, 0x0a, - 0x0d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, - 0x46, 0x6c, 0x61, 0x67, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x64, 0x46, 0x6c, 0x61, - 0x67, 0x12, 0x2b, 0x0a, 0x11, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x76, 0x61, - 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x42, - 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, - 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, - 0x22, 0xe3, 0x01, 0x0a, 0x0e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x43, 0x6f, 0x6d, +var file_tendermint_types_types_proto_rawDesc = []byte{ + 0x0a, 0x1c, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, + 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, + 0x69, 0x6e, 0x74, 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x6f, 0x66, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, + 0x6e, 0x74, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, + 0x6e, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x39, 0x0a, 0x0d, 0x50, 0x61, 0x72, 0x74, + 0x53, 0x65, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, + 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, + 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x68, + 0x61, 0x73, 0x68, 0x22, 0x68, 0x0a, 0x04, 0x50, 0x61, 0x72, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x69, + 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, + 0x78, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, + 0x69, 0x6e, 0x74, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x50, 0x72, 0x6f, 0x6f, 0x66, + 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x22, 0x6c, 0x0a, + 0x07, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x4d, 0x0a, 0x0f, + 0x70, 0x61, 0x72, 0x74, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, + 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x53, 0x65, 0x74, + 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0d, 0x70, 0x61, + 0x72, 0x74, 0x53, 0x65, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22, 0xe6, 0x04, 0x0a, 0x06, + 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x43, 0x6f, 0x6e, + 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x07, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x26, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe2, 0xde, 0x1f, 0x07, 0x43, 0x68, 0x61, + 0x69, 0x6e, 0x49, 0x44, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x16, 0x0a, + 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x38, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, + 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, + 0x43, 0x0a, 0x0d, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, + 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, + 0x44, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, + 0x6c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x48, 0x61, 0x73, 0x68, 0x12, 0x1b, + 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x48, 0x61, 0x73, 0x68, 0x12, 0x27, 0x0a, 0x0f, 0x76, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x08, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, + 0x48, 0x61, 0x73, 0x68, 0x12, 0x30, 0x0a, 0x14, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x76, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x09, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x12, 0x6e, 0x65, 0x78, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, + 0x72, 0x73, 0x48, 0x61, 0x73, 0x68, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, + 0x73, 0x75, 0x73, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, + 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x48, 0x61, 0x73, 0x68, 0x12, 0x19, 0x0a, + 0x08, 0x61, 0x70, 0x70, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x07, 0x61, 0x70, 0x70, 0x48, 0x61, 0x73, 0x68, 0x12, 0x2a, 0x0a, 0x11, 0x6c, 0x61, 0x73, 0x74, + 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x0c, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x6c, 0x61, 0x73, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, + 0x48, 0x61, 0x73, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x65, 0x76, 0x69, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x48, 0x61, 0x73, 0x68, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x72, 0x6f, + 0x70, 0x6f, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x0e, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x22, 0x18, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, + 0x74, 0x78, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x03, 0x74, 0x78, 0x73, 0x22, 0xb7, + 0x03, 0x0a, 0x04, 0x56, 0x6f, 0x74, 0x65, 0x12, 0x33, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, + 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x4d, + 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, + 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, + 0x69, 0x67, 0x68, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x45, 0x0a, 0x08, 0x62, 0x6c, + 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x74, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x42, 0x0f, 0xc8, 0xde, 0x1f, 0x00, 0xe2, 0xde, 0x1f, + 0x07, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x49, + 0x64, 0x12, 0x42, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x2b, 0x0a, 0x11, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, + 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x76, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1c, 0x0a, 0x09, 0x73, + 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, + 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x78, 0x74, + 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x65, 0x78, + 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x0a, 0x13, 0x65, 0x78, 0x74, 0x65, 0x6e, + 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x0a, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x12, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x53, + 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0xc0, 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x72, 0x6f, 0x75, 0x6e, - 0x64, 0x12, 0x46, 0x0a, 0x08, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x42, - 0x0f, 0xc8, 0xde, 0x1f, 0x00, 0xe2, 0xde, 0x1f, 0x07, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, - 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x64, 0x12, 0x5b, 0x0a, 0x13, 0x65, 0x78, 0x74, - 0x65, 0x6e, 0x64, 0x65, 0x64, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, - 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, - 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, - 0x64, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x53, 0x69, 0x67, 0x42, 0x04, 0xc8, 0xde, - 0x1f, 0x00, 0x52, 0x12, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x53, 0x69, 0x67, 0x6e, - 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x22, 0x9c, 0x03, 0x0a, 0x11, 0x45, 0x78, 0x74, 0x65, 0x6e, - 0x64, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x53, 0x69, 0x67, 0x12, 0x42, 0x0a, 0x0d, - 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x46, - 0x6c, 0x61, 0x67, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x64, 0x46, 0x6c, 0x61, 0x67, - 0x12, 0x2b, 0x0a, 0x11, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x76, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x42, 0x0a, - 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, - 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, - 0x1c, 0x0a, 0x09, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x09, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x0a, - 0x13, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x61, - 0x74, 0x75, 0x72, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x12, 0x65, 0x78, 0x74, 0x65, - 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x28, - 0x0a, 0x10, 0x6e, 0x6f, 0x6e, 0x5f, 0x72, 0x70, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, - 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x6e, 0x6f, 0x6e, 0x52, 0x70, 0x45, - 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x1a, 0x6e, 0x6f, 0x6e, 0x5f, - 0x72, 0x70, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x69, 0x67, - 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x17, 0x6e, 0x6f, - 0x6e, 0x52, 0x70, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x69, 0x67, 0x6e, - 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0xb5, 0x02, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, - 0x61, 0x6c, 0x12, 0x34, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x20, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x4d, 0x73, 0x67, 0x54, 0x79, + 0x64, 0x12, 0x45, 0x0a, 0x08, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x42, 0x0f, + 0xc8, 0xde, 0x1f, 0x00, 0xe2, 0xde, 0x1f, 0x07, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x52, + 0x07, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x64, 0x12, 0x41, 0x0a, 0x0a, 0x73, 0x69, 0x67, 0x6e, + 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x74, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x53, 0x69, 0x67, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, + 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x22, 0xdd, 0x01, 0x0a, 0x09, + 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x53, 0x69, 0x67, 0x12, 0x41, 0x0a, 0x0d, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x1d, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x46, 0x6c, 0x61, 0x67, 0x52, + 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x64, 0x46, 0x6c, 0x61, 0x67, 0x12, 0x2b, 0x0a, 0x11, + 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x42, 0x0a, 0x09, 0x74, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, + 0x1f, 0x01, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x1c, 0x0a, + 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0xe1, 0x01, 0x0a, 0x0e, + 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x16, + 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, + 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x45, 0x0a, 0x08, + 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, + 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x42, 0x0f, 0xc8, 0xde, 0x1f, 0x00, 0xe2, + 0xde, 0x1f, 0x07, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x49, 0x64, 0x12, 0x5a, 0x0a, 0x13, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x5f, + 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x23, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x53, 0x69, 0x67, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x12, 0x65, 0x78, 0x74, + 0x65, 0x6e, 0x64, 0x65, 0x64, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x22, + 0xb4, 0x02, 0x0a, 0x11, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x53, 0x69, 0x67, 0x12, 0x41, 0x0a, 0x0d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, + 0x64, 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x74, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x46, 0x6c, 0x61, 0x67, 0x52, 0x0b, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x49, 0x64, 0x46, 0x6c, 0x61, 0x67, 0x12, 0x2b, 0x0a, 0x11, 0x76, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x42, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, + 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, + 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, + 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x78, 0x74, 0x65, 0x6e, + 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x65, 0x78, 0x74, 0x65, + 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x0a, 0x13, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, + 0x6f, 0x6e, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x12, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x69, 0x67, + 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0xb3, 0x02, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, + 0x73, 0x61, 0x6c, 0x12, 0x33, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x4d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6f, 0x6c, 0x5f, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x6f, 0x6c, 0x52, 0x6f, - 0x75, 0x6e, 0x64, 0x12, 0x46, 0x0a, 0x08, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, - 0x44, 0x42, 0x0f, 0xc8, 0xde, 0x1f, 0x00, 0xe2, 0xde, 0x1f, 0x07, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x49, 0x44, 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x64, 0x12, 0x42, 0x0a, 0x09, 0x74, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, - 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, - 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x74, 0x0a, - 0x0c, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x31, 0x0a, - 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, - 0x32, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x12, 0x31, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x06, 0x63, 0x6f, 0x6d, - 0x6d, 0x69, 0x74, 0x22, 0x98, 0x01, 0x0a, 0x0a, 0x4c, 0x69, 0x67, 0x68, 0x74, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x12, 0x44, 0x0a, 0x0d, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x68, 0x65, 0x61, - 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x6f, 0x6d, 0x65, - 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x69, - 0x67, 0x6e, 0x65, 0x64, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x0c, 0x73, 0x69, 0x67, 0x6e, - 0x65, 0x64, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x44, 0x0a, 0x0d, 0x76, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1f, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, - 0x52, 0x0c, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x22, 0xc4, - 0x01, 0x0a, 0x09, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x46, 0x0a, 0x08, - 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, - 0x76, 0x32, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x42, 0x0f, 0xc8, 0xde, 0x1f, 0x00, - 0xe2, 0xde, 0x1f, 0x07, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x52, 0x07, 0x62, 0x6c, 0x6f, - 0x63, 0x6b, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x73, 0x69, - 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x53, - 0x69, 0x7a, 0x65, 0x12, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x42, 0x04, - 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x17, 0x0a, 0x07, - 0x6e, 0x75, 0x6d, 0x5f, 0x74, 0x78, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6e, - 0x75, 0x6d, 0x54, 0x78, 0x73, 0x22, 0x6b, 0x0a, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x6f, 0x66, - 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f, 0x6f, 0x74, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x08, 0x72, 0x6f, 0x6f, 0x74, 0x48, 0x61, 0x73, 0x68, 0x12, 0x12, 0x0a, - 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, - 0x61, 0x12, 0x2f, 0x0a, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x63, 0x72, 0x79, 0x70, - 0x74, 0x6f, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x05, 0x70, 0x72, 0x6f, - 0x6f, 0x66, 0x2a, 0xd7, 0x01, 0x0a, 0x0d, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x4d, 0x73, 0x67, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x2c, 0x0a, 0x17, 0x53, 0x49, 0x47, 0x4e, 0x45, 0x44, 0x5f, 0x4d, - 0x53, 0x47, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, - 0x00, 0x1a, 0x0f, 0x8a, 0x9d, 0x20, 0x0b, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x2c, 0x0a, 0x17, 0x53, 0x49, 0x47, 0x4e, 0x45, 0x44, 0x5f, 0x4d, 0x53, 0x47, - 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x56, 0x4f, 0x54, 0x45, 0x10, 0x01, 0x1a, - 0x0f, 0x8a, 0x9d, 0x20, 0x0b, 0x50, 0x72, 0x65, 0x76, 0x6f, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, - 0x12, 0x30, 0x0a, 0x19, 0x53, 0x49, 0x47, 0x4e, 0x45, 0x44, 0x5f, 0x4d, 0x53, 0x47, 0x5f, 0x54, - 0x59, 0x50, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x43, 0x4f, 0x4d, 0x4d, 0x49, 0x54, 0x10, 0x02, 0x1a, - 0x11, 0x8a, 0x9d, 0x20, 0x0d, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x2e, 0x0a, 0x18, 0x53, 0x49, 0x47, 0x4e, 0x45, 0x44, 0x5f, 0x4d, 0x53, 0x47, - 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x50, 0x4f, 0x53, 0x41, 0x4c, 0x10, 0x20, - 0x1a, 0x10, 0x8a, 0x9d, 0x20, 0x0c, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x54, 0x79, - 0x70, 0x65, 0x1a, 0x08, 0x88, 0xa3, 0x1e, 0x00, 0xa8, 0xa4, 0x1e, 0x01, 0x42, 0xb5, 0x01, 0x0a, - 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, - 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x32, 0x3b, 0x74, 0x79, 0x70, 0x65, 0x73, 0x76, 0x32, - 0xa2, 0x02, 0x03, 0x43, 0x54, 0x58, 0xaa, 0x02, 0x11, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, - 0x74, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x11, 0x43, 0x6f, 0x6d, - 0x65, 0x74, 0x62, 0x66, 0x74, 0x5c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x56, 0x32, 0xe2, 0x02, - 0x1d, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x5c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, - 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, - 0x13, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x3a, 0x3a, 0x54, 0x79, 0x70, 0x65, 0x73, - 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x75, 0x6e, 0x64, 0x12, 0x45, 0x0a, 0x08, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, + 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, + 0x42, 0x0f, 0xc8, 0xde, 0x1f, 0x00, 0xe2, 0xde, 0x1f, 0x07, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, + 0x44, 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x64, 0x12, 0x42, 0x0a, 0x09, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, + 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x1c, + 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x72, 0x0a, 0x0c, + 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x30, 0x0a, 0x06, + 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x30, + 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, + 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x22, 0x96, 0x01, 0x0a, 0x0a, 0x4c, 0x69, 0x67, 0x68, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, + 0x43, 0x0a, 0x0d, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, + 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, + 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x0c, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x48, 0x65, + 0x61, 0x64, 0x65, 0x72, 0x12, 0x43, 0x0a, 0x0d, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, + 0x72, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x74, 0x65, + 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x52, 0x0c, 0x76, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x22, 0xc2, 0x01, 0x0a, 0x09, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x45, 0x0a, 0x08, 0x62, 0x6c, 0x6f, 0x63, 0x6b, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x74, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x49, 0x44, 0x42, 0x0f, 0xc8, 0xde, 0x1f, 0x00, 0xe2, 0xde, 0x1f, 0x07, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x64, 0x12, 0x1d, + 0x0a, 0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x36, 0x0a, + 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, + 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x68, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x75, 0x6d, 0x5f, 0x74, 0x78, 0x73, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x54, 0x78, 0x73, 0x22, 0x6a, + 0x0a, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f, 0x6f, + 0x74, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x72, 0x6f, + 0x6f, 0x74, 0x48, 0x61, 0x73, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2e, 0x0a, 0x05, 0x70, 0x72, + 0x6f, 0x6f, 0x66, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x50, 0x72, + 0x6f, 0x6f, 0x66, 0x52, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x2a, 0xd7, 0x01, 0x0a, 0x0d, 0x53, + 0x69, 0x67, 0x6e, 0x65, 0x64, 0x4d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2c, 0x0a, 0x17, + 0x53, 0x49, 0x47, 0x4e, 0x45, 0x44, 0x5f, 0x4d, 0x53, 0x47, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x1a, 0x0f, 0x8a, 0x9d, 0x20, 0x0b, 0x55, + 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2c, 0x0a, 0x17, 0x53, 0x49, + 0x47, 0x4e, 0x45, 0x44, 0x5f, 0x4d, 0x53, 0x47, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x52, + 0x45, 0x56, 0x4f, 0x54, 0x45, 0x10, 0x01, 0x1a, 0x0f, 0x8a, 0x9d, 0x20, 0x0b, 0x50, 0x72, 0x65, + 0x76, 0x6f, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x30, 0x0a, 0x19, 0x53, 0x49, 0x47, 0x4e, + 0x45, 0x44, 0x5f, 0x4d, 0x53, 0x47, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x43, + 0x4f, 0x4d, 0x4d, 0x49, 0x54, 0x10, 0x02, 0x1a, 0x11, 0x8a, 0x9d, 0x20, 0x0d, 0x50, 0x72, 0x65, + 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2e, 0x0a, 0x18, 0x53, 0x49, + 0x47, 0x4e, 0x45, 0x44, 0x5f, 0x4d, 0x53, 0x47, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x52, + 0x4f, 0x50, 0x4f, 0x53, 0x41, 0x4c, 0x10, 0x20, 0x1a, 0x10, 0x8a, 0x9d, 0x20, 0x0c, 0x50, 0x72, + 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x1a, 0x08, 0x88, 0xa3, 0x1e, 0x00, + 0xa8, 0xa4, 0x1e, 0x01, 0x42, 0xa6, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x74, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x42, 0x0a, 0x54, + 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x21, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x74, 0x65, + 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0xa2, 0x02, + 0x03, 0x54, 0x54, 0x58, 0xaa, 0x02, 0x10, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, + 0x74, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x73, 0xca, 0x02, 0x10, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x6d, 0x69, 0x6e, 0x74, 0x5c, 0x54, 0x79, 0x70, 0x65, 0x73, 0xe2, 0x02, 0x1c, 0x54, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x5c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x54, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x3a, 0x3a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_cometbft_types_v2_types_proto_rawDescOnce sync.Once - file_cometbft_types_v2_types_proto_rawDescData = file_cometbft_types_v2_types_proto_rawDesc + file_tendermint_types_types_proto_rawDescOnce sync.Once + file_tendermint_types_types_proto_rawDescData = file_tendermint_types_types_proto_rawDesc ) -func file_cometbft_types_v2_types_proto_rawDescGZIP() []byte { - file_cometbft_types_v2_types_proto_rawDescOnce.Do(func() { - file_cometbft_types_v2_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_cometbft_types_v2_types_proto_rawDescData) +func file_tendermint_types_types_proto_rawDescGZIP() []byte { + file_tendermint_types_types_proto_rawDescOnce.Do(func() { + file_tendermint_types_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_tendermint_types_types_proto_rawDescData) }) - return file_cometbft_types_v2_types_proto_rawDescData + return file_tendermint_types_types_proto_rawDescData } -var file_cometbft_types_v2_types_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_cometbft_types_v2_types_proto_msgTypes = make([]protoimpl.MessageInfo, 15) -var file_cometbft_types_v2_types_proto_goTypes = []interface{}{ - (SignedMsgType)(0), // 0: cometbft.types.v2.SignedMsgType - (*PartSetHeader)(nil), // 1: cometbft.types.v2.PartSetHeader - (*Part)(nil), // 2: cometbft.types.v2.Part - (*BlockID)(nil), // 3: cometbft.types.v2.BlockID - (*Header)(nil), // 4: cometbft.types.v2.Header - (*Data)(nil), // 5: cometbft.types.v2.Data - (*Vote)(nil), // 6: cometbft.types.v2.Vote - (*Commit)(nil), // 7: cometbft.types.v2.Commit - (*CommitSig)(nil), // 8: cometbft.types.v2.CommitSig - (*ExtendedCommit)(nil), // 9: cometbft.types.v2.ExtendedCommit - (*ExtendedCommitSig)(nil), // 10: cometbft.types.v2.ExtendedCommitSig - (*Proposal)(nil), // 11: cometbft.types.v2.Proposal - (*SignedHeader)(nil), // 12: cometbft.types.v2.SignedHeader - (*LightBlock)(nil), // 13: cometbft.types.v2.LightBlock - (*BlockMeta)(nil), // 14: cometbft.types.v2.BlockMeta - (*TxProof)(nil), // 15: cometbft.types.v2.TxProof - (*v1.Proof)(nil), // 16: cometbft.crypto.v1.Proof - (*v11.Consensus)(nil), // 17: cometbft.version.v1.Consensus +var file_tendermint_types_types_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_tendermint_types_types_proto_msgTypes = make([]protoimpl.MessageInfo, 15) +var file_tendermint_types_types_proto_goTypes = []interface{}{ + (SignedMsgType)(0), // 0: tendermint.types.SignedMsgType + (*PartSetHeader)(nil), // 1: tendermint.types.PartSetHeader + (*Part)(nil), // 2: tendermint.types.Part + (*BlockID)(nil), // 3: tendermint.types.BlockID + (*Header)(nil), // 4: tendermint.types.Header + (*Data)(nil), // 5: tendermint.types.Data + (*Vote)(nil), // 6: tendermint.types.Vote + (*Commit)(nil), // 7: tendermint.types.Commit + (*CommitSig)(nil), // 8: tendermint.types.CommitSig + (*ExtendedCommit)(nil), // 9: tendermint.types.ExtendedCommit + (*ExtendedCommitSig)(nil), // 10: tendermint.types.ExtendedCommitSig + (*Proposal)(nil), // 11: tendermint.types.Proposal + (*SignedHeader)(nil), // 12: tendermint.types.SignedHeader + (*LightBlock)(nil), // 13: tendermint.types.LightBlock + (*BlockMeta)(nil), // 14: tendermint.types.BlockMeta + (*TxProof)(nil), // 15: tendermint.types.TxProof + (*crypto.Proof)(nil), // 16: tendermint.crypto.Proof + (*version.Consensus)(nil), // 17: tendermint.version.Consensus (*timestamppb.Timestamp)(nil), // 18: google.protobuf.Timestamp - (BlockIDFlag)(0), // 19: cometbft.types.v2.BlockIDFlag - (*ValidatorSet)(nil), // 20: cometbft.types.v2.ValidatorSet + (BlockIDFlag)(0), // 19: tendermint.types.BlockIDFlag + (*ValidatorSet)(nil), // 20: tendermint.types.ValidatorSet } -var file_cometbft_types_v2_types_proto_depIdxs = []int32{ - 16, // 0: cometbft.types.v2.Part.proof:type_name -> cometbft.crypto.v1.Proof - 1, // 1: cometbft.types.v2.BlockID.part_set_header:type_name -> cometbft.types.v2.PartSetHeader - 17, // 2: cometbft.types.v2.Header.version:type_name -> cometbft.version.v1.Consensus - 18, // 3: cometbft.types.v2.Header.time:type_name -> google.protobuf.Timestamp - 3, // 4: cometbft.types.v2.Header.last_block_id:type_name -> cometbft.types.v2.BlockID - 0, // 5: cometbft.types.v2.Vote.type:type_name -> cometbft.types.v2.SignedMsgType - 3, // 6: cometbft.types.v2.Vote.block_id:type_name -> cometbft.types.v2.BlockID - 18, // 7: cometbft.types.v2.Vote.timestamp:type_name -> google.protobuf.Timestamp - 3, // 8: cometbft.types.v2.Commit.block_id:type_name -> cometbft.types.v2.BlockID - 8, // 9: cometbft.types.v2.Commit.signatures:type_name -> cometbft.types.v2.CommitSig - 19, // 10: cometbft.types.v2.CommitSig.block_id_flag:type_name -> cometbft.types.v2.BlockIDFlag - 18, // 11: cometbft.types.v2.CommitSig.timestamp:type_name -> google.protobuf.Timestamp - 3, // 12: cometbft.types.v2.ExtendedCommit.block_id:type_name -> cometbft.types.v2.BlockID - 10, // 13: cometbft.types.v2.ExtendedCommit.extended_signatures:type_name -> cometbft.types.v2.ExtendedCommitSig - 19, // 14: cometbft.types.v2.ExtendedCommitSig.block_id_flag:type_name -> cometbft.types.v2.BlockIDFlag - 18, // 15: cometbft.types.v2.ExtendedCommitSig.timestamp:type_name -> google.protobuf.Timestamp - 0, // 16: cometbft.types.v2.Proposal.type:type_name -> cometbft.types.v2.SignedMsgType - 3, // 17: cometbft.types.v2.Proposal.block_id:type_name -> cometbft.types.v2.BlockID - 18, // 18: cometbft.types.v2.Proposal.timestamp:type_name -> google.protobuf.Timestamp - 4, // 19: cometbft.types.v2.SignedHeader.header:type_name -> cometbft.types.v2.Header - 7, // 20: cometbft.types.v2.SignedHeader.commit:type_name -> cometbft.types.v2.Commit - 12, // 21: cometbft.types.v2.LightBlock.signed_header:type_name -> cometbft.types.v2.SignedHeader - 20, // 22: cometbft.types.v2.LightBlock.validator_set:type_name -> cometbft.types.v2.ValidatorSet - 3, // 23: cometbft.types.v2.BlockMeta.block_id:type_name -> cometbft.types.v2.BlockID - 4, // 24: cometbft.types.v2.BlockMeta.header:type_name -> cometbft.types.v2.Header - 16, // 25: cometbft.types.v2.TxProof.proof:type_name -> cometbft.crypto.v1.Proof +var file_tendermint_types_types_proto_depIdxs = []int32{ + 16, // 0: tendermint.types.Part.proof:type_name -> tendermint.crypto.Proof + 1, // 1: tendermint.types.BlockID.part_set_header:type_name -> tendermint.types.PartSetHeader + 17, // 2: tendermint.types.Header.version:type_name -> tendermint.version.Consensus + 18, // 3: tendermint.types.Header.time:type_name -> google.protobuf.Timestamp + 3, // 4: tendermint.types.Header.last_block_id:type_name -> tendermint.types.BlockID + 0, // 5: tendermint.types.Vote.type:type_name -> tendermint.types.SignedMsgType + 3, // 6: tendermint.types.Vote.block_id:type_name -> tendermint.types.BlockID + 18, // 7: tendermint.types.Vote.timestamp:type_name -> google.protobuf.Timestamp + 3, // 8: tendermint.types.Commit.block_id:type_name -> tendermint.types.BlockID + 8, // 9: tendermint.types.Commit.signatures:type_name -> tendermint.types.CommitSig + 19, // 10: tendermint.types.CommitSig.block_id_flag:type_name -> tendermint.types.BlockIDFlag + 18, // 11: tendermint.types.CommitSig.timestamp:type_name -> google.protobuf.Timestamp + 3, // 12: tendermint.types.ExtendedCommit.block_id:type_name -> tendermint.types.BlockID + 10, // 13: tendermint.types.ExtendedCommit.extended_signatures:type_name -> tendermint.types.ExtendedCommitSig + 19, // 14: tendermint.types.ExtendedCommitSig.block_id_flag:type_name -> tendermint.types.BlockIDFlag + 18, // 15: tendermint.types.ExtendedCommitSig.timestamp:type_name -> google.protobuf.Timestamp + 0, // 16: tendermint.types.Proposal.type:type_name -> tendermint.types.SignedMsgType + 3, // 17: tendermint.types.Proposal.block_id:type_name -> tendermint.types.BlockID + 18, // 18: tendermint.types.Proposal.timestamp:type_name -> google.protobuf.Timestamp + 4, // 19: tendermint.types.SignedHeader.header:type_name -> tendermint.types.Header + 7, // 20: tendermint.types.SignedHeader.commit:type_name -> tendermint.types.Commit + 12, // 21: tendermint.types.LightBlock.signed_header:type_name -> tendermint.types.SignedHeader + 20, // 22: tendermint.types.LightBlock.validator_set:type_name -> tendermint.types.ValidatorSet + 3, // 23: tendermint.types.BlockMeta.block_id:type_name -> tendermint.types.BlockID + 4, // 24: tendermint.types.BlockMeta.header:type_name -> tendermint.types.Header + 16, // 25: tendermint.types.TxProof.proof:type_name -> tendermint.crypto.Proof 26, // [26:26] is the sub-list for method output_type 26, // [26:26] is the sub-list for method input_type 26, // [26:26] is the sub-list for extension type_name @@ -11653,14 +11322,14 @@ var file_cometbft_types_v2_types_proto_depIdxs = []int32{ 0, // [0:26] is the sub-list for field type_name } -func init() { file_cometbft_types_v2_types_proto_init() } -func file_cometbft_types_v2_types_proto_init() { - if File_cometbft_types_v2_types_proto != nil { +func init() { file_tendermint_types_types_proto_init() } +func file_tendermint_types_types_proto_init() { + if File_tendermint_types_types_proto != nil { return } - file_cometbft_types_v2_validator_proto_init() + file_tendermint_types_validator_proto_init() if !protoimpl.UnsafeEnabled { - file_cometbft_types_v2_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_types_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*PartSetHeader); i { case 0: return &v.state @@ -11672,7 +11341,7 @@ func file_cometbft_types_v2_types_proto_init() { return nil } } - file_cometbft_types_v2_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_types_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Part); i { case 0: return &v.state @@ -11684,7 +11353,7 @@ func file_cometbft_types_v2_types_proto_init() { return nil } } - file_cometbft_types_v2_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_types_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*BlockID); i { case 0: return &v.state @@ -11696,7 +11365,7 @@ func file_cometbft_types_v2_types_proto_init() { return nil } } - file_cometbft_types_v2_types_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_types_types_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Header); i { case 0: return &v.state @@ -11708,7 +11377,7 @@ func file_cometbft_types_v2_types_proto_init() { return nil } } - file_cometbft_types_v2_types_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_types_types_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Data); i { case 0: return &v.state @@ -11720,7 +11389,7 @@ func file_cometbft_types_v2_types_proto_init() { return nil } } - file_cometbft_types_v2_types_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_types_types_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Vote); i { case 0: return &v.state @@ -11732,7 +11401,7 @@ func file_cometbft_types_v2_types_proto_init() { return nil } } - file_cometbft_types_v2_types_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_types_types_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Commit); i { case 0: return &v.state @@ -11744,7 +11413,7 @@ func file_cometbft_types_v2_types_proto_init() { return nil } } - file_cometbft_types_v2_types_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_types_types_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CommitSig); i { case 0: return &v.state @@ -11756,7 +11425,7 @@ func file_cometbft_types_v2_types_proto_init() { return nil } } - file_cometbft_types_v2_types_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_types_types_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ExtendedCommit); i { case 0: return &v.state @@ -11768,7 +11437,7 @@ func file_cometbft_types_v2_types_proto_init() { return nil } } - file_cometbft_types_v2_types_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_types_types_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ExtendedCommitSig); i { case 0: return &v.state @@ -11780,7 +11449,7 @@ func file_cometbft_types_v2_types_proto_init() { return nil } } - file_cometbft_types_v2_types_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_types_types_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Proposal); i { case 0: return &v.state @@ -11792,7 +11461,7 @@ func file_cometbft_types_v2_types_proto_init() { return nil } } - file_cometbft_types_v2_types_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_types_types_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SignedHeader); i { case 0: return &v.state @@ -11804,7 +11473,7 @@ func file_cometbft_types_v2_types_proto_init() { return nil } } - file_cometbft_types_v2_types_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_types_types_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LightBlock); i { case 0: return &v.state @@ -11816,7 +11485,7 @@ func file_cometbft_types_v2_types_proto_init() { return nil } } - file_cometbft_types_v2_types_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_types_types_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*BlockMeta); i { case 0: return &v.state @@ -11828,7 +11497,7 @@ func file_cometbft_types_v2_types_proto_init() { return nil } } - file_cometbft_types_v2_types_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_types_types_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TxProof); i { case 0: return &v.state @@ -11845,19 +11514,19 @@ func file_cometbft_types_v2_types_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cometbft_types_v2_types_proto_rawDesc, + RawDescriptor: file_tendermint_types_types_proto_rawDesc, NumEnums: 1, NumMessages: 15, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_cometbft_types_v2_types_proto_goTypes, - DependencyIndexes: file_cometbft_types_v2_types_proto_depIdxs, - EnumInfos: file_cometbft_types_v2_types_proto_enumTypes, - MessageInfos: file_cometbft_types_v2_types_proto_msgTypes, + GoTypes: file_tendermint_types_types_proto_goTypes, + DependencyIndexes: file_tendermint_types_types_proto_depIdxs, + EnumInfos: file_tendermint_types_types_proto_enumTypes, + MessageInfos: file_tendermint_types_types_proto_msgTypes, }.Build() - File_cometbft_types_v2_types_proto = out.File - file_cometbft_types_v2_types_proto_rawDesc = nil - file_cometbft_types_v2_types_proto_goTypes = nil - file_cometbft_types_v2_types_proto_depIdxs = nil + File_tendermint_types_types_proto = out.File + file_tendermint_types_types_proto_rawDesc = nil + file_tendermint_types_types_proto_goTypes = nil + file_tendermint_types_types_proto_depIdxs = nil } diff --git a/api/cometbft/types/v2/validator.pulsar.go b/api/tendermint/types/validator.pulsar.go similarity index 72% rename from api/cometbft/types/v2/validator.pulsar.go rename to api/tendermint/types/validator.pulsar.go index 4434551844..dda68d7e19 100644 --- a/api/cometbft/types/v2/validator.pulsar.go +++ b/api/tendermint/types/validator.pulsar.go @@ -1,8 +1,8 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package typesv2 +package types import ( - v1 "cosmossdk.io/api/cometbft/crypto/v1" + crypto "cosmossdk.io/api/tendermint/crypto" fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" @@ -73,8 +73,8 @@ var ( ) func init() { - file_cometbft_types_v2_validator_proto_init() - md_ValidatorSet = File_cometbft_types_v2_validator_proto.Messages().ByName("ValidatorSet") + file_tendermint_types_validator_proto_init() + md_ValidatorSet = File_tendermint_types_validator_proto.Messages().ByName("ValidatorSet") fd_ValidatorSet_validators = md_ValidatorSet.Fields().ByName("validators") fd_ValidatorSet_proposer = md_ValidatorSet.Fields().ByName("proposer") fd_ValidatorSet_total_voting_power = md_ValidatorSet.Fields().ByName("total_voting_power") @@ -89,7 +89,7 @@ func (x *ValidatorSet) ProtoReflect() protoreflect.Message { } func (x *ValidatorSet) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_validator_proto_msgTypes[0] + mi := &file_tendermint_types_validator_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -178,17 +178,17 @@ func (x *fastReflection_ValidatorSet) Range(f func(protoreflect.FieldDescriptor, // a repeated field is populated if it is non-empty. func (x *fastReflection_ValidatorSet) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.types.v2.ValidatorSet.validators": + case "tendermint.types.ValidatorSet.validators": return len(x.Validators) != 0 - case "cometbft.types.v2.ValidatorSet.proposer": + case "tendermint.types.ValidatorSet.proposer": return x.Proposer != nil - case "cometbft.types.v2.ValidatorSet.total_voting_power": + case "tendermint.types.ValidatorSet.total_voting_power": return x.TotalVotingPower != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ValidatorSet")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ValidatorSet")) } - panic(fmt.Errorf("message cometbft.types.v2.ValidatorSet does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.ValidatorSet does not contain field %s", fd.FullName())) } } @@ -200,17 +200,17 @@ func (x *fastReflection_ValidatorSet) Has(fd protoreflect.FieldDescriptor) bool // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ValidatorSet) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.types.v2.ValidatorSet.validators": + case "tendermint.types.ValidatorSet.validators": x.Validators = nil - case "cometbft.types.v2.ValidatorSet.proposer": + case "tendermint.types.ValidatorSet.proposer": x.Proposer = nil - case "cometbft.types.v2.ValidatorSet.total_voting_power": + case "tendermint.types.ValidatorSet.total_voting_power": x.TotalVotingPower = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ValidatorSet")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ValidatorSet")) } - panic(fmt.Errorf("message cometbft.types.v2.ValidatorSet does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.ValidatorSet does not contain field %s", fd.FullName())) } } @@ -222,23 +222,23 @@ func (x *fastReflection_ValidatorSet) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_ValidatorSet) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.types.v2.ValidatorSet.validators": + case "tendermint.types.ValidatorSet.validators": if len(x.Validators) == 0 { return protoreflect.ValueOfList(&_ValidatorSet_1_list{}) } listValue := &_ValidatorSet_1_list{list: &x.Validators} return protoreflect.ValueOfList(listValue) - case "cometbft.types.v2.ValidatorSet.proposer": + case "tendermint.types.ValidatorSet.proposer": value := x.Proposer return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.ValidatorSet.total_voting_power": + case "tendermint.types.ValidatorSet.total_voting_power": value := x.TotalVotingPower return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ValidatorSet")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ValidatorSet")) } - panic(fmt.Errorf("message cometbft.types.v2.ValidatorSet does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.types.ValidatorSet does not contain field %s", descriptor.FullName())) } } @@ -254,19 +254,19 @@ func (x *fastReflection_ValidatorSet) Get(descriptor protoreflect.FieldDescripto // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ValidatorSet) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.types.v2.ValidatorSet.validators": + case "tendermint.types.ValidatorSet.validators": lv := value.List() clv := lv.(*_ValidatorSet_1_list) x.Validators = *clv.list - case "cometbft.types.v2.ValidatorSet.proposer": + case "tendermint.types.ValidatorSet.proposer": x.Proposer = value.Message().Interface().(*Validator) - case "cometbft.types.v2.ValidatorSet.total_voting_power": + case "tendermint.types.ValidatorSet.total_voting_power": x.TotalVotingPower = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ValidatorSet")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ValidatorSet")) } - panic(fmt.Errorf("message cometbft.types.v2.ValidatorSet does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.ValidatorSet does not contain field %s", fd.FullName())) } } @@ -282,24 +282,24 @@ func (x *fastReflection_ValidatorSet) Set(fd protoreflect.FieldDescriptor, value // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ValidatorSet) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.ValidatorSet.validators": + case "tendermint.types.ValidatorSet.validators": if x.Validators == nil { x.Validators = []*Validator{} } value := &_ValidatorSet_1_list{list: &x.Validators} return protoreflect.ValueOfList(value) - case "cometbft.types.v2.ValidatorSet.proposer": + case "tendermint.types.ValidatorSet.proposer": if x.Proposer == nil { x.Proposer = new(Validator) } return protoreflect.ValueOfMessage(x.Proposer.ProtoReflect()) - case "cometbft.types.v2.ValidatorSet.total_voting_power": - panic(fmt.Errorf("field total_voting_power of message cometbft.types.v2.ValidatorSet is not mutable")) + case "tendermint.types.ValidatorSet.total_voting_power": + panic(fmt.Errorf("field total_voting_power of message tendermint.types.ValidatorSet is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ValidatorSet")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ValidatorSet")) } - panic(fmt.Errorf("message cometbft.types.v2.ValidatorSet does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.ValidatorSet does not contain field %s", fd.FullName())) } } @@ -308,19 +308,19 @@ func (x *fastReflection_ValidatorSet) Mutable(fd protoreflect.FieldDescriptor) p // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_ValidatorSet) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.ValidatorSet.validators": + case "tendermint.types.ValidatorSet.validators": list := []*Validator{} return protoreflect.ValueOfList(&_ValidatorSet_1_list{list: &list}) - case "cometbft.types.v2.ValidatorSet.proposer": + case "tendermint.types.ValidatorSet.proposer": m := new(Validator) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.ValidatorSet.total_voting_power": + case "tendermint.types.ValidatorSet.total_voting_power": return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ValidatorSet")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.ValidatorSet")) } - panic(fmt.Errorf("message cometbft.types.v2.ValidatorSet does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.ValidatorSet does not contain field %s", fd.FullName())) } } @@ -330,7 +330,7 @@ func (x *fastReflection_ValidatorSet) NewField(fd protoreflect.FieldDescriptor) func (x *fastReflection_ValidatorSet) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.ValidatorSet", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.types.ValidatorSet", d.FullName())) } panic("unreachable") } @@ -641,19 +641,15 @@ var ( fd_Validator_pub_key protoreflect.FieldDescriptor fd_Validator_voting_power protoreflect.FieldDescriptor fd_Validator_proposer_priority protoreflect.FieldDescriptor - fd_Validator_pub_key_bytes protoreflect.FieldDescriptor - fd_Validator_pub_key_type protoreflect.FieldDescriptor ) func init() { - file_cometbft_types_v2_validator_proto_init() - md_Validator = File_cometbft_types_v2_validator_proto.Messages().ByName("Validator") + file_tendermint_types_validator_proto_init() + md_Validator = File_tendermint_types_validator_proto.Messages().ByName("Validator") fd_Validator_address = md_Validator.Fields().ByName("address") fd_Validator_pub_key = md_Validator.Fields().ByName("pub_key") fd_Validator_voting_power = md_Validator.Fields().ByName("voting_power") fd_Validator_proposer_priority = md_Validator.Fields().ByName("proposer_priority") - fd_Validator_pub_key_bytes = md_Validator.Fields().ByName("pub_key_bytes") - fd_Validator_pub_key_type = md_Validator.Fields().ByName("pub_key_type") } var _ protoreflect.Message = (*fastReflection_Validator)(nil) @@ -665,7 +661,7 @@ func (x *Validator) ProtoReflect() protoreflect.Message { } func (x *Validator) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_validator_proto_msgTypes[1] + mi := &file_tendermint_types_validator_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -745,18 +741,6 @@ func (x *fastReflection_Validator) Range(f func(protoreflect.FieldDescriptor, pr return } } - if len(x.PubKeyBytes) != 0 { - value := protoreflect.ValueOfBytes(x.PubKeyBytes) - if !f(fd_Validator_pub_key_bytes, value) { - return - } - } - if x.PubKeyType != "" { - value := protoreflect.ValueOfString(x.PubKeyType) - if !f(fd_Validator_pub_key_type, value) { - return - } - } } // Has reports whether a field is populated. @@ -772,23 +756,19 @@ func (x *fastReflection_Validator) Range(f func(protoreflect.FieldDescriptor, pr // a repeated field is populated if it is non-empty. func (x *fastReflection_Validator) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.types.v2.Validator.address": + case "tendermint.types.Validator.address": return len(x.Address) != 0 - case "cometbft.types.v2.Validator.pub_key": + case "tendermint.types.Validator.pub_key": return x.PubKey != nil - case "cometbft.types.v2.Validator.voting_power": + case "tendermint.types.Validator.voting_power": return x.VotingPower != int64(0) - case "cometbft.types.v2.Validator.proposer_priority": + case "tendermint.types.Validator.proposer_priority": return x.ProposerPriority != int64(0) - case "cometbft.types.v2.Validator.pub_key_bytes": - return len(x.PubKeyBytes) != 0 - case "cometbft.types.v2.Validator.pub_key_type": - return x.PubKeyType != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Validator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Validator")) } - panic(fmt.Errorf("message cometbft.types.v2.Validator does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Validator does not contain field %s", fd.FullName())) } } @@ -800,23 +780,19 @@ func (x *fastReflection_Validator) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Validator) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.types.v2.Validator.address": + case "tendermint.types.Validator.address": x.Address = nil - case "cometbft.types.v2.Validator.pub_key": + case "tendermint.types.Validator.pub_key": x.PubKey = nil - case "cometbft.types.v2.Validator.voting_power": + case "tendermint.types.Validator.voting_power": x.VotingPower = int64(0) - case "cometbft.types.v2.Validator.proposer_priority": + case "tendermint.types.Validator.proposer_priority": x.ProposerPriority = int64(0) - case "cometbft.types.v2.Validator.pub_key_bytes": - x.PubKeyBytes = nil - case "cometbft.types.v2.Validator.pub_key_type": - x.PubKeyType = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Validator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Validator")) } - panic(fmt.Errorf("message cometbft.types.v2.Validator does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Validator does not contain field %s", fd.FullName())) } } @@ -828,29 +804,23 @@ func (x *fastReflection_Validator) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Validator) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.types.v2.Validator.address": + case "tendermint.types.Validator.address": value := x.Address return protoreflect.ValueOfBytes(value) - case "cometbft.types.v2.Validator.pub_key": + case "tendermint.types.Validator.pub_key": value := x.PubKey return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.Validator.voting_power": + case "tendermint.types.Validator.voting_power": value := x.VotingPower return protoreflect.ValueOfInt64(value) - case "cometbft.types.v2.Validator.proposer_priority": + case "tendermint.types.Validator.proposer_priority": value := x.ProposerPriority return protoreflect.ValueOfInt64(value) - case "cometbft.types.v2.Validator.pub_key_bytes": - value := x.PubKeyBytes - return protoreflect.ValueOfBytes(value) - case "cometbft.types.v2.Validator.pub_key_type": - value := x.PubKeyType - return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Validator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Validator")) } - panic(fmt.Errorf("message cometbft.types.v2.Validator does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.types.Validator does not contain field %s", descriptor.FullName())) } } @@ -866,23 +836,19 @@ func (x *fastReflection_Validator) Get(descriptor protoreflect.FieldDescriptor) // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Validator) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.types.v2.Validator.address": + case "tendermint.types.Validator.address": x.Address = value.Bytes() - case "cometbft.types.v2.Validator.pub_key": - x.PubKey = value.Message().Interface().(*v1.PublicKey) - case "cometbft.types.v2.Validator.voting_power": + case "tendermint.types.Validator.pub_key": + x.PubKey = value.Message().Interface().(*crypto.PublicKey) + case "tendermint.types.Validator.voting_power": x.VotingPower = value.Int() - case "cometbft.types.v2.Validator.proposer_priority": + case "tendermint.types.Validator.proposer_priority": x.ProposerPriority = value.Int() - case "cometbft.types.v2.Validator.pub_key_bytes": - x.PubKeyBytes = value.Bytes() - case "cometbft.types.v2.Validator.pub_key_type": - x.PubKeyType = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Validator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Validator")) } - panic(fmt.Errorf("message cometbft.types.v2.Validator does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Validator does not contain field %s", fd.FullName())) } } @@ -898,26 +864,22 @@ func (x *fastReflection_Validator) Set(fd protoreflect.FieldDescriptor, value pr // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Validator) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.Validator.pub_key": + case "tendermint.types.Validator.pub_key": if x.PubKey == nil { - x.PubKey = new(v1.PublicKey) + x.PubKey = new(crypto.PublicKey) } return protoreflect.ValueOfMessage(x.PubKey.ProtoReflect()) - case "cometbft.types.v2.Validator.address": - panic(fmt.Errorf("field address of message cometbft.types.v2.Validator is not mutable")) - case "cometbft.types.v2.Validator.voting_power": - panic(fmt.Errorf("field voting_power of message cometbft.types.v2.Validator is not mutable")) - case "cometbft.types.v2.Validator.proposer_priority": - panic(fmt.Errorf("field proposer_priority of message cometbft.types.v2.Validator is not mutable")) - case "cometbft.types.v2.Validator.pub_key_bytes": - panic(fmt.Errorf("field pub_key_bytes of message cometbft.types.v2.Validator is not mutable")) - case "cometbft.types.v2.Validator.pub_key_type": - panic(fmt.Errorf("field pub_key_type of message cometbft.types.v2.Validator is not mutable")) + case "tendermint.types.Validator.address": + panic(fmt.Errorf("field address of message tendermint.types.Validator is not mutable")) + case "tendermint.types.Validator.voting_power": + panic(fmt.Errorf("field voting_power of message tendermint.types.Validator is not mutable")) + case "tendermint.types.Validator.proposer_priority": + panic(fmt.Errorf("field proposer_priority of message tendermint.types.Validator is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Validator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Validator")) } - panic(fmt.Errorf("message cometbft.types.v2.Validator does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Validator does not contain field %s", fd.FullName())) } } @@ -926,24 +888,20 @@ func (x *fastReflection_Validator) Mutable(fd protoreflect.FieldDescriptor) prot // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Validator) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.Validator.address": + case "tendermint.types.Validator.address": return protoreflect.ValueOfBytes(nil) - case "cometbft.types.v2.Validator.pub_key": - m := new(v1.PublicKey) + case "tendermint.types.Validator.pub_key": + m := new(crypto.PublicKey) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.Validator.voting_power": + case "tendermint.types.Validator.voting_power": return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.types.v2.Validator.proposer_priority": + case "tendermint.types.Validator.proposer_priority": return protoreflect.ValueOfInt64(int64(0)) - case "cometbft.types.v2.Validator.pub_key_bytes": - return protoreflect.ValueOfBytes(nil) - case "cometbft.types.v2.Validator.pub_key_type": - return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Validator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.Validator")) } - panic(fmt.Errorf("message cometbft.types.v2.Validator does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.Validator does not contain field %s", fd.FullName())) } } @@ -953,7 +911,7 @@ func (x *fastReflection_Validator) NewField(fd protoreflect.FieldDescriptor) pro func (x *fastReflection_Validator) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.Validator", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.types.Validator", d.FullName())) } panic("unreachable") } @@ -1022,14 +980,6 @@ func (x *fastReflection_Validator) ProtoMethods() *protoiface.Methods { if x.ProposerPriority != 0 { n += 1 + runtime.Sov(uint64(x.ProposerPriority)) } - l = len(x.PubKeyBytes) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.PubKeyType) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -1059,20 +1009,6 @@ func (x *fastReflection_Validator) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.PubKeyType) > 0 { - i -= len(x.PubKeyType) - copy(dAtA[i:], x.PubKeyType) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PubKeyType))) - i-- - dAtA[i] = 0x32 - } - if len(x.PubKeyBytes) > 0 { - i -= len(x.PubKeyBytes) - copy(dAtA[i:], x.PubKeyBytes) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PubKeyBytes))) - i-- - dAtA[i] = 0x2a - } if x.ProposerPriority != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.ProposerPriority)) i-- @@ -1217,7 +1153,7 @@ func (x *fastReflection_Validator) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.PubKey == nil { - x.PubKey = &v1.PublicKey{} + x.PubKey = &crypto.PublicKey{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PubKey); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -1261,72 +1197,6 @@ func (x *fastReflection_Validator) ProtoMethods() *protoiface.Methods { break } } - case 5: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PubKeyBytes", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.PubKeyBytes = append(x.PubKeyBytes[:0], dAtA[iNdEx:postIndex]...) - if x.PubKeyBytes == nil { - x.PubKeyBytes = []byte{} - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PubKeyType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.PubKeyType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -1369,8 +1239,8 @@ var ( ) func init() { - file_cometbft_types_v2_validator_proto_init() - md_SimpleValidator = File_cometbft_types_v2_validator_proto.Messages().ByName("SimpleValidator") + file_tendermint_types_validator_proto_init() + md_SimpleValidator = File_tendermint_types_validator_proto.Messages().ByName("SimpleValidator") fd_SimpleValidator_pub_key = md_SimpleValidator.Fields().ByName("pub_key") fd_SimpleValidator_voting_power = md_SimpleValidator.Fields().ByName("voting_power") } @@ -1384,7 +1254,7 @@ func (x *SimpleValidator) ProtoReflect() protoreflect.Message { } func (x *SimpleValidator) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_types_v2_validator_proto_msgTypes[2] + mi := &file_tendermint_types_validator_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1467,15 +1337,15 @@ func (x *fastReflection_SimpleValidator) Range(f func(protoreflect.FieldDescript // a repeated field is populated if it is non-empty. func (x *fastReflection_SimpleValidator) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.types.v2.SimpleValidator.pub_key": + case "tendermint.types.SimpleValidator.pub_key": return x.PubKey != nil - case "cometbft.types.v2.SimpleValidator.voting_power": + case "tendermint.types.SimpleValidator.voting_power": return x.VotingPower != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.SimpleValidator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.SimpleValidator")) } - panic(fmt.Errorf("message cometbft.types.v2.SimpleValidator does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.SimpleValidator does not contain field %s", fd.FullName())) } } @@ -1487,15 +1357,15 @@ func (x *fastReflection_SimpleValidator) Has(fd protoreflect.FieldDescriptor) bo // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_SimpleValidator) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.types.v2.SimpleValidator.pub_key": + case "tendermint.types.SimpleValidator.pub_key": x.PubKey = nil - case "cometbft.types.v2.SimpleValidator.voting_power": + case "tendermint.types.SimpleValidator.voting_power": x.VotingPower = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.SimpleValidator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.SimpleValidator")) } - panic(fmt.Errorf("message cometbft.types.v2.SimpleValidator does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.SimpleValidator does not contain field %s", fd.FullName())) } } @@ -1507,17 +1377,17 @@ func (x *fastReflection_SimpleValidator) Clear(fd protoreflect.FieldDescriptor) // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_SimpleValidator) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.types.v2.SimpleValidator.pub_key": + case "tendermint.types.SimpleValidator.pub_key": value := x.PubKey return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cometbft.types.v2.SimpleValidator.voting_power": + case "tendermint.types.SimpleValidator.voting_power": value := x.VotingPower return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.SimpleValidator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.SimpleValidator")) } - panic(fmt.Errorf("message cometbft.types.v2.SimpleValidator does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.types.SimpleValidator does not contain field %s", descriptor.FullName())) } } @@ -1533,15 +1403,15 @@ func (x *fastReflection_SimpleValidator) Get(descriptor protoreflect.FieldDescri // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_SimpleValidator) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.types.v2.SimpleValidator.pub_key": - x.PubKey = value.Message().Interface().(*v1.PublicKey) - case "cometbft.types.v2.SimpleValidator.voting_power": + case "tendermint.types.SimpleValidator.pub_key": + x.PubKey = value.Message().Interface().(*crypto.PublicKey) + case "tendermint.types.SimpleValidator.voting_power": x.VotingPower = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.SimpleValidator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.SimpleValidator")) } - panic(fmt.Errorf("message cometbft.types.v2.SimpleValidator does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.SimpleValidator does not contain field %s", fd.FullName())) } } @@ -1557,18 +1427,18 @@ func (x *fastReflection_SimpleValidator) Set(fd protoreflect.FieldDescriptor, va // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_SimpleValidator) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.SimpleValidator.pub_key": + case "tendermint.types.SimpleValidator.pub_key": if x.PubKey == nil { - x.PubKey = new(v1.PublicKey) + x.PubKey = new(crypto.PublicKey) } return protoreflect.ValueOfMessage(x.PubKey.ProtoReflect()) - case "cometbft.types.v2.SimpleValidator.voting_power": - panic(fmt.Errorf("field voting_power of message cometbft.types.v2.SimpleValidator is not mutable")) + case "tendermint.types.SimpleValidator.voting_power": + panic(fmt.Errorf("field voting_power of message tendermint.types.SimpleValidator is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.SimpleValidator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.SimpleValidator")) } - panic(fmt.Errorf("message cometbft.types.v2.SimpleValidator does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.SimpleValidator does not contain field %s", fd.FullName())) } } @@ -1577,16 +1447,16 @@ func (x *fastReflection_SimpleValidator) Mutable(fd protoreflect.FieldDescriptor // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_SimpleValidator) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.types.v2.SimpleValidator.pub_key": - m := new(v1.PublicKey) + case "tendermint.types.SimpleValidator.pub_key": + m := new(crypto.PublicKey) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cometbft.types.v2.SimpleValidator.voting_power": + case "tendermint.types.SimpleValidator.voting_power": return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.SimpleValidator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.types.SimpleValidator")) } - panic(fmt.Errorf("message cometbft.types.v2.SimpleValidator does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.types.SimpleValidator does not contain field %s", fd.FullName())) } } @@ -1596,7 +1466,7 @@ func (x *fastReflection_SimpleValidator) NewField(fd protoreflect.FieldDescripto func (x *fastReflection_SimpleValidator) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.SimpleValidator", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.types.SimpleValidator", d.FullName())) } panic("unreachable") } @@ -1785,7 +1655,7 @@ func (x *fastReflection_SimpleValidator) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.PubKey == nil { - x.PubKey = &v1.PublicKey{} + x.PubKey = &crypto.PublicKey{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PubKey); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -1849,7 +1719,7 @@ func (x *fastReflection_SimpleValidator) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: cometbft/types/v2/validator.proto +// source: tendermint/types/validator.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -1862,14 +1732,10 @@ const ( type BlockIDFlag int32 const ( - // Indicates an error condition - BlockIDFlag_BLOCK_ID_FLAG_UNKNOWN BlockIDFlag = 0 - // The vote was not received - BlockIDFlag_BLOCK_ID_FLAG_ABSENT BlockIDFlag = 1 - // Voted for the block that received the majority - BlockIDFlag_BLOCK_ID_FLAG_COMMIT BlockIDFlag = 2 - // Voted for nil - BlockIDFlag_BLOCK_ID_FLAG_NIL BlockIDFlag = 3 + BlockIDFlag_BLOCK_ID_FLAG_UNKNOWN BlockIDFlag = 0 // indicates an error condition + BlockIDFlag_BLOCK_ID_FLAG_ABSENT BlockIDFlag = 1 // the vote was not received + BlockIDFlag_BLOCK_ID_FLAG_COMMIT BlockIDFlag = 2 // voted for the block that received the majority + BlockIDFlag_BLOCK_ID_FLAG_NIL BlockIDFlag = 3 // voted for nil ) // Enum value maps for BlockIDFlag. @@ -1899,11 +1765,11 @@ func (x BlockIDFlag) String() string { } func (BlockIDFlag) Descriptor() protoreflect.EnumDescriptor { - return file_cometbft_types_v2_validator_proto_enumTypes[0].Descriptor() + return file_tendermint_types_validator_proto_enumTypes[0].Descriptor() } func (BlockIDFlag) Type() protoreflect.EnumType { - return &file_cometbft_types_v2_validator_proto_enumTypes[0] + return &file_tendermint_types_validator_proto_enumTypes[0] } func (x BlockIDFlag) Number() protoreflect.EnumNumber { @@ -1912,10 +1778,9 @@ func (x BlockIDFlag) Number() protoreflect.EnumNumber { // Deprecated: Use BlockIDFlag.Descriptor instead. func (BlockIDFlag) EnumDescriptor() ([]byte, []int) { - return file_cometbft_types_v2_validator_proto_rawDescGZIP(), []int{0} + return file_tendermint_types_validator_proto_rawDescGZIP(), []int{0} } -// ValidatorSet defines a set of validators. type ValidatorSet struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1929,7 +1794,7 @@ type ValidatorSet struct { func (x *ValidatorSet) Reset() { *x = ValidatorSet{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_validator_proto_msgTypes[0] + mi := &file_tendermint_types_validator_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1943,7 +1808,7 @@ func (*ValidatorSet) ProtoMessage() {} // Deprecated: Use ValidatorSet.ProtoReflect.Descriptor instead. func (*ValidatorSet) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_validator_proto_rawDescGZIP(), []int{0} + return file_tendermint_types_validator_proto_rawDescGZIP(), []int{0} } func (x *ValidatorSet) GetValidators() []*Validator { @@ -1967,25 +1832,21 @@ func (x *ValidatorSet) GetTotalVotingPower() int64 { return 0 } -// Validator represents a node participating in the consensus protocol. type Validator struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - // Deprecated: Do not use. - PubKey *v1.PublicKey `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"` - VotingPower int64 `protobuf:"varint,3,opt,name=voting_power,json=votingPower,proto3" json:"voting_power,omitempty"` - ProposerPriority int64 `protobuf:"varint,4,opt,name=proposer_priority,json=proposerPriority,proto3" json:"proposer_priority,omitempty"` - PubKeyBytes []byte `protobuf:"bytes,5,opt,name=pub_key_bytes,json=pubKeyBytes,proto3" json:"pub_key_bytes,omitempty"` - PubKeyType string `protobuf:"bytes,6,opt,name=pub_key_type,json=pubKeyType,proto3" json:"pub_key_type,omitempty"` + Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + PubKey *crypto.PublicKey `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"` + VotingPower int64 `protobuf:"varint,3,opt,name=voting_power,json=votingPower,proto3" json:"voting_power,omitempty"` + ProposerPriority int64 `protobuf:"varint,4,opt,name=proposer_priority,json=proposerPriority,proto3" json:"proposer_priority,omitempty"` } func (x *Validator) Reset() { *x = Validator{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_validator_proto_msgTypes[1] + mi := &file_tendermint_types_validator_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1999,7 +1860,7 @@ func (*Validator) ProtoMessage() {} // Deprecated: Use Validator.ProtoReflect.Descriptor instead. func (*Validator) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_validator_proto_rawDescGZIP(), []int{1} + return file_tendermint_types_validator_proto_rawDescGZIP(), []int{1} } func (x *Validator) GetAddress() []byte { @@ -2009,8 +1870,7 @@ func (x *Validator) GetAddress() []byte { return nil } -// Deprecated: Do not use. -func (x *Validator) GetPubKey() *v1.PublicKey { +func (x *Validator) GetPubKey() *crypto.PublicKey { if x != nil { return x.PubKey } @@ -2031,36 +1891,19 @@ func (x *Validator) GetProposerPriority() int64 { return 0 } -func (x *Validator) GetPubKeyBytes() []byte { - if x != nil { - return x.PubKeyBytes - } - return nil -} - -func (x *Validator) GetPubKeyType() string { - if x != nil { - return x.PubKeyType - } - return "" -} - -// SimpleValidator is a Validator, which is serialized and hashed in consensus. -// Address is removed because it's redundant with the pubkey. -// Proposer priority is removed because it changes every round. type SimpleValidator struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - PubKey *v1.PublicKey `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"` - VotingPower int64 `protobuf:"varint,2,opt,name=voting_power,json=votingPower,proto3" json:"voting_power,omitempty"` + PubKey *crypto.PublicKey `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"` + VotingPower int64 `protobuf:"varint,2,opt,name=voting_power,json=votingPower,proto3" json:"voting_power,omitempty"` } func (x *SimpleValidator) Reset() { *x = SimpleValidator{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_types_v2_validator_proto_msgTypes[2] + mi := &file_tendermint_types_validator_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2074,10 +1917,10 @@ func (*SimpleValidator) ProtoMessage() {} // Deprecated: Use SimpleValidator.ProtoReflect.Descriptor instead. func (*SimpleValidator) Descriptor() ([]byte, []int) { - return file_cometbft_types_v2_validator_proto_rawDescGZIP(), []int{2} + return file_tendermint_types_validator_proto_rawDescGZIP(), []int{2} } -func (x *SimpleValidator) GetPubKey() *v1.PublicKey { +func (x *SimpleValidator) GetPubKey() *crypto.PublicKey { if x != nil { return x.PubKey } @@ -2091,104 +1934,98 @@ func (x *SimpleValidator) GetVotingPower() int64 { return 0 } -var File_cometbft_types_v2_validator_proto protoreflect.FileDescriptor +var File_tendermint_types_validator_proto protoreflect.FileDescriptor -var file_cometbft_types_v2_validator_proto_rawDesc = []byte{ - 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2f, 0x76, 0x32, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x1a, 0x1d, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, - 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb4, 0x01, 0x0a, 0x0c, - 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x12, 0x3c, 0x0a, 0x0a, - 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x1c, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x0a, - 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x38, 0x0a, 0x08, 0x70, 0x72, - 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, - 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, - 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, - 0x6f, 0x73, 0x65, 0x72, 0x12, 0x2c, 0x0a, 0x12, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x76, 0x6f, - 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x10, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x56, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x77, - 0x65, 0x72, 0x22, 0xf7, 0x01, 0x0a, 0x09, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, - 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x3a, 0x0a, 0x07, 0x70, 0x75, - 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x63, 0x6f, - 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x76, 0x31, - 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x42, 0x02, 0x18, 0x01, 0x52, 0x06, - 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x76, 0x6f, 0x74, 0x69, 0x6e, 0x67, - 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x76, 0x6f, - 0x74, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x12, 0x2b, 0x0a, 0x11, 0x70, 0x72, 0x6f, - 0x70, 0x6f, 0x73, 0x65, 0x72, 0x5f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x50, 0x72, - 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x22, 0x0a, 0x0d, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, - 0x79, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x70, - 0x75, 0x62, 0x4b, 0x65, 0x79, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x0c, 0x70, 0x75, - 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x22, 0x6c, 0x0a, 0x0f, - 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, - 0x36, 0x0a, 0x07, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1d, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x63, 0x72, 0x79, 0x70, - 0x74, 0x6f, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x52, - 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x76, 0x6f, 0x74, 0x69, 0x6e, - 0x67, 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x76, - 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x2a, 0xd7, 0x01, 0x0a, 0x0b, 0x42, - 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x46, 0x6c, 0x61, 0x67, 0x12, 0x31, 0x0a, 0x15, 0x42, 0x4c, - 0x4f, 0x43, 0x4b, 0x5f, 0x49, 0x44, 0x5f, 0x46, 0x4c, 0x41, 0x47, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, - 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x1a, 0x16, 0x8a, 0x9d, 0x20, 0x12, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x49, 0x44, 0x46, 0x6c, 0x61, 0x67, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x12, 0x2f, 0x0a, - 0x14, 0x42, 0x4c, 0x4f, 0x43, 0x4b, 0x5f, 0x49, 0x44, 0x5f, 0x46, 0x4c, 0x41, 0x47, 0x5f, 0x41, - 0x42, 0x53, 0x45, 0x4e, 0x54, 0x10, 0x01, 0x1a, 0x15, 0x8a, 0x9d, 0x20, 0x11, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x49, 0x44, 0x46, 0x6c, 0x61, 0x67, 0x41, 0x62, 0x73, 0x65, 0x6e, 0x74, 0x12, 0x2f, - 0x0a, 0x14, 0x42, 0x4c, 0x4f, 0x43, 0x4b, 0x5f, 0x49, 0x44, 0x5f, 0x46, 0x4c, 0x41, 0x47, 0x5f, - 0x43, 0x4f, 0x4d, 0x4d, 0x49, 0x54, 0x10, 0x02, 0x1a, 0x15, 0x8a, 0x9d, 0x20, 0x11, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x46, 0x6c, 0x61, 0x67, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, - 0x29, 0x0a, 0x11, 0x42, 0x4c, 0x4f, 0x43, 0x4b, 0x5f, 0x49, 0x44, 0x5f, 0x46, 0x4c, 0x41, 0x47, - 0x5f, 0x4e, 0x49, 0x4c, 0x10, 0x03, 0x1a, 0x12, 0x8a, 0x9d, 0x20, 0x0e, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x49, 0x44, 0x46, 0x6c, 0x61, 0x67, 0x4e, 0x69, 0x6c, 0x1a, 0x08, 0x88, 0xa3, 0x1e, 0x00, - 0xa8, 0xa4, 0x1e, 0x01, 0x42, 0xb9, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, - 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x42, 0x0e, - 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, - 0x5a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, - 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2f, 0x76, 0x32, 0x3b, 0x74, 0x79, 0x70, 0x65, 0x73, 0x76, 0x32, 0xa2, 0x02, 0x03, 0x43, - 0x54, 0x58, 0xaa, 0x02, 0x11, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x54, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x11, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, - 0x74, 0x5c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x1d, 0x43, 0x6f, 0x6d, - 0x65, 0x74, 0x62, 0x66, 0x74, 0x5c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x56, 0x32, 0x5c, 0x47, - 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x43, 0x6f, 0x6d, - 0x65, 0x74, 0x62, 0x66, 0x74, 0x3a, 0x3a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x3a, 0x3a, 0x56, 0x32, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +var file_tendermint_types_validator_proto_rawDesc = []byte{ + 0x0a, 0x20, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x10, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, + 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x74, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2f, 0x6b, 0x65, + 0x79, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb2, 0x01, 0x0a, 0x0c, 0x56, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x12, 0x3b, 0x0a, 0x0a, 0x76, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, + 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x0a, 0x76, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x37, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, + 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x12, + 0x2c, 0x0a, 0x12, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x76, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x5f, + 0x70, 0x6f, 0x77, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x74, 0x6f, 0x74, + 0x61, 0x6c, 0x56, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x22, 0xb2, 0x01, + 0x0a, 0x09, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x3b, 0x0a, 0x07, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, + 0x69, 0x6e, 0x74, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, + 0x63, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x70, 0x75, 0x62, 0x4b, + 0x65, 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x76, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6f, 0x77, + 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x76, 0x6f, 0x74, 0x69, 0x6e, 0x67, + 0x50, 0x6f, 0x77, 0x65, 0x72, 0x12, 0x2b, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, + 0x72, 0x5f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x10, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, + 0x74, 0x79, 0x22, 0x6b, 0x0a, 0x0f, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x35, 0x0a, 0x07, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, + 0x69, 0x6e, 0x74, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, + 0x63, 0x4b, 0x65, 0x79, 0x52, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x0c, + 0x76, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x0b, 0x76, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x2a, + 0xd7, 0x01, 0x0a, 0x0b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x46, 0x6c, 0x61, 0x67, 0x12, + 0x31, 0x0a, 0x15, 0x42, 0x4c, 0x4f, 0x43, 0x4b, 0x5f, 0x49, 0x44, 0x5f, 0x46, 0x4c, 0x41, 0x47, + 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x1a, 0x16, 0x8a, 0x9d, 0x20, 0x12, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x46, 0x6c, 0x61, 0x67, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, + 0x77, 0x6e, 0x12, 0x2f, 0x0a, 0x14, 0x42, 0x4c, 0x4f, 0x43, 0x4b, 0x5f, 0x49, 0x44, 0x5f, 0x46, + 0x4c, 0x41, 0x47, 0x5f, 0x41, 0x42, 0x53, 0x45, 0x4e, 0x54, 0x10, 0x01, 0x1a, 0x15, 0x8a, 0x9d, + 0x20, 0x11, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x46, 0x6c, 0x61, 0x67, 0x41, 0x62, 0x73, + 0x65, 0x6e, 0x74, 0x12, 0x2f, 0x0a, 0x14, 0x42, 0x4c, 0x4f, 0x43, 0x4b, 0x5f, 0x49, 0x44, 0x5f, + 0x46, 0x4c, 0x41, 0x47, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x49, 0x54, 0x10, 0x02, 0x1a, 0x15, 0x8a, + 0x9d, 0x20, 0x11, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x46, 0x6c, 0x61, 0x67, 0x43, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x29, 0x0a, 0x11, 0x42, 0x4c, 0x4f, 0x43, 0x4b, 0x5f, 0x49, 0x44, + 0x5f, 0x46, 0x4c, 0x41, 0x47, 0x5f, 0x4e, 0x49, 0x4c, 0x10, 0x03, 0x1a, 0x12, 0x8a, 0x9d, 0x20, + 0x0e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x46, 0x6c, 0x61, 0x67, 0x4e, 0x69, 0x6c, 0x1a, + 0x08, 0x88, 0xa3, 0x1e, 0x00, 0xa8, 0xa4, 0x1e, 0x01, 0x42, 0xaa, 0x01, 0x0a, 0x14, 0x63, 0x6f, + 0x6d, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x42, 0x0e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x21, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, + 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, + 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0xa2, 0x02, 0x03, 0x54, 0x54, 0x58, 0xaa, 0x02, 0x10, + 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x73, + 0xca, 0x02, 0x10, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x5c, 0x54, 0x79, + 0x70, 0x65, 0x73, 0xe2, 0x02, 0x1c, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, + 0x5c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x11, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x3a, + 0x3a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_cometbft_types_v2_validator_proto_rawDescOnce sync.Once - file_cometbft_types_v2_validator_proto_rawDescData = file_cometbft_types_v2_validator_proto_rawDesc + file_tendermint_types_validator_proto_rawDescOnce sync.Once + file_tendermint_types_validator_proto_rawDescData = file_tendermint_types_validator_proto_rawDesc ) -func file_cometbft_types_v2_validator_proto_rawDescGZIP() []byte { - file_cometbft_types_v2_validator_proto_rawDescOnce.Do(func() { - file_cometbft_types_v2_validator_proto_rawDescData = protoimpl.X.CompressGZIP(file_cometbft_types_v2_validator_proto_rawDescData) +func file_tendermint_types_validator_proto_rawDescGZIP() []byte { + file_tendermint_types_validator_proto_rawDescOnce.Do(func() { + file_tendermint_types_validator_proto_rawDescData = protoimpl.X.CompressGZIP(file_tendermint_types_validator_proto_rawDescData) }) - return file_cometbft_types_v2_validator_proto_rawDescData + return file_tendermint_types_validator_proto_rawDescData } -var file_cometbft_types_v2_validator_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_cometbft_types_v2_validator_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_cometbft_types_v2_validator_proto_goTypes = []interface{}{ - (BlockIDFlag)(0), // 0: cometbft.types.v2.BlockIDFlag - (*ValidatorSet)(nil), // 1: cometbft.types.v2.ValidatorSet - (*Validator)(nil), // 2: cometbft.types.v2.Validator - (*SimpleValidator)(nil), // 3: cometbft.types.v2.SimpleValidator - (*v1.PublicKey)(nil), // 4: cometbft.crypto.v1.PublicKey +var file_tendermint_types_validator_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_tendermint_types_validator_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_tendermint_types_validator_proto_goTypes = []interface{}{ + (BlockIDFlag)(0), // 0: tendermint.types.BlockIDFlag + (*ValidatorSet)(nil), // 1: tendermint.types.ValidatorSet + (*Validator)(nil), // 2: tendermint.types.Validator + (*SimpleValidator)(nil), // 3: tendermint.types.SimpleValidator + (*crypto.PublicKey)(nil), // 4: tendermint.crypto.PublicKey } -var file_cometbft_types_v2_validator_proto_depIdxs = []int32{ - 2, // 0: cometbft.types.v2.ValidatorSet.validators:type_name -> cometbft.types.v2.Validator - 2, // 1: cometbft.types.v2.ValidatorSet.proposer:type_name -> cometbft.types.v2.Validator - 4, // 2: cometbft.types.v2.Validator.pub_key:type_name -> cometbft.crypto.v1.PublicKey - 4, // 3: cometbft.types.v2.SimpleValidator.pub_key:type_name -> cometbft.crypto.v1.PublicKey +var file_tendermint_types_validator_proto_depIdxs = []int32{ + 2, // 0: tendermint.types.ValidatorSet.validators:type_name -> tendermint.types.Validator + 2, // 1: tendermint.types.ValidatorSet.proposer:type_name -> tendermint.types.Validator + 4, // 2: tendermint.types.Validator.pub_key:type_name -> tendermint.crypto.PublicKey + 4, // 3: tendermint.types.SimpleValidator.pub_key:type_name -> tendermint.crypto.PublicKey 4, // [4:4] is the sub-list for method output_type 4, // [4:4] is the sub-list for method input_type 4, // [4:4] is the sub-list for extension type_name @@ -2196,13 +2033,13 @@ var file_cometbft_types_v2_validator_proto_depIdxs = []int32{ 0, // [0:4] is the sub-list for field type_name } -func init() { file_cometbft_types_v2_validator_proto_init() } -func file_cometbft_types_v2_validator_proto_init() { - if File_cometbft_types_v2_validator_proto != nil { +func init() { file_tendermint_types_validator_proto_init() } +func file_tendermint_types_validator_proto_init() { + if File_tendermint_types_validator_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_cometbft_types_v2_validator_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_types_validator_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ValidatorSet); i { case 0: return &v.state @@ -2214,7 +2051,7 @@ func file_cometbft_types_v2_validator_proto_init() { return nil } } - file_cometbft_types_v2_validator_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_types_validator_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Validator); i { case 0: return &v.state @@ -2226,7 +2063,7 @@ func file_cometbft_types_v2_validator_proto_init() { return nil } } - file_cometbft_types_v2_validator_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_types_validator_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SimpleValidator); i { case 0: return &v.state @@ -2243,19 +2080,19 @@ func file_cometbft_types_v2_validator_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cometbft_types_v2_validator_proto_rawDesc, + RawDescriptor: file_tendermint_types_validator_proto_rawDesc, NumEnums: 1, NumMessages: 3, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_cometbft_types_v2_validator_proto_goTypes, - DependencyIndexes: file_cometbft_types_v2_validator_proto_depIdxs, - EnumInfos: file_cometbft_types_v2_validator_proto_enumTypes, - MessageInfos: file_cometbft_types_v2_validator_proto_msgTypes, + GoTypes: file_tendermint_types_validator_proto_goTypes, + DependencyIndexes: file_tendermint_types_validator_proto_depIdxs, + EnumInfos: file_tendermint_types_validator_proto_enumTypes, + MessageInfos: file_tendermint_types_validator_proto_msgTypes, }.Build() - File_cometbft_types_v2_validator_proto = out.File - file_cometbft_types_v2_validator_proto_rawDesc = nil - file_cometbft_types_v2_validator_proto_goTypes = nil - file_cometbft_types_v2_validator_proto_depIdxs = nil + File_tendermint_types_validator_proto = out.File + file_tendermint_types_validator_proto_rawDesc = nil + file_tendermint_types_validator_proto_goTypes = nil + file_tendermint_types_validator_proto_depIdxs = nil } diff --git a/api/cometbft/version/v1/types.pulsar.go b/api/tendermint/version/types.pulsar.go similarity index 80% rename from api/cometbft/version/v1/types.pulsar.go rename to api/tendermint/version/types.pulsar.go index 5b25274397..7724eeab87 100644 --- a/api/cometbft/version/v1/types.pulsar.go +++ b/api/tendermint/version/types.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package versionv1 +package version import ( fmt "fmt" @@ -20,8 +20,8 @@ var ( ) func init() { - file_cometbft_version_v1_types_proto_init() - md_App = File_cometbft_version_v1_types_proto.Messages().ByName("App") + file_tendermint_version_types_proto_init() + md_App = File_tendermint_version_types_proto.Messages().ByName("App") fd_App_protocol = md_App.Fields().ByName("protocol") fd_App_software = md_App.Fields().ByName("software") } @@ -35,7 +35,7 @@ func (x *App) ProtoReflect() protoreflect.Message { } func (x *App) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_version_v1_types_proto_msgTypes[0] + mi := &file_tendermint_version_types_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -118,15 +118,15 @@ func (x *fastReflection_App) Range(f func(protoreflect.FieldDescriptor, protoref // a repeated field is populated if it is non-empty. func (x *fastReflection_App) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.version.v1.App.protocol": + case "tendermint.version.App.protocol": return x.Protocol != uint64(0) - case "cometbft.version.v1.App.software": + case "tendermint.version.App.software": return x.Software != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.version.v1.App")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.version.App")) } - panic(fmt.Errorf("message cometbft.version.v1.App does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.version.App does not contain field %s", fd.FullName())) } } @@ -138,15 +138,15 @@ func (x *fastReflection_App) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_App) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.version.v1.App.protocol": + case "tendermint.version.App.protocol": x.Protocol = uint64(0) - case "cometbft.version.v1.App.software": + case "tendermint.version.App.software": x.Software = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.version.v1.App")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.version.App")) } - panic(fmt.Errorf("message cometbft.version.v1.App does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.version.App does not contain field %s", fd.FullName())) } } @@ -158,17 +158,17 @@ func (x *fastReflection_App) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_App) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.version.v1.App.protocol": + case "tendermint.version.App.protocol": value := x.Protocol return protoreflect.ValueOfUint64(value) - case "cometbft.version.v1.App.software": + case "tendermint.version.App.software": value := x.Software return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.version.v1.App")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.version.App")) } - panic(fmt.Errorf("message cometbft.version.v1.App does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.version.App does not contain field %s", descriptor.FullName())) } } @@ -184,15 +184,15 @@ func (x *fastReflection_App) Get(descriptor protoreflect.FieldDescriptor) protor // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_App) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.version.v1.App.protocol": + case "tendermint.version.App.protocol": x.Protocol = value.Uint() - case "cometbft.version.v1.App.software": + case "tendermint.version.App.software": x.Software = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.version.v1.App")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.version.App")) } - panic(fmt.Errorf("message cometbft.version.v1.App does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.version.App does not contain field %s", fd.FullName())) } } @@ -208,15 +208,15 @@ func (x *fastReflection_App) Set(fd protoreflect.FieldDescriptor, value protoref // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_App) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.version.v1.App.protocol": - panic(fmt.Errorf("field protocol of message cometbft.version.v1.App is not mutable")) - case "cometbft.version.v1.App.software": - panic(fmt.Errorf("field software of message cometbft.version.v1.App is not mutable")) + case "tendermint.version.App.protocol": + panic(fmt.Errorf("field protocol of message tendermint.version.App is not mutable")) + case "tendermint.version.App.software": + panic(fmt.Errorf("field software of message tendermint.version.App is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.version.v1.App")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.version.App")) } - panic(fmt.Errorf("message cometbft.version.v1.App does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.version.App does not contain field %s", fd.FullName())) } } @@ -225,15 +225,15 @@ func (x *fastReflection_App) Mutable(fd protoreflect.FieldDescriptor) protorefle // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_App) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.version.v1.App.protocol": + case "tendermint.version.App.protocol": return protoreflect.ValueOfUint64(uint64(0)) - case "cometbft.version.v1.App.software": + case "tendermint.version.App.software": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.version.v1.App")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.version.App")) } - panic(fmt.Errorf("message cometbft.version.v1.App does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.version.App does not contain field %s", fd.FullName())) } } @@ -243,7 +243,7 @@ func (x *fastReflection_App) NewField(fd protoreflect.FieldDescriptor) protorefl func (x *fastReflection_App) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.version.v1.App", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.version.App", d.FullName())) } panic("unreachable") } @@ -488,8 +488,8 @@ var ( ) func init() { - file_cometbft_version_v1_types_proto_init() - md_Consensus = File_cometbft_version_v1_types_proto.Messages().ByName("Consensus") + file_tendermint_version_types_proto_init() + md_Consensus = File_tendermint_version_types_proto.Messages().ByName("Consensus") fd_Consensus_block = md_Consensus.Fields().ByName("block") fd_Consensus_app = md_Consensus.Fields().ByName("app") } @@ -503,7 +503,7 @@ func (x *Consensus) ProtoReflect() protoreflect.Message { } func (x *Consensus) slowProtoReflect() protoreflect.Message { - mi := &file_cometbft_version_v1_types_proto_msgTypes[1] + mi := &file_tendermint_version_types_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -586,15 +586,15 @@ func (x *fastReflection_Consensus) Range(f func(protoreflect.FieldDescriptor, pr // a repeated field is populated if it is non-empty. func (x *fastReflection_Consensus) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cometbft.version.v1.Consensus.block": + case "tendermint.version.Consensus.block": return x.Block != uint64(0) - case "cometbft.version.v1.Consensus.app": + case "tendermint.version.Consensus.app": return x.App != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.version.v1.Consensus")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.version.Consensus")) } - panic(fmt.Errorf("message cometbft.version.v1.Consensus does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.version.Consensus does not contain field %s", fd.FullName())) } } @@ -606,15 +606,15 @@ func (x *fastReflection_Consensus) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Consensus) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cometbft.version.v1.Consensus.block": + case "tendermint.version.Consensus.block": x.Block = uint64(0) - case "cometbft.version.v1.Consensus.app": + case "tendermint.version.Consensus.app": x.App = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.version.v1.Consensus")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.version.Consensus")) } - panic(fmt.Errorf("message cometbft.version.v1.Consensus does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.version.Consensus does not contain field %s", fd.FullName())) } } @@ -626,17 +626,17 @@ func (x *fastReflection_Consensus) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Consensus) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cometbft.version.v1.Consensus.block": + case "tendermint.version.Consensus.block": value := x.Block return protoreflect.ValueOfUint64(value) - case "cometbft.version.v1.Consensus.app": + case "tendermint.version.Consensus.app": value := x.App return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.version.v1.Consensus")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.version.Consensus")) } - panic(fmt.Errorf("message cometbft.version.v1.Consensus does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message tendermint.version.Consensus does not contain field %s", descriptor.FullName())) } } @@ -652,15 +652,15 @@ func (x *fastReflection_Consensus) Get(descriptor protoreflect.FieldDescriptor) // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Consensus) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cometbft.version.v1.Consensus.block": + case "tendermint.version.Consensus.block": x.Block = value.Uint() - case "cometbft.version.v1.Consensus.app": + case "tendermint.version.Consensus.app": x.App = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.version.v1.Consensus")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.version.Consensus")) } - panic(fmt.Errorf("message cometbft.version.v1.Consensus does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.version.Consensus does not contain field %s", fd.FullName())) } } @@ -676,15 +676,15 @@ func (x *fastReflection_Consensus) Set(fd protoreflect.FieldDescriptor, value pr // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Consensus) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.version.v1.Consensus.block": - panic(fmt.Errorf("field block of message cometbft.version.v1.Consensus is not mutable")) - case "cometbft.version.v1.Consensus.app": - panic(fmt.Errorf("field app of message cometbft.version.v1.Consensus is not mutable")) + case "tendermint.version.Consensus.block": + panic(fmt.Errorf("field block of message tendermint.version.Consensus is not mutable")) + case "tendermint.version.Consensus.app": + panic(fmt.Errorf("field app of message tendermint.version.Consensus is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.version.v1.Consensus")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.version.Consensus")) } - panic(fmt.Errorf("message cometbft.version.v1.Consensus does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.version.Consensus does not contain field %s", fd.FullName())) } } @@ -693,15 +693,15 @@ func (x *fastReflection_Consensus) Mutable(fd protoreflect.FieldDescriptor) prot // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Consensus) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cometbft.version.v1.Consensus.block": + case "tendermint.version.Consensus.block": return protoreflect.ValueOfUint64(uint64(0)) - case "cometbft.version.v1.Consensus.app": + case "tendermint.version.Consensus.app": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.version.v1.Consensus")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: tendermint.version.Consensus")) } - panic(fmt.Errorf("message cometbft.version.v1.Consensus does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message tendermint.version.Consensus does not contain field %s", fd.FullName())) } } @@ -711,7 +711,7 @@ func (x *fastReflection_Consensus) NewField(fd protoreflect.FieldDescriptor) pro func (x *fastReflection_Consensus) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cometbft.version.v1.Consensus", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in tendermint.version.Consensus", d.FullName())) } panic("unreachable") } @@ -937,7 +937,7 @@ func (x *fastReflection_Consensus) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: cometbft/version/v1/types.proto +// source: tendermint/version/types.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -961,7 +961,7 @@ type App struct { func (x *App) Reset() { *x = App{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_version_v1_types_proto_msgTypes[0] + mi := &file_tendermint_version_types_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -975,7 +975,7 @@ func (*App) ProtoMessage() {} // Deprecated: Use App.ProtoReflect.Descriptor instead. func (*App) Descriptor() ([]byte, []int) { - return file_cometbft_version_v1_types_proto_rawDescGZIP(), []int{0} + return file_tendermint_version_types_proto_rawDescGZIP(), []int{0} } func (x *App) GetProtocol() uint64 { @@ -1007,7 +1007,7 @@ type Consensus struct { func (x *Consensus) Reset() { *x = Consensus{} if protoimpl.UnsafeEnabled { - mi := &file_cometbft_version_v1_types_proto_msgTypes[1] + mi := &file_tendermint_version_types_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1021,7 +1021,7 @@ func (*Consensus) ProtoMessage() {} // Deprecated: Use Consensus.ProtoReflect.Descriptor instead. func (*Consensus) Descriptor() ([]byte, []int) { - return file_cometbft_version_v1_types_proto_rawDescGZIP(), []int{1} + return file_tendermint_version_types_proto_rawDescGZIP(), []int{1} } func (x *Consensus) GetBlock() uint64 { @@ -1038,55 +1038,54 @@ func (x *Consensus) GetApp() uint64 { return 0 } -var File_cometbft_version_v1_types_proto protoreflect.FileDescriptor +var File_tendermint_version_types_proto protoreflect.FileDescriptor -var file_cometbft_version_v1_types_proto_rawDesc = []byte{ - 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x13, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x76, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3d, 0x0a, 0x03, - 0x41, 0x70, 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, - 0x1a, 0x0a, 0x08, 0x73, 0x6f, 0x66, 0x74, 0x77, 0x61, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x73, 0x6f, 0x66, 0x74, 0x77, 0x61, 0x72, 0x65, 0x22, 0x39, 0x0a, 0x09, 0x43, - 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, - 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x10, - 0x0a, 0x03, 0x61, 0x70, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x61, 0x70, 0x70, - 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x42, 0xc3, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x63, - 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, - 0x5a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, - 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x76, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x76, 0x31, - 0xa2, 0x02, 0x03, 0x43, 0x56, 0x58, 0xaa, 0x02, 0x13, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, - 0x74, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x13, 0x43, - 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x5c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5c, - 0x56, 0x31, 0xe2, 0x02, 0x1f, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x5c, 0x56, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x15, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x3a, - 0x3a, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, +var file_tendermint_version_types_proto_rawDesc = []byte{ + 0x0a, 0x1e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x12, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, + 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3d, 0x0a, 0x03, 0x41, 0x70, + 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x1a, 0x0a, + 0x08, 0x73, 0x6f, 0x66, 0x74, 0x77, 0x61, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x73, 0x6f, 0x66, 0x74, 0x77, 0x61, 0x72, 0x65, 0x22, 0x39, 0x0a, 0x09, 0x43, 0x6f, 0x6e, + 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x10, 0x0a, 0x03, + 0x61, 0x70, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x61, 0x70, 0x70, 0x3a, 0x04, + 0xe8, 0xa0, 0x1f, 0x01, 0x42, 0xb2, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x74, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, + 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0xa2, 0x02, 0x03, 0x54, 0x56, 0x58, 0xaa, 0x02, 0x12, 0x54, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0xca, 0x02, 0x12, + 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x5c, 0x56, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0xe2, 0x02, 0x1e, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x5c, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, + 0x3a, 0x3a, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( - file_cometbft_version_v1_types_proto_rawDescOnce sync.Once - file_cometbft_version_v1_types_proto_rawDescData = file_cometbft_version_v1_types_proto_rawDesc + file_tendermint_version_types_proto_rawDescOnce sync.Once + file_tendermint_version_types_proto_rawDescData = file_tendermint_version_types_proto_rawDesc ) -func file_cometbft_version_v1_types_proto_rawDescGZIP() []byte { - file_cometbft_version_v1_types_proto_rawDescOnce.Do(func() { - file_cometbft_version_v1_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_cometbft_version_v1_types_proto_rawDescData) +func file_tendermint_version_types_proto_rawDescGZIP() []byte { + file_tendermint_version_types_proto_rawDescOnce.Do(func() { + file_tendermint_version_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_tendermint_version_types_proto_rawDescData) }) - return file_cometbft_version_v1_types_proto_rawDescData + return file_tendermint_version_types_proto_rawDescData } -var file_cometbft_version_v1_types_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_cometbft_version_v1_types_proto_goTypes = []interface{}{ - (*App)(nil), // 0: cometbft.version.v1.App - (*Consensus)(nil), // 1: cometbft.version.v1.Consensus +var file_tendermint_version_types_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_tendermint_version_types_proto_goTypes = []interface{}{ + (*App)(nil), // 0: tendermint.version.App + (*Consensus)(nil), // 1: tendermint.version.Consensus } -var file_cometbft_version_v1_types_proto_depIdxs = []int32{ +var file_tendermint_version_types_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name @@ -1094,13 +1093,13 @@ var file_cometbft_version_v1_types_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for field type_name } -func init() { file_cometbft_version_v1_types_proto_init() } -func file_cometbft_version_v1_types_proto_init() { - if File_cometbft_version_v1_types_proto != nil { +func init() { file_tendermint_version_types_proto_init() } +func file_tendermint_version_types_proto_init() { + if File_tendermint_version_types_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_cometbft_version_v1_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_version_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*App); i { case 0: return &v.state @@ -1112,7 +1111,7 @@ func file_cometbft_version_v1_types_proto_init() { return nil } } - file_cometbft_version_v1_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_tendermint_version_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Consensus); i { case 0: return &v.state @@ -1129,18 +1128,18 @@ func file_cometbft_version_v1_types_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cometbft_version_v1_types_proto_rawDesc, + RawDescriptor: file_tendermint_version_types_proto_rawDesc, NumEnums: 0, NumMessages: 2, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_cometbft_version_v1_types_proto_goTypes, - DependencyIndexes: file_cometbft_version_v1_types_proto_depIdxs, - MessageInfos: file_cometbft_version_v1_types_proto_msgTypes, + GoTypes: file_tendermint_version_types_proto_goTypes, + DependencyIndexes: file_tendermint_version_types_proto_depIdxs, + MessageInfos: file_tendermint_version_types_proto_msgTypes, }.Build() - File_cometbft_version_v1_types_proto = out.File - file_cometbft_version_v1_types_proto_rawDesc = nil - file_cometbft_version_v1_types_proto_goTypes = nil - file_cometbft_version_v1_types_proto_depIdxs = nil + File_tendermint_version_types_proto = out.File + file_tendermint_version_types_proto_rawDesc = nil + file_tendermint_version_types_proto_goTypes = nil + file_tendermint_version_types_proto_depIdxs = nil } diff --git a/baseapp/abci.go b/baseapp/abci.go index c1346cf77d..d81dea65f5 100644 --- a/baseapp/abci.go +++ b/baseapp/abci.go @@ -8,8 +8,8 @@ import ( "time" "github.com/cockroachdb/errors" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/cosmos/gogoproto/proto" "google.golang.org/grpc/codes" grpcstatus "google.golang.org/grpc/status" @@ -37,7 +37,7 @@ const ( QueryPathBroadcastTx = "/cosmos.tx.v1beta1.Service/BroadcastTx" ) -func (app *BaseApp) InitChain(req *abci.InitChainRequest) (*abci.InitChainResponse, error) { +func (app *BaseApp) InitChain(req *abci.RequestInitChain) (*abci.ResponseInitChain, error) { if req.ChainId != app.chainID { return nil, fmt.Errorf("invalid chain-id on InitChain; expected: %s, got: %s", app.chainID, req.ChainId) } @@ -99,7 +99,7 @@ func (app *BaseApp) InitChain(req *abci.InitChainRequest) (*abci.InitChainRespon }() if app.abciHandlers.InitChainer == nil { - return &abci.InitChainResponse{}, nil + return &abci.ResponseInitChain{}, nil } // add block gas meter for any genesis transactions (allow infinite gas) @@ -130,17 +130,17 @@ func (app *BaseApp) InitChain(req *abci.InitChainRequest) (*abci.InitChainRespon // NOTE: We don't commit, but FinalizeBlock for block InitialHeight starts from // this FinalizeBlockState. - return &abci.InitChainResponse{ + return &abci.ResponseInitChain{ ConsensusParams: res.ConsensusParams, Validators: res.Validators, AppHash: app.LastCommitID().Hash, }, nil } -func (app *BaseApp) Info(_ *abci.InfoRequest) (*abci.InfoResponse, error) { +func (app *BaseApp) Info(_ *abci.RequestInfo) (*abci.ResponseInfo, error) { lastCommitID := app.cms.LastCommitID() - return &abci.InfoResponse{ + return &abci.ResponseInfo{ Data: app.name, Version: app.version, AppVersion: app.appVersion, @@ -151,7 +151,7 @@ func (app *BaseApp) Info(_ *abci.InfoRequest) (*abci.InfoResponse, error) { // Query implements the ABCI interface. It delegates to CommitMultiStore if it // implements Queryable. -func (app *BaseApp) Query(_ context.Context, req *abci.QueryRequest) (resp *abci.QueryResponse, err error) { +func (app *BaseApp) Query(_ context.Context, req *abci.RequestQuery) (resp *abci.ResponseQuery, err error) { // add panic recovery for all queries // // Ref: https://github.com/cosmos/cosmos-sdk/pull/8039 @@ -204,8 +204,8 @@ func (app *BaseApp) Query(_ context.Context, req *abci.QueryRequest) (resp *abci } // ListSnapshots implements the ABCI interface. It delegates to app.snapshotManager if set. -func (app *BaseApp) ListSnapshots(req *abci.ListSnapshotsRequest) (*abci.ListSnapshotsResponse, error) { - resp := &abci.ListSnapshotsResponse{Snapshots: []*abci.Snapshot{}} +func (app *BaseApp) ListSnapshots(_ *abci.RequestListSnapshots) (*abci.ResponseListSnapshots, error) { + resp := &abci.ResponseListSnapshots{Snapshots: []*abci.Snapshot{}} if app.snapshotManager == nil { return resp, nil } @@ -230,9 +230,9 @@ func (app *BaseApp) ListSnapshots(req *abci.ListSnapshotsRequest) (*abci.ListSna } // LoadSnapshotChunk implements the ABCI interface. It delegates to app.snapshotManager if set. -func (app *BaseApp) LoadSnapshotChunk(req *abci.LoadSnapshotChunkRequest) (*abci.LoadSnapshotChunkResponse, error) { +func (app *BaseApp) LoadSnapshotChunk(req *abci.RequestLoadSnapshotChunk) (*abci.ResponseLoadSnapshotChunk, error) { if app.snapshotManager == nil { - return &abci.LoadSnapshotChunkResponse{}, nil + return &abci.ResponseLoadSnapshotChunk{}, nil } chunk, err := app.snapshotManager.LoadChunk(req.Height, req.Format, req.Chunk) @@ -247,34 +247,34 @@ func (app *BaseApp) LoadSnapshotChunk(req *abci.LoadSnapshotChunkRequest) (*abci return nil, err } - return &abci.LoadSnapshotChunkResponse{Chunk: chunk}, nil + return &abci.ResponseLoadSnapshotChunk{Chunk: chunk}, nil } // OfferSnapshot implements the ABCI interface. It delegates to app.snapshotManager if set. -func (app *BaseApp) OfferSnapshot(req *abci.OfferSnapshotRequest) (*abci.OfferSnapshotResponse, error) { +func (app *BaseApp) OfferSnapshot(req *abci.RequestOfferSnapshot) (*abci.ResponseOfferSnapshot, error) { if app.snapshotManager == nil { app.logger.Error("snapshot manager not configured") - return &abci.OfferSnapshotResponse{Result: abci.OFFER_SNAPSHOT_RESULT_ABORT}, nil + return &abci.ResponseOfferSnapshot{Result: abci.ResponseOfferSnapshot_ABORT}, nil } if req.Snapshot == nil { app.logger.Error("received nil snapshot") - return &abci.OfferSnapshotResponse{Result: abci.OFFER_SNAPSHOT_RESULT_REJECT}, nil + return &abci.ResponseOfferSnapshot{Result: abci.ResponseOfferSnapshot_REJECT}, nil } snapshot, err := snapshottypes.SnapshotFromABCI(req.Snapshot) if err != nil { app.logger.Error("failed to decode snapshot metadata", "err", err) - return &abci.OfferSnapshotResponse{Result: abci.OFFER_SNAPSHOT_RESULT_REJECT}, nil + return &abci.ResponseOfferSnapshot{Result: abci.ResponseOfferSnapshot_REJECT}, nil } err = app.snapshotManager.Restore(snapshot) switch { case err == nil: - return &abci.OfferSnapshotResponse{Result: abci.OFFER_SNAPSHOT_RESULT_ACCEPT}, nil + return &abci.ResponseOfferSnapshot{Result: abci.ResponseOfferSnapshot_ACCEPT}, nil case errors.Is(err, snapshottypes.ErrUnknownFormat): - return &abci.OfferSnapshotResponse{Result: abci.OFFER_SNAPSHOT_RESULT_REJECT_FORMAT}, nil + return &abci.ResponseOfferSnapshot{Result: abci.ResponseOfferSnapshot_REJECT_FORMAT}, nil case errors.Is(err, snapshottypes.ErrInvalidMetadata): app.logger.Error( @@ -283,10 +283,10 @@ func (app *BaseApp) OfferSnapshot(req *abci.OfferSnapshotRequest) (*abci.OfferSn "format", req.Snapshot.Format, "err", err, ) - return &abci.OfferSnapshotResponse{Result: abci.OFFER_SNAPSHOT_RESULT_REJECT}, nil + return &abci.ResponseOfferSnapshot{Result: abci.ResponseOfferSnapshot_REJECT}, nil default: - // CometBFT errors are defined here: https://github.com/cometbft/cometbft/v2/blob/main/statesync/syncer.go + // CometBFT errors are defined here: https://github.com/cometbft/cometbft/blob/main/statesync/syncer.go // It may happen that in case of a CometBFT error, such as a timeout (which occurs after two minutes), // the process is aborted. This is done intentionally because deleting the database programmatically // can lead to more complicated situations. @@ -299,21 +299,21 @@ func (app *BaseApp) OfferSnapshot(req *abci.OfferSnapshotRequest) (*abci.OfferSn // We currently don't support resetting the IAVL stores and retrying a // different snapshot, so we ask CometBFT to abort all snapshot restoration. - return &abci.OfferSnapshotResponse{Result: abci.OFFER_SNAPSHOT_RESULT_ABORT}, nil + return &abci.ResponseOfferSnapshot{Result: abci.ResponseOfferSnapshot_ABORT}, nil } } // ApplySnapshotChunk implements the ABCI interface. It delegates to app.snapshotManager if set. -func (app *BaseApp) ApplySnapshotChunk(req *abci.ApplySnapshotChunkRequest) (*abci.ApplySnapshotChunkResponse, error) { +func (app *BaseApp) ApplySnapshotChunk(req *abci.RequestApplySnapshotChunk) (*abci.ResponseApplySnapshotChunk, error) { if app.snapshotManager == nil { app.logger.Error("snapshot manager not configured") - return &abci.ApplySnapshotChunkResponse{Result: abci.APPLY_SNAPSHOT_CHUNK_RESULT_ABORT}, nil + return &abci.ResponseApplySnapshotChunk{Result: abci.ResponseApplySnapshotChunk_ABORT}, nil } _, err := app.snapshotManager.RestoreChunk(req.Chunk) switch { case err == nil: - return &abci.ApplySnapshotChunkResponse{Result: abci.APPLY_SNAPSHOT_CHUNK_RESULT_ACCEPT}, nil + return &abci.ResponseApplySnapshotChunk{Result: abci.ResponseApplySnapshotChunk_ACCEPT}, nil case errors.Is(err, snapshottypes.ErrChunkHashMismatch): app.logger.Error( @@ -322,15 +322,15 @@ func (app *BaseApp) ApplySnapshotChunk(req *abci.ApplySnapshotChunkRequest) (*ab "sender", req.Sender, "err", err, ) - return &abci.ApplySnapshotChunkResponse{ - Result: abci.APPLY_SNAPSHOT_CHUNK_RESULT_RETRY, + return &abci.ResponseApplySnapshotChunk{ + Result: abci.ResponseApplySnapshotChunk_RETRY, RefetchChunks: []uint32{req.Index}, RejectSenders: []string{req.Sender}, }, nil default: app.logger.Error("failed to restore snapshot", "err", err) - return &abci.ApplySnapshotChunkResponse{Result: abci.APPLY_SNAPSHOT_CHUNK_RESULT_ABORT}, nil + return &abci.ResponseApplySnapshotChunk{Result: abci.ResponseApplySnapshotChunk_ABORT}, nil } } @@ -340,14 +340,14 @@ func (app *BaseApp) ApplySnapshotChunk(req *abci.ApplySnapshotChunkRequest) (*ab // internal CheckTx state if the AnteHandler passes. Otherwise, the ResponseCheckTx // will contain relevant error information. Regardless of tx execution outcome, // the ResponseCheckTx will contain the relevant gas execution context. -func (app *BaseApp) CheckTx(req *abci.CheckTxRequest) (*abci.CheckTxResponse, error) { +func (app *BaseApp) CheckTx(req *abci.RequestCheckTx) (*abci.ResponseCheckTx, error) { var mode sdk.ExecMode switch req.Type { - case abci.CHECK_TX_TYPE_CHECK: + case abci.CheckTxType_New: mode = execModeCheck - case abci.CHECK_TX_TYPE_RECHECK: + case abci.CheckTxType_Recheck: mode = execModeReCheck default: @@ -360,7 +360,7 @@ func (app *BaseApp) CheckTx(req *abci.CheckTxRequest) (*abci.CheckTxResponse, er return sdkerrors.ResponseCheckTxWithEvents(err, gasInfo.GasWanted, gasInfo.GasUsed, anteEvents, app.trace), nil } - return &abci.CheckTxResponse{ + return &abci.ResponseCheckTx{ GasWanted: int64(gasInfo.GasWanted), // TODO: Should type accept unsigned ints? GasUsed: int64(gasInfo.GasUsed), // TODO: Should type accept unsigned ints? Log: result.Log, @@ -389,8 +389,8 @@ func (app *BaseApp) CheckTx(req *abci.CheckTxRequest) (*abci.CheckTxResponse, er // provided by the client's request. // // Ref: https://github.com/cosmos/cosmos-sdk/blob/main/docs/architecture/adr-060-abci-1.0.md -// Ref: https://github.com/cometbft/cometbft/v2/blob/main/spec/abci/abci%2B%2B_basic_concepts.md -func (app *BaseApp) PrepareProposal(req *abci.PrepareProposalRequest) (resp *abci.PrepareProposalResponse, err error) { +// Ref: https://github.com/cometbft/cometbft/blob/main/spec/abci/abci%2B%2B_basic_concepts.md +func (app *BaseApp) PrepareProposal(req *abci.RequestPrepareProposal) (resp *abci.ResponsePrepareProposal, err error) { if app.abciHandlers.PrepareProposalHandler == nil { return nil, errors.New("PrepareProposal handler not set") } @@ -409,7 +409,7 @@ func (app *BaseApp) PrepareProposal(req *abci.PrepareProposalRequest) (resp *abc // CometBFT must never call PrepareProposal with a height of 0. // - // Ref: https://github.com/cometbft/cometbft/v2/blob/059798a4f5b0c9f52aa8655fa619054a0154088c/spec/core/state.md?plain=1#L37-L38 + // Ref: https://github.com/cometbft/cometbft/blob/059798a4f5b0c9f52aa8655fa619054a0154088c/spec/core/state.md?plain=1#L37-L38 if req.Height < 1 { return nil, errors.New("PrepareProposal called with invalid height") } @@ -441,14 +441,14 @@ func (app *BaseApp) PrepareProposal(req *abci.PrepareProposalRequest) (resp *abc "panic", err, ) - resp = &abci.PrepareProposalResponse{Txs: req.Txs} + resp = &abci.ResponsePrepareProposal{Txs: req.Txs} } }() resp, err = app.abciHandlers.PrepareProposalHandler(prepareProposalState.Context(), req) if err != nil { app.logger.Error("failed to prepare proposal", "height", req.Height, "time", req.Time, "err", err) - return &abci.PrepareProposalResponse{Txs: req.Txs}, nil + return &abci.ResponsePrepareProposal{Txs: req.Txs}, nil } return resp, nil @@ -468,14 +468,14 @@ func (app *BaseApp) PrepareProposal(req *abci.PrepareProposalRequest) (resp *abc // handler, it will be recovered and we will reject the proposal. // // Ref: https://github.com/cosmos/cosmos-sdk/blob/main/docs/architecture/adr-060-abci-1.0.md -// Ref: https://github.com/cometbft/cometbft/v2/blob/main/spec/abci/abci%2B%2B_basic_concepts.md -func (app *BaseApp) ProcessProposal(req *abci.ProcessProposalRequest) (resp *abci.ProcessProposalResponse, err error) { +// Ref: https://github.com/cometbft/cometbft/blob/main/spec/abci/abci%2B%2B_basic_concepts.md +func (app *BaseApp) ProcessProposal(req *abci.RequestProcessProposal) (resp *abci.ResponseProcessProposal, err error) { if app.abciHandlers.ProcessProposalHandler == nil { return nil, errors.New("ProcessProposal handler not set") } // CometBFT must never call ProcessProposal with a height of 0. - // Ref: https://github.com/cometbft/cometbft/v2/blob/059798a4f5b0c9f52aa8655fa619054a0154088c/spec/core/state.md?plain=1#L37-L38 + // Ref: https://github.com/cometbft/cometbft/blob/059798a4f5b0c9f52aa8655fa619054a0154088c/spec/core/state.md?plain=1#L37-L38 if req.Height < 1 { return nil, errors.New("ProcessProposal called with invalid height") } @@ -531,14 +531,14 @@ func (app *BaseApp) ProcessProposal(req *abci.ProcessProposalRequest) (resp *abc "hash", fmt.Sprintf("%X", req.Hash), "panic", err, ) - resp = &abci.ProcessProposalResponse{Status: abci.PROCESS_PROPOSAL_STATUS_REJECT} + resp = &abci.ResponseProcessProposal{Status: abci.ResponseProcessProposal_REJECT} } }() resp, err = app.abciHandlers.ProcessProposalHandler(processProposalState.Context(), req) if err != nil { app.logger.Error("failed to process proposal", "height", req.Height, "time", req.Time, "hash", fmt.Sprintf("%X", req.Hash), "err", err) - return &abci.ProcessProposalResponse{Status: abci.PROCESS_PROPOSAL_STATUS_REJECT}, nil + return &abci.ResponseProcessProposal{Status: abci.ResponseProcessProposal_REJECT}, nil } // Only execute optimistic execution if the proposal is accepted, OE is @@ -548,7 +548,7 @@ func (app *BaseApp) ProcessProposal(req *abci.ProcessProposalRequest) (resp *abc // After the first block has been processed, the next blocks will get executed // optimistically, so that when the ABCI client calls `FinalizeBlock` the app // can have a response ready. - if resp.Status == abci.PROCESS_PROPOSAL_STATUS_ACCEPT && + if resp.Status == abci.ResponseProcessProposal_ACCEPT && app.optimisticExec.Enabled() && req.Height > app.initialHeight { app.optimisticExec.Execute(req) @@ -566,7 +566,7 @@ func (app *BaseApp) ProcessProposal(req *abci.ProcessProposalRequest) (resp *abc // Agreed upon vote extensions are made available to the proposer of the next // height and are committed in the subsequent height, i.e. H+2. An error is // returned if vote extensions are not enabled or if extendVote fails or panics. -func (app *BaseApp) ExtendVote(_ context.Context, req *abci.ExtendVoteRequest) (resp *abci.ExtendVoteResponse, err error) { +func (app *BaseApp) ExtendVote(_ context.Context, req *abci.RequestExtendVote) (resp *abci.ResponseExtendVote, err error) { // Always reset state given that ExtendVote and VerifyVoteExtension can timeout // and be called again in a subsequent round. var ctx sdk.Context @@ -594,13 +594,9 @@ func (app *BaseApp) ExtendVote(_ context.Context, req *abci.ExtendVoteRequest) ( // greater than VoteExtensionsEnableHeight. This defers from the check done // in ValidateVoteExtensions and PrepareProposal in which we'll check for // vote extensions on VoteExtensionsEnableHeight+1. - extsEnabled := cp.Feature != nil && req.Height >= cp.Feature.VoteExtensionsEnableHeight.Value && cp.Feature.VoteExtensionsEnableHeight.Value != 0 + extsEnabled := cp.Abci != nil && req.Height >= cp.Abci.VoteExtensionsEnableHeight && cp.Abci.VoteExtensionsEnableHeight != 0 if !extsEnabled { - // check abci params - extsEnabled = cp.Abci != nil && req.Height >= cp.Abci.VoteExtensionsEnableHeight && cp.Abci.VoteExtensionsEnableHeight != 0 - if !extsEnabled { - return nil, fmt.Errorf("vote extensions are not enabled; unexpected call to ExtendVote at height %d", req.Height) - } + return nil, fmt.Errorf("vote extensions are not enabled; unexpected call to ExtendVote at height %d", req.Height) } ctx = ctx. @@ -631,7 +627,7 @@ func (app *BaseApp) ExtendVote(_ context.Context, req *abci.ExtendVoteRequest) ( resp, err = app.abciHandlers.ExtendVoteHandler(ctx, req) if err != nil { app.logger.Error("failed to extend vote", "height", req.Height, "hash", fmt.Sprintf("%X", req.Hash), "err", err) - return &abci.ExtendVoteResponse{VoteExtension: []byte{}}, nil + return &abci.ResponseExtendVote{VoteExtension: []byte{}}, nil } return resp, err @@ -643,7 +639,7 @@ func (app *BaseApp) ExtendVote(_ context.Context, req *abci.ExtendVoteRequest) ( // logic in verifying a vote extension from another validator during the pre-commit // phase. The response MUST be deterministic. An error is returned if vote // extensions are not enabled or if verifyVoteExt fails or panics. -func (app *BaseApp) VerifyVoteExtension(req *abci.VerifyVoteExtensionRequest) (resp *abci.VerifyVoteExtensionResponse, err error) { +func (app *BaseApp) VerifyVoteExtension(req *abci.RequestVerifyVoteExtension) (resp *abci.ResponseVerifyVoteExtension, err error) { if app.abciHandlers.VerifyVoteExtensionHandler == nil { return nil, errors.New("application VerifyVoteExtension handler not set") } @@ -667,13 +663,9 @@ func (app *BaseApp) VerifyVoteExtension(req *abci.VerifyVoteExtensionRequest) (r // Note: we verify votes extensions on VoteExtensionsEnableHeight+1. Check // comment in ExtendVote and ValidateVoteExtensions for more details. - extsEnabled := cp.Feature.VoteExtensionsEnableHeight != nil && req.Height >= cp.Feature.VoteExtensionsEnableHeight.Value && cp.Feature.VoteExtensionsEnableHeight.Value != 0 + extsEnabled := cp.Abci != nil && req.Height >= cp.Abci.VoteExtensionsEnableHeight && cp.Abci.VoteExtensionsEnableHeight != 0 if !extsEnabled { - // check abci params - extsEnabled = cp.Abci != nil && req.Height >= cp.Abci.VoteExtensionsEnableHeight && cp.Abci.VoteExtensionsEnableHeight != 0 - if !extsEnabled { - return nil, fmt.Errorf("vote extensions are not enabled; unexpected call to VerifyVoteExtension at height %d", req.Height) - } + return nil, fmt.Errorf("vote extensions are not enabled; unexpected call to VerifyVoteExtension at height %d", req.Height) } // add a deferred recover handler in case verifyVoteExt panics @@ -705,7 +697,7 @@ func (app *BaseApp) VerifyVoteExtension(req *abci.VerifyVoteExtensionRequest) (r resp, err = app.abciHandlers.VerifyVoteExtensionHandler(ctx, req) if err != nil { app.logger.Error("failed to verify vote extension", "height", req.Height, "err", err) - return &abci.VerifyVoteExtensionResponse{Status: abci.VERIFY_VOTE_EXTENSION_STATUS_REJECT}, nil + return &abci.ResponseVerifyVoteExtension{Status: abci.ResponseVerifyVoteExtension_REJECT}, nil } return resp, err @@ -715,7 +707,7 @@ func (app *BaseApp) VerifyVoteExtension(req *abci.VerifyVoteExtensionRequest) (r // Execution flow or by the FinalizeBlock ABCI method. The context received is // only used to handle early cancellation, for anything related to state app.stateManager.GetState(execModeFinalize).Context() // must be used. -func (app *BaseApp) internalFinalizeBlock(ctx context.Context, req *abci.FinalizeBlockRequest) (*abci.FinalizeBlockResponse, error) { +func (app *BaseApp) internalFinalizeBlock(ctx context.Context, req *abci.RequestFinalizeBlock) (*abci.ResponseFinalizeBlock, error) { var events []abci.Event if err := app.checkHalt(req.Height, req.Time); err != nil { @@ -863,12 +855,11 @@ func (app *BaseApp) internalFinalizeBlock(ctx context.Context, req *abci.Finaliz events = append(events, endBlock.Events...) cp := app.GetConsensusParams(finalizeState.Context()) - return &abci.FinalizeBlockResponse{ + return &abci.ResponseFinalizeBlock{ Events: events, TxResults: txResults, ValidatorUpdates: endBlock.ValidatorUpdates, ConsensusParamUpdates: &cp, - NextBlockDelay: app.nextBlockDelay, }, nil } @@ -877,12 +868,12 @@ func (app *BaseApp) internalFinalizeBlock(ctx context.Context, req *abci.Finaliz // by the transactions in the proposal, finally followed by the application's // EndBlock (if defined). // -// For each raw transaction, i.e., a byte slice, BaseApp will only execute it if +// For each raw transaction, i.e. a byte slice, BaseApp will only execute it if // it adheres to the sdk.Tx interface. Otherwise, the raw transaction will be // skipped. This is to support compatibility with proposers injecting vote // extensions into the proposal, which should not themselves be executed in cases // where they adhere to the sdk.Tx interface. -func (app *BaseApp) FinalizeBlock(req *abci.FinalizeBlockRequest) (res *abci.FinalizeBlockResponse, err error) { +func (app *BaseApp) FinalizeBlock(req *abci.RequestFinalizeBlock) (res *abci.ResponseFinalizeBlock, err error) { defer func() { if res == nil { return @@ -924,7 +915,7 @@ func (app *BaseApp) FinalizeBlock(req *abci.FinalizeBlockRequest) (res *abci.Fin return res, err } -// checkHalt checks if height or time exceeds halt-height or halt-time respectively. +// checkHalt checkes if height or time exceeds halt-height or halt-time respectively. func (app *BaseApp) checkHalt(height int64, time time.Time) error { var halt bool switch { @@ -944,12 +935,12 @@ func (app *BaseApp) checkHalt(height int64, time time.Time) error { // Commit implements the ABCI interface. It will commit all state that exists in // the deliver state's multi-store and includes the resulting commit ID in the -// returned abci.CommitResponse. Commit will set the check state based on the +// returned abci.ResponseCommit. Commit will set the check state based on the // latest header and reset the deliver state. Also, if a non-zero halt height is // defined in config, Commit will execute a deferred function call to check // against that height and gracefully halt if it matches the latest committed // height. -func (app *BaseApp) Commit() (*abci.CommitResponse, error) { +func (app *BaseApp) Commit() (*abci.ResponseCommit, error) { finalizeState := app.stateManager.GetState(execModeFinalize) header := finalizeState.Context().BlockHeader() retainHeight := app.GetBlockRetentionHeight(header.Height) @@ -965,7 +956,7 @@ func (app *BaseApp) Commit() (*abci.CommitResponse, error) { app.cms.Commit() - resp := &abci.CommitResponse{ + resp := &abci.ResponseCommit{ RetainHeight: retainHeight, } @@ -1018,7 +1009,7 @@ func (app *BaseApp) workingHash() []byte { return commitHash } -func handleQueryApp(app *BaseApp, path []string, req *abci.QueryRequest) *abci.QueryResponse { +func handleQueryApp(app *BaseApp, path []string, req *abci.RequestQuery) *abci.ResponseQuery { if len(path) >= 2 { switch path[1] { case "simulate": @@ -1039,14 +1030,14 @@ func handleQueryApp(app *BaseApp, path []string, req *abci.QueryRequest) *abci.Q return sdkerrors.QueryResult(errorsmod.Wrap(err, "failed to JSON encode simulation response"), app.trace) } - return &abci.QueryResponse{ + return &abci.ResponseQuery{ Codespace: sdkerrors.RootCodespace, Height: req.Height, Value: bz, } case "version": - return &abci.QueryResponse{ + return &abci.ResponseQuery{ Codespace: sdkerrors.RootCodespace, Height: req.Height, Value: []byte(app.version), @@ -1064,7 +1055,7 @@ func handleQueryApp(app *BaseApp, path []string, req *abci.QueryRequest) *abci.Q ), app.trace) } -func handleQueryStore(app *BaseApp, path []string, req abci.QueryRequest) *abci.QueryResponse { +func handleQueryStore(app *BaseApp, path []string, req abci.RequestQuery) *abci.ResponseQuery { // "/store" prefix for store queries queryable, ok := app.cms.(storetypes.Queryable) if !ok { @@ -1088,18 +1079,18 @@ func handleQueryStore(app *BaseApp, path []string, req abci.QueryRequest) *abci. } resp.Height = req.Height - abciResp := abci.QueryResponse(*resp) + abciResp := abci.ResponseQuery(*resp) return &abciResp } -func handleQueryP2P(app *BaseApp, path []string) *abci.QueryResponse { +func handleQueryP2P(app *BaseApp, path []string) *abci.ResponseQuery { // "/p2p" prefix for p2p queries if len(path) < 4 { return sdkerrors.QueryResult(errorsmod.Wrap(sdkerrors.ErrUnknownRequest, "path should be p2p filter "), app.trace) } - var resp *abci.QueryResponse + var resp *abci.ResponseQuery cmd, typ, arg := path[1], path[2], path[3] switch cmd { @@ -1134,21 +1125,21 @@ func SplitABCIQueryPath(requestPath string) (path []string) { } // FilterPeerByAddrPort filters peers by address/port. -func (app *BaseApp) FilterPeerByAddrPort(info string) *abci.QueryResponse { +func (app *BaseApp) FilterPeerByAddrPort(info string) *abci.ResponseQuery { if app.addrPeerFilter != nil { return app.addrPeerFilter(info) } - return &abci.QueryResponse{} + return &abci.ResponseQuery{} } // FilterPeerByID filters peers by node ID. -func (app *BaseApp) FilterPeerByID(info string) *abci.QueryResponse { +func (app *BaseApp) FilterPeerByID(info string) *abci.ResponseQuery { if app.idPeerFilter != nil { return app.idPeerFilter(info) } - return &abci.QueryResponse{} + return &abci.ResponseQuery{} } // getContextForProposal returns the correct Context for PrepareProposal and @@ -1166,7 +1157,7 @@ func (app *BaseApp) getContextForProposal(ctx sdk.Context, height int64) sdk.Con return ctx } -func (app *BaseApp) handleQueryGRPC(handler GRPCQueryHandler, req *abci.QueryRequest) *abci.QueryResponse { +func (app *BaseApp) handleQueryGRPC(handler GRPCQueryHandler, req *abci.RequestQuery) *abci.ResponseQuery { ctx, err := app.CreateQueryContext(req.Height, req.Prove) if err != nil { return sdkerrors.QueryResult(err, app.trace) diff --git a/baseapp/abci_test.go b/baseapp/abci_test.go index 0c384fe981..f23b274f23 100644 --- a/baseapp/abci_test.go +++ b/baseapp/abci_test.go @@ -15,15 +15,14 @@ import ( "testing" "time" - cmtprotocrypto "github.com/cometbft/cometbft/api/cometbft/crypto/v1" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - abci "github.com/cometbft/cometbft/v2/abci/types" - "github.com/cometbft/cometbft/v2/crypto/secp256k1" + abci "github.com/cometbft/cometbft/abci/types" + "github.com/cometbft/cometbft/crypto/secp256k1" + cmtprotocrypto "github.com/cometbft/cometbft/proto/tendermint/crypto" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" dbm "github.com/cosmos/cosmos-db" protoio "github.com/cosmos/gogoproto/io" "github.com/cosmos/gogoproto/jsonpb" "github.com/cosmos/gogoproto/proto" - gogotypes "github.com/cosmos/gogoproto/types" "github.com/stretchr/testify/require" "go.uber.org/mock/gomock" @@ -46,21 +45,21 @@ import ( ) type mockABCIListener struct { - ListenCommitFn func(context.Context, abci.CommitResponse, []*storetypes.StoreKVPair) error + ListenCommitFn func(context.Context, abci.ResponseCommit, []*storetypes.StoreKVPair) error } -func (m mockABCIListener) ListenFinalizeBlock(_ context.Context, _ abci.FinalizeBlockRequest, _ abci.FinalizeBlockResponse) error { +func (m mockABCIListener) ListenFinalizeBlock(_ context.Context, _ abci.RequestFinalizeBlock, _ abci.ResponseFinalizeBlock) error { return nil } -func (m *mockABCIListener) ListenCommit(ctx context.Context, commit abci.CommitResponse, pairs []*storetypes.StoreKVPair) error { +func (m *mockABCIListener) ListenCommit(ctx context.Context, commit abci.ResponseCommit, pairs []*storetypes.StoreKVPair) error { return m.ListenCommitFn(ctx, commit, pairs) } func TestABCI_Info(t *testing.T) { suite := NewBaseAppSuite(t) - reqInfo := abci.InfoRequest{} + reqInfo := abci.RequestInfo{} res, err := suite.baseApp.Info(&reqInfo) require.NoError(t, err) @@ -77,7 +76,7 @@ func TestABCI_First_block_Height(t *testing.T) { suite := NewBaseAppSuite(t, baseapp.SetChainID("test-chain-id")) app := suite.baseApp - _, err := app.InitChain(&abci.InitChainRequest{ + _, err := app.InitChain(&abci.RequestInitChain{ ChainId: "test-chain-id", ConsensusParams: &cmtproto.ConsensusParams{Block: &cmtproto.BlockParams{MaxGas: 5000000}}, InitialHeight: 1, @@ -102,23 +101,23 @@ func TestABCI_InitChain(t *testing.T) { // set a value in the store on init chain key, value := []byte("hello"), []byte("goodbye") - var initChainer sdk.InitChainer = func(ctx sdk.Context, req *abci.InitChainRequest) (*abci.InitChainResponse, error) { + var initChainer sdk.InitChainer = func(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error) { store := ctx.KVStore(capKey) store.Set(key, value) - return &abci.InitChainResponse{}, nil + return &abci.ResponseInitChain{}, nil } - query := abci.QueryRequest{ + query := abci.RequestQuery{ Path: "/store/main/key", Data: key, } // initChain is nil and chain ID is wrong - errors - _, err := app.InitChain(&abci.InitChainRequest{ChainId: "wrong-chain-id"}) + _, err := app.InitChain(&abci.RequestInitChain{ChainId: "wrong-chain-id"}) require.Error(t, err) // initChain is nil - nothing happens - _, err = app.InitChain(&abci.InitChainRequest{ChainId: "test-chain-id"}) + _, err = app.InitChain(&abci.RequestInitChain{ChainId: "test-chain-id"}) require.NoError(t, err) resQ, err := app.Query(context.TODO(), &query) require.NoError(t, err) @@ -132,7 +131,7 @@ func TestABCI_InitChain(t *testing.T) { require.Nil(t, err) require.Equal(t, int64(0), app.LastBlockHeight()) - initChainRes, err := app.InitChain(&abci.InitChainRequest{AppStateBytes: []byte("{}"), ChainId: "test-chain-id"}) // must have valid JSON genesis file, even if empty + initChainRes, err := app.InitChain(&abci.RequestInitChain{AppStateBytes: []byte("{}"), ChainId: "test-chain-id"}) // must have valid JSON genesis file, even if empty require.NoError(t, err) // The AppHash returned by a new chain is the sha256 hash of "". @@ -151,7 +150,7 @@ func TestABCI_InitChain(t *testing.T) { chainID = getCheckStateCtx(app).ChainID() require.Equal(t, "test-chain-id", chainID, "ChainID in checkState not set correctly in InitChain") - _, err = app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = app.FinalizeBlock(&abci.RequestFinalizeBlock{ Hash: initChainRes.AppHash, Height: 1, }) @@ -179,7 +178,7 @@ func TestABCI_InitChain(t *testing.T) { require.Equal(t, value, resQ.Value) // commit and ensure we can still query - _, err = app.FinalizeBlock(&abci.FinalizeBlockRequest{Height: app.LastBlockHeight() + 1}) + _, err = app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: app.LastBlockHeight() + 1}) require.NoError(t, err) _, err = app.Commit() require.NoError(t, err) @@ -195,7 +194,7 @@ func TestABCI_InitChain_WithInitialHeight(t *testing.T) { app := baseapp.NewBaseApp(name, log.NewTestLogger(t), db, nil) _, err := app.InitChain( - &abci.InitChainRequest{ + &abci.RequestInitChain{ InitialHeight: 3, }, ) @@ -212,16 +211,16 @@ func TestABCI_FinalizeBlock_WithInitialHeight(t *testing.T) { app := baseapp.NewBaseApp(name, log.NewTestLogger(t), db, nil) _, err := app.InitChain( - &abci.InitChainRequest{ + &abci.RequestInitChain{ InitialHeight: 3, }, ) require.NoError(t, err) - _, err = app.FinalizeBlock(&abci.FinalizeBlockRequest{Height: 4}) + _, err = app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: 4}) require.Error(t, err, "invalid height: 4; expected: 3") - _, err = app.FinalizeBlock(&abci.FinalizeBlockRequest{Height: 3}) + _, err = app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: 3}) require.NoError(t, err) _, err = app.Commit() require.NoError(t, err) @@ -267,13 +266,13 @@ func TestABCI_FinalizeBlock_WithBeginAndEndBlocker(t *testing.T) { }) _, err := app.InitChain( - &abci.InitChainRequest{ + &abci.RequestInitChain{ InitialHeight: 1, }, ) require.NoError(t, err) - res, err := app.FinalizeBlock(&abci.FinalizeBlockRequest{Height: 1}) + res, err := app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: 1}) require.NoError(t, err) require.Len(t, res.Events, 2) @@ -301,28 +300,28 @@ func TestABCI_ExtendVote(t *testing.T) { db := dbm.NewMemDB() app := baseapp.NewBaseApp(name, log.NewTestLogger(t), db, nil) - app.SetExtendVoteHandler(func(ctx sdk.Context, req *abci.ExtendVoteRequest) (*abci.ExtendVoteResponse, error) { + app.SetExtendVoteHandler(func(ctx sdk.Context, req *abci.RequestExtendVote) (*abci.ResponseExtendVote, error) { voteExt := "foo" + hex.EncodeToString(req.Hash) + strconv.FormatInt(req.Height, 10) - return &abci.ExtendVoteResponse{VoteExtension: []byte(voteExt)}, nil + return &abci.ResponseExtendVote{VoteExtension: []byte(voteExt)}, nil }) - app.SetVerifyVoteExtensionHandler(func(ctx sdk.Context, req *abci.VerifyVoteExtensionRequest) (*abci.VerifyVoteExtensionResponse, error) { + app.SetVerifyVoteExtensionHandler(func(ctx sdk.Context, req *abci.RequestVerifyVoteExtension) (*abci.ResponseVerifyVoteExtension, error) { // do some kind of verification here expectedVoteExt := "foo" + hex.EncodeToString(req.Hash) + strconv.FormatInt(req.Height, 10) if !bytes.Equal(req.VoteExtension, []byte(expectedVoteExt)) { - return &abci.VerifyVoteExtensionResponse{Status: abci.VERIFY_VOTE_EXTENSION_STATUS_REJECT}, nil + return &abci.ResponseVerifyVoteExtension{Status: abci.ResponseVerifyVoteExtension_REJECT}, nil } - return &abci.VerifyVoteExtensionResponse{Status: abci.VERIFY_VOTE_EXTENSION_STATUS_ACCEPT}, nil + return &abci.ResponseVerifyVoteExtension{Status: abci.ResponseVerifyVoteExtension_ACCEPT}, nil }) app.SetParamStore(¶mStore{db: dbm.NewMemDB()}) _, err := app.InitChain( - &abci.InitChainRequest{ + &abci.RequestInitChain{ InitialHeight: 1, ConsensusParams: &cmtproto.ConsensusParams{ - Feature: &cmtproto.FeatureParams{ - VoteExtensionsEnableHeight: &gogotypes.Int64Value{Value: 200}, + Abci: &cmtproto.ABCIParams{ + VoteExtensionsEnableHeight: 200, }, }, }, @@ -330,51 +329,51 @@ func TestABCI_ExtendVote(t *testing.T) { require.NoError(t, err) // Votes not enabled yet - _, err = app.ExtendVote(context.Background(), &abci.ExtendVoteRequest{Height: 123, Hash: []byte("thehash")}) + _, err = app.ExtendVote(context.Background(), &abci.RequestExtendVote{Height: 123, Hash: []byte("thehash")}) require.ErrorContains(t, err, "vote extensions are not enabled") // First vote on the first enabled height - res, err := app.ExtendVote(context.Background(), &abci.ExtendVoteRequest{Height: 200, Hash: []byte("thehash")}) + res, err := app.ExtendVote(context.Background(), &abci.RequestExtendVote{Height: 200, Hash: []byte("thehash")}) require.NoError(t, err) require.Len(t, res.VoteExtension, 20) - res, err = app.ExtendVote(context.Background(), &abci.ExtendVoteRequest{Height: 1000, Hash: []byte("thehash")}) + res, err = app.ExtendVote(context.Background(), &abci.RequestExtendVote{Height: 1000, Hash: []byte("thehash")}) require.NoError(t, err) require.Len(t, res.VoteExtension, 21) // Error during vote extension should return an empty vote extension and no error - app.SetExtendVoteHandler(func(ctx sdk.Context, req *abci.ExtendVoteRequest) (*abci.ExtendVoteResponse, error) { + app.SetExtendVoteHandler(func(ctx sdk.Context, req *abci.RequestExtendVote) (*abci.ResponseExtendVote, error) { return nil, errors.New("some error") }) - res, err = app.ExtendVote(context.Background(), &abci.ExtendVoteRequest{Height: 1000, Hash: []byte("thehash")}) + res, err = app.ExtendVote(context.Background(), &abci.RequestExtendVote{Height: 1000, Hash: []byte("thehash")}) require.NoError(t, err) require.Len(t, res.VoteExtension, 0) // Verify Vote Extensions - _, err = app.VerifyVoteExtension(&abci.VerifyVoteExtensionRequest{Height: 123, VoteExtension: []byte("1234567")}) + _, err = app.VerifyVoteExtension(&abci.RequestVerifyVoteExtension{Height: 123, VoteExtension: []byte("1234567")}) require.ErrorContains(t, err, "vote extensions are not enabled") // First vote on the first enabled height - vres, err := app.VerifyVoteExtension(&abci.VerifyVoteExtensionRequest{Height: 200, Hash: []byte("thehash"), VoteExtension: []byte("foo74686568617368200")}) + vres, err := app.VerifyVoteExtension(&abci.RequestVerifyVoteExtension{Height: 200, Hash: []byte("thehash"), VoteExtension: []byte("foo74686568617368200")}) require.NoError(t, err) - require.Equal(t, abci.VERIFY_VOTE_EXTENSION_STATUS_ACCEPT, vres.Status) + require.Equal(t, abci.ResponseVerifyVoteExtension_ACCEPT, vres.Status) - vres, err = app.VerifyVoteExtension(&abci.VerifyVoteExtensionRequest{Height: 1000, Hash: []byte("thehash"), VoteExtension: []byte("foo746865686173681000")}) + vres, err = app.VerifyVoteExtension(&abci.RequestVerifyVoteExtension{Height: 1000, Hash: []byte("thehash"), VoteExtension: []byte("foo746865686173681000")}) require.NoError(t, err) - require.Equal(t, abci.VERIFY_VOTE_EXTENSION_STATUS_ACCEPT, vres.Status) + require.Equal(t, abci.ResponseVerifyVoteExtension_ACCEPT, vres.Status) // Reject because it's just some random bytes - vres, err = app.VerifyVoteExtension(&abci.VerifyVoteExtensionRequest{Height: 201, Hash: []byte("thehash"), VoteExtension: []byte("12345678")}) + vres, err = app.VerifyVoteExtension(&abci.RequestVerifyVoteExtension{Height: 201, Hash: []byte("thehash"), VoteExtension: []byte("12345678")}) require.NoError(t, err) - require.Equal(t, abci.VERIFY_VOTE_EXTENSION_STATUS_REJECT, vres.Status) + require.Equal(t, abci.ResponseVerifyVoteExtension_REJECT, vres.Status) // Reject because the verification failed (no error) - app.SetVerifyVoteExtensionHandler(func(ctx sdk.Context, req *abci.VerifyVoteExtensionRequest) (*abci.VerifyVoteExtensionResponse, error) { + app.SetVerifyVoteExtensionHandler(func(ctx sdk.Context, req *abci.RequestVerifyVoteExtension) (*abci.ResponseVerifyVoteExtension, error) { return nil, errors.New("some error") }) - vres, err = app.VerifyVoteExtension(&abci.VerifyVoteExtensionRequest{Height: 201, Hash: []byte("thehash"), VoteExtension: []byte("12345678")}) + vres, err = app.VerifyVoteExtension(&abci.RequestVerifyVoteExtension{Height: 201, Hash: []byte("thehash"), VoteExtension: []byte("12345678")}) require.NoError(t, err) - require.Equal(t, abci.VERIFY_VOTE_EXTENSION_STATUS_REJECT, vres.Status) + require.Equal(t, abci.ResponseVerifyVoteExtension_REJECT, vres.Status) } // TestABCI_OnlyVerifyVoteExtension makes sure we can call VerifyVoteExtension @@ -384,23 +383,23 @@ func TestABCI_OnlyVerifyVoteExtension(t *testing.T) { db := dbm.NewMemDB() app := baseapp.NewBaseApp(name, log.NewTestLogger(t), db, nil) - app.SetVerifyVoteExtensionHandler(func(ctx sdk.Context, req *abci.VerifyVoteExtensionRequest) (*abci.VerifyVoteExtensionResponse, error) { + app.SetVerifyVoteExtensionHandler(func(ctx sdk.Context, req *abci.RequestVerifyVoteExtension) (*abci.ResponseVerifyVoteExtension, error) { // do some kind of verification here expectedVoteExt := "foo" + hex.EncodeToString(req.Hash) + strconv.FormatInt(req.Height, 10) if !bytes.Equal(req.VoteExtension, []byte(expectedVoteExt)) { - return &abci.VerifyVoteExtensionResponse{Status: abci.VERIFY_VOTE_EXTENSION_STATUS_REJECT}, nil + return &abci.ResponseVerifyVoteExtension{Status: abci.ResponseVerifyVoteExtension_REJECT}, nil } - return &abci.VerifyVoteExtensionResponse{Status: abci.VERIFY_VOTE_EXTENSION_STATUS_ACCEPT}, nil + return &abci.ResponseVerifyVoteExtension{Status: abci.ResponseVerifyVoteExtension_ACCEPT}, nil }) app.SetParamStore(¶mStore{db: dbm.NewMemDB()}) _, err := app.InitChain( - &abci.InitChainRequest{ + &abci.RequestInitChain{ InitialHeight: 1, ConsensusParams: &cmtproto.ConsensusParams{ - Feature: &cmtproto.FeatureParams{ - VoteExtensionsEnableHeight: &gogotypes.Int64Value{Value: 200}, + Abci: &cmtproto.ABCIParams{ + VoteExtensionsEnableHeight: 200, }, }, }, @@ -408,30 +407,30 @@ func TestABCI_OnlyVerifyVoteExtension(t *testing.T) { require.NoError(t, err) // Verify Vote Extensions - _, err = app.VerifyVoteExtension(&abci.VerifyVoteExtensionRequest{Height: 123, VoteExtension: []byte("1234567")}) + _, err = app.VerifyVoteExtension(&abci.RequestVerifyVoteExtension{Height: 123, VoteExtension: []byte("1234567")}) require.ErrorContains(t, err, "vote extensions are not enabled") // First vote on the first enabled height - vres, err := app.VerifyVoteExtension(&abci.VerifyVoteExtensionRequest{Height: 200, Hash: []byte("thehash"), VoteExtension: []byte("foo74686568617368200")}) + vres, err := app.VerifyVoteExtension(&abci.RequestVerifyVoteExtension{Height: 200, Hash: []byte("thehash"), VoteExtension: []byte("foo74686568617368200")}) require.NoError(t, err) - require.Equal(t, abci.VERIFY_VOTE_EXTENSION_STATUS_ACCEPT, vres.Status) + require.Equal(t, abci.ResponseVerifyVoteExtension_ACCEPT, vres.Status) - vres, err = app.VerifyVoteExtension(&abci.VerifyVoteExtensionRequest{Height: 1000, Hash: []byte("thehash"), VoteExtension: []byte("foo746865686173681000")}) + vres, err = app.VerifyVoteExtension(&abci.RequestVerifyVoteExtension{Height: 1000, Hash: []byte("thehash"), VoteExtension: []byte("foo746865686173681000")}) require.NoError(t, err) - require.Equal(t, abci.VERIFY_VOTE_EXTENSION_STATUS_ACCEPT, vres.Status) + require.Equal(t, abci.ResponseVerifyVoteExtension_ACCEPT, vres.Status) // Reject because it's just some random bytes - vres, err = app.VerifyVoteExtension(&abci.VerifyVoteExtensionRequest{Height: 201, Hash: []byte("thehash"), VoteExtension: []byte("12345678")}) + vres, err = app.VerifyVoteExtension(&abci.RequestVerifyVoteExtension{Height: 201, Hash: []byte("thehash"), VoteExtension: []byte("12345678")}) require.NoError(t, err) - require.Equal(t, abci.VERIFY_VOTE_EXTENSION_STATUS_REJECT, vres.Status) + require.Equal(t, abci.ResponseVerifyVoteExtension_REJECT, vres.Status) // Reject because the verification failed (no error) - app.SetVerifyVoteExtensionHandler(func(ctx sdk.Context, req *abci.VerifyVoteExtensionRequest) (*abci.VerifyVoteExtensionResponse, error) { + app.SetVerifyVoteExtensionHandler(func(ctx sdk.Context, req *abci.RequestVerifyVoteExtension) (*abci.ResponseVerifyVoteExtension, error) { return nil, errors.New("some error") }) - vres, err = app.VerifyVoteExtension(&abci.VerifyVoteExtensionRequest{Height: 201, Hash: []byte("thehash"), VoteExtension: []byte("12345678")}) + vres, err = app.VerifyVoteExtension(&abci.RequestVerifyVoteExtension{Height: 201, Hash: []byte("thehash"), VoteExtension: []byte("12345678")}) require.NoError(t, err) - require.Equal(t, abci.VERIFY_VOTE_EXTENSION_STATUS_REJECT, vres.Status) + require.Equal(t, abci.ResponseVerifyVoteExtension_REJECT, vres.Status) } func TestABCI_GRPCQuery(t *testing.T) { @@ -444,7 +443,7 @@ func TestABCI_GRPCQuery(t *testing.T) { suite := NewBaseAppSuite(t, grpcQueryOpt) - _, err := suite.baseApp.InitChain(&abci.InitChainRequest{ + _, err := suite.baseApp.InitChain(&abci.RequestInitChain{ ConsensusParams: &cmtproto.ConsensusParams{}, }) require.NoError(t, err) @@ -453,7 +452,7 @@ func TestABCI_GRPCQuery(t *testing.T) { reqBz, err := req.Marshal() require.NoError(t, err) - resQuery, err := suite.baseApp.Query(context.TODO(), &abci.QueryRequest{ + resQuery, err := suite.baseApp.Query(context.TODO(), &abci.RequestQuery{ Data: reqBz, Path: "/testpb.Query/SayHello", }) @@ -461,12 +460,12 @@ func TestABCI_GRPCQuery(t *testing.T) { require.Equal(t, sdkerrors.ErrInvalidHeight.ABCICode(), resQuery.Code, resQuery) require.Contains(t, resQuery.Log, "TestABCI_GRPCQuery is not ready; please wait for first block") - _, err = suite.baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{Height: suite.baseApp.LastBlockHeight() + 1}) + _, err = suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{Height: suite.baseApp.LastBlockHeight() + 1}) require.NoError(t, err) _, err = suite.baseApp.Commit() require.NoError(t, err) - reqQuery := abci.QueryRequest{ + reqQuery := abci.RequestQuery{ Data: reqBz, Path: "/testpb.Query/SayHello", } @@ -482,29 +481,29 @@ func TestABCI_GRPCQuery(t *testing.T) { func TestABCI_P2PQuery(t *testing.T) { addrPeerFilterOpt := func(bapp *baseapp.BaseApp) { - bapp.SetAddrPeerFilter(func(addrport string) *abci.QueryResponse { + bapp.SetAddrPeerFilter(func(addrport string) *abci.ResponseQuery { require.Equal(t, "1.1.1.1:8000", addrport) - return &abci.QueryResponse{Code: uint32(3)} + return &abci.ResponseQuery{Code: uint32(3)} }) } idPeerFilterOpt := func(bapp *baseapp.BaseApp) { - bapp.SetIDPeerFilter(func(id string) *abci.QueryResponse { + bapp.SetIDPeerFilter(func(id string) *abci.ResponseQuery { require.Equal(t, "testid", id) - return &abci.QueryResponse{Code: uint32(4)} + return &abci.ResponseQuery{Code: uint32(4)} }) } suite := NewBaseAppSuite(t, addrPeerFilterOpt, idPeerFilterOpt) - addrQuery := abci.QueryRequest{ + addrQuery := abci.RequestQuery{ Path: "/p2p/filter/addr/1.1.1.1:8000", } res, err := suite.baseApp.Query(context.TODO(), &addrQuery) require.NoError(t, err) require.Equal(t, uint32(3), res.Code) - idQuery := abci.QueryRequest{ + idQuery := abci.RequestQuery{ Path: "/p2p/filter/id/testid", } res, err = suite.baseApp.Query(context.TODO(), &idQuery) @@ -525,7 +524,7 @@ func TestBaseApp_PrepareCheckState(t *testing.T) { app := baseapp.NewBaseApp(name, logger, db, nil) app.SetParamStore(¶mStore{db: dbm.NewMemDB()}) - _, err := app.InitChain(&abci.InitChainRequest{ + _, err := app.InitChain(&abci.RequestInitChain{ ConsensusParams: cp, }) require.NoError(t, err) @@ -554,7 +553,7 @@ func TestBaseApp_Precommit(t *testing.T) { app := baseapp.NewBaseApp(name, logger, db, nil) app.SetParamStore(¶mStore{db: dbm.NewMemDB()}) - _, err := app.InitChain(&abci.InitChainRequest{ + _, err := app.InitChain(&abci.RequestInitChain{ ConsensusParams: cp, }) require.NoError(t, err) @@ -581,7 +580,7 @@ func TestABCI_CheckTx(t *testing.T) { baseapptestutil.RegisterCounterServer(suite.baseApp.MsgServiceRouter(), CounterServerImpl{t, capKey1, counterKey}) nTxs := int64(5) - _, err := suite.baseApp.InitChain(&abci.InitChainRequest{ + _, err := suite.baseApp.InitChain(&abci.RequestInitChain{ ConsensusParams: &cmtproto.ConsensusParams{}, }) require.NoError(t, err) @@ -591,10 +590,7 @@ func TestABCI_CheckTx(t *testing.T) { txBytes, err := suite.txConfig.TxEncoder()(tx) require.NoError(t, err) - r, err := suite.baseApp.CheckTx(&abci.CheckTxRequest{ - Type: abci.CHECK_TX_TYPE_CHECK, - Tx: txBytes, - }) + r, err := suite.baseApp.CheckTx(&abci.RequestCheckTx{Tx: txBytes}) require.NoError(t, err) require.True(t, r.IsOK(), fmt.Sprintf("%v", r)) require.Empty(t, r.GetEvents()) @@ -607,7 +603,7 @@ func TestABCI_CheckTx(t *testing.T) { require.Equal(t, nTxs, storedCounter) // if a block is committed, CheckTx state should be reset - _, err = suite.baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: 1, Hash: []byte("hash"), }) @@ -629,7 +625,7 @@ func TestABCI_FinalizeBlock_DeliverTx(t *testing.T) { anteOpt := func(bapp *baseapp.BaseApp) { bapp.SetAnteHandler(anteHandlerTxTest(t, capKey1, anteKey)) } suite := NewBaseAppSuite(t, anteOpt) - _, err := suite.baseApp.InitChain(&abci.InitChainRequest{ + _, err := suite.baseApp.InitChain(&abci.RequestInitChain{ ConsensusParams: &cmtproto.ConsensusParams{}, }) require.NoError(t, err) @@ -653,7 +649,7 @@ func TestABCI_FinalizeBlock_DeliverTx(t *testing.T) { txs = append(txs, txBytes) } - res, err := suite.baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{ + res, err := suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: int64(blockN) + 1, Txs: txs, }) @@ -679,7 +675,7 @@ func TestABCI_FinalizeBlock_MultiMsg(t *testing.T) { anteOpt := func(bapp *baseapp.BaseApp) { bapp.SetAnteHandler(anteHandlerTxTest(t, capKey1, anteKey)) } suite := NewBaseAppSuite(t, anteOpt) - _, err := suite.baseApp.InitChain(&abci.InitChainRequest{ + _, err := suite.baseApp.InitChain(&abci.RequestInitChain{ ConsensusParams: &cmtproto.ConsensusParams{}, }) require.NoError(t, err) @@ -696,7 +692,7 @@ func TestABCI_FinalizeBlock_MultiMsg(t *testing.T) { txBytes, err := suite.txConfig.TxEncoder()(tx) require.NoError(t, err) - _, err = suite.baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: 1, Txs: [][]byte{txBytes}, }) @@ -728,7 +724,7 @@ func TestABCI_FinalizeBlock_MultiMsg(t *testing.T) { txBytes, err = suite.txConfig.TxEncoder()(builder.GetTx()) require.NoError(t, err) - _, err = suite.baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: 1, Txs: [][]byte{txBytes}, }) @@ -759,7 +755,7 @@ func TestABCI_Query_SimulateTx(t *testing.T) { } suite := NewBaseAppSuite(t, anteOpt) - _, err := suite.baseApp.InitChain(&abci.InitChainRequest{ + _, err := suite.baseApp.InitChain(&abci.RequestInitChain{ ConsensusParams: &cmtproto.ConsensusParams{}, }) require.NoError(t, err) @@ -788,7 +784,7 @@ func TestABCI_Query_SimulateTx(t *testing.T) { require.Equal(t, gasConsumed, gInfo.GasUsed) // simulate by calling Query with encoded tx - query := abci.QueryRequest{ + query := abci.RequestQuery{ Path: "/app/simulate", Data: txBytes, } @@ -804,7 +800,7 @@ func TestABCI_Query_SimulateTx(t *testing.T) { require.Equal(t, result.Events, simRes.Result.Events) require.True(t, bytes.Equal(result.Data, simRes.Result.Data)) - _, err = suite.baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{Height: count}) + _, err = suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{Height: count}) require.NoError(t, err) _, err = suite.baseApp.Commit() require.NoError(t, err) @@ -821,12 +817,12 @@ func TestABCI_InvalidTransaction(t *testing.T) { suite := NewBaseAppSuite(t, anteOpt) baseapptestutil.RegisterCounterServer(suite.baseApp.MsgServiceRouter(), CounterServerImplGasMeterOnly{}) - _, err := suite.baseApp.InitChain(&abci.InitChainRequest{ + _, err := suite.baseApp.InitChain(&abci.RequestInitChain{ ConsensusParams: &cmtproto.ConsensusParams{}, }) require.NoError(t, err) - _, err = suite.baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: 1, }) require.NoError(t, err) @@ -834,7 +830,7 @@ func TestABCI_InvalidTransaction(t *testing.T) { // malformed transaction bytes { bz := []byte("example vote extension") - result, err := suite.baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{ + result, err := suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: 1, Txs: [][]byte{bz}, }) @@ -849,7 +845,7 @@ func TestABCI_InvalidTransaction(t *testing.T) { emptyTx := suite.txConfig.NewTxBuilder().GetTx() bz, err := suite.txConfig.TxEncoder()(emptyTx) require.NoError(t, err) - result, err := suite.baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{ + result, err := suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: 1, Txs: [][]byte{bz}, }) @@ -967,12 +963,12 @@ func TestABCI_TxGasLimits(t *testing.T) { suite := NewBaseAppSuite(t, anteOpt) baseapptestutil.RegisterCounterServer(suite.baseApp.MsgServiceRouter(), CounterServerImplGasMeterOnly{}) - _, err := suite.baseApp.InitChain(&abci.InitChainRequest{ + _, err := suite.baseApp.InitChain(&abci.RequestInitChain{ ConsensusParams: &cmtproto.ConsensusParams{}, }) require.NoError(t, err) - _, err = suite.baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: 1, }) require.NoError(t, err) @@ -1009,7 +1005,7 @@ func TestABCI_TxGasLimits(t *testing.T) { } // Deliver the txs - res, err := suite.baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{ + res, err := suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: 2, Txs: txs, }) @@ -1059,7 +1055,7 @@ func TestABCI_MaxBlockGasLimits(t *testing.T) { suite := NewBaseAppSuite(t, anteOpt) baseapptestutil.RegisterCounterServer(suite.baseApp.MsgServiceRouter(), CounterServerImplGasMeterOnly{}) - _, err := suite.baseApp.InitChain(&abci.InitChainRequest{ + _, err := suite.baseApp.InitChain(&abci.RequestInitChain{ ConsensusParams: &cmtproto.ConsensusParams{ Block: &cmtproto.BlockParams{ MaxGas: 100, @@ -1068,7 +1064,7 @@ func TestABCI_MaxBlockGasLimits(t *testing.T) { }) require.NoError(t, err) - _, err = suite.baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{Height: 1}) + _, err = suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{Height: 1}) require.NoError(t, err) testCases := []struct { @@ -1094,7 +1090,7 @@ func TestABCI_MaxBlockGasLimits(t *testing.T) { tx := tc.tx // reset block gas - _, err = suite.baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{Height: suite.baseApp.LastBlockHeight() + 1}) + _, err = suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{Height: suite.baseApp.LastBlockHeight() + 1}) require.NoError(t, err) // execute the transaction multiple times @@ -1160,7 +1156,7 @@ func TestABCI_GasConsumptionBadTx(t *testing.T) { suite := NewBaseAppSuite(t, anteOpt) baseapptestutil.RegisterCounterServer(suite.baseApp.MsgServiceRouter(), CounterServerImplGasMeterOnly{}) - _, err := suite.baseApp.InitChain(&abci.InitChainRequest{ + _, err := suite.baseApp.InitChain(&abci.RequestInitChain{ ConsensusParams: &cmtproto.ConsensusParams{ Block: &cmtproto.BlockParams{ MaxGas: 9, @@ -1179,7 +1175,7 @@ func TestABCI_GasConsumptionBadTx(t *testing.T) { txBytes2, err := suite.txConfig.TxEncoder()(tx) require.NoError(t, err) - _, err = suite.baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: suite.baseApp.LastBlockHeight() + 1, Txs: [][]byte{txBytes, txBytes2}, }) @@ -1199,7 +1195,7 @@ func TestABCI_Query(t *testing.T) { suite := NewBaseAppSuite(t, anteOpt) baseapptestutil.RegisterCounterServer(suite.baseApp.MsgServiceRouter(), CounterServerImplGasMeterOnly{}) - _, err := suite.baseApp.InitChain(&abci.InitChainRequest{ + _, err := suite.baseApp.InitChain(&abci.RequestInitChain{ ConsensusParams: &cmtproto.ConsensusParams{}, }) require.NoError(t, err) @@ -1207,7 +1203,7 @@ func TestABCI_Query(t *testing.T) { // NOTE: "/store/key1" tells us KVStore // and the final "/key" says to use the data as the // key in the given KVStore ... - query := abci.QueryRequest{ + query := abci.RequestQuery{ Path: "/store/key1/key", Data: key, } @@ -1230,7 +1226,7 @@ func TestABCI_Query(t *testing.T) { bz, err := suite.txConfig.TxEncoder()(tx) require.NoError(t, err) - _, err = suite.baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: 1, Txs: [][]byte{bz}, }) @@ -1355,7 +1351,7 @@ func TestABCI_GetBlockRetentionHeight(t *testing.T) { for name, tc := range testCases { tc.bapp.SetParamStore(¶mStore{db: dbm.NewMemDB()}) - _, err = tc.bapp.InitChain(&abci.InitChainRequest{ + _, err = tc.bapp.InitChain(&abci.RequestInitChain{ ConsensusParams: &cmtproto.ConsensusParams{ Evidence: &cmtproto.EvidenceParams{ MaxAgeNumBlocks: tc.maxAgeBlocks, @@ -1385,7 +1381,7 @@ func TestPrepareCheckStateCalledWithCheckState(t *testing.T) { wasPrepareCheckStateCalled = true }) - _, err := app.FinalizeBlock(&abci.FinalizeBlockRequest{Height: 1}) + _, err := app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: 1}) require.NoError(t, err) _, err = app.Commit() require.NoError(t, err) @@ -1409,7 +1405,7 @@ func TestPrecommiterCalledWithDeliverState(t *testing.T) { wasPrecommiterCalled = true }) - _, err := app.FinalizeBlock(&abci.FinalizeBlockRequest{Height: 1}) + _, err := app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: 1}) require.NoError(t, err) _, err = app.Commit() require.NoError(t, err) @@ -1428,7 +1424,7 @@ func TestABCI_Proposal_HappyPath(t *testing.T) { baseapptestutil.RegisterKeyValueServer(suite.baseApp.MsgServiceRouter(), MsgKeyValueImpl{}) baseapptestutil.RegisterCounterServer(suite.baseApp.MsgServiceRouter(), NoopCounterServerImpl{}) - _, err := suite.baseApp.InitChain(&abci.InitChainRequest{ + _, err := suite.baseApp.InitChain(&abci.RequestInitChain{ ConsensusParams: &cmtproto.ConsensusParams{}, }) require.NoError(t, err) @@ -1437,9 +1433,9 @@ func TestABCI_Proposal_HappyPath(t *testing.T) { txBytes, err := suite.txConfig.TxEncoder()(tx) require.NoError(t, err) - reqCheckTx := abci.CheckTxRequest{ + reqCheckTx := abci.RequestCheckTx{ Tx: txBytes, - Type: abci.CHECK_TX_TYPE_CHECK, + Type: abci.CheckTxType_New, } _, err = suite.baseApp.CheckTx(&reqCheckTx) require.NoError(t, err) @@ -1452,7 +1448,7 @@ func TestABCI_Proposal_HappyPath(t *testing.T) { err = pool.Insert(sdk.Context{}, tx2) require.NoError(t, err) - reqPrepareProposal := abci.PrepareProposalRequest{ + reqPrepareProposal := abci.RequestPrepareProposal{ MaxTxBytes: 1000, Height: 1, } @@ -1464,17 +1460,17 @@ func TestABCI_Proposal_HappyPath(t *testing.T) { txBytes, tx2Bytes, } - reqProcessProposal := abci.ProcessProposalRequest{ + reqProcessProposal := abci.RequestProcessProposal{ Txs: reqProposalTxBytes[:], Height: reqPrepareProposal.Height, } resProcessProposal, err := suite.baseApp.ProcessProposal(&reqProcessProposal) require.NoError(t, err) - require.Equal(t, abci.PROCESS_PROPOSAL_STATUS_ACCEPT, resProcessProposal.Status) + require.Equal(t, abci.ResponseProcessProposal_ACCEPT, resProcessProposal.Status) // the same txs as in PrepareProposal - res, err := suite.baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{ + res, err := suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: suite.baseApp.LastBlockHeight() + 1, Txs: reqProposalTxBytes[:], }) @@ -1490,30 +1486,30 @@ func TestABCI_Proposal_Read_State_PrepareProposal(t *testing.T) { someKey := []byte("some-key") setInitChainerOpt := func(bapp *baseapp.BaseApp) { - bapp.SetInitChainer(func(ctx sdk.Context, req *abci.InitChainRequest) (*abci.InitChainResponse, error) { + bapp.SetInitChainer(func(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error) { ctx.KVStore(capKey1).Set(someKey, []byte("foo")) - return &abci.InitChainResponse{}, nil + return &abci.ResponseInitChain{}, nil }) } prepareOpt := func(bapp *baseapp.BaseApp) { - bapp.SetPrepareProposal(func(ctx sdk.Context, req *abci.PrepareProposalRequest) (*abci.PrepareProposalResponse, error) { + bapp.SetPrepareProposal(func(ctx sdk.Context, req *abci.RequestPrepareProposal) (*abci.ResponsePrepareProposal, error) { value := ctx.KVStore(capKey1).Get(someKey) // We should be able to access any state written in InitChain require.Equal(t, "foo", string(value)) - return &abci.PrepareProposalResponse{Txs: req.Txs}, nil + return &abci.ResponsePrepareProposal{Txs: req.Txs}, nil }) } suite := NewBaseAppSuite(t, setInitChainerOpt, prepareOpt) - _, err := suite.baseApp.InitChain(&abci.InitChainRequest{ + _, err := suite.baseApp.InitChain(&abci.RequestInitChain{ InitialHeight: 1, ConsensusParams: &cmtproto.ConsensusParams{}, }) require.NoError(t, err) - reqPrepareProposal := abci.PrepareProposalRequest{ + reqPrepareProposal := abci.RequestPrepareProposal{ MaxTxBytes: 1000, Height: 1, // this value can't be 0 } @@ -1522,51 +1518,51 @@ func TestABCI_Proposal_Read_State_PrepareProposal(t *testing.T) { require.Equal(t, 0, len(resPrepareProposal.Txs)) reqProposalTxBytes := [][]byte{} - reqProcessProposal := abci.ProcessProposalRequest{ + reqProcessProposal := abci.RequestProcessProposal{ Txs: reqProposalTxBytes, Height: reqPrepareProposal.Height, } resProcessProposal, err := suite.baseApp.ProcessProposal(&reqProcessProposal) require.NoError(t, err) - require.Equal(t, abci.PROCESS_PROPOSAL_STATUS_ACCEPT, resProcessProposal.Status) + require.Equal(t, abci.ResponseProcessProposal_ACCEPT, resProcessProposal.Status) } func TestABCI_Proposals_WithVE(t *testing.T) { someVoteExtension := []byte("some-vote-extension") setInitChainerOpt := func(bapp *baseapp.BaseApp) { - bapp.SetInitChainer(func(ctx sdk.Context, req *abci.InitChainRequest) (*abci.InitChainResponse, error) { - return &abci.InitChainResponse{}, nil + bapp.SetInitChainer(func(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error) { + return &abci.ResponseInitChain{}, nil }) } prepareOpt := func(bapp *baseapp.BaseApp) { - bapp.SetPrepareProposal(func(ctx sdk.Context, req *abci.PrepareProposalRequest) (*abci.PrepareProposalResponse, error) { + bapp.SetPrepareProposal(func(ctx sdk.Context, req *abci.RequestPrepareProposal) (*abci.ResponsePrepareProposal, error) { // Inject the vote extension to the beginning of the proposal txs := make([][]byte, len(req.Txs)+1) txs[0] = someVoteExtension copy(txs[1:], req.Txs) - return &abci.PrepareProposalResponse{Txs: txs}, nil + return &abci.ResponsePrepareProposal{Txs: txs}, nil }) - bapp.SetProcessProposal(func(ctx sdk.Context, req *abci.ProcessProposalRequest) (*abci.ProcessProposalResponse, error) { + bapp.SetProcessProposal(func(ctx sdk.Context, req *abci.RequestProcessProposal) (*abci.ResponseProcessProposal, error) { // Check that the vote extension is still there require.Equal(t, someVoteExtension, req.Txs[0]) - return &abci.ProcessProposalResponse{Status: abci.PROCESS_PROPOSAL_STATUS_ACCEPT}, nil + return &abci.ResponseProcessProposal{Status: abci.ResponseProcessProposal_ACCEPT}, nil }) } suite := NewBaseAppSuite(t, setInitChainerOpt, prepareOpt) - _, err := suite.baseApp.InitChain(&abci.InitChainRequest{ + _, err := suite.baseApp.InitChain(&abci.RequestInitChain{ InitialHeight: 1, ConsensusParams: &cmtproto.ConsensusParams{}, }) require.NoError(t, err) - reqPrepareProposal := abci.PrepareProposalRequest{ + reqPrepareProposal := abci.RequestPrepareProposal{ MaxTxBytes: 100000, Height: 1, // this value can't be 0 } @@ -1574,17 +1570,17 @@ func TestABCI_Proposals_WithVE(t *testing.T) { require.NoError(t, err) require.Equal(t, 1, len(resPrepareProposal.Txs)) - reqProcessProposal := abci.ProcessProposalRequest{ + reqProcessProposal := abci.RequestProcessProposal{ Txs: resPrepareProposal.Txs, Height: reqPrepareProposal.Height, } resProcessProposal, err := suite.baseApp.ProcessProposal(&reqProcessProposal) require.NoError(t, err) - require.Equal(t, abci.PROCESS_PROPOSAL_STATUS_ACCEPT, resProcessProposal.Status) + require.Equal(t, abci.ResponseProcessProposal_ACCEPT, resProcessProposal.Status) // Run finalize block and ensure that the vote extension is still there and that // the proposal is accepted - result, err := suite.baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{ + result, err := suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{ Txs: resPrepareProposal.Txs, Height: reqPrepareProposal.Height, }) @@ -1606,7 +1602,7 @@ func TestABCI_PrepareProposal_ReachedMaxBytes(t *testing.T) { suite := NewBaseAppSuite(t, anteOpt, baseapp.SetMempool(pool)) baseapptestutil.RegisterCounterServer(suite.baseApp.MsgServiceRouter(), NoopCounterServerImpl{}) - _, err := suite.baseApp.InitChain(&abci.InitChainRequest{ + _, err := suite.baseApp.InitChain(&abci.RequestInitChain{ ConsensusParams: &cmtproto.ConsensusParams{}, }) require.NoError(t, err) @@ -1617,7 +1613,7 @@ func TestABCI_PrepareProposal_ReachedMaxBytes(t *testing.T) { require.NoError(t, err) } - reqPrepareProposal := abci.PrepareProposalRequest{ + reqPrepareProposal := abci.RequestPrepareProposal{ MaxTxBytes: 1500, Height: 1, } @@ -1636,7 +1632,7 @@ func TestABCI_PrepareProposal_BadEncoding(t *testing.T) { suite := NewBaseAppSuite(t, anteOpt, baseapp.SetMempool(pool)) baseapptestutil.RegisterCounterServer(suite.baseApp.MsgServiceRouter(), NoopCounterServerImpl{}) - _, err := suite.baseApp.InitChain(&abci.InitChainRequest{ + _, err := suite.baseApp.InitChain(&abci.RequestInitChain{ ConsensusParams: &cmtproto.ConsensusParams{}, }) require.NoError(t, err) @@ -1645,7 +1641,7 @@ func TestABCI_PrepareProposal_BadEncoding(t *testing.T) { err = pool.Insert(sdk.Context{}, tx) require.NoError(t, err) - reqPrepareProposal := abci.PrepareProposalRequest{ + reqPrepareProposal := abci.RequestPrepareProposal{ MaxTxBytes: 1000, Height: 1, } @@ -1660,7 +1656,7 @@ func TestABCI_PrepareProposal_OverGasUnderBytes(t *testing.T) { baseapptestutil.RegisterCounterServer(suite.baseApp.MsgServiceRouter(), NoopCounterServerImpl{}) // set max block gas limit to 99, this will allow 9 txs of 10 gas each. - _, err := suite.baseApp.InitChain(&abci.InitChainRequest{ + _, err := suite.baseApp.InitChain(&abci.RequestInitChain{ ConsensusParams: &cmtproto.ConsensusParams{ Block: &cmtproto.BlockParams{MaxGas: 99}, }, @@ -1685,7 +1681,7 @@ func TestABCI_PrepareProposal_OverGasUnderBytes(t *testing.T) { } // ensure we only select transactions that fit within the block gas limit - res, err := suite.baseApp.PrepareProposal(&abci.PrepareProposalRequest{ + res, err := suite.baseApp.PrepareProposal(&abci.RequestPrepareProposal{ MaxTxBytes: 1_000_000, // large enough to ignore restriction Height: 1, }) @@ -1701,7 +1697,7 @@ func TestABCI_PrepareProposal_MaxGas(t *testing.T) { baseapptestutil.RegisterCounterServer(suite.baseApp.MsgServiceRouter(), NoopCounterServerImpl{}) // set max block gas limit to 100 - _, err := suite.baseApp.InitChain(&abci.InitChainRequest{ + _, err := suite.baseApp.InitChain(&abci.RequestInitChain{ ConsensusParams: &cmtproto.ConsensusParams{ Block: &cmtproto.BlockParams{MaxGas: 100}, }, @@ -1725,7 +1721,7 @@ func TestABCI_PrepareProposal_MaxGas(t *testing.T) { } // ensure we only select transactions that fit within the block gas limit - res, err := suite.baseApp.PrepareProposal(&abci.PrepareProposalRequest{ + res, err := suite.baseApp.PrepareProposal(&abci.RequestPrepareProposal{ MaxTxBytes: 1_000_000, // large enough to ignore restriction Height: 1, }) @@ -1743,7 +1739,7 @@ func TestABCI_PrepareProposal_Failures(t *testing.T) { suite := NewBaseAppSuite(t, anteOpt, baseapp.SetMempool(pool)) baseapptestutil.RegisterCounterServer(suite.baseApp.MsgServiceRouter(), NoopCounterServerImpl{}) - _, err := suite.baseApp.InitChain(&abci.InitChainRequest{ + _, err := suite.baseApp.InitChain(&abci.RequestInitChain{ ConsensusParams: &cmtproto.ConsensusParams{}, }) require.NoError(t, err) @@ -1752,9 +1748,9 @@ func TestABCI_PrepareProposal_Failures(t *testing.T) { txBytes, err := suite.txConfig.TxEncoder()(tx) require.NoError(t, err) - reqCheckTx := abci.CheckTxRequest{ + reqCheckTx := abci.RequestCheckTx{ Tx: txBytes, - Type: abci.CHECK_TX_TYPE_CHECK, + Type: abci.CheckTxType_New, } checkTxRes, err := suite.baseApp.CheckTx(&reqCheckTx) require.NoError(t, err) @@ -1767,7 +1763,7 @@ func TestABCI_PrepareProposal_Failures(t *testing.T) { require.NoError(t, err) require.Equal(t, 2, pool.CountTx()) - req := abci.PrepareProposalRequest{ + req := abci.RequestPrepareProposal{ MaxTxBytes: 1000, Height: 1, } @@ -1778,18 +1774,18 @@ func TestABCI_PrepareProposal_Failures(t *testing.T) { func TestABCI_PrepareProposal_PanicRecovery(t *testing.T) { prepareOpt := func(app *baseapp.BaseApp) { - app.SetPrepareProposal(func(ctx sdk.Context, rpp *abci.PrepareProposalRequest) (*abci.PrepareProposalResponse, error) { + app.SetPrepareProposal(func(ctx sdk.Context, rpp *abci.RequestPrepareProposal) (*abci.ResponsePrepareProposal, error) { panic(errors.New("test")) }) } suite := NewBaseAppSuite(t, prepareOpt) - _, err := suite.baseApp.InitChain(&abci.InitChainRequest{ + _, err := suite.baseApp.InitChain(&abci.RequestInitChain{ ConsensusParams: &cmtproto.ConsensusParams{}, }) require.NoError(t, err) - req := abci.PrepareProposalRequest{ + req := abci.RequestPrepareProposal{ MaxTxBytes: 1000, Height: 1, } @@ -1819,7 +1815,7 @@ func TestABCI_PrepareProposal_VoteExtensions(t *testing.T) { // set up baseapp prepareOpt := func(bapp *baseapp.BaseApp) { - bapp.SetPrepareProposal(func(ctx sdk.Context, req *abci.PrepareProposalRequest) (*abci.PrepareProposalResponse, error) { + bapp.SetPrepareProposal(func(ctx sdk.Context, req *abci.RequestPrepareProposal) (*abci.ResponsePrepareProposal, error) { ctx = ctx.WithBlockHeight(req.Height).WithChainID(bapp.ChainID()) _, info := extendedCommitToLastCommit(req.LocalLastCommit) ctx = ctx.WithCometInfo(info) @@ -1829,32 +1825,28 @@ func TestABCI_PrepareProposal_VoteExtensions(t *testing.T) { } cp := ctx.ConsensusParams() - extsEnabled := cp.Feature.VoteExtensionsEnableHeight != nil && req.Height >= cp.Feature.VoteExtensionsEnableHeight.Value && cp.Feature.VoteExtensionsEnableHeight.Value != 0 - if !extsEnabled { - // check abci params - extsEnabled = cp.Abci != nil && req.Height >= cp.Abci.VoteExtensionsEnableHeight && cp.Abci.VoteExtensionsEnableHeight != 0 - } + extsEnabled := cp.Abci != nil && req.Height >= cp.Abci.VoteExtensionsEnableHeight && cp.Abci.VoteExtensionsEnableHeight != 0 if extsEnabled { req.Txs = append(req.Txs, []byte("some-tx-that-does-something-from-votes")) } - return &abci.PrepareProposalResponse{Txs: req.Txs}, nil + return &abci.ResponsePrepareProposal{Txs: req.Txs}, nil }) } suite := NewBaseAppSuite(t, prepareOpt) - _, err := suite.baseApp.InitChain(&abci.InitChainRequest{ + _, err := suite.baseApp.InitChain(&abci.RequestInitChain{ InitialHeight: 1, ConsensusParams: &cmtproto.ConsensusParams{ - Feature: &cmtproto.FeatureParams{ - VoteExtensionsEnableHeight: &gogotypes.Int64Value{Value: 2}, + Abci: &cmtproto.ABCIParams{ + VoteExtensionsEnableHeight: 2, }, }, }) require.NoError(t, err) // first test without vote extensions, no new txs should be added - reqPrepareProposal := abci.PrepareProposalRequest{ + reqPrepareProposal := abci.RequestPrepareProposal{ MaxTxBytes: 1000, Height: 1, // this value can't be 0 } @@ -1886,7 +1878,7 @@ func TestABCI_PrepareProposal_VoteExtensions(t *testing.T) { extSig, err := privkey.Sign(bz) require.NoError(t, err) - reqPrepareProposal = abci.PrepareProposalRequest{ + reqPrepareProposal = abci.RequestPrepareProposal{ MaxTxBytes: 1000, Height: 3, // this value can't be 0 LocalLastCommit: abci.ExtendedCommitInfo{ @@ -1909,7 +1901,7 @@ func TestABCI_PrepareProposal_VoteExtensions(t *testing.T) { require.Equal(t, 1, len(resPrepareProposal.Txs)) // now vote extensions but our sole voter doesn't reach majority - reqPrepareProposal = abci.PrepareProposalRequest{ + reqPrepareProposal = abci.RequestPrepareProposal{ MaxTxBytes: 1000, Height: 3, // this value can't be 0 LocalLastCommit: abci.ExtendedCommitInfo{ @@ -1934,21 +1926,21 @@ func TestABCI_PrepareProposal_VoteExtensions(t *testing.T) { func TestABCI_ProcessProposal_PanicRecovery(t *testing.T) { processOpt := func(app *baseapp.BaseApp) { - app.SetProcessProposal(func(ctx sdk.Context, rpp *abci.ProcessProposalRequest) (*abci.ProcessProposalResponse, error) { + app.SetProcessProposal(func(ctx sdk.Context, rpp *abci.RequestProcessProposal) (*abci.ResponseProcessProposal, error) { panic(errors.New("test")) }) } suite := NewBaseAppSuite(t, processOpt) - _, err := suite.baseApp.InitChain(&abci.InitChainRequest{ + _, err := suite.baseApp.InitChain(&abci.RequestInitChain{ ConsensusParams: &cmtproto.ConsensusParams{}, }) require.NoError(t, err) require.NotPanics(t, func() { - res, err := suite.baseApp.ProcessProposal(&abci.ProcessProposalRequest{Height: 1}) + res, err := suite.baseApp.ProcessProposal(&abci.RequestProcessProposal{Height: 1}) require.NoError(t, err) - require.Equal(t, res.Status, abci.PROCESS_PROPOSAL_STATUS_REJECT) + require.Equal(t, res.Status, abci.ResponseProcessProposal_REJECT) }) } @@ -1960,31 +1952,31 @@ func TestABCI_Proposal_Reset_State_Between_Calls(t *testing.T) { someKey := []byte("some-key") prepareOpt := func(bapp *baseapp.BaseApp) { - bapp.SetPrepareProposal(func(ctx sdk.Context, req *abci.PrepareProposalRequest) (*abci.PrepareProposalResponse, error) { + bapp.SetPrepareProposal(func(ctx sdk.Context, req *abci.RequestPrepareProposal) (*abci.ResponsePrepareProposal, error) { // This key should not exist given that we reset the state on every call. require.False(t, ctx.KVStore(capKey1).Has(someKey)) ctx.KVStore(capKey1).Set(someKey, someKey) - return &abci.PrepareProposalResponse{Txs: req.Txs}, nil + return &abci.ResponsePrepareProposal{Txs: req.Txs}, nil }) } processOpt := func(bapp *baseapp.BaseApp) { - bapp.SetProcessProposal(func(ctx sdk.Context, req *abci.ProcessProposalRequest) (*abci.ProcessProposalResponse, error) { + bapp.SetProcessProposal(func(ctx sdk.Context, req *abci.RequestProcessProposal) (*abci.ResponseProcessProposal, error) { // This key should not exist given that we reset the state on every call. require.False(t, ctx.KVStore(capKey1).Has(someKey)) ctx.KVStore(capKey1).Set(someKey, someKey) - return &abci.ProcessProposalResponse{Status: abci.PROCESS_PROPOSAL_STATUS_ACCEPT}, nil + return &abci.ResponseProcessProposal{Status: abci.ResponseProcessProposal_ACCEPT}, nil }) } suite := NewBaseAppSuite(t, prepareOpt, processOpt) - _, err := suite.baseApp.InitChain(&abci.InitChainRequest{ + _, err := suite.baseApp.InitChain(&abci.RequestInitChain{ ConsensusParams: &cmtproto.ConsensusParams{}, }) require.NoError(t, err) - reqPrepareProposal := abci.PrepareProposalRequest{ + reqPrepareProposal := abci.RequestPrepareProposal{ MaxTxBytes: 1000, Height: 2, // this value can't be 0 } @@ -1998,7 +1990,7 @@ func TestABCI_Proposal_Reset_State_Between_Calls(t *testing.T) { } reqProposalTxBytes := [][]byte{} - reqProcessProposal := abci.ProcessProposalRequest{ + reqProcessProposal := abci.RequestProcessProposal{ Txs: reqProposalTxBytes, Height: 2, } @@ -2008,7 +2000,7 @@ func TestABCI_Proposal_Reset_State_Between_Calls(t *testing.T) { for range 5 { resProcessProposal, err := suite.baseApp.ProcessProposal(&reqProcessProposal) require.NoError(t, err) - require.Equal(t, abci.PROCESS_PROPOSAL_STATUS_ACCEPT, resProcessProposal.Status) + require.Equal(t, abci.ResponseProcessProposal_ACCEPT, resProcessProposal.Status) } } @@ -2033,14 +2025,14 @@ func TestABCI_HaltChain(t *testing.T) { for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { suite := NewBaseAppSuite(t, baseapp.SetHaltHeight(tc.haltHeight), baseapp.SetHaltTime(tc.haltTime)) - _, err := suite.baseApp.InitChain(&abci.InitChainRequest{ + _, err := suite.baseApp.InitChain(&abci.RequestInitChain{ ConsensusParams: &cmtproto.ConsensusParams{}, InitialHeight: tc.blockHeight, }) require.NoError(t, err) app := suite.baseApp - _, err = app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: tc.blockHeight, Time: time.Unix(tc.blockTime, 0), }) @@ -2060,11 +2052,11 @@ func TestBaseApp_PreBlocker(t *testing.T) { logger := log.NewTestLogger(t) app := baseapp.NewBaseApp(name, logger, db, nil) - _, err := app.InitChain(&abci.InitChainRequest{}) + _, err := app.InitChain(&abci.RequestInitChain{}) require.NoError(t, err) wasHookCalled := false - app.SetPreBlocker(func(ctx sdk.Context, req *abci.FinalizeBlockRequest) (*sdk.ResponsePreBlock, error) { + app.SetPreBlocker(func(ctx sdk.Context, req *abci.RequestFinalizeBlock) (*sdk.ResponsePreBlock, error) { wasHookCalled = true ctx.EventManager().EmitEvent(sdk.NewEvent("preblockertest", sdk.NewAttribute("height", fmt.Sprintf("%d", req.Height)))) @@ -2072,7 +2064,7 @@ func TestBaseApp_PreBlocker(t *testing.T) { }) app.Seal() - res, err := app.FinalizeBlock(&abci.FinalizeBlockRequest{Height: 1}) + res, err := app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: 1}) require.NoError(t, err) require.Equal(t, true, wasHookCalled) require.Len(t, res.Events, 1) @@ -2080,15 +2072,15 @@ func TestBaseApp_PreBlocker(t *testing.T) { // Now try erroring app = baseapp.NewBaseApp(name, logger, db, nil) - _, err = app.InitChain(&abci.InitChainRequest{}) + _, err = app.InitChain(&abci.RequestInitChain{}) require.NoError(t, err) - app.SetPreBlocker(func(_ sdk.Context, req *abci.FinalizeBlockRequest) (*sdk.ResponsePreBlock, error) { + app.SetPreBlocker(func(_ sdk.Context, req *abci.RequestFinalizeBlock) (*sdk.ResponsePreBlock, error) { return nil, errors.New("some error") }) app.Seal() - _, err = app.FinalizeBlock(&abci.FinalizeBlockRequest{Height: 1}) + _, err = app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: 1}) require.Error(t, err) } @@ -2118,26 +2110,26 @@ func TestBaseApp_VoteExtensions(t *testing.T) { } baseappOpts := func(app *baseapp.BaseApp) { - app.SetExtendVoteHandler(func(sdk.Context, *abci.ExtendVoteRequest) (*abci.ExtendVoteResponse, error) { + app.SetExtendVoteHandler(func(sdk.Context, *abci.RequestExtendVote) (*abci.ResponseExtendVote, error) { // here we would have a process to get the price from an external source price := 10000000 + rand.Int63n(1000000) ve := make([]byte, 8) binary.BigEndian.PutUint64(ve, uint64(price)) - return &abci.ExtendVoteResponse{VoteExtension: ve}, nil + return &abci.ResponseExtendVote{VoteExtension: ve}, nil }) - app.SetVerifyVoteExtensionHandler(func(_ sdk.Context, req *abci.VerifyVoteExtensionRequest) (*abci.VerifyVoteExtensionResponse, error) { + app.SetVerifyVoteExtensionHandler(func(_ sdk.Context, req *abci.RequestVerifyVoteExtension) (*abci.ResponseVerifyVoteExtension, error) { vePrice := binary.BigEndian.Uint64(req.VoteExtension) // here we would do some price validation, must not be 0 and not too high if vePrice > 11000000 || vePrice == 0 { // usually application should always return ACCEPT unless they really want to discard the entire vote - return &abci.VerifyVoteExtensionResponse{Status: abci.VERIFY_VOTE_EXTENSION_STATUS_REJECT}, nil + return &abci.ResponseVerifyVoteExtension{Status: abci.ResponseVerifyVoteExtension_REJECT}, nil } - return &abci.VerifyVoteExtensionResponse{Status: abci.VERIFY_VOTE_EXTENSION_STATUS_ACCEPT}, nil + return &abci.ResponseVerifyVoteExtension{Status: abci.ResponseVerifyVoteExtension_ACCEPT}, nil }) - app.SetPrepareProposal(func(ctx sdk.Context, req *abci.PrepareProposalRequest) (*abci.PrepareProposalResponse, error) { + app.SetPrepareProposal(func(ctx sdk.Context, req *abci.RequestPrepareProposal) (*abci.ResponsePrepareProposal, error) { txs := [][]byte{} ctx = ctx.WithBlockHeight(req.Height).WithChainID(app.ChainID()) _, info := extendedCommitToLastCommit(req.LocalLastCommit) @@ -2155,25 +2147,25 @@ func TestBaseApp_VoteExtensions(t *testing.T) { } } - return &abci.PrepareProposalResponse{Txs: txs}, nil + return &abci.ResponsePrepareProposal{Txs: txs}, nil }) - app.SetProcessProposal(func(ctx sdk.Context, req *abci.ProcessProposalRequest) (*abci.ProcessProposalResponse, error) { + app.SetProcessProposal(func(ctx sdk.Context, req *abci.RequestProcessProposal) (*abci.ResponseProcessProposal, error) { // here we check if the proposal is valid, mainly if the vote extensions appended to the txs are valid for _, v := range req.Txs { // pretend this is a way to check if the tx is actually a VE if len(v) == 8 { // pretend this is a way to check if the VE is valid if binary.BigEndian.Uint64(v) > 11000000 || binary.BigEndian.Uint64(v) == 0 { - return &abci.ProcessProposalResponse{Status: abci.PROCESS_PROPOSAL_STATUS_REJECT}, nil + return &abci.ResponseProcessProposal{Status: abci.ResponseProcessProposal_REJECT}, nil } } } - return &abci.ProcessProposalResponse{Status: abci.PROCESS_PROPOSAL_STATUS_ACCEPT}, nil + return &abci.ResponseProcessProposal{Status: abci.ResponseProcessProposal_ACCEPT}, nil }) - app.SetPreBlocker(func(ctx sdk.Context, req *abci.FinalizeBlockRequest) (*sdk.ResponsePreBlock, error) { + app.SetPreBlocker(func(ctx sdk.Context, req *abci.RequestFinalizeBlock) (*sdk.ResponsePreBlock, error) { count := uint64(0) pricesSum := uint64(0) for _, v := range req.Txs { @@ -2200,10 +2192,10 @@ func TestBaseApp_VoteExtensions(t *testing.T) { suite := NewBaseAppSuite(t, baseappOpts) - _, err := suite.baseApp.InitChain(&abci.InitChainRequest{ + _, err := suite.baseApp.InitChain(&abci.RequestInitChain{ ConsensusParams: &cmtproto.ConsensusParams{ - Feature: &cmtproto.FeatureParams{ - VoteExtensionsEnableHeight: &gogotypes.Int64Value{Value: 1}, + Abci: &cmtproto.ABCIParams{ + VoteExtensionsEnableHeight: 1, }, }, }) @@ -2212,7 +2204,7 @@ func TestBaseApp_VoteExtensions(t *testing.T) { allVEs := [][]byte{} // simulate getting 10 vote extensions from 10 validators for range 10 { - ve, err := suite.baseApp.ExtendVote(context.TODO(), &abci.ExtendVoteRequest{Height: 1}) + ve, err := suite.baseApp.ExtendVote(context.TODO(), &abci.RequestExtendVote{Height: 1}) require.NoError(t, err) allVEs = append(allVEs, ve.VoteExtension) } @@ -2231,12 +2223,12 @@ func TestBaseApp_VoteExtensions(t *testing.T) { // verify all votes, only 10 should be accepted successful := 0 for _, v := range allVEs { - res, err := suite.baseApp.VerifyVoteExtension(&abci.VerifyVoteExtensionRequest{ + res, err := suite.baseApp.VerifyVoteExtension(&abci.RequestVerifyVoteExtension{ Height: 1, VoteExtension: v, }) require.NoError(t, err) - if res.Status == abci.VERIFY_VOTE_EXTENSION_STATUS_ACCEPT { + if res.Status == abci.ResponseVerifyVoteExtension_ACCEPT { successful++ } } @@ -2256,7 +2248,7 @@ func TestBaseApp_VoteExtensions(t *testing.T) { ) } - prepPropReq := &abci.PrepareProposalRequest{ + prepPropReq := &abci.RequestPrepareProposal{ Height: 1, LocalLastCommit: abci.ExtendedCommitInfo{ Round: 0, @@ -2282,11 +2274,11 @@ func TestBaseApp_VoteExtensions(t *testing.T) { require.NoError(t, err) require.Len(t, resp.Txs, 0) - procPropRes, err := suite.baseApp.ProcessProposal(&abci.ProcessProposalRequest{Height: 1, Txs: resp.Txs}) + procPropRes, err := suite.baseApp.ProcessProposal(&abci.RequestProcessProposal{Height: 1, Txs: resp.Txs}) require.NoError(t, err) - require.Equal(t, abci.PROCESS_PROPOSAL_STATUS_ACCEPT, procPropRes.Status) + require.Equal(t, abci.ResponseProcessProposal_ACCEPT, procPropRes.Status) - _, err = suite.baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{Height: 1, Txs: resp.Txs}) + _, err = suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{Height: 1, Txs: resp.Txs}) require.NoError(t, err) // The average price will be nil during the first block, given that we don't have @@ -2329,11 +2321,11 @@ func TestBaseApp_VoteExtensions(t *testing.T) { require.NoError(t, err) require.Len(t, resp.Txs, 10) - procPropRes, err = suite.baseApp.ProcessProposal(&abci.ProcessProposalRequest{Height: 2, Txs: resp.Txs}) + procPropRes, err = suite.baseApp.ProcessProposal(&abci.RequestProcessProposal{Height: 2, Txs: resp.Txs}) require.NoError(t, err) - require.Equal(t, abci.PROCESS_PROPOSAL_STATUS_ACCEPT, procPropRes.Status) + require.Equal(t, abci.ResponseProcessProposal_ACCEPT, procPropRes.Status) - _, err = suite.baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{Height: 2, Txs: resp.Txs}) + _, err = suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{Height: 2, Txs: resp.Txs}) require.NoError(t, err) // Check if the average price was available in FinalizeBlock's context @@ -2352,25 +2344,25 @@ func TestBaseApp_VoteExtensions(t *testing.T) { func TestABCI_PrepareProposal_Panic(t *testing.T) { prepareOpt := func(bapp *baseapp.BaseApp) { - bapp.SetPrepareProposal(func(ctx sdk.Context, req *abci.PrepareProposalRequest) (*abci.PrepareProposalResponse, error) { + bapp.SetPrepareProposal(func(ctx sdk.Context, req *abci.RequestPrepareProposal) (*abci.ResponsePrepareProposal, error) { if len(req.Txs) == 3 { panic("i don't like number 3, panic") } // return empty if no panic - return &abci.PrepareProposalResponse{}, nil + return &abci.ResponsePrepareProposal{}, nil }) } suite := NewBaseAppSuite(t, prepareOpt) - _, err := suite.baseApp.InitChain(&abci.InitChainRequest{ + _, err := suite.baseApp.InitChain(&abci.RequestInitChain{ InitialHeight: 1, ConsensusParams: &cmtproto.ConsensusParams{}, }) require.NoError(t, err) txs := [][]byte{{1}, {2}} - reqPrepareProposal := abci.PrepareProposalRequest{ + reqPrepareProposal := abci.RequestPrepareProposal{ MaxTxBytes: 1000, Height: 1, // this value can't be 0 Txs: txs, @@ -2390,7 +2382,7 @@ func TestABCI_PrepareProposal_Panic(t *testing.T) { func TestOptimisticExecution(t *testing.T) { suite := NewBaseAppSuite(t, baseapp.SetOptimisticExecution()) - _, err := suite.baseApp.InitChain(&abci.InitChainRequest{ + _, err := suite.baseApp.InitChain(&abci.RequestInitChain{ ConsensusParams: &cmtproto.ConsensusParams{}, }) require.NoError(t, err) @@ -2401,17 +2393,17 @@ func TestOptimisticExecution(t *testing.T) { txBytes, err := suite.txConfig.TxEncoder()(tx) require.NoError(t, err) - reqProcProp := abci.ProcessProposalRequest{ + reqProcProp := abci.RequestProcessProposal{ Txs: [][]byte{txBytes}, Height: suite.baseApp.LastBlockHeight() + 1, Hash: []byte("some-hash" + strconv.FormatInt(suite.baseApp.LastBlockHeight()+1, 10)), } respProcProp, err := suite.baseApp.ProcessProposal(&reqProcProp) - require.Equal(t, abci.PROCESS_PROPOSAL_STATUS_ACCEPT, respProcProp.Status) + require.Equal(t, abci.ResponseProcessProposal_ACCEPT, respProcProp.Status) require.NoError(t, err) - reqFinalizeBlock := abci.FinalizeBlockRequest{ + reqFinalizeBlock := abci.RequestFinalizeBlock{ Height: reqProcProp.Height, Txs: reqProcProp.Txs, Hash: reqProcProp.Hash, @@ -2450,7 +2442,7 @@ func TestABCI_Proposal_FailReCheckTx(t *testing.T) { baseapptestutil.RegisterKeyValueServer(suite.baseApp.MsgServiceRouter(), MsgKeyValueImpl{}) baseapptestutil.RegisterCounterServer(suite.baseApp.MsgServiceRouter(), NoopCounterServerImpl{}) - _, err := suite.baseApp.InitChain(&abci.InitChainRequest{ + _, err := suite.baseApp.InitChain(&abci.RequestInitChain{ ConsensusParams: &cmtproto.ConsensusParams{}, }) require.NoError(t, err) @@ -2459,9 +2451,9 @@ func TestABCI_Proposal_FailReCheckTx(t *testing.T) { txBytes, err := suite.txConfig.TxEncoder()(tx) require.NoError(t, err) - reqCheckTx := abci.CheckTxRequest{ + reqCheckTx := abci.RequestCheckTx{ Tx: txBytes, - Type: abci.CHECK_TX_TYPE_CHECK, + Type: abci.CheckTxType_New, } _, err = suite.baseApp.CheckTx(&reqCheckTx) require.NoError(t, err) @@ -2477,7 +2469,7 @@ func TestABCI_Proposal_FailReCheckTx(t *testing.T) { require.Equal(t, 2, pool.CountTx()) // call prepareProposal before calling recheck tx, just as a sanity check - reqPrepareProposal := abci.PrepareProposalRequest{ + reqPrepareProposal := abci.RequestPrepareProposal{ MaxTxBytes: 1000, Height: 1, } @@ -2486,9 +2478,9 @@ func TestABCI_Proposal_FailReCheckTx(t *testing.T) { require.Equal(t, 2, len(resPrepareProposal.Txs)) // call recheck on the first tx, it MUST return an error - reqReCheckTx := abci.CheckTxRequest{ + reqReCheckTx := abci.RequestCheckTx{ Tx: txBytes, - Type: abci.CHECK_TX_TYPE_RECHECK, + Type: abci.CheckTxType_Recheck, } resp, err := suite.baseApp.CheckTx(&reqReCheckTx) require.NoError(t, err) @@ -2507,17 +2499,17 @@ func TestABCI_Proposal_FailReCheckTx(t *testing.T) { reqProposalTxBytes := [][]byte{ tx2Bytes, } - reqProcessProposal := abci.ProcessProposalRequest{ + reqProcessProposal := abci.RequestProcessProposal{ Txs: reqProposalTxBytes, Height: reqPrepareProposal.Height, } resProcessProposal, err := suite.baseApp.ProcessProposal(&reqProcessProposal) require.NoError(t, err) - require.Equal(t, abci.PROCESS_PROPOSAL_STATUS_ACCEPT, resProcessProposal.Status) + require.Equal(t, abci.ResponseProcessProposal_ACCEPT, resProcessProposal.Status) // the same txs as in PrepareProposal - res, err := suite.baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{ + res, err := suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: suite.baseApp.LastBlockHeight() + 1, Txs: reqProposalTxBytes, }) @@ -2538,7 +2530,7 @@ func TestFinalizeBlockDeferResponseHandle(t *testing.T) { }) }) - res, err := suite.baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{ + res, err := suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: 2, }) require.Empty(t, res) @@ -2549,7 +2541,7 @@ func TestABCI_Race_Commit_Query(t *testing.T) { suite := NewBaseAppSuite(t, baseapp.SetChainID("test-chain-id")) app := suite.baseApp - _, err := app.InitChain(&abci.InitChainRequest{ + _, err := app.InitChain(&abci.RequestInitChain{ ChainId: "test-chain-id", ConsensusParams: &cmtproto.ConsensusParams{Block: &cmtproto.BlockParams{MaxGas: 5000000}}, InitialHeight: 1, @@ -2581,7 +2573,7 @@ func TestABCI_Race_Commit_Query(t *testing.T) { } for i := 0; i < 1000; i++ { - _, err = app.FinalizeBlock(&abci.FinalizeBlockRequest{Height: app.LastBlockHeight() + 1}) + _, err = app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: app.LastBlockHeight() + 1}) require.NoError(t, err) _, err = app.Commit() diff --git a/baseapp/abci_utils.go b/baseapp/abci_utils.go index 3e3229d6ee..9c53f0f655 100644 --- a/baseapp/abci_utils.go +++ b/baseapp/abci_utils.go @@ -7,11 +7,11 @@ import ( "slices" "github.com/cockroachdb/errors" - cmtprotocrypto "github.com/cometbft/cometbft/api/cometbft/crypto/v1" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - abci "github.com/cometbft/cometbft/v2/abci/types" - cryptoenc "github.com/cometbft/cometbft/v2/crypto/encoding" - cmttypes "github.com/cometbft/cometbft/v2/types" + abci "github.com/cometbft/cometbft/abci/types" + cryptoenc "github.com/cometbft/cometbft/crypto/encoding" + cmtprotocrypto "github.com/cometbft/cometbft/proto/tendermint/crypto" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + cmttypes "github.com/cometbft/cometbft/types" protoio "github.com/cosmos/gogoproto/io" "github.com/cosmos/gogoproto/proto" @@ -63,10 +63,7 @@ func ValidateVoteExtensions( // Start checking vote extensions only **after** the vote extensions enable // height, because when `currentHeight == VoteExtensionsEnableHeight` // PrepareProposal doesn't get any vote extensions in its request. - extsEnabled := cp.Feature != nil && cp.Feature.VoteExtensionsEnableHeight != nil && currentHeight > cp.Feature.VoteExtensionsEnableHeight.Value && cp.Feature.VoteExtensionsEnableHeight.Value != 0 - if !extsEnabled { - extsEnabled = cp.Abci != nil && currentHeight > cp.Abci.VoteExtensionsEnableHeight && cp.Abci.VoteExtensionsEnableHeight != 0 - } + extsEnabled := cp.Abci != nil && currentHeight > cp.Abci.VoteExtensionsEnableHeight && cp.Abci.VoteExtensionsEnableHeight != 0 marshalDelimitedFn := func(msg proto.Message) ([]byte, error) { var buf bytes.Buffer if err := protoio.NewDelimitedWriter(&buf).WriteMsg(msg); err != nil { @@ -156,7 +153,7 @@ func ValidateVoteExtensions( // validateExtendedCommitAgainstLastCommit validates an ExtendedCommitInfo against a LastCommit. Specifically, // it checks that the ExtendedCommit + LastCommit (for the same height), are consistent with each other + that // they are ordered correctly (by voting power) in accordance with -// [comet](https://github.com/cometbft/cometbft/v2/blob/4ce0277b35f31985bbf2c25d3806a184a4510010/types/validator_set.go#L784). +// [comet](https://github.com/cometbft/cometbft/blob/4ce0277b35f31985bbf2c25d3806a184a4510010/types/validator_set.go#L784). func validateExtendedCommitAgainstLastCommit(ec abci.ExtendedCommitInfo, lc comet.CommitInfo) error { // check that the rounds are the same if ec.Round != lc.Round() { @@ -259,7 +256,7 @@ func (h *DefaultProposalHandler) SetSignerExtractionAdapter(signerExtAdapter mem // requested from CometBFT will simply be returned, which, by default, are in // FIFO order. func (h *DefaultProposalHandler) PrepareProposalHandler() sdk.PrepareProposalHandler { - return func(ctx sdk.Context, req *abci.PrepareProposalRequest) (*abci.PrepareProposalResponse, error) { + return func(ctx sdk.Context, req *abci.RequestPrepareProposal) (*abci.ResponsePrepareProposal, error) { var maxBlockGas uint64 if b := ctx.ConsensusParams().Block; b != nil { maxBlockGas = uint64(b.MaxGas) @@ -285,7 +282,7 @@ func (h *DefaultProposalHandler) PrepareProposalHandler() sdk.PrepareProposalHan } } - return &abci.PrepareProposalResponse{Txs: h.txSelector.SelectedTxs(ctx)}, nil + return &abci.ResponsePrepareProposal{Txs: h.txSelector.SelectedTxs(ctx)}, nil } selectedTxsSignersSeqs := make(map[string]uint64) @@ -380,7 +377,7 @@ func (h *DefaultProposalHandler) PrepareProposalHandler() sdk.PrepareProposalHan } } - return &abci.PrepareProposalResponse{Txs: h.txSelector.SelectedTxs(ctx)}, nil + return &abci.ResponsePrepareProposal{Txs: h.txSelector.SelectedTxs(ctx)}, nil } } @@ -403,7 +400,7 @@ func (h *DefaultProposalHandler) ProcessProposalHandler() sdk.ProcessProposalHan return NoOpProcessProposal() } - return func(ctx sdk.Context, req *abci.ProcessProposalRequest) (*abci.ProcessProposalResponse, error) { + return func(ctx sdk.Context, req *abci.RequestProcessProposal) (*abci.ResponseProcessProposal, error) { var totalTxGas uint64 var maxBlockGas int64 @@ -414,7 +411,7 @@ func (h *DefaultProposalHandler) ProcessProposalHandler() sdk.ProcessProposalHan for _, txBytes := range req.Txs { tx, err := h.txVerifier.ProcessProposalVerifyTx(txBytes) if err != nil { - return &abci.ProcessProposalResponse{Status: abci.PROCESS_PROPOSAL_STATUS_REJECT}, nil + return &abci.ResponseProcessProposal{Status: abci.ResponseProcessProposal_REJECT}, nil } if maxBlockGas > 0 { @@ -424,44 +421,44 @@ func (h *DefaultProposalHandler) ProcessProposalHandler() sdk.ProcessProposalHan } if totalTxGas > uint64(maxBlockGas) { - return &abci.ProcessProposalResponse{Status: abci.PROCESS_PROPOSAL_STATUS_REJECT}, nil + return &abci.ResponseProcessProposal{Status: abci.ResponseProcessProposal_REJECT}, nil } } } - return &abci.ProcessProposalResponse{Status: abci.PROCESS_PROPOSAL_STATUS_ACCEPT}, nil + return &abci.ResponseProcessProposal{Status: abci.ResponseProcessProposal_ACCEPT}, nil } } // NoOpPrepareProposal defines a no-op PrepareProposal handler. It will always // return the transactions sent by the client's request. func NoOpPrepareProposal() sdk.PrepareProposalHandler { - return func(_ sdk.Context, req *abci.PrepareProposalRequest) (*abci.PrepareProposalResponse, error) { - return &abci.PrepareProposalResponse{Txs: req.Txs}, nil + return func(_ sdk.Context, req *abci.RequestPrepareProposal) (*abci.ResponsePrepareProposal, error) { + return &abci.ResponsePrepareProposal{Txs: req.Txs}, nil } } // NoOpProcessProposal defines a no-op ProcessProposal Handler. It will always // return ACCEPT. func NoOpProcessProposal() sdk.ProcessProposalHandler { - return func(_ sdk.Context, _ *abci.ProcessProposalRequest) (*abci.ProcessProposalResponse, error) { - return &abci.ProcessProposalResponse{Status: abci.PROCESS_PROPOSAL_STATUS_ACCEPT}, nil + return func(_ sdk.Context, _ *abci.RequestProcessProposal) (*abci.ResponseProcessProposal, error) { + return &abci.ResponseProcessProposal{Status: abci.ResponseProcessProposal_ACCEPT}, nil } } // NoOpExtendVote defines a no-op ExtendVote handler. It will always return an // empty byte slice as the vote extension. func NoOpExtendVote() sdk.ExtendVoteHandler { - return func(_ sdk.Context, _ *abci.ExtendVoteRequest) (*abci.ExtendVoteResponse, error) { - return &abci.ExtendVoteResponse{VoteExtension: []byte{}}, nil + return func(_ sdk.Context, _ *abci.RequestExtendVote) (*abci.ResponseExtendVote, error) { + return &abci.ResponseExtendVote{VoteExtension: []byte{}}, nil } } // NoOpVerifyVoteExtensionHandler defines a no-op VerifyVoteExtension handler. It // will always return an ACCEPT status with no error. func NoOpVerifyVoteExtensionHandler() sdk.VerifyVoteExtensionHandler { - return func(_ sdk.Context, _ *abci.VerifyVoteExtensionRequest) (*abci.VerifyVoteExtensionResponse, error) { - return &abci.VerifyVoteExtensionResponse{Status: abci.VERIFY_VOTE_EXTENSION_STATUS_ACCEPT}, nil + return func(_ sdk.Context, _ *abci.RequestVerifyVoteExtension) (*abci.ResponseVerifyVoteExtension, error) { + return &abci.ResponseVerifyVoteExtension{Status: abci.ResponseVerifyVoteExtension_ACCEPT}, nil } } diff --git a/baseapp/abci_utils_test.go b/baseapp/abci_utils_test.go index 682c0ac8da..a1064705f5 100644 --- a/baseapp/abci_utils_test.go +++ b/baseapp/abci_utils_test.go @@ -5,15 +5,14 @@ import ( "sort" "testing" - cmtprotocrypto "github.com/cometbft/cometbft/api/cometbft/crypto/v1" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - abci "github.com/cometbft/cometbft/v2/abci/types" - cmtsecp256k1 "github.com/cometbft/cometbft/v2/crypto/secp256k1" - cmttypes "github.com/cometbft/cometbft/v2/types" + abci "github.com/cometbft/cometbft/abci/types" + cmtsecp256k1 "github.com/cometbft/cometbft/crypto/secp256k1" + cmtprotocrypto "github.com/cometbft/cometbft/proto/tendermint/crypto" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + cmttypes "github.com/cometbft/cometbft/types" dbm "github.com/cosmos/cosmos-db" protoio "github.com/cosmos/gogoproto/io" "github.com/cosmos/gogoproto/proto" - gogotypes "github.com/cosmos/gogoproto/types" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" "go.uber.org/mock/gomock" @@ -99,8 +98,8 @@ func NewABCIUtilsTestSuite(t *testing.T) *ABCIUtilsTestSuite { // create context s.ctx = sdk.Context{}.WithConsensusParams(cmtproto.ConsensusParams{ - Feature: &cmtproto.FeatureParams{ - VoteExtensionsEnableHeight: &gogotypes.Int64Value{Value: 2}, + Abci: &cmtproto.ABCIParams{ + VoteExtensionsEnableHeight: 2, }, }).WithBlockHeader(cmtproto.Header{ ChainID: chainID, @@ -499,12 +498,12 @@ func (s *ABCIUtilsTestSuite) TestDefaultProposalHandler_NoOpMempoolTxSelection() testCases := map[string]struct { ctx sdk.Context - req *abci.PrepareProposalRequest + req *abci.RequestPrepareProposal expectedTxs int }{ "small max tx bytes": { ctx: s.ctx, - req: &abci.PrepareProposalRequest{ + req: &abci.RequestPrepareProposal{ Txs: [][]byte{txBz, txBz, txBz, txBz, txBz}, MaxTxBytes: 10, }, @@ -516,7 +515,7 @@ func (s *ABCIUtilsTestSuite) TestDefaultProposalHandler_NoOpMempoolTxSelection() MaxGas: 10, }, }), - req: &abci.PrepareProposalRequest{ + req: &abci.RequestPrepareProposal{ Txs: [][]byte{txBz, txBz, txBz, txBz, txBz}, MaxTxBytes: 465, }, @@ -524,7 +523,7 @@ func (s *ABCIUtilsTestSuite) TestDefaultProposalHandler_NoOpMempoolTxSelection() }, "large max tx bytes": { ctx: s.ctx, - req: &abci.PrepareProposalRequest{ + req: &abci.RequestPrepareProposal{ Txs: [][]byte{txBz, txBz, txBz, txBz, txBz}, MaxTxBytes: 465, }, @@ -532,7 +531,7 @@ func (s *ABCIUtilsTestSuite) TestDefaultProposalHandler_NoOpMempoolTxSelection() }, "large max tx bytes len calculation": { ctx: s.ctx, - req: &abci.PrepareProposalRequest{ + req: &abci.RequestPrepareProposal{ Txs: [][]byte{txBz, txBz, txBz, txBz, txBz}, MaxTxBytes: 456, }, @@ -544,7 +543,7 @@ func (s *ABCIUtilsTestSuite) TestDefaultProposalHandler_NoOpMempoolTxSelection() MaxGas: 200, }, }), - req: &abci.PrepareProposalRequest{ + req: &abci.RequestPrepareProposal{ Txs: [][]byte{txBz, txBz, txBz, txBz, txBz}, MaxTxBytes: 465, }, @@ -627,14 +626,14 @@ func (s *ABCIUtilsTestSuite) TestDefaultProposalHandler_PriorityNonceMempoolTxSe testCases := map[string]struct { ctx sdk.Context txInputs []testTx - req *abci.PrepareProposalRequest + req *abci.RequestPrepareProposal handler sdk.PrepareProposalHandler expectedTxs []int }{ "skip same-sender non-sequential sequence and then add others txs": { ctx: s.ctx, txInputs: []testTx{testTxs[0], testTxs[1], testTxs[2], testTxs[3]}, - req: &abci.PrepareProposalRequest{ + req: &abci.RequestPrepareProposal{ MaxTxBytes: 111 + 112, }, expectedTxs: []int{0, 3}, @@ -642,7 +641,7 @@ func (s *ABCIUtilsTestSuite) TestDefaultProposalHandler_PriorityNonceMempoolTxSe "skip multi-signers msg non-sequential sequence": { ctx: s.ctx, txInputs: []testTx{testTxs[4], testTxs[5], testTxs[6], testTxs[7], testTxs[8]}, - req: &abci.PrepareProposalRequest{ + req: &abci.RequestPrepareProposal{ MaxTxBytes: 195 + 196, }, expectedTxs: []int{4, 8}, @@ -651,7 +650,7 @@ func (s *ABCIUtilsTestSuite) TestDefaultProposalHandler_PriorityNonceMempoolTxSe // Because tx 10 is valid, tx 11 can't be valid as they have higher sequence numbers. ctx: s.ctx, txInputs: []testTx{testTxs[9], testTxs[10], testTxs[11]}, - req: &abci.PrepareProposalRequest{ + req: &abci.RequestPrepareProposal{ MaxTxBytes: 195 + 196, }, expectedTxs: []int{9}, @@ -661,7 +660,7 @@ func (s *ABCIUtilsTestSuite) TestDefaultProposalHandler_PriorityNonceMempoolTxSe // the rest of the txs fail because they have a seq of 4. ctx: s.ctx, txInputs: []testTx{testTxs[12], testTxs[13], testTxs[14]}, - req: &abci.PrepareProposalRequest{ + req: &abci.RequestPrepareProposal{ MaxTxBytes: 112, }, expectedTxs: []int{}, diff --git a/baseapp/baseapp.go b/baseapp/baseapp.go index 16f84645aa..91ef3e1c8f 100644 --- a/baseapp/baseapp.go +++ b/baseapp/baseapp.go @@ -8,12 +8,11 @@ import ( "slices" "strconv" "sync" - "time" "github.com/cockroachdb/errors" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - abci "github.com/cometbft/cometbft/v2/abci/types" - "github.com/cometbft/cometbft/v2/crypto/tmhash" + abci "github.com/cometbft/cometbft/abci/types" + "github.com/cometbft/cometbft/crypto/tmhash" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" dbm "github.com/cosmos/cosmos-db" "github.com/cosmos/gogoproto/proto" protov2 "google.golang.org/protobuf/proto" @@ -162,12 +161,6 @@ type BaseApp struct { // // SAFETY: it's safe to do if validators validate the total gas wanted in the `ProcessProposal`, which is the case in the default handler. disableBlockGasMeter bool - - // nextBlockDelay is the delay to wait until the next block after ABCI has committed. - // This gives the application more time to receive precommits. This is the same as TimeoutCommit, - // but can now be set from the application. This value defaults to 0, and CometBFT will use the - // legacy value set in config.toml if it is 0. - nextBlockDelay time.Duration } // NewBaseApp returns a reference to an initialized BaseApp. It accepts a @@ -188,7 +181,6 @@ func NewBaseApp( fauxMerkleMode: false, sigverifyTx: true, gasConfig: config.GasConfig{QueryGasLimit: math.MaxUint64}, - nextBlockDelay: 0, // default to 0 so that the legacy CometBFT config.toml value is used } for _, option := range options { @@ -536,7 +528,7 @@ func (app *BaseApp) GetMaximumBlockGas(ctx sdk.Context) uint64 { } } -func (app *BaseApp) validateFinalizeBlockHeight(req *abci.FinalizeBlockRequest) error { +func (app *BaseApp) validateFinalizeBlockHeight(req *abci.RequestFinalizeBlock) error { if req.Height < 1 { return fmt.Errorf("invalid height: %d", req.Height) } @@ -644,7 +636,7 @@ func (app *BaseApp) cacheTxContext(ctx sdk.Context, txBytes []byte) (sdk.Context return ctx.WithMultiStore(msCache), msCache } -func (app *BaseApp) preBlock(req *abci.FinalizeBlockRequest) ([]abci.Event, error) { +func (app *BaseApp) preBlock(req *abci.RequestFinalizeBlock) ([]abci.Event, error) { var events []abci.Event if app.abciHandlers.PreBlocker != nil { finalizeState := app.stateManager.GetState(execModeFinalize) @@ -667,7 +659,7 @@ func (app *BaseApp) preBlock(req *abci.FinalizeBlockRequest) ([]abci.Event, erro return events, nil } -func (app *BaseApp) beginBlock(_ *abci.FinalizeBlockRequest) (sdk.BeginBlock, error) { +func (app *BaseApp) beginBlock(_ *abci.RequestFinalizeBlock) (sdk.BeginBlock, error) { var ( resp sdk.BeginBlock err error diff --git a/baseapp/baseapp_test.go b/baseapp/baseapp_test.go index f03fcc7e38..625675b112 100644 --- a/baseapp/baseapp_test.go +++ b/baseapp/baseapp_test.go @@ -11,8 +11,8 @@ import ( "testing" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" dbm "github.com/cosmos/cosmos-db" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" @@ -101,12 +101,12 @@ func getQueryBaseapp(t *testing.T) *baseapp.BaseApp { name := t.Name() app := baseapp.NewBaseApp(name, log.NewTestLogger(t), db, nil) - _, err := app.FinalizeBlock(&abci.FinalizeBlockRequest{Height: 1}) + _, err := app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: 1}) require.NoError(t, err) _, err = app.Commit() require.NoError(t, err) - _, err = app.FinalizeBlock(&abci.FinalizeBlockRequest{Height: 2}) + _, err = app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: 2}) require.NoError(t, err) _, err = app.Commit() require.NoError(t, err) @@ -132,7 +132,7 @@ func NewBaseAppSuiteWithSnapshots(t *testing.T, cfg SnapshotsConfig, opts ...fun baseapptestutil.RegisterKeyValueServer(suite.baseApp.MsgServiceRouter(), MsgKeyValueImpl{}) - _, err = suite.baseApp.InitChain(&abci.InitChainRequest{ + _, err = suite.baseApp.InitChain(&abci.RequestInitChain{ ConsensusParams: &cmtproto.ConsensusParams{}, }) require.NoError(t, err) @@ -167,7 +167,7 @@ func NewBaseAppSuiteWithSnapshots(t *testing.T, cfg SnapshotsConfig, opts ...fun txs = append(txs, txBytes) } - _, err := suite.baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err := suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: height, Txs: txs, }) @@ -218,7 +218,7 @@ func TestAnteHandlerGasMeter(t *testing.T) { } suite := NewBaseAppSuite(t, anteOpt, beginBlockerOpt) - _, err := suite.baseApp.InitChain(&abci.InitChainRequest{ + _, err := suite.baseApp.InitChain(&abci.RequestInitChain{ ConsensusParams: &cmtproto.ConsensusParams{}, }) require.NoError(t, err) @@ -229,7 +229,7 @@ func TestAnteHandlerGasMeter(t *testing.T) { tx := newTxCounter(t, suite.txConfig, 0, 0) txBytes, err := suite.txConfig.TxEncoder()(tx) require.NoError(t, err) - _, err = suite.baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{Height: 1, Txs: [][]byte{txBytes}}) + _, err = suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{Height: 1, Txs: [][]byte{txBytes}}) require.NoError(t, err) } @@ -255,14 +255,14 @@ func TestLoadVersion(t *testing.T) { require.Equal(t, emptyCommitID, lastID) // execute a block, collect commit ID - res, err := app.FinalizeBlock(&abci.FinalizeBlockRequest{Height: 1}) + res, err := app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: 1}) require.NoError(t, err) commitID1 := storetypes.CommitID{Version: 1, Hash: res.AppHash} _, err = app.Commit() require.NoError(t, err) // execute a block, collect commit ID - res, err = app.FinalizeBlock(&abci.FinalizeBlockRequest{Height: 2}) + res, err = app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: 2}) require.NoError(t, err) commitID2 := storetypes.CommitID{Version: 2, Hash: res.AppHash} _, err = app.Commit() @@ -285,7 +285,7 @@ func TestLoadVersion(t *testing.T) { testLoadVersionHelper(t, app, int64(1), commitID1) - _, err = app.FinalizeBlock(&abci.FinalizeBlockRequest{Height: 2}) + _, err = app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: 2}) require.NoError(t, err) _, err = app.Commit() require.NoError(t, err) @@ -375,7 +375,7 @@ func TestSetLoader(t *testing.T) { require.Nil(t, err) // "execute" one block - res, err := app.FinalizeBlock(&abci.FinalizeBlockRequest{Height: 2}) + res, err := app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: 2}) require.NoError(t, err) require.NotNil(t, res.AppHash) _, err = app.Commit() @@ -395,7 +395,7 @@ func TestVersionSetterGetter(t *testing.T) { app := baseapp.NewBaseApp(name, log.NewTestLogger(t), db, nil, pruningOpt) require.Equal(t, "", app.Version()) - res, err := app.Query(context.TODO(), &abci.QueryRequest{Path: "app/version"}) + res, err := app.Query(context.TODO(), &abci.RequestQuery{Path: "app/version"}) require.NoError(t, err) require.True(t, res.IsOK()) require.Equal(t, "", string(res.Value)) @@ -404,7 +404,7 @@ func TestVersionSetterGetter(t *testing.T) { app.SetVersion(versionString) require.Equal(t, versionString, app.Version()) - res, err = app.Query(context.TODO(), &abci.QueryRequest{Path: "app/version"}) + res, err = app.Query(context.TODO(), &abci.RequestQuery{Path: "app/version"}) require.NoError(t, err) require.True(t, res.IsOK()) require.Equal(t, versionString, string(res.Value)) @@ -424,7 +424,7 @@ func TestLoadVersionInvalid(t *testing.T) { err = app.LoadVersion(-1) require.Error(t, err) - res, err := app.FinalizeBlock(&abci.FinalizeBlockRequest{Height: 1}) + res, err := app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: 1}) require.NoError(t, err) commitID1 := storetypes.CommitID{Version: 1, Hash: res.AppHash} _, err = app.Commit() @@ -533,7 +533,7 @@ func TestCustomRunTxPanicHandler(t *testing.T) { suite := NewBaseAppSuite(t, anteOpt) baseapptestutil.RegisterCounterServer(suite.baseApp.MsgServiceRouter(), NoopCounterServerImpl{}) - _, err := suite.baseApp.InitChain(&abci.InitChainRequest{ + _, err := suite.baseApp.InitChain(&abci.RequestInitChain{ ConsensusParams: &cmtproto.ConsensusParams{}, }) require.NoError(t, err) @@ -558,7 +558,7 @@ func TestCustomRunTxPanicHandler(t *testing.T) { require.PanicsWithValue(t, customPanicMsg, func() { bz, err := suite.txConfig.TxEncoder()(tx) require.NoError(t, err) - _, err = suite.baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{Height: 1, Txs: [][]byte{bz}}) + _, err = suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{Height: 1, Txs: [][]byte{bz}}) require.Error(t, err) }) } @@ -574,7 +574,7 @@ func TestBaseAppAnteHandler(t *testing.T) { deliverKey := []byte("deliver-key") baseapptestutil.RegisterCounterServer(suite.baseApp.MsgServiceRouter(), CounterServerImpl{t, capKey1, deliverKey}) - _, err := suite.baseApp.InitChain(&abci.InitChainRequest{ + _, err := suite.baseApp.InitChain(&abci.RequestInitChain{ ConsensusParams: &cmtproto.ConsensusParams{}, }) require.NoError(t, err) @@ -589,7 +589,7 @@ func TestBaseAppAnteHandler(t *testing.T) { txBytes, err := suite.txConfig.TxEncoder()(tx) require.NoError(t, err) - res, err := suite.baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{Height: 1, Txs: [][]byte{txBytes}}) + res, err := suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{Height: 1, Txs: [][]byte{txBytes}}) require.NoError(t, err) require.Empty(t, res.Events) require.False(t, res.TxResults[0].IsOK(), fmt.Sprintf("%v", res)) @@ -606,7 +606,7 @@ func TestBaseAppAnteHandler(t *testing.T) { txBytes, err = suite.txConfig.TxEncoder()(tx) require.NoError(t, err) - res, err = suite.baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{Height: 1, Txs: [][]byte{txBytes}}) + res, err = suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{Height: 1, Txs: [][]byte{txBytes}}) require.NoError(t, err) require.Empty(t, res.Events) require.False(t, res.TxResults[0].IsOK(), fmt.Sprintf("%v", res)) @@ -623,7 +623,7 @@ func TestBaseAppAnteHandler(t *testing.T) { txBytes, err = suite.txConfig.TxEncoder()(tx) require.NoError(t, err) - res, err = suite.baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{Height: 1, Txs: [][]byte{txBytes}}) + res, err = suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{Height: 1, Txs: [][]byte{txBytes}}) require.NoError(t, err) require.NotEmpty(t, res.TxResults[0].Events) require.True(t, res.TxResults[0].IsOK(), fmt.Sprintf("%v", res)) @@ -649,7 +649,7 @@ func TestBaseAppPostHandler(t *testing.T) { suite := NewBaseAppSuite(t, anteOpt) baseapptestutil.RegisterCounterServer(suite.baseApp.MsgServiceRouter(), CounterServerImpl{t, capKey1, []byte("foo")}) - _, err := suite.baseApp.InitChain(&abci.InitChainRequest{ + _, err := suite.baseApp.InitChain(&abci.RequestInitChain{ ConsensusParams: &cmtproto.ConsensusParams{}, }) require.NoError(t, err) @@ -662,7 +662,7 @@ func TestBaseAppPostHandler(t *testing.T) { txBytes, err := suite.txConfig.TxEncoder()(tx) require.NoError(t, err) - res, err := suite.baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{Height: 1, Txs: [][]byte{txBytes}}) + res, err := suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{Height: 1, Txs: [][]byte{txBytes}}) require.NoError(t, err) require.Empty(t, res.Events) require.True(t, res.TxResults[0].IsOK(), fmt.Sprintf("%v", res)) @@ -675,7 +675,7 @@ func TestBaseAppPostHandler(t *testing.T) { tx = setFailOnHandler(suite.txConfig, tx, true) txBytes, err = suite.txConfig.TxEncoder()(tx) require.NoError(t, err) - res, err = suite.baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{Height: 1, Txs: [][]byte{txBytes}}) + res, err = suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{Height: 1, Txs: [][]byte{txBytes}}) require.NoError(t, err) require.Empty(t, res.Events) require.False(t, res.TxResults[0].IsOK(), fmt.Sprintf("%v", res)) @@ -686,10 +686,10 @@ func TestBaseAppPostHandler(t *testing.T) { tx = wonkyMsg(t, suite.txConfig, tx) txBytes, err = suite.txConfig.TxEncoder()(tx) require.NoError(t, err) - _, err = suite.baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{Height: 1, Txs: [][]byte{txBytes}}) + _, err = suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{Height: 1, Txs: [][]byte{txBytes}}) output := captureStdout(t, func() { - _, err = suite.baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{Height: 1, Txs: [][]byte{txBytes}}) + _, err = suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{Height: 1, Txs: [][]byte{txBytes}}) require.NoError(t, err) }) // Check the captured output @@ -756,7 +756,7 @@ func TestBaseAppPostHandlerErrorHandling(t *testing.T) { } baseapptestutil.RegisterCounterServer(suite.baseApp.MsgServiceRouter(), csMock) - _, err := suite.baseApp.InitChain(&abci.InitChainRequest{ + _, err := suite.baseApp.InitChain(&abci.RequestInitChain{ ConsensusParams: &cmtproto.ConsensusParams{}, }) require.NoError(t, err) @@ -765,7 +765,7 @@ func TestBaseAppPostHandlerErrorHandling(t *testing.T) { require.NoError(t, err) // when - res, err := suite.baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{Height: 1, Txs: [][]byte{txBytes}}) + res, err := suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{Height: 1, Txs: [][]byte{txBytes}}) // then require.NoError(t, err) assert.Equal(t, spec.expCode, res.TxResults[0].Code) @@ -799,7 +799,7 @@ func TestABCI_CreateQueryContext(t *testing.T) { for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { if tc.headerHeight != tc.height { - _, err := app.InitChain(&abci.InitChainRequest{ + _, err := app.InitChain(&abci.RequestInitChain{ InitialHeight: tc.headerHeight, }) require.NoError(t, err) @@ -835,7 +835,7 @@ func TestABCI_CreateQueryContextWithCheckHeader(t *testing.T) { for _, tc := range testCases { t.Run("valid height with different initial height", func(t *testing.T) { - _, err := app.InitChain(&abci.InitChainRequest{ + _, err := app.InitChain(&abci.RequestInitChain{ InitialHeight: headerHeight, }) require.NoError(t, err) @@ -861,12 +861,12 @@ func TestABCI_CreateQueryContext_Before_Set_CheckState(t *testing.T) { t.Run("valid height with different initial height", func(t *testing.T) { app := baseapp.NewBaseApp(name, log.NewTestLogger(t), db, nil) - _, err := app.FinalizeBlock(&abci.FinalizeBlockRequest{Height: 1}) + _, err := app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: 1}) require.NoError(t, err) _, err = app.Commit() require.NoError(t, err) - _, err = app.FinalizeBlock(&abci.FinalizeBlockRequest{Height: 2}) + _, err = app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: 2}) require.NoError(t, err) var queryCtx *sdk.Context @@ -874,7 +874,7 @@ func TestABCI_CreateQueryContext_Before_Set_CheckState(t *testing.T) { app.SetStreamingManager(storetypes.StreamingManager{ ABCIListeners: []storetypes.ABCIListener{ &mockABCIListener{ - ListenCommitFn: func(context.Context, abci.CommitResponse, []*storetypes.StoreKVPair) error { + ListenCommitFn: func(context.Context, abci.ResponseCommit, []*storetypes.StoreKVPair) error { qCtx, qErr := app.CreateQueryContext(0, true) queryCtx = &qCtx queryCtxErr = qErr @@ -887,7 +887,7 @@ func TestABCI_CreateQueryContext_Before_Set_CheckState(t *testing.T) { require.NoError(t, err) require.NoError(t, queryCtxErr) require.Equal(t, height, queryCtx.BlockHeight()) - _, err = app.InitChain(&abci.InitChainRequest{ + _, err = app.InitChain(&abci.RequestInitChain{ InitialHeight: headerHeight, }) require.NoError(t, err) @@ -959,7 +959,7 @@ func TestQueryGasLimit(t *testing.T) { func TestGetMaximumBlockGas(t *testing.T) { suite := NewBaseAppSuite(t) - _, err := suite.baseApp.InitChain(&abci.InitChainRequest{}) + _, err := suite.baseApp.InitChain(&abci.RequestInitChain{}) require.NoError(t, err) ctx := suite.baseApp.NewContext(true) @@ -979,7 +979,7 @@ func TestGetMaximumBlockGas(t *testing.T) { func TestGetEmptyConsensusParams(t *testing.T) { suite := NewBaseAppSuite(t) - _, err := suite.baseApp.InitChain(&abci.InitChainRequest{}) + _, err := suite.baseApp.InitChain(&abci.RequestInitChain{}) require.NoError(t, err) ctx := suite.baseApp.NewContext(true) @@ -1019,7 +1019,7 @@ func TestLoadVersionPruning(t *testing.T) { // Commit seven blocks, of which 7 (latest) is kept in addition to 6, 5 // (keep recent) and 3 (keep every). for i := int64(1); i <= 7; i++ { - res, err := app.FinalizeBlock(&abci.FinalizeBlockRequest{Height: i}) + res, err := app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: i}) require.NoError(t, err) _, err = app.Commit() require.NoError(t, err) diff --git a/baseapp/block_gas_test.go b/baseapp/block_gas_test.go index 1fe21e530f..936d82ea58 100644 --- a/baseapp/block_gas_test.go +++ b/baseapp/block_gas_test.go @@ -5,8 +5,8 @@ import ( "math" "testing" - abci "github.com/cometbft/cometbft/v2/abci/types" - cmtjson "github.com/cometbft/cometbft/v2/libs/json" + abci "github.com/cometbft/cometbft/abci/types" + cmtjson "github.com/cometbft/cometbft/libs/json" dbm "github.com/cosmos/cosmos-db" "github.com/stretchr/testify/require" @@ -114,7 +114,7 @@ func TestBaseApp_BlockGas(t *testing.T) { genState := GenesisStateWithSingleValidator(t, cdc, appBuilder) stateBytes, err := cmtjson.MarshalIndent(genState, "", " ") require.NoError(t, err) - _, err = bapp.InitChain(&abci.InitChainRequest{ + _, err = bapp.InitChain(&abci.RequestInitChain{ Validators: []abci.ValidatorUpdate{}, ConsensusParams: simtestutil.DefaultConsensusParams, AppStateBytes: stateBytes, @@ -155,7 +155,7 @@ func TestBaseApp_BlockGas(t *testing.T) { _, txBytes, err := createTestTx(txConfig, txBuilder, privs, accNums, accSeqs, ctx.ChainID()) require.NoError(t, err) - rsp, err := bapp.FinalizeBlock(&abci.FinalizeBlockRequest{Height: 1, Txs: [][]byte{txBytes}}) + rsp, err := bapp.FinalizeBlock(&abci.RequestFinalizeBlock{Height: 1, Txs: [][]byte{txBytes}}) require.NoError(t, err) // check result diff --git a/baseapp/genesis.go b/baseapp/genesis.go index 7b9ca60efe..4662d1187b 100644 --- a/baseapp/genesis.go +++ b/baseapp/genesis.go @@ -3,7 +3,7 @@ package baseapp import ( "errors" - "github.com/cometbft/cometbft/v2/abci/types" + "github.com/cometbft/cometbft/abci/types" "cosmossdk.io/core/genesis" ) diff --git a/baseapp/grpcrouter.go b/baseapp/grpcrouter.go index 6100c3d619..d88065cb25 100644 --- a/baseapp/grpcrouter.go +++ b/baseapp/grpcrouter.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" gogogrpc "github.com/cosmos/gogoproto/grpc" "google.golang.org/grpc" "google.golang.org/grpc/encoding" @@ -50,7 +50,7 @@ func NewGRPCQueryRouter() *GRPCQueryRouter { // GRPCQueryHandler defines a function type which handles ABCI Query requests // using gRPC -type GRPCQueryHandler = func(ctx sdk.Context, req *abci.QueryRequest) (*abci.QueryResponse, error) +type GRPCQueryHandler = func(ctx sdk.Context, req *abci.RequestQuery) (*abci.ResponseQuery, error) // Route returns the GRPCQueryHandler for a given query route path or nil // if not found @@ -103,7 +103,7 @@ func (qrt *GRPCQueryRouter) registerABCIQueryHandler(sd *grpc.ServiceDesc, metho ) } - qrt.routes[fqName] = func(ctx sdk.Context, req *abci.QueryRequest) (*abci.QueryResponse, error) { + qrt.routes[fqName] = func(ctx sdk.Context, req *abci.RequestQuery) (*abci.ResponseQuery, error) { // call the method handler from the service description with the handler object, // a wrapped sdk.Context with proto-unmarshaled data from the ABCI request data res, err := methodHandler(handler, ctx, func(i any) error { @@ -121,7 +121,7 @@ func (qrt *GRPCQueryRouter) registerABCIQueryHandler(sd *grpc.ServiceDesc, metho } // return the result bytes as the response value - return &abci.QueryResponse{ + return &abci.ResponseQuery{ Height: req.Height, Value: resBytes, }, nil diff --git a/baseapp/grpcrouter_helpers.go b/baseapp/grpcrouter_helpers.go index 131d542d88..877c9d6654 100644 --- a/baseapp/grpcrouter_helpers.go +++ b/baseapp/grpcrouter_helpers.go @@ -4,7 +4,7 @@ import ( gocontext "context" "fmt" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" gogogrpc "github.com/cosmos/gogoproto/grpc" "google.golang.org/grpc" @@ -45,7 +45,7 @@ func (q *QueryServiceTestHelper) Invoke(_ gocontext.Context, method string, args return err } - res, err := querier(q.Ctx, &abci.QueryRequest{Data: reqBz}) + res, err := querier(q.Ctx, &abci.RequestQuery{Data: reqBz}) if err != nil { return err } diff --git a/baseapp/info.go b/baseapp/info.go index d54306ccc6..47f96c3435 100644 --- a/baseapp/info.go +++ b/baseapp/info.go @@ -3,7 +3,7 @@ package baseapp import ( "time" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "cosmossdk.io/core/comet" ) @@ -145,7 +145,7 @@ func (m misbehaviorWrapper) TotalVotingPower() int64 { } type prepareProposalInfo struct { - *abci.PrepareProposalRequest + *abci.RequestPrepareProposal } var _ comet.BlockInfo = (*prepareProposalInfo)(nil) diff --git a/baseapp/msg_service_router_test.go b/baseapp/msg_service_router_test.go index afcd7cf49c..8ddb490e99 100644 --- a/baseapp/msg_service_router_test.go +++ b/baseapp/msg_service_router_test.go @@ -4,7 +4,7 @@ import ( "context" "testing" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" dbm "github.com/cosmos/cosmos-db" "github.com/stretchr/testify/require" @@ -150,7 +150,7 @@ func TestMsgService(t *testing.T) { app.MsgServiceRouter(), testdata.MsgServerImpl{}, ) - _, err = app.FinalizeBlock(&abci.FinalizeBlockRequest{Height: 1}) + _, err = app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: 1}) require.NoError(t, err) _, _, addr := testdata.KeyTestPubAddr() @@ -196,7 +196,7 @@ func TestMsgService(t *testing.T) { // Send the tx to the app txBytes, err := txConfig.TxEncoder()(txBuilder.GetTx()) require.NoError(t, err) - res, err := app.FinalizeBlock(&abci.FinalizeBlockRequest{Height: 1, Txs: [][]byte{txBytes}}) + res, err := app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: 1, Txs: [][]byte{txBytes}}) require.NoError(t, err) require.Equal(t, abci.CodeTypeOK, res.TxResults[0].Code, "res=%+v", res) } diff --git a/baseapp/oe/optimistic_execution.go b/baseapp/oe/optimistic_execution.go index 83c5f4e67a..c0c8e2575a 100644 --- a/baseapp/oe/optimistic_execution.go +++ b/baseapp/oe/optimistic_execution.go @@ -8,14 +8,14 @@ import ( "sync" "time" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "cosmossdk.io/log" ) // FinalizeBlockFunc is the function that is called by the OE to finalize the // block. It is the same as the one in the ABCI app. -type FinalizeBlockFunc func(context.Context, *abci.FinalizeBlockRequest) (*abci.FinalizeBlockResponse, error) +type FinalizeBlockFunc func(context.Context, *abci.RequestFinalizeBlock) (*abci.ResponseFinalizeBlock, error) // OptimisticExecution is a struct that contains the OE context. It is used to // run the FinalizeBlock function in a goroutine, and to abort it if needed. @@ -25,8 +25,8 @@ type OptimisticExecution struct { mtx sync.Mutex stopCh chan struct{} - request *abci.FinalizeBlockRequest - response *abci.FinalizeBlockResponse + request *abci.RequestFinalizeBlock + response *abci.ResponseFinalizeBlock err error cancelFunc func() // cancel function for the context initialized bool // A boolean value indicating whether the struct has been initialized @@ -82,12 +82,12 @@ func (oe *OptimisticExecution) Initialized() bool { } // Execute initializes the OE and starts it in a goroutine. -func (oe *OptimisticExecution) Execute(req *abci.ProcessProposalRequest) { +func (oe *OptimisticExecution) Execute(req *abci.RequestProcessProposal) { oe.mtx.Lock() defer oe.mtx.Unlock() oe.stopCh = make(chan struct{}) - oe.request = &abci.FinalizeBlockRequest{ + oe.request = &abci.RequestFinalizeBlock{ Txs: req.Txs, DecidedLastCommit: req.ProposedLastCommit, Misbehavior: req.Misbehavior, @@ -154,7 +154,7 @@ func (oe *OptimisticExecution) Abort() { } // WaitResult waits for the OE to finish and returns the result. -func (oe *OptimisticExecution) WaitResult() (*abci.FinalizeBlockResponse, error) { +func (oe *OptimisticExecution) WaitResult() (*abci.ResponseFinalizeBlock, error) { <-oe.stopCh return oe.response, oe.err } diff --git a/baseapp/oe/optimistic_execution_test.go b/baseapp/oe/optimistic_execution_test.go index 9c6f8f9c9f..0b92244783 100644 --- a/baseapp/oe/optimistic_execution_test.go +++ b/baseapp/oe/optimistic_execution_test.go @@ -5,20 +5,20 @@ import ( "errors" "testing" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "github.com/stretchr/testify/assert" "cosmossdk.io/log" ) -func testFinalizeBlock(_ context.Context, _ *abci.FinalizeBlockRequest) (*abci.FinalizeBlockResponse, error) { +func testFinalizeBlock(_ context.Context, _ *abci.RequestFinalizeBlock) (*abci.ResponseFinalizeBlock, error) { return nil, errors.New("test error") } func TestOptimisticExecution(t *testing.T) { oe := NewOptimisticExecution(log.NewNopLogger(), testFinalizeBlock) assert.True(t, oe.Enabled()) - oe.Execute(&abci.ProcessProposalRequest{ + oe.Execute(&abci.RequestProcessProposal{ Hash: []byte("test"), }) assert.True(t, oe.Initialized()) diff --git a/baseapp/options.go b/baseapp/options.go index 1edcdbfe7c..94cf813340 100644 --- a/baseapp/options.go +++ b/baseapp/options.go @@ -4,7 +4,6 @@ import ( "fmt" "io" "math" - "time" dbm "github.com/cosmos/cosmos-db" @@ -24,20 +23,6 @@ import ( // File for storing in-package BaseApp optional functions, // for options that need access to non-exported fields of the BaseApp -// SetNextBlockDelay sets the next block delay for the baseapp. -// -// The application is initialized with a default value of 0. -// -// More information on this value and how it affects CometBFT can be found here: -// https://github.com/cometbft/cometbft/blob/88ef3d267de491db98a654be0af6d791e8724ed0/spec/abci/abci%2B%2B_methods.md?plain=1#L689 -func (app *BaseApp) SetNextBlockDelay(delay time.Duration) { - if app.sealed { - panic("SetNextBlockDelay() on sealed BaseApp") - } - - app.nextBlockDelay = delay -} - // SetPruning sets a pruning option on the multistore associated with the app func SetPruning(opts pruningtypes.PruningOptions) func(*BaseApp) { return func(bapp *BaseApp) { bapp.cms.SetPruning(opts) } diff --git a/baseapp/params.go b/baseapp/params.go index 6d281d19e6..329ec1255b 100644 --- a/baseapp/params.go +++ b/baseapp/params.go @@ -3,7 +3,7 @@ package baseapp import ( "context" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" ) // ParamStore defines the interface the parameter store used by the BaseApp must diff --git a/baseapp/params_legacy.go b/baseapp/params_legacy.go index 9cb86b266a..c367194605 100644 --- a/baseapp/params_legacy.go +++ b/baseapp/params_legacy.go @@ -38,7 +38,7 @@ import ( "errors" "fmt" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/baseapp/snapshot_test.go b/baseapp/snapshot_test.go index adb15b4ef0..6fe1c2e7b4 100644 --- a/baseapp/snapshot_test.go +++ b/baseapp/snapshot_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "github.com/stretchr/testify/require" pruningtypes "cosmossdk.io/store/pruning/types" @@ -23,7 +23,7 @@ func TestABCI_ListSnapshots(t *testing.T) { suite := NewBaseAppSuiteWithSnapshots(t, ssCfg) - resp, err := suite.baseApp.ListSnapshots(&abci.ListSnapshotsRequest{}) + resp, err := suite.baseApp.ListSnapshots(&abci.RequestListSnapshots{}) require.NoError(t, err) for _, s := range resp.Snapshots { require.NotEmpty(t, s.Hash) @@ -33,7 +33,7 @@ func TestABCI_ListSnapshots(t *testing.T) { s.Metadata = nil } - require.Equal(t, &abci.ListSnapshotsResponse{Snapshots: []*abci.Snapshot{ + require.Equal(t, &abci.ResponseListSnapshots{Snapshots: []*abci.Snapshot{ {Height: 4, Format: snapshottypes.CurrentFormat, Chunks: 2}, {Height: 2, Format: snapshottypes.CurrentFormat, Chunks: 1}, }}, resp) @@ -122,7 +122,7 @@ func TestABCI_SnapshotWithPruning(t *testing.T) { t.Run(name, func(t *testing.T) { suite := NewBaseAppSuiteWithSnapshots(t, tc.ssCfg) - resp, err := suite.baseApp.ListSnapshots(&abci.ListSnapshotsRequest{}) + resp, err := suite.baseApp.ListSnapshots(&abci.RequestListSnapshots{}) require.NoError(t, err) for _, s := range resp.Snapshots { require.NotEmpty(t, s.Hash) @@ -132,7 +132,7 @@ func TestABCI_SnapshotWithPruning(t *testing.T) { s.Metadata = nil } - require.Equal(t, &abci.ListSnapshotsResponse{Snapshots: tc.expectedSnapshots}, resp) + require.Equal(t, &abci.ResponseListSnapshots{Snapshots: tc.expectedSnapshots}, resp) // Validate that heights were pruned correctly by querying the state at the last height that should be present relative to latest // and the first height that should be pruned. @@ -150,13 +150,13 @@ func TestABCI_SnapshotWithPruning(t *testing.T) { } // Query 1 - res, err := suite.baseApp.Query(context.TODO(), &abci.QueryRequest{Path: fmt.Sprintf("/store/%s/key", capKey2.Name()), Data: []byte("0"), Height: lastExistingHeight}) + res, err := suite.baseApp.Query(context.TODO(), &abci.RequestQuery{Path: fmt.Sprintf("/store/%s/key", capKey2.Name()), Data: []byte("0"), Height: lastExistingHeight}) require.NoError(t, err) require.NotNil(t, res, "height: %d", lastExistingHeight) require.NotNil(t, res.Value, "height: %d", lastExistingHeight) // Query 2 - res, err = suite.baseApp.Query(context.TODO(), &abci.QueryRequest{Path: fmt.Sprintf("/store/%s/key", capKey2.Name()), Data: []byte("0"), Height: lastExistingHeight - 1}) + res, err = suite.baseApp.Query(context.TODO(), &abci.RequestQuery{Path: fmt.Sprintf("/store/%s/key", capKey2.Name()), Data: []byte("0"), Height: lastExistingHeight - 1}) require.NoError(t, err) require.NotNil(t, res, "height: %d", lastExistingHeight-1) @@ -195,13 +195,13 @@ func TestABCI_LoadSnapshotChunk(t *testing.T) { for name, tc := range testCases { t.Run(name, func(t *testing.T) { - resp, _ := suite.baseApp.LoadSnapshotChunk(&abci.LoadSnapshotChunkRequest{ + resp, _ := suite.baseApp.LoadSnapshotChunk(&abci.RequestLoadSnapshotChunk{ Height: tc.height, Format: tc.format, Chunk: tc.chunk, }) if tc.expectEmpty { - require.Equal(t, &abci.LoadSnapshotChunkResponse{}, resp) + require.Equal(t, &abci.ResponseLoadSnapshotChunk{}, resp) return } @@ -228,32 +228,32 @@ func TestABCI_OfferSnapshot_Errors(t *testing.T) { testCases := map[string]struct { snapshot *abci.Snapshot - result abci.OfferSnapshotResult + result abci.ResponseOfferSnapshot_Result }{ - "nil snapshot": {nil, abci.OFFER_SNAPSHOT_RESULT_REJECT}, + "nil snapshot": {nil, abci.ResponseOfferSnapshot_REJECT}, "invalid format": {&abci.Snapshot{ Height: 1, Format: 9, Chunks: 3, Hash: hash, Metadata: metadata, - }, abci.OFFER_SNAPSHOT_RESULT_REJECT_FORMAT}, + }, abci.ResponseOfferSnapshot_REJECT_FORMAT}, "incorrect chunk count": {&abci.Snapshot{ Height: 1, Format: snapshottypes.CurrentFormat, Chunks: 2, Hash: hash, Metadata: metadata, - }, abci.OFFER_SNAPSHOT_RESULT_REJECT}, + }, abci.ResponseOfferSnapshot_REJECT}, "no chunks": {&abci.Snapshot{ Height: 1, Format: snapshottypes.CurrentFormat, Chunks: 0, Hash: hash, Metadata: metadata, - }, abci.OFFER_SNAPSHOT_RESULT_REJECT}, + }, abci.ResponseOfferSnapshot_REJECT}, "invalid metadata serialization": {&abci.Snapshot{ Height: 1, Format: snapshottypes.CurrentFormat, Chunks: 0, Hash: hash, Metadata: []byte{3, 1, 4}, - }, abci.OFFER_SNAPSHOT_RESULT_REJECT}, + }, abci.ResponseOfferSnapshot_REJECT}, } for name, tc := range testCases { t.Run(name, func(t *testing.T) { - resp, err := suite.baseApp.OfferSnapshot(&abci.OfferSnapshotRequest{Snapshot: tc.snapshot}) + resp, err := suite.baseApp.OfferSnapshot(&abci.RequestOfferSnapshot{Snapshot: tc.snapshot}) require.NoError(t, err) require.Equal(t, tc.result, resp.Result) }) } // Offering a snapshot after one has been accepted should error - resp, err := suite.baseApp.OfferSnapshot(&abci.OfferSnapshotRequest{Snapshot: &abci.Snapshot{ + resp, err := suite.baseApp.OfferSnapshot(&abci.RequestOfferSnapshot{Snapshot: &abci.Snapshot{ Height: 1, Format: snapshottypes.CurrentFormat, Chunks: 3, @@ -261,9 +261,9 @@ func TestABCI_OfferSnapshot_Errors(t *testing.T) { Metadata: metadata, }}) require.NoError(t, err) - require.Equal(t, &abci.OfferSnapshotResponse{Result: abci.OFFER_SNAPSHOT_RESULT_ACCEPT}, resp) + require.Equal(t, &abci.ResponseOfferSnapshot{Result: abci.ResponseOfferSnapshot_ACCEPT}, resp) - resp, err = suite.baseApp.OfferSnapshot(&abci.OfferSnapshotRequest{Snapshot: &abci.Snapshot{ + resp, err = suite.baseApp.OfferSnapshot(&abci.RequestOfferSnapshot{Snapshot: &abci.Snapshot{ Height: 2, Format: snapshottypes.CurrentFormat, Chunks: 3, @@ -271,7 +271,7 @@ func TestABCI_OfferSnapshot_Errors(t *testing.T) { Metadata: metadata, }}) require.NoError(t, err) - require.Equal(t, &abci.OfferSnapshotResponse{Result: abci.OFFER_SNAPSHOT_RESULT_ABORT}, resp) + require.Equal(t, &abci.ResponseOfferSnapshot{Result: abci.ResponseOfferSnapshot_ABORT}, resp) } func TestABCI_ApplySnapshotChunk(t *testing.T) { @@ -294,7 +294,7 @@ func TestABCI_ApplySnapshotChunk(t *testing.T) { targetSuite := NewBaseAppSuiteWithSnapshots(t, targetCfg) // fetch latest snapshot to restore - respList, err := srcSuite.baseApp.ListSnapshots(&abci.ListSnapshotsRequest{}) + respList, err := srcSuite.baseApp.ListSnapshots(&abci.RequestListSnapshots{}) require.NoError(t, err) require.NotEmpty(t, respList.Snapshots) snapshot := respList.Snapshots[0] @@ -303,27 +303,27 @@ func TestABCI_ApplySnapshotChunk(t *testing.T) { require.GreaterOrEqual(t, snapshot.Chunks, uint32(3), "Not enough snapshot chunks") // begin a snapshot restoration in the target - respOffer, err := targetSuite.baseApp.OfferSnapshot(&abci.OfferSnapshotRequest{Snapshot: snapshot}) + respOffer, err := targetSuite.baseApp.OfferSnapshot(&abci.RequestOfferSnapshot{Snapshot: snapshot}) require.NoError(t, err) - require.Equal(t, &abci.OfferSnapshotResponse{Result: abci.OFFER_SNAPSHOT_RESULT_ACCEPT}, respOffer) + require.Equal(t, &abci.ResponseOfferSnapshot{Result: abci.ResponseOfferSnapshot_ACCEPT}, respOffer) // We should be able to pass an invalid chunk and get a verify failure, before // reapplying it. - respApply, err := targetSuite.baseApp.ApplySnapshotChunk(&abci.ApplySnapshotChunkRequest{ + respApply, err := targetSuite.baseApp.ApplySnapshotChunk(&abci.RequestApplySnapshotChunk{ Index: 0, Chunk: []byte{9}, Sender: "sender", }) require.NoError(t, err) - require.Equal(t, &abci.ApplySnapshotChunkResponse{ - Result: abci.APPLY_SNAPSHOT_CHUNK_RESULT_RETRY, + require.Equal(t, &abci.ResponseApplySnapshotChunk{ + Result: abci.ResponseApplySnapshotChunk_RETRY, RefetchChunks: []uint32{0}, RejectSenders: []string{"sender"}, }, respApply) // fetch each chunk from the source and apply it to the target for index := uint32(0); index < snapshot.Chunks; index++ { - respChunk, err := srcSuite.baseApp.LoadSnapshotChunk(&abci.LoadSnapshotChunkRequest{ + respChunk, err := srcSuite.baseApp.LoadSnapshotChunk(&abci.RequestLoadSnapshotChunk{ Height: snapshot.Height, Format: snapshot.Format, Chunk: index, @@ -331,13 +331,13 @@ func TestABCI_ApplySnapshotChunk(t *testing.T) { require.NoError(t, err) require.NotNil(t, respChunk.Chunk) - respApply, err := targetSuite.baseApp.ApplySnapshotChunk(&abci.ApplySnapshotChunkRequest{ + respApply, err := targetSuite.baseApp.ApplySnapshotChunk(&abci.RequestApplySnapshotChunk{ Index: index, Chunk: respChunk.Chunk, }) require.NoError(t, err) - require.Equal(t, &abci.ApplySnapshotChunkResponse{ - Result: abci.APPLY_SNAPSHOT_CHUNK_RESULT_ACCEPT, + require.Equal(t, &abci.ResponseApplySnapshotChunk{ + Result: abci.ResponseApplySnapshotChunk_ACCEPT, }, respApply) } diff --git a/baseapp/state/manager.go b/baseapp/state/manager.go index dddaf8e32f..fb8cb55e73 100644 --- a/baseapp/state/manager.go +++ b/baseapp/state/manager.go @@ -4,7 +4,7 @@ import ( "fmt" "sync" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "cosmossdk.io/core/header" "cosmossdk.io/log" diff --git a/baseapp/streaming_test.go b/baseapp/streaming_test.go index 649e82ae56..ed3637dbc9 100644 --- a/baseapp/streaming_test.go +++ b/baseapp/streaming_test.go @@ -5,8 +5,8 @@ import ( "fmt" "testing" - tmproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" + tmproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/require" storetypes "cosmossdk.io/store/types" @@ -29,11 +29,11 @@ func NewMockABCIListener(name string) MockABCIListener { } } -func (m MockABCIListener) ListenFinalizeBlock(_ context.Context, _ abci.FinalizeBlockRequest, _ abci.FinalizeBlockResponse) error { +func (m MockABCIListener) ListenFinalizeBlock(_ context.Context, _ abci.RequestFinalizeBlock, _ abci.ResponseFinalizeBlock) error { return nil } -func (m *MockABCIListener) ListenCommit(_ context.Context, _ abci.CommitResponse, cs []*storetypes.StoreKVPair) error { +func (m *MockABCIListener) ListenCommit(_ context.Context, _ abci.ResponseCommit, cs []*storetypes.StoreKVPair) error { m.ChangeSet = cs return nil } @@ -52,7 +52,7 @@ func TestABCI_MultiListener_StateChanges(t *testing.T) { suite := NewBaseAppSuite(t, anteOpt, distOpt, streamingManagerOpt, addListenerOpt) _, err := suite.baseApp.InitChain( - &abci.InitChainRequest{ + &abci.RequestInitChain{ ConsensusParams: &tmproto.ConsensusParams{}, }, ) @@ -70,7 +70,7 @@ func TestABCI_MultiListener_StateChanges(t *testing.T) { var expectedChangeSet []*storetypes.StoreKVPair // create final block context state - _, err := suite.baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{Height: int64(blockN) + 1, Txs: txs}) + _, err := suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{Height: int64(blockN) + 1, Txs: txs}) require.NoError(t, err) for i := range txPerHeight { @@ -95,7 +95,7 @@ func TestABCI_MultiListener_StateChanges(t *testing.T) { txs = append(txs, txBytes) } - res, err := suite.baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{Height: int64(blockN) + 1, Txs: txs}) + res, err := suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{Height: int64(blockN) + 1, Txs: txs}) require.NoError(t, err) for _, tx := range res.TxResults { events := tx.GetEvents() @@ -121,7 +121,7 @@ func Test_Ctx_with_StreamingManager(t *testing.T) { addListenerOpt := func(bapp *baseapp.BaseApp) { bapp.CommitMultiStore().AddListeners([]storetypes.StoreKey{distKey1}) } suite := NewBaseAppSuite(t, streamingManagerOpt, addListenerOpt) - _, err := suite.baseApp.InitChain(&abci.InitChainRequest{ + _, err := suite.baseApp.InitChain(&abci.RequestInitChain{ ConsensusParams: &tmproto.ConsensusParams{}, }) require.NoError(t, err) @@ -136,7 +136,7 @@ func Test_Ctx_with_StreamingManager(t *testing.T) { for blockN := range nBlocks { - _, err := suite.baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{Height: int64(blockN) + 1}) + _, err := suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{Height: int64(blockN) + 1}) require.NoError(t, err) ctx := getFinalizeBlockStateCtx(suite.baseApp) diff --git a/baseapp/test_helpers.go b/baseapp/test_helpers.go index 3e693177ac..c254a24630 100644 --- a/baseapp/test_helpers.go +++ b/baseapp/test_helpers.go @@ -1,7 +1,7 @@ package baseapp import ( - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" errorsmod "cosmossdk.io/errors" @@ -52,7 +52,7 @@ func (app *BaseApp) SimTxFinalizeBlock(txEncoder sdk.TxEncoder, tx sdk.Tx) (sdk. } // SimWriteState is an entrypoint for simulations only. They are not executed during the normal ABCI finalize -// block step but later. Therefore an extra call to the root multi-store (app.cms) is required to write the changes. +// block step but later. Therefore, an extra call to the root multi-store (app.cms) is required to write the changes. func (app *BaseApp) SimWriteState() { app.stateManager.GetState(execModeFinalize).MultiStore.Write() } diff --git a/baseapp/testutil/mock/mocks.go b/baseapp/testutil/mock/mocks.go index 653cf2220d..51de61fa71 100644 --- a/baseapp/testutil/mock/mocks.go +++ b/baseapp/testutil/mock/mocks.go @@ -13,7 +13,7 @@ import ( context "context" reflect "reflect" - v1 "github.com/cometbft/cometbft/api/cometbft/crypto/v1" + crypto "github.com/cometbft/cometbft/proto/tendermint/crypto" types "github.com/cosmos/cosmos-sdk/types" gomock "go.uber.org/mock/gomock" ) @@ -43,10 +43,10 @@ func (m *MockValidatorStore) EXPECT() *MockValidatorStoreMockRecorder { } // GetPubKeyByConsAddr mocks base method. -func (m *MockValidatorStore) GetPubKeyByConsAddr(arg0 context.Context, arg1 types.ConsAddress) (v1.PublicKey, error) { +func (m *MockValidatorStore) GetPubKeyByConsAddr(arg0 context.Context, arg1 types.ConsAddress) (crypto.PublicKey, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPubKeyByConsAddr", arg0, arg1) - ret0, _ := ret[0].(v1.PublicKey) + ret0, _ := ret[0].(crypto.PublicKey) ret1, _ := ret[1].(error) return ret0, ret1 } diff --git a/baseapp/utils_test.go b/baseapp/utils_test.go index c1798e342e..b447486d19 100644 --- a/baseapp/utils_test.go +++ b/baseapp/utils_test.go @@ -13,8 +13,8 @@ import ( "testing" "unsafe" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - cmttypes "github.com/cometbft/cometbft/v2/types" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + cmttypes "github.com/cometbft/cometbft/types" dbm "github.com/cosmos/cosmos-db" "github.com/stretchr/testify/require" @@ -432,6 +432,7 @@ func setFailOnHandler(cfg client.TxConfig, tx signing.Tx, fail bool) signing.Tx func wonkyMsg(t *testing.T, cfg client.TxConfig, tx signing.Tx) signing.Tx { t.Helper() + t.Helper() builder := cfg.NewTxBuilder() builder.SetMemo(tx.GetMemo()) diff --git a/client/broadcast.go b/client/broadcast.go index 4dd91a5594..5995ad2042 100644 --- a/client/broadcast.go +++ b/client/broadcast.go @@ -5,8 +5,8 @@ import ( "fmt" "strings" - "github.com/cometbft/cometbft/v2/mempool" - cmttypes "github.com/cometbft/cometbft/v2/types" + "github.com/cometbft/cometbft/mempool" + cmttypes "github.com/cometbft/cometbft/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" diff --git a/client/broadcast_test.go b/client/broadcast_test.go index 6213a4dc34..82929e27d8 100644 --- a/client/broadcast_test.go +++ b/client/broadcast_test.go @@ -5,8 +5,8 @@ import ( "fmt" "testing" - "github.com/cometbft/cometbft/v2/crypto/tmhash" - "github.com/cometbft/cometbft/v2/mempool" + "github.com/cometbft/cometbft/crypto/tmhash" + "github.com/cometbft/cometbft/mempool" "github.com/stretchr/testify/require" "github.com/cosmos/cosmos-sdk/client/flags" diff --git a/client/cometbft.go b/client/cometbft.go index 63dfa21280..fcf9ca64b0 100644 --- a/client/cometbft.go +++ b/client/cometbft.go @@ -3,8 +3,8 @@ package client import ( "context" - rpcclient "github.com/cometbft/cometbft/v2/rpc/client" - coretypes "github.com/cometbft/cometbft/v2/rpc/core/types" + rpcclient "github.com/cometbft/cometbft/rpc/client" + coretypes "github.com/cometbft/cometbft/rpc/core/types" ) // CometRPC defines the interface of a CometBFT RPC client needed for diff --git a/client/grpc/cmtservice/block.go b/client/grpc/cmtservice/block.go index ebec64bd51..f1cde440f9 100644 --- a/client/grpc/cmtservice/block.go +++ b/client/grpc/cmtservice/block.go @@ -3,8 +3,8 @@ package cmtservice import ( "context" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - coretypes "github.com/cometbft/cometbft/v2/rpc/core/types" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + coretypes "github.com/cometbft/cometbft/rpc/core/types" "github.com/cosmos/cosmos-sdk/client" ) diff --git a/client/grpc/cmtservice/query.pb.go b/client/grpc/cmtservice/query.pb.go index d878dc14ba..bcfe4b37e6 100644 --- a/client/grpc/cmtservice/query.pb.go +++ b/client/grpc/cmtservice/query.pb.go @@ -6,8 +6,8 @@ package cmtservice import ( context "context" fmt "fmt" - v1 "github.com/cometbft/cometbft/api/cometbft/p2p/v1" - v2 "github.com/cometbft/cometbft/api/cometbft/types/v2" + p2p "github.com/cometbft/cometbft/proto/tendermint/p2p" + types "github.com/cometbft/cometbft/proto/tendermint/types" _ "github.com/cosmos/cosmos-proto" query "github.com/cosmos/cosmos-sdk/types/query" _ "github.com/cosmos/cosmos-sdk/types/tx/amino" @@ -38,7 +38,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method. type GetValidatorSetByHeightRequest struct { Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` - // pagination defines a pagination for the request. + // pagination defines an pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -93,7 +93,7 @@ func (m *GetValidatorSetByHeightRequest) GetPagination() *query.PageRequest { type GetValidatorSetByHeightResponse struct { BlockHeight int64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` Validators []*Validator `protobuf:"bytes,2,rep,name=validators,proto3" json:"validators,omitempty"` - // pagination defines a pagination for the response. + // pagination defines an pagination for the response. Pagination *query.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -153,7 +153,7 @@ func (m *GetValidatorSetByHeightResponse) GetPagination() *query.PageResponse { // GetLatestValidatorSetRequest is the request type for the Query/GetValidatorSetByHeight RPC method. type GetLatestValidatorSetRequest struct { - // pagination defines a pagination for the request. + // pagination defines an pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -201,7 +201,7 @@ func (m *GetLatestValidatorSetRequest) GetPagination() *query.PageRequest { type GetLatestValidatorSetResponse struct { BlockHeight int64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` Validators []*Validator `protobuf:"bytes,2,rep,name=validators,proto3" json:"validators,omitempty"` - // pagination defines a pagination for the response. + // pagination defines an pagination for the response. Pagination *query.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -375,10 +375,10 @@ func (m *GetBlockByHeightRequest) GetHeight() int64 { // GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method. type GetBlockByHeightResponse struct { - BlockId *v2.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` + BlockId *types.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` // Deprecated: please use `sdk_block` instead - Block *v2.Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"` - SdkBlock *Block `protobuf:"bytes,3,opt,name=sdk_block,json=sdkBlock,proto3" json:"sdk_block,omitempty"` + Block *types.Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"` + SdkBlock *Block `protobuf:"bytes,3,opt,name=sdk_block,json=sdkBlock,proto3" json:"sdk_block,omitempty"` } func (m *GetBlockByHeightResponse) Reset() { *m = GetBlockByHeightResponse{} } @@ -414,14 +414,14 @@ func (m *GetBlockByHeightResponse) XXX_DiscardUnknown() { var xxx_messageInfo_GetBlockByHeightResponse proto.InternalMessageInfo -func (m *GetBlockByHeightResponse) GetBlockId() *v2.BlockID { +func (m *GetBlockByHeightResponse) GetBlockId() *types.BlockID { if m != nil { return m.BlockId } return nil } -func (m *GetBlockByHeightResponse) GetBlock() *v2.Block { +func (m *GetBlockByHeightResponse) GetBlock() *types.Block { if m != nil { return m.Block } @@ -474,10 +474,10 @@ var xxx_messageInfo_GetLatestBlockRequest proto.InternalMessageInfo // GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method. type GetLatestBlockResponse struct { - BlockId *v2.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` + BlockId *types.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` // Deprecated: please use `sdk_block` instead - Block *v2.Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"` - SdkBlock *Block `protobuf:"bytes,3,opt,name=sdk_block,json=sdkBlock,proto3" json:"sdk_block,omitempty"` + Block *types.Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"` + SdkBlock *Block `protobuf:"bytes,3,opt,name=sdk_block,json=sdkBlock,proto3" json:"sdk_block,omitempty"` } func (m *GetLatestBlockResponse) Reset() { *m = GetLatestBlockResponse{} } @@ -513,14 +513,14 @@ func (m *GetLatestBlockResponse) XXX_DiscardUnknown() { var xxx_messageInfo_GetLatestBlockResponse proto.InternalMessageInfo -func (m *GetLatestBlockResponse) GetBlockId() *v2.BlockID { +func (m *GetLatestBlockResponse) GetBlockId() *types.BlockID { if m != nil { return m.BlockId } return nil } -func (m *GetLatestBlockResponse) GetBlock() *v2.Block { +func (m *GetLatestBlockResponse) GetBlock() *types.Block { if m != nil { return m.Block } @@ -655,8 +655,8 @@ var xxx_messageInfo_GetNodeInfoRequest proto.InternalMessageInfo // GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC method. type GetNodeInfoResponse struct { - DefaultNodeInfo *v1.DefaultNodeInfo `protobuf:"bytes,1,opt,name=default_node_info,json=defaultNodeInfo,proto3" json:"default_node_info,omitempty"` - ApplicationVersion *VersionInfo `protobuf:"bytes,2,opt,name=application_version,json=applicationVersion,proto3" json:"application_version,omitempty"` + DefaultNodeInfo *p2p.DefaultNodeInfo `protobuf:"bytes,1,opt,name=default_node_info,json=defaultNodeInfo,proto3" json:"default_node_info,omitempty"` + ApplicationVersion *VersionInfo `protobuf:"bytes,2,opt,name=application_version,json=applicationVersion,proto3" json:"application_version,omitempty"` } func (m *GetNodeInfoResponse) Reset() { *m = GetNodeInfoResponse{} } @@ -692,7 +692,7 @@ func (m *GetNodeInfoResponse) XXX_DiscardUnknown() { var xxx_messageInfo_GetNodeInfoResponse proto.InternalMessageInfo -func (m *GetNodeInfoResponse) GetDefaultNodeInfo() *v1.DefaultNodeInfo { +func (m *GetNodeInfoResponse) GetDefaultNodeInfo() *p2p.DefaultNodeInfo { if m != nil { return m.DefaultNodeInfo } @@ -1191,98 +1191,97 @@ func init() { } var fileDescriptor_40c93fb3ef485c5d = []byte{ - // 1443 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x57, 0x5f, 0x6f, 0x1b, 0xc5, - 0x16, 0xcf, 0xda, 0x69, 0x6c, 0x1f, 0xf7, 0xde, 0x26, 0x93, 0xdc, 0xd6, 0xf5, 0x6d, 0xdd, 0x5c, - 0x4b, 0xb7, 0x4d, 0x5b, 0xb2, 0x5b, 0x3b, 0x6d, 0xda, 0x87, 0x52, 0x94, 0x34, 0x25, 0x0d, 0xb4, - 0x25, 0x6c, 0x10, 0x48, 0x08, 0x69, 0xb5, 0xf6, 0x8e, 0x37, 0xab, 0xd8, 0x3b, 0xd3, 0x9d, 0xb1, - 0xc1, 0x42, 0x48, 0x88, 0x0f, 0x80, 0x90, 0xf8, 0x0a, 0x3c, 0xc0, 0x1b, 0x0f, 0x15, 0x3c, 0x51, - 0x09, 0x9e, 0x2a, 0x9e, 0xaa, 0x22, 0xa1, 0xaa, 0x0f, 0x08, 0xb5, 0x48, 0x7c, 0x0d, 0x34, 0x7f, - 0xd6, 0xde, 0x6d, 0x92, 0xda, 0xe9, 0x1b, 0xbc, 0x58, 0xb3, 0xe7, 0xef, 0xef, 0x77, 0xce, 0xcc, - 0x99, 0x31, 0x9c, 0x6b, 0x12, 0xd6, 0x21, 0xcc, 0x6a, 0xb8, 0x0c, 0x5b, 0x1c, 0x87, 0x1e, 0x8e, - 0x3a, 0x41, 0xc8, 0xad, 0x5e, 0xad, 0x81, 0xb9, 0x5b, 0xb3, 0xee, 0x76, 0x71, 0xd4, 0x37, 0x69, - 0x44, 0x38, 0x41, 0x15, 0x65, 0x6b, 0x0a, 0x5b, 0x73, 0x68, 0x6b, 0x6a, 0xdb, 0xf2, 0x9c, 0x4f, - 0x7c, 0x22, 0x4d, 0x2d, 0xb1, 0x52, 0x5e, 0xe5, 0xe3, 0x3e, 0x21, 0x7e, 0x1b, 0x5b, 0xf2, 0xab, - 0xd1, 0x6d, 0x59, 0x6e, 0xa8, 0x03, 0x96, 0x4f, 0x68, 0x95, 0x4b, 0x03, 0xcb, 0x0d, 0x43, 0xc2, - 0x5d, 0x1e, 0x90, 0x90, 0x69, 0xed, 0x7f, 0x9b, 0xa4, 0x83, 0x79, 0xa3, 0xc5, 0x2d, 0x5a, 0xa7, - 0x56, 0xaf, 0x66, 0xf1, 0x3e, 0xc5, 0xb1, 0xf2, 0xe4, 0x40, 0x29, 0xa5, 0x56, 0xaf, 0x9e, 0x52, - 0xa7, 0x68, 0x49, 0x0e, 0x03, 0x46, 0xd4, 0xf5, 0x83, 0x50, 0x26, 0xda, 0xcb, 0x76, 0x8f, 0x12, - 0x24, 0xe3, 0x1e, 0x57, 0xb6, 0x8e, 0x62, 0xa9, 0xeb, 0xb1, 0x2f, 0xa2, 0x46, 0x9b, 0x34, 0x77, - 0xb4, 0x7a, 0xc6, 0xed, 0x04, 0x21, 0xb1, 0xe4, 0xaf, 0x12, 0x55, 0x3f, 0x35, 0xa0, 0xb2, 0x8e, - 0xf9, 0xbb, 0x6e, 0x3b, 0xf0, 0x5c, 0x4e, 0xa2, 0x2d, 0xcc, 0x57, 0xfb, 0x37, 0x71, 0xe0, 0x6f, - 0x73, 0x1b, 0xdf, 0xed, 0x62, 0xc6, 0xd1, 0x51, 0x98, 0xda, 0x96, 0x82, 0x92, 0x31, 0x6f, 0x2c, - 0x64, 0x6d, 0xfd, 0x85, 0x5e, 0x07, 0x18, 0xf2, 0x28, 0x65, 0xe6, 0x8d, 0x85, 0x62, 0xfd, 0xb4, - 0x99, 0xec, 0x8f, 0x6a, 0x9c, 0xe6, 0x60, 0x6e, 0xba, 0x3e, 0xd6, 0x31, 0xed, 0x84, 0x67, 0xf5, - 0xb1, 0x01, 0xa7, 0xf6, 0x85, 0xc0, 0x28, 0x09, 0x19, 0x46, 0xff, 0x83, 0xc3, 0x92, 0x88, 0x93, - 0x42, 0x52, 0x94, 0x32, 0x65, 0x8a, 0x36, 0x00, 0x7a, 0x71, 0x08, 0x56, 0xca, 0xcc, 0x67, 0x17, - 0x8a, 0xf5, 0xb3, 0xe6, 0x8b, 0xb7, 0x8b, 0x39, 0x48, 0x6a, 0x27, 0x9c, 0xd1, 0x7a, 0x8a, 0x59, - 0x56, 0x32, 0x3b, 0x33, 0x92, 0x99, 0x82, 0x9a, 0xa2, 0xd6, 0x82, 0x13, 0xeb, 0x98, 0xdf, 0x72, - 0x39, 0x66, 0x29, 0x7e, 0x71, 0x69, 0xd3, 0x25, 0x34, 0x5e, 0xba, 0x84, 0xbf, 0x1a, 0x70, 0x72, - 0x9f, 0x44, 0x7f, 0xef, 0x02, 0xde, 0x37, 0xa0, 0x30, 0x48, 0x81, 0xea, 0x90, 0x73, 0x3d, 0x2f, - 0xc2, 0x8c, 0x49, 0xfc, 0x85, 0xd5, 0xd2, 0xa3, 0x7b, 0x8b, 0x73, 0x3a, 0xec, 0x8a, 0xd2, 0x6c, - 0xf1, 0x28, 0x08, 0x7d, 0x3b, 0x36, 0x44, 0x8b, 0x90, 0xa3, 0xdd, 0x86, 0xb3, 0x83, 0xfb, 0x7a, - 0x8b, 0xce, 0x99, 0xea, 0xc4, 0x9b, 0xf1, 0x30, 0x30, 0x57, 0xc2, 0xbe, 0x3d, 0x45, 0xbb, 0x8d, - 0x37, 0x71, 0x5f, 0xd4, 0xa9, 0x47, 0x78, 0x10, 0xfa, 0x0e, 0x25, 0x1f, 0xe2, 0x48, 0x62, 0xcf, - 0xda, 0x45, 0x25, 0xdb, 0x14, 0x22, 0x74, 0x1e, 0x66, 0x68, 0x44, 0x28, 0x61, 0x38, 0x72, 0x68, - 0x14, 0x90, 0x28, 0xe0, 0xfd, 0xd2, 0xa4, 0xb4, 0x9b, 0x8e, 0x15, 0x9b, 0x5a, 0x5e, 0xad, 0xc1, - 0xb1, 0x75, 0xcc, 0x57, 0x45, 0x99, 0xc7, 0x3c, 0x57, 0xd5, 0x27, 0x06, 0x94, 0x76, 0xfb, 0xe8, - 0x3e, 0x5e, 0x82, 0xbc, 0xea, 0x63, 0xe0, 0xe9, 0xfd, 0x52, 0x36, 0xe3, 0x43, 0x6f, 0xaa, 0x29, - 0xd1, 0xab, 0x9b, 0xd2, 0x77, 0x63, 0xcd, 0xce, 0x49, 0xdb, 0x0d, 0x0f, 0x99, 0x70, 0x48, 0x2e, - 0x75, 0x0d, 0x4a, 0xfb, 0xf9, 0xd8, 0xca, 0x0c, 0xbd, 0x07, 0x05, 0xe6, 0xed, 0x38, 0xca, 0x47, - 0xf5, 0xef, 0xff, 0xa3, 0xb6, 0x82, 0x02, 0x3c, 0xfb, 0xe4, 0xde, 0xe2, 0x11, 0x65, 0xb9, 0xc8, - 0xbc, 0x9d, 0xf9, 0x0b, 0xe6, 0xc5, 0xcb, 0x76, 0x9e, 0x79, 0x3b, 0x52, 0x5d, 0x3d, 0x06, 0xff, - 0x19, 0x6c, 0x54, 0x95, 0x51, 0x55, 0x43, 0x4c, 0x81, 0xa3, 0xcf, 0x6b, 0xfe, 0x21, 0x9c, 0x67, - 0x61, 0x66, 0x1d, 0xf3, 0xad, 0x7e, 0xd8, 0x14, 0x3b, 0x53, 0xf3, 0x35, 0x01, 0x25, 0x85, 0x9a, - 0x6a, 0x09, 0x72, 0x4c, 0x89, 0x24, 0xd3, 0xbc, 0x1d, 0x7f, 0x56, 0xe7, 0xa4, 0xfd, 0x1d, 0xe2, - 0xe1, 0x8d, 0xb0, 0x45, 0xe2, 0x28, 0x3f, 0x1a, 0x30, 0x9b, 0x12, 0xeb, 0x38, 0xb7, 0x60, 0xc6, - 0xc3, 0x2d, 0xb7, 0xdb, 0xe6, 0x4e, 0x48, 0x3c, 0xec, 0x04, 0x61, 0x8b, 0xe8, 0xda, 0xcd, 0x0f, - 0xeb, 0x40, 0xeb, 0xd4, 0xec, 0xd5, 0xcc, 0x35, 0x65, 0x39, 0x08, 0x72, 0xc4, 0x4b, 0x0b, 0xd0, - 0x07, 0x30, 0xeb, 0x52, 0xda, 0x0e, 0x9a, 0xf2, 0x50, 0x3a, 0x3d, 0x1c, 0xb1, 0xe1, 0xc8, 0x3f, - 0x3f, 0x72, 0x44, 0x28, 0x73, 0x19, 0x1a, 0x25, 0xe2, 0x68, 0x79, 0xf5, 0x87, 0x0c, 0x14, 0x13, - 0x36, 0x08, 0xc1, 0x64, 0xe8, 0x76, 0xb0, 0x3a, 0xe2, 0xb6, 0x5c, 0xa3, 0xe3, 0x90, 0x77, 0x29, - 0x75, 0xa4, 0x3c, 0x23, 0xe5, 0x39, 0x97, 0xd2, 0x3b, 0x42, 0x55, 0x82, 0x5c, 0x0c, 0x28, 0xab, - 0x34, 0xfa, 0x13, 0x9d, 0x04, 0xf0, 0x03, 0xee, 0x34, 0x49, 0xa7, 0x13, 0x70, 0x79, 0x42, 0x0b, - 0x76, 0xc1, 0x0f, 0xf8, 0x75, 0x29, 0x10, 0xea, 0x46, 0x37, 0x68, 0x7b, 0x0e, 0x77, 0x7d, 0x56, - 0x3a, 0xa4, 0xd4, 0x52, 0xf2, 0x8e, 0xeb, 0x33, 0xe9, 0x4d, 0x06, 0x5c, 0xa7, 0xb4, 0x37, 0xd1, - 0x48, 0xd1, 0x8d, 0xd8, 0xdb, 0xc3, 0x94, 0x95, 0x72, 0x72, 0x5a, 0x9e, 0x1e, 0x55, 0x8a, 0xdb, - 0xc4, 0xeb, 0xb6, 0xb1, 0xce, 0xb2, 0x86, 0x29, 0x43, 0x2b, 0x80, 0xf4, 0x75, 0x2e, 0xf6, 0x5e, - 0x9c, 0x2d, 0x2f, 0xa7, 0xdb, 0x1e, 0xdb, 0x6a, 0xc9, 0x9e, 0x56, 0x82, 0x2d, 0x6f, 0x27, 0xae, - 0xdf, 0x4d, 0x98, 0x52, 0x71, 0x45, 0xe5, 0xa8, 0xcb, 0xb7, 0xe3, 0xca, 0x89, 0x75, 0xb2, 0x3c, - 0x99, 0x74, 0x79, 0xa6, 0x21, 0xcb, 0xba, 0x1d, 0x5d, 0x34, 0xb1, 0xac, 0x6e, 0xc3, 0xf4, 0xca, - 0xea, 0xf5, 0x8d, 0xb7, 0xc5, 0x6c, 0x8e, 0xa7, 0x14, 0x82, 0x49, 0xcf, 0xe5, 0xae, 0x8c, 0x79, - 0xd8, 0x96, 0xeb, 0x41, 0x9e, 0x4c, 0x22, 0xcf, 0x70, 0x9a, 0x65, 0x53, 0xaf, 0x84, 0x39, 0x38, - 0x44, 0x23, 0xd2, 0xc3, 0xb2, 0xfe, 0x79, 0x5b, 0x7d, 0x54, 0x3f, 0xcf, 0xc0, 0x4c, 0x22, 0x95, - 0xde, 0xb5, 0x08, 0x26, 0x9b, 0xc4, 0x53, 0x9d, 0xff, 0x97, 0x2d, 0xd7, 0x02, 0x65, 0x9b, 0xf8, - 0x31, 0xca, 0x36, 0xf1, 0x85, 0x95, 0xdc, 0xce, 0xaa, 0xa1, 0x72, 0x2d, 0xb2, 0x04, 0xa1, 0x87, - 0x3f, 0x92, 0x6d, 0xcc, 0xda, 0xea, 0x43, 0xf8, 0x8a, 0xb9, 0x3f, 0x25, 0xa1, 0x8b, 0xa5, 0xb0, - 0xeb, 0xb9, 0xed, 0x2e, 0x2e, 0xe5, 0xa4, 0x4c, 0x7d, 0xa0, 0x1b, 0x50, 0xa0, 0x11, 0x21, 0x2d, - 0x87, 0x50, 0x26, 0x6b, 0x5f, 0xac, 0x2f, 0x8c, 0x6a, 0xe5, 0xa6, 0x70, 0x78, 0x8b, 0x32, 0x3b, - 0x4f, 0xf5, 0x2a, 0x51, 0x82, 0x42, 0xaa, 0x04, 0x27, 0xa0, 0x20, 0xa8, 0x30, 0xea, 0x36, 0x71, - 0x09, 0xd4, 0x46, 0x1a, 0x08, 0xde, 0x98, 0xcc, 0x67, 0xa6, 0xb3, 0xd5, 0xeb, 0x90, 0xd3, 0x11, - 0x05, 0x3f, 0x31, 0xa0, 0xe2, 0x2e, 0x8a, 0x75, 0xcc, 0x24, 0x33, 0x64, 0x12, 0xf7, 0x25, 0x3b, - 0xec, 0x4b, 0x75, 0x13, 0xf2, 0x31, 0x2c, 0xb4, 0x06, 0x59, 0xc1, 0xc6, 0x90, 0x1b, 0xf3, 0xcc, - 0x98, 0x6c, 0x56, 0x0b, 0x0f, 0x7e, 0x3b, 0x35, 0xf1, 0xf5, 0x9f, 0xdf, 0x9e, 0x33, 0x6c, 0xe1, - 0x5e, 0xff, 0x09, 0x20, 0xb7, 0x85, 0xa3, 0x5e, 0xd0, 0xc4, 0xe8, 0x1b, 0x03, 0x8a, 0x89, 0x59, - 0x83, 0xea, 0xa3, 0x82, 0xee, 0x9e, 0x57, 0xe5, 0xa5, 0x03, 0xf9, 0xa8, 0x6d, 0x51, 0xad, 0x7d, - 0xf6, 0xcb, 0x1f, 0x5f, 0x66, 0xce, 0xa3, 0xb3, 0xd6, 0x88, 0x57, 0xf2, 0x60, 0xd4, 0xa1, 0xaf, - 0x0c, 0x80, 0xe1, 0x78, 0x45, 0xb5, 0x31, 0xd2, 0xa6, 0xe7, 0x73, 0xb9, 0x7e, 0x10, 0x17, 0x0d, - 0xd4, 0x92, 0x40, 0xcf, 0xa2, 0x33, 0xa3, 0x80, 0xea, 0xa1, 0x8e, 0xbe, 0x33, 0xe0, 0xdf, 0xe9, - 0x4b, 0x0f, 0x5d, 0x1a, 0x23, 0xef, 0xee, 0xeb, 0xb3, 0xbc, 0x7c, 0x50, 0x37, 0x0d, 0xf9, 0x92, - 0x84, 0x6c, 0xa1, 0xc5, 0x51, 0x90, 0xe5, 0xb5, 0xc8, 0xac, 0xb6, 0x8c, 0x81, 0xee, 0x1b, 0x30, - 0xfd, 0xfc, 0x1b, 0x05, 0x5d, 0x1e, 0x03, 0xc3, 0x5e, 0x2f, 0xa1, 0xf2, 0x95, 0x83, 0x3b, 0x6a, - 0xf8, 0x97, 0x25, 0xfc, 0x1a, 0xb2, 0xc6, 0x84, 0xff, 0xb1, 0x3a, 0x92, 0x9f, 0xa0, 0x47, 0x46, - 0xe2, 0x21, 0x92, 0x7c, 0x31, 0xa3, 0xab, 0x63, 0x57, 0x72, 0x8f, 0x17, 0x7d, 0xf9, 0xd5, 0x97, - 0xf4, 0xd6, 0x7c, 0xae, 0x4a, 0x3e, 0xcb, 0xe8, 0xe2, 0x28, 0x3e, 0xc3, 0xc7, 0x36, 0xe6, 0x83, - 0xae, 0x3c, 0x31, 0xe4, 0x6b, 0x73, 0xaf, 0x7f, 0x52, 0xe8, 0xda, 0x18, 0xc0, 0x5e, 0xf0, 0x2f, - 0xb0, 0xfc, 0xda, 0x4b, 0xfb, 0x6b, 0x6a, 0xd7, 0x24, 0xb5, 0x2b, 0x68, 0xf9, 0x60, 0xd4, 0x06, - 0x1d, 0xfb, 0xde, 0x80, 0xc2, 0xe0, 0xca, 0x40, 0x17, 0x46, 0xc1, 0x79, 0xfe, 0x22, 0x2b, 0xd7, - 0x0e, 0xe0, 0xa1, 0x21, 0xdf, 0xf8, 0x79, 0xd7, 0x05, 0xbc, 0x2c, 0x59, 0xbc, 0x82, 0xce, 0x8d, - 0x62, 0xe1, 0x36, 0x9a, 0x81, 0x23, 0xff, 0xe5, 0xac, 0xde, 0x7e, 0xf0, 0xb4, 0x62, 0x3c, 0x7c, - 0x5a, 0x31, 0x7e, 0x7f, 0x5a, 0x31, 0xbe, 0x78, 0x56, 0x99, 0x78, 0xf8, 0xac, 0x32, 0xf1, 0xf8, - 0x59, 0x65, 0xe2, 0xfd, 0x25, 0x3f, 0xe0, 0xdb, 0xdd, 0x86, 0x78, 0x91, 0xc5, 0xf1, 0x86, 0xe9, - 0xac, 0x66, 0x3b, 0xc0, 0x21, 0xb7, 0xfc, 0x88, 0x36, 0xad, 0x66, 0x87, 0x33, 0x35, 0x87, 0x1b, - 0x53, 0xf2, 0x8f, 0xcb, 0xd2, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x30, 0xfb, 0x01, 0xed, 0x37, - 0x11, 0x00, 0x00, + // 1425 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x57, 0x4f, 0x6f, 0x1b, 0xd5, + 0x16, 0xcf, 0xd8, 0x69, 0x6c, 0x1f, 0xf7, 0xbd, 0x26, 0x37, 0x79, 0xad, 0x63, 0xa5, 0x6e, 0x9e, + 0x25, 0xda, 0xb4, 0x25, 0x33, 0xb5, 0xd3, 0xa6, 0x5d, 0x94, 0xa2, 0xa4, 0x29, 0x69, 0x28, 0x2d, + 0x61, 0x82, 0x40, 0x42, 0x48, 0xa3, 0xb1, 0xe7, 0x66, 0x32, 0x8a, 0x3d, 0xf7, 0x76, 0xee, 0xb5, + 0xc1, 0x42, 0x48, 0x88, 0x0f, 0x80, 0x90, 0xf8, 0x0a, 0x2c, 0x60, 0xc7, 0xa2, 0x82, 0x15, 0x15, + 0x62, 0x55, 0xb1, 0xaa, 0x8a, 0x84, 0xaa, 0x2e, 0x10, 0x6a, 0x91, 0xf8, 0x1a, 0xe8, 0xfe, 0x19, + 0x7b, 0xa6, 0x49, 0x6a, 0xa7, 0x3b, 0xd8, 0x58, 0x77, 0xce, 0xdf, 0xdf, 0xef, 0x9c, 0x33, 0x67, + 0xae, 0xe1, 0x5c, 0x93, 0xb0, 0x36, 0x61, 0x56, 0xc3, 0x65, 0xd8, 0xe2, 0x38, 0xf4, 0x70, 0xd4, + 0x0e, 0x42, 0x6e, 0x75, 0x6b, 0x0d, 0xcc, 0xdd, 0x9a, 0x75, 0xb7, 0x83, 0xa3, 0x9e, 0x49, 0x23, + 0xc2, 0x09, 0xaa, 0x28, 0x5b, 0x53, 0xd8, 0x9a, 0x03, 0x5b, 0x53, 0xdb, 0x96, 0x67, 0x7c, 0xe2, + 0x13, 0x69, 0x6a, 0x89, 0x93, 0xf2, 0x2a, 0xcf, 0xfa, 0x84, 0xf8, 0x2d, 0x6c, 0xc9, 0xa7, 0x46, + 0x67, 0xdb, 0x72, 0x43, 0x1d, 0xb0, 0x3c, 0xa7, 0x55, 0x2e, 0x0d, 0x2c, 0x37, 0x0c, 0x09, 0x77, + 0x79, 0x40, 0x42, 0xa6, 0xb5, 0xe5, 0x04, 0x1c, 0x5a, 0xa7, 0x16, 0xef, 0x51, 0x1c, 0xeb, 0xe6, + 0x12, 0x3a, 0x29, 0x4f, 0x69, 0x53, 0xa4, 0x24, 0x83, 0x3e, 0x1f, 0xea, 0xfa, 0x41, 0x28, 0xd3, + 0xec, 0x67, 0xbb, 0x4f, 0x01, 0x92, 0x71, 0x67, 0x95, 0xad, 0xa3, 0x38, 0xea, 0x6a, 0x1c, 0x04, + 0xa8, 0xd1, 0x22, 0xcd, 0x5d, 0xad, 0x9d, 0x72, 0xdb, 0x41, 0x48, 0x2c, 0xf9, 0xab, 0x44, 0xd5, + 0xcf, 0x0c, 0xa8, 0xac, 0x63, 0xfe, 0x9e, 0xdb, 0x0a, 0x3c, 0x97, 0x93, 0x68, 0x0b, 0xf3, 0xd5, + 0xde, 0x4d, 0x1c, 0xf8, 0x3b, 0xdc, 0xc6, 0x77, 0x3b, 0x98, 0x71, 0x74, 0x1c, 0x26, 0x76, 0xa4, + 0xa0, 0x64, 0xcc, 0x1b, 0x0b, 0x59, 0x5b, 0x3f, 0xa1, 0x37, 0x00, 0x06, 0x34, 0x4a, 0x99, 0x79, + 0x63, 0xa1, 0x58, 0x3f, 0x6d, 0x26, 0x9b, 0xa3, 0xba, 0xa6, 0x29, 0x98, 0x9b, 0xae, 0x8f, 0x75, + 0x4c, 0x3b, 0xe1, 0x59, 0x7d, 0x6c, 0xc0, 0xa9, 0x03, 0x21, 0x30, 0x4a, 0x42, 0x86, 0xd1, 0xff, + 0xe1, 0xa8, 0x24, 0xe2, 0xa4, 0x90, 0x14, 0xa5, 0x4c, 0x99, 0xa2, 0x0d, 0x80, 0x6e, 0x1c, 0x82, + 0x95, 0x32, 0xf3, 0xd9, 0x85, 0x62, 0xfd, 0xac, 0xf9, 0xe2, 0x59, 0x31, 0xfb, 0x49, 0xed, 0x84, + 0x33, 0x5a, 0x4f, 0x31, 0xcb, 0x4a, 0x66, 0x67, 0x86, 0x32, 0x53, 0x50, 0x53, 0xd4, 0xb6, 0x61, + 0x6e, 0x1d, 0xf3, 0xb7, 0x5c, 0x8e, 0x59, 0x8a, 0x5f, 0x5c, 0xda, 0x74, 0x09, 0x8d, 0x97, 0x2e, + 0xe1, 0x6f, 0x06, 0x9c, 0x3c, 0x20, 0xd1, 0x3f, 0xbb, 0x80, 0xf7, 0x0d, 0x28, 0xf4, 0x53, 0xa0, + 0x3a, 0xe4, 0x5c, 0xcf, 0x8b, 0x30, 0x63, 0x12, 0x7f, 0x61, 0xb5, 0xf4, 0xe8, 0xde, 0xe2, 0x8c, + 0x0e, 0xbb, 0xa2, 0x34, 0x5b, 0x3c, 0x0a, 0x42, 0xdf, 0x8e, 0x0d, 0xd1, 0x22, 0xe4, 0x68, 0xa7, + 0xe1, 0xec, 0xe2, 0x9e, 0x1e, 0xd1, 0x19, 0x53, 0xbd, 0xee, 0x66, 0xbc, 0x09, 0xcc, 0x95, 0xb0, + 0x67, 0x4f, 0xd0, 0x4e, 0xe3, 0x16, 0xee, 0x89, 0x3a, 0x75, 0x09, 0x0f, 0x42, 0xdf, 0xa1, 0xe4, + 0x23, 0x1c, 0x49, 0xec, 0x59, 0xbb, 0xa8, 0x64, 0x9b, 0x42, 0x84, 0xce, 0xc3, 0x14, 0x8d, 0x08, + 0x25, 0x0c, 0x47, 0x0e, 0x8d, 0x02, 0x12, 0x05, 0xbc, 0x57, 0x1a, 0x97, 0x76, 0x93, 0xb1, 0x62, + 0x53, 0xcb, 0xab, 0x35, 0x38, 0xb1, 0x8e, 0xf9, 0xaa, 0x28, 0xf3, 0x88, 0xef, 0x95, 0x78, 0x1f, + 0x4a, 0x7b, 0x7d, 0x74, 0x1f, 0x2f, 0x42, 0x5e, 0xf5, 0x31, 0xf0, 0xf4, 0xbc, 0xcc, 0x26, 0xdb, + 0xa2, 0xd6, 0x84, 0x74, 0xdd, 0x58, 0xb3, 0x73, 0xd2, 0x74, 0xc3, 0x43, 0x8b, 0x70, 0x44, 0x1e, + 0x75, 0x09, 0x4e, 0x1c, 0xe0, 0x62, 0x2b, 0x2b, 0xf4, 0x3e, 0x14, 0x98, 0xb7, 0xeb, 0x28, 0x17, + 0xd5, 0xbd, 0x57, 0x86, 0x0d, 0x82, 0x82, 0x3b, 0xfd, 0xe4, 0xde, 0xe2, 0x31, 0x65, 0xb9, 0xc8, + 0xbc, 0xdd, 0xf9, 0x0b, 0xe6, 0xc5, 0xcb, 0x76, 0x9e, 0x79, 0xbb, 0x52, 0x5d, 0x3d, 0x01, 0xff, + 0xeb, 0x8f, 0xa9, 0xca, 0xa8, 0x6a, 0x21, 0x06, 0xf8, 0xf8, 0xf3, 0x9a, 0x7f, 0x05, 0xe3, 0x69, + 0x98, 0x5a, 0xc7, 0x7c, 0xab, 0x17, 0x36, 0xc5, 0x54, 0x6a, 0xb6, 0x26, 0xa0, 0xa4, 0x50, 0x13, + 0x2d, 0x41, 0x8e, 0x29, 0x91, 0xe4, 0x99, 0xb7, 0xe3, 0xc7, 0xea, 0x8c, 0xb4, 0xbf, 0x43, 0x3c, + 0xbc, 0x11, 0x6e, 0x93, 0x38, 0xca, 0x4f, 0x06, 0x4c, 0xa7, 0xc4, 0x3a, 0xce, 0x2d, 0x98, 0xf2, + 0xf0, 0xb6, 0xdb, 0x69, 0x71, 0x27, 0x24, 0x1e, 0x76, 0x82, 0x70, 0x9b, 0xe8, 0xca, 0x9d, 0x4a, + 0xf2, 0xa0, 0x75, 0x6a, 0xae, 0x29, 0xc3, 0x7e, 0x8c, 0x63, 0x5e, 0x5a, 0x80, 0x3e, 0x84, 0x69, + 0x97, 0xd2, 0x56, 0xd0, 0x94, 0xef, 0xa3, 0xd3, 0xc5, 0x11, 0x1b, 0x6c, 0xfb, 0xf3, 0x43, 0xb7, + 0x83, 0x32, 0x97, 0xa1, 0x51, 0x22, 0x8e, 0x96, 0x57, 0x7f, 0xcc, 0x40, 0x31, 0x61, 0x83, 0x10, + 0x8c, 0x87, 0x6e, 0x1b, 0xab, 0xb7, 0xdb, 0x96, 0x67, 0x34, 0x0b, 0x79, 0x97, 0x52, 0x47, 0xca, + 0x33, 0x52, 0x9e, 0x73, 0x29, 0xbd, 0x23, 0x54, 0x25, 0xc8, 0xc5, 0x80, 0xb2, 0x4a, 0xa3, 0x1f, + 0xd1, 0x49, 0x00, 0x3f, 0xe0, 0x4e, 0x93, 0xb4, 0xdb, 0x01, 0x97, 0x2f, 0x67, 0xc1, 0x2e, 0xf8, + 0x01, 0xbf, 0x2e, 0x05, 0x42, 0xdd, 0xe8, 0x04, 0x2d, 0xcf, 0xe1, 0xae, 0xcf, 0x4a, 0x47, 0x94, + 0x5a, 0x4a, 0xde, 0x75, 0x7d, 0x26, 0xbd, 0x49, 0x9f, 0xeb, 0x84, 0xf6, 0x26, 0x1a, 0x29, 0xba, + 0x11, 0x7b, 0x7b, 0x98, 0xb2, 0x52, 0x4e, 0x2e, 0xca, 0xd3, 0xc3, 0x4a, 0x71, 0x9b, 0x78, 0x9d, + 0x16, 0xd6, 0x59, 0xd6, 0x30, 0x65, 0x68, 0x05, 0x90, 0xfe, 0x90, 0x8b, 0xd1, 0x8b, 0xb3, 0xe5, + 0xe5, 0x62, 0xdb, 0x67, 0xaa, 0x96, 0xec, 0x49, 0x25, 0xd8, 0xf2, 0x76, 0xe3, 0xfa, 0xdd, 0x84, + 0x09, 0x15, 0x57, 0x54, 0x8e, 0xba, 0x7c, 0x27, 0xae, 0x9c, 0x38, 0x27, 0xcb, 0x93, 0x49, 0x97, + 0x67, 0x12, 0xb2, 0xac, 0xd3, 0xd6, 0x45, 0x13, 0xc7, 0xea, 0x0e, 0x4c, 0xae, 0xac, 0x5e, 0xdf, + 0x78, 0x47, 0xac, 0xe5, 0x78, 0x41, 0x21, 0x18, 0xf7, 0x5c, 0xee, 0xca, 0x98, 0x47, 0x6d, 0x79, + 0xee, 0xe7, 0xc9, 0x24, 0xf2, 0x0c, 0x16, 0x59, 0x36, 0x75, 0x41, 0x98, 0x81, 0x23, 0x34, 0x22, + 0x5d, 0x2c, 0xeb, 0x9f, 0xb7, 0xd5, 0x43, 0xf5, 0x8b, 0x0c, 0x4c, 0x25, 0x52, 0xe9, 0xa1, 0x45, + 0x30, 0xde, 0x24, 0x9e, 0xea, 0xfc, 0x7f, 0x6c, 0x79, 0x16, 0x28, 0x5b, 0xc4, 0x8f, 0x51, 0xb6, + 0x88, 0x2f, 0xac, 0xe4, 0x34, 0xab, 0x86, 0xca, 0xb3, 0xc8, 0x12, 0x84, 0x1e, 0xfe, 0x58, 0xb6, + 0x31, 0x6b, 0xab, 0x07, 0xe1, 0x2b, 0x56, 0xfe, 0x84, 0x84, 0x2e, 0x8e, 0xc2, 0xae, 0xeb, 0xb6, + 0x3a, 0xb8, 0x94, 0x93, 0x32, 0xf5, 0x80, 0x6e, 0x40, 0x81, 0x46, 0x84, 0x6c, 0x3b, 0x84, 0x32, + 0x59, 0xfb, 0x62, 0x7d, 0x61, 0x58, 0x2b, 0x37, 0x85, 0xc3, 0xdb, 0x94, 0xd9, 0x79, 0xaa, 0x4f, + 0x89, 0x12, 0x14, 0x52, 0x25, 0x98, 0x83, 0x82, 0xa0, 0xc2, 0xa8, 0xdb, 0xc4, 0x25, 0x50, 0x83, + 0xd4, 0x17, 0xbc, 0x39, 0x9e, 0xcf, 0x4c, 0x66, 0xab, 0xd7, 0x21, 0xa7, 0x23, 0x0a, 0x7e, 0x62, + 0x39, 0xc5, 0x5d, 0x14, 0xe7, 0x98, 0x49, 0x66, 0xc0, 0x24, 0xee, 0x4b, 0x76, 0xd0, 0x97, 0xea, + 0x26, 0xe4, 0x63, 0x58, 0x68, 0x0d, 0xb2, 0x82, 0x8d, 0x21, 0x07, 0xf3, 0xcc, 0x88, 0x6c, 0x56, + 0x0b, 0x0f, 0x7e, 0x3f, 0x35, 0xf6, 0xcd, 0x5f, 0xdf, 0x9d, 0x33, 0x6c, 0xe1, 0x5e, 0xff, 0x19, + 0x20, 0xb7, 0x85, 0xa3, 0x6e, 0xd0, 0xc4, 0xe8, 0x5b, 0x03, 0x8a, 0x89, 0x55, 0x83, 0xea, 0xc3, + 0x82, 0xee, 0x5d, 0x57, 0xe5, 0xa5, 0x43, 0xf9, 0xa8, 0xb1, 0xa8, 0xd6, 0x3e, 0xff, 0xf5, 0xcf, + 0xaf, 0x32, 0xe7, 0xd1, 0x59, 0x6b, 0xc8, 0xfd, 0xb8, 0xbf, 0xe9, 0xd0, 0xd7, 0x06, 0xc0, 0x60, + 0xbb, 0xa2, 0xda, 0x08, 0x69, 0xd3, 0xeb, 0xb9, 0x5c, 0x3f, 0x8c, 0x8b, 0x06, 0x6a, 0x49, 0xa0, + 0x67, 0xd1, 0x99, 0x61, 0x40, 0xf5, 0x4e, 0x47, 0xdf, 0x1b, 0xf0, 0xdf, 0xf4, 0x17, 0x0f, 0x5d, + 0x1a, 0x21, 0xef, 0xde, 0x6f, 0x67, 0x79, 0xf9, 0xb0, 0x6e, 0x1a, 0xf2, 0x25, 0x09, 0xd9, 0x42, + 0x8b, 0xc3, 0x20, 0xcb, 0xaf, 0x22, 0xb3, 0x5a, 0x32, 0x06, 0xba, 0x6f, 0xc0, 0xe4, 0xf3, 0xd7, + 0x13, 0x74, 0x79, 0x04, 0x0c, 0xfb, 0x5d, 0x82, 0xca, 0x57, 0x0e, 0xef, 0xa8, 0xe1, 0x5f, 0x96, + 0xf0, 0x6b, 0xc8, 0x1a, 0x11, 0xfe, 0x27, 0xea, 0x95, 0xfc, 0x14, 0x3d, 0x32, 0x12, 0xb7, 0x90, + 0xe4, 0x65, 0x19, 0x5d, 0x1d, 0xb9, 0x92, 0xfb, 0x5c, 0xe6, 0xcb, 0xaf, 0xbd, 0xa4, 0xb7, 0xe6, + 0x73, 0x55, 0xf2, 0x59, 0x46, 0x17, 0x87, 0xf1, 0x19, 0xdc, 0xb3, 0x31, 0xef, 0x77, 0xe5, 0x89, + 0x21, 0x2f, 0x9a, 0xfb, 0xfd, 0x89, 0x42, 0xd7, 0x46, 0x00, 0xf6, 0x82, 0x3f, 0x80, 0xe5, 0xd7, + 0x5f, 0xda, 0x5f, 0x53, 0xbb, 0x26, 0xa9, 0x5d, 0x41, 0xcb, 0x87, 0xa3, 0xd6, 0xef, 0xd8, 0x0f, + 0x06, 0x14, 0xfa, 0x9f, 0x0c, 0x74, 0x61, 0x18, 0x9c, 0xe7, 0x3f, 0x64, 0xe5, 0xda, 0x21, 0x3c, + 0x34, 0xe4, 0x1b, 0xbf, 0xec, 0xf9, 0x00, 0x2f, 0x4b, 0x16, 0xaf, 0xa2, 0x73, 0xc3, 0x58, 0xb8, + 0x8d, 0x66, 0xe0, 0xc8, 0x3f, 0x38, 0xab, 0xb7, 0x1f, 0x3c, 0xad, 0x18, 0x0f, 0x9f, 0x56, 0x8c, + 0x3f, 0x9e, 0x56, 0x8c, 0x2f, 0x9f, 0x55, 0xc6, 0x1e, 0x3e, 0xab, 0x8c, 0x3d, 0x7e, 0x56, 0x19, + 0xfb, 0x60, 0xc9, 0x0f, 0xf8, 0x4e, 0xa7, 0x61, 0x36, 0x49, 0x3b, 0x8e, 0x37, 0x48, 0x67, 0x35, + 0x5b, 0x01, 0x0e, 0xb9, 0xe5, 0x47, 0xb4, 0x69, 0x35, 0xdb, 0x9c, 0xa9, 0x3d, 0xdc, 0x98, 0x90, + 0xff, 0x59, 0x96, 0xfe, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x57, 0xbd, 0x37, 0xc7, 0x2f, 0x11, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -3619,7 +3618,7 @@ func (m *GetBlockByHeightResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.BlockId == nil { - m.BlockId = &v2.BlockID{} + m.BlockId = &types.BlockID{} } if err := m.BlockId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -3655,7 +3654,7 @@ func (m *GetBlockByHeightResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Block == nil { - m.Block = &v2.Block{} + m.Block = &types.Block{} } if err := m.Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -3827,7 +3826,7 @@ func (m *GetLatestBlockResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.BlockId == nil { - m.BlockId = &v2.BlockID{} + m.BlockId = &types.BlockID{} } if err := m.BlockId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -3863,7 +3862,7 @@ func (m *GetLatestBlockResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Block == nil { - m.Block = &v2.Block{} + m.Block = &types.Block{} } if err := m.Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -4155,7 +4154,7 @@ func (m *GetNodeInfoResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.DefaultNodeInfo == nil { - m.DefaultNodeInfo = &v1.DefaultNodeInfo{} + m.DefaultNodeInfo = &p2p.DefaultNodeInfo{} } if err := m.DefaultNodeInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err diff --git a/client/grpc/cmtservice/service.go b/client/grpc/cmtservice/service.go index 3927f0adcc..e26e653328 100644 --- a/client/grpc/cmtservice/service.go +++ b/client/grpc/cmtservice/service.go @@ -3,7 +3,7 @@ package cmtservice import ( "context" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" gogogrpc "github.com/cosmos/gogoproto/grpc" "github.com/grpc-ecosystem/grpc-gateway/runtime" "google.golang.org/grpc/codes" @@ -25,7 +25,7 @@ var ( ) type ( - abciQueryFn = func(context.Context, *abci.QueryRequest) (*abci.QueryResponse, error) + abciQueryFn = func(context.Context, *abci.RequestQuery) (*abci.ResponseQuery, error) queryServer struct { clientCtx client.Context diff --git a/client/grpc/cmtservice/status.go b/client/grpc/cmtservice/status.go index 3ad35dbef0..ea32e00b79 100644 --- a/client/grpc/cmtservice/status.go +++ b/client/grpc/cmtservice/status.go @@ -3,7 +3,7 @@ package cmtservice import ( "context" - coretypes "github.com/cometbft/cometbft/v2/rpc/core/types" + coretypes "github.com/cometbft/cometbft/rpc/core/types" "github.com/cosmos/cosmos-sdk/client" ) diff --git a/client/grpc/cmtservice/types.go b/client/grpc/cmtservice/types.go index 054720ae32..c595dec5eb 100644 --- a/client/grpc/cmtservice/types.go +++ b/client/grpc/cmtservice/types.go @@ -1,13 +1,13 @@ package cmtservice import ( - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" ) // ToABCIRequestQuery converts a gRPC ABCIQueryRequest type to an ABCI // RequestQuery type. -func (req *ABCIQueryRequest) ToABCIRequestQuery() *abci.QueryRequest { - return &abci.QueryRequest{ +func (req *ABCIQueryRequest) ToABCIRequestQuery() *abci.RequestQuery { + return &abci.RequestQuery{ Data: req.Data, Path: req.Path, Height: req.Height, @@ -17,7 +17,7 @@ func (req *ABCIQueryRequest) ToABCIRequestQuery() *abci.QueryRequest { // FromABCIResponseQuery converts an ABCI ResponseQuery type to a gRPC // ABCIQueryResponse type. -func FromABCIResponseQuery(res *abci.QueryResponse) *ABCIQueryResponse { +func FromABCIResponseQuery(res *abci.ResponseQuery) *ABCIQueryResponse { var proofOps *ProofOps if res.ProofOps != nil { diff --git a/client/grpc/cmtservice/types.pb.go b/client/grpc/cmtservice/types.pb.go index a43e7157dc..4ced0c8fd0 100644 --- a/client/grpc/cmtservice/types.pb.go +++ b/client/grpc/cmtservice/types.pb.go @@ -5,8 +5,8 @@ package cmtservice import ( fmt "fmt" - v2 "github.com/cometbft/cometbft/api/cometbft/types/v2" - v1 "github.com/cometbft/cometbft/api/cometbft/version/v1" + types "github.com/cometbft/cometbft/proto/tendermint/types" + version "github.com/cometbft/cometbft/proto/tendermint/version" _ "github.com/cosmos/cosmos-sdk/types/tx/amino" _ "github.com/cosmos/gogoproto/gogoproto" proto "github.com/cosmos/gogoproto/proto" @@ -33,10 +33,10 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // Block is tendermint type Block, with the Header proposer address // field converted to bech32 string. type Block struct { - Header Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header"` - Data v2.Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data"` - Evidence v2.EvidenceList `protobuf:"bytes,3,opt,name=evidence,proto3" json:"evidence"` - LastCommit *v2.Commit `protobuf:"bytes,4,opt,name=last_commit,json=lastCommit,proto3" json:"last_commit,omitempty"` + Header Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header"` + Data types.Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data"` + Evidence types.EvidenceList `protobuf:"bytes,3,opt,name=evidence,proto3" json:"evidence"` + LastCommit *types.Commit `protobuf:"bytes,4,opt,name=last_commit,json=lastCommit,proto3" json:"last_commit,omitempty"` } func (m *Block) Reset() { *m = Block{} } @@ -79,21 +79,21 @@ func (m *Block) GetHeader() Header { return Header{} } -func (m *Block) GetData() v2.Data { +func (m *Block) GetData() types.Data { if m != nil { return m.Data } - return v2.Data{} + return types.Data{} } -func (m *Block) GetEvidence() v2.EvidenceList { +func (m *Block) GetEvidence() types.EvidenceList { if m != nil { return m.Evidence } - return v2.EvidenceList{} + return types.EvidenceList{} } -func (m *Block) GetLastCommit() *v2.Commit { +func (m *Block) GetLastCommit() *types.Commit { if m != nil { return m.LastCommit } @@ -103,12 +103,12 @@ func (m *Block) GetLastCommit() *v2.Commit { // Header defines the structure of a Tendermint block header. type Header struct { // basic block info - Version v1.Consensus `protobuf:"bytes,1,opt,name=version,proto3" json:"version"` - ChainID string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` - Time time.Time `protobuf:"bytes,4,opt,name=time,proto3,stdtime" json:"time"` + Version version.Consensus `protobuf:"bytes,1,opt,name=version,proto3" json:"version"` + ChainID string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` + Time time.Time `protobuf:"bytes,4,opt,name=time,proto3,stdtime" json:"time"` // prev block info - LastBlockId v2.BlockID `protobuf:"bytes,5,opt,name=last_block_id,json=lastBlockId,proto3" json:"last_block_id"` + LastBlockId types.BlockID `protobuf:"bytes,5,opt,name=last_block_id,json=lastBlockId,proto3" json:"last_block_id"` // hashes of block data LastCommitHash []byte `protobuf:"bytes,6,opt,name=last_commit_hash,json=lastCommitHash,proto3" json:"last_commit_hash,omitempty"` DataHash []byte `protobuf:"bytes,7,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"` @@ -159,11 +159,11 @@ func (m *Header) XXX_DiscardUnknown() { var xxx_messageInfo_Header proto.InternalMessageInfo -func (m *Header) GetVersion() v1.Consensus { +func (m *Header) GetVersion() version.Consensus { if m != nil { return m.Version } - return v1.Consensus{} + return version.Consensus{} } func (m *Header) GetChainID() string { @@ -187,11 +187,11 @@ func (m *Header) GetTime() time.Time { return time.Time{} } -func (m *Header) GetLastBlockId() v2.BlockID { +func (m *Header) GetLastBlockId() types.BlockID { if m != nil { return m.LastBlockId } - return v2.BlockID{} + return types.BlockID{} } func (m *Header) GetLastCommitHash() []byte { @@ -267,49 +267,48 @@ func init() { } var fileDescriptor_bb9931519c08e0d6 = []byte{ - // 661 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x94, 0xcd, 0x6e, 0xd3, 0x40, - 0x14, 0x85, 0xe3, 0x36, 0xcd, 0xcf, 0xa4, 0xe9, 0x8f, 0x55, 0x41, 0x1a, 0x84, 0x53, 0x15, 0x51, - 0x4a, 0x25, 0x66, 0x68, 0x2b, 0xb1, 0x40, 0x62, 0x41, 0x52, 0x50, 0x23, 0xc1, 0x26, 0x42, 0x2c, - 0xd8, 0x44, 0x13, 0x7b, 0x6a, 0x8f, 0x1a, 0x7b, 0x2c, 0xcf, 0xc4, 0x82, 0x97, 0x40, 0x7d, 0x0c, - 0x96, 0x3c, 0x46, 0x97, 0x5d, 0xb2, 0x2a, 0x28, 0x5d, 0xf0, 0x08, 0x6c, 0xd1, 0xdc, 0x19, 0x37, - 0x29, 0xad, 0xd8, 0x24, 0xf6, 0xb9, 0xdf, 0x3d, 0x99, 0x7b, 0xee, 0x28, 0x68, 0xcf, 0x17, 0x32, - 0x16, 0x92, 0x8c, 0xa8, 0x64, 0x44, 0xb1, 0x24, 0x60, 0x59, 0xcc, 0x13, 0x45, 0xf2, 0xfd, 0x11, - 0x53, 0x74, 0x9f, 0xa8, 0x2f, 0x29, 0x93, 0x38, 0xcd, 0x84, 0x12, 0xae, 0x67, 0x58, 0xac, 0x59, - 0x3c, 0x63, 0xb1, 0x65, 0xdb, 0x1b, 0xa1, 0x08, 0x05, 0xa0, 0x44, 0x3f, 0x99, 0xae, 0xf6, 0x43, - 0x5f, 0xc4, 0x4c, 0x8d, 0x4e, 0x94, 0xf1, 0x22, 0xf9, 0xc1, 0xbc, 0x69, 0x7b, 0xeb, 0x76, 0x99, - 0xe5, 0x3c, 0x60, 0x89, 0xcf, 0x2c, 0xd1, 0xb9, 0x26, 0x72, 0x96, 0x49, 0x2e, 0x12, 0x92, 0xdf, - 0x38, 0x57, 0xbb, 0x13, 0x0a, 0x11, 0x8e, 0x19, 0x81, 0xb7, 0xd1, 0xe4, 0x84, 0x28, 0x1e, 0x33, - 0xa9, 0x68, 0x9c, 0x5a, 0x60, 0x9d, 0xc6, 0x3c, 0x11, 0x04, 0x3e, 0x8d, 0xb4, 0xfd, 0x75, 0x01, - 0x2d, 0x75, 0xc7, 0xc2, 0x3f, 0x75, 0xfb, 0xa8, 0x12, 0x31, 0x1a, 0xb0, 0xac, 0xe5, 0x6c, 0x39, - 0xbb, 0x8d, 0x83, 0x1d, 0xfc, 0xff, 0x31, 0xf1, 0x31, 0xd0, 0xdd, 0xfa, 0xf9, 0x65, 0xa7, 0xf4, - 0xed, 0xf7, 0xf7, 0x3d, 0x67, 0x60, 0x0d, 0xdc, 0x17, 0xa8, 0x1c, 0x50, 0x45, 0x5b, 0x0b, 0x60, - 0x74, 0x1f, 0x17, 0x07, 0xc7, 0xe6, 0xb4, 0xf9, 0x01, 0x3e, 0xa2, 0x8a, 0xce, 0x77, 0x02, 0xef, - 0xbe, 0x45, 0xb5, 0x62, 0xe6, 0xd6, 0x22, 0xf4, 0x76, 0xee, 0xe8, 0x7d, 0x63, 0x91, 0x77, 0x5c, - 0xaa, 0x79, 0x8f, 0xeb, 0x5e, 0xf7, 0x25, 0x6a, 0x8c, 0xa9, 0x54, 0x43, 0x5f, 0xc4, 0x31, 0x57, - 0xad, 0x32, 0x58, 0x6d, 0xde, 0x61, 0xd5, 0x03, 0x60, 0x80, 0x34, 0x6d, 0x9e, 0xb7, 0xff, 0x94, - 0x51, 0xc5, 0x4c, 0xe6, 0xf6, 0x50, 0xd5, 0x26, 0x6d, 0x23, 0xf1, 0x66, 0x16, 0xb6, 0x80, 0xf3, - 0x7d, 0xdc, 0x13, 0x89, 0x64, 0x89, 0x9c, 0xc8, 0xf9, 0xc3, 0x14, 0x9d, 0xee, 0x0e, 0xaa, 0xf9, - 0x11, 0xe5, 0xc9, 0x90, 0x07, 0x90, 0x47, 0xbd, 0xdb, 0x98, 0x5e, 0x76, 0xaa, 0x3d, 0xad, 0xf5, - 0x8f, 0x06, 0x55, 0x28, 0xf6, 0x03, 0xf7, 0x9e, 0x8e, 0x9f, 0x87, 0x91, 0x82, 0xc9, 0x17, 0x07, - 0xf6, 0xcd, 0x7d, 0x85, 0xca, 0x7a, 0x8d, 0x76, 0x88, 0x36, 0x36, 0x3b, 0xc6, 0xc5, 0x8e, 0xf1, - 0x87, 0x62, 0xc7, 0xdd, 0xa6, 0xfe, 0xf5, 0xb3, 0x9f, 0x1d, 0xc7, 0x46, 0xaa, 0xdb, 0xdc, 0x3e, - 0x6a, 0x42, 0x14, 0x23, 0xbd, 0x63, 0x7d, 0x86, 0x25, 0xeb, 0x73, 0x3b, 0x0c, 0xb8, 0x06, 0xfd, - 0xa3, 0xf9, 0x29, 0x20, 0x46, 0xa3, 0x07, 0xee, 0x2e, 0x5a, 0x9b, 0x4b, 0x75, 0x18, 0x51, 0x19, - 0xb5, 0x2a, 0x5b, 0xce, 0xee, 0xf2, 0x60, 0x65, 0x96, 0xdf, 0x31, 0x95, 0x91, 0xfb, 0x00, 0xd5, - 0xf5, 0x3e, 0x0d, 0x52, 0x05, 0xa4, 0xa6, 0x05, 0x28, 0x3e, 0x41, 0xab, 0x39, 0x1d, 0xf3, 0x80, - 0x2a, 0x91, 0x49, 0x83, 0xd4, 0x8c, 0xcb, 0x4c, 0x06, 0xf0, 0x39, 0xda, 0x48, 0xd8, 0x67, 0x35, - 0xfc, 0x97, 0xae, 0x03, 0xed, 0xea, 0xda, 0xc7, 0x9b, 0x1d, 0x8f, 0xd1, 0x8a, 0x5f, 0x2c, 0xc3, - 0xb0, 0x08, 0xd8, 0xe6, 0xb5, 0x0a, 0xd8, 0x26, 0xaa, 0xd1, 0x34, 0x35, 0x40, 0x03, 0x80, 0x2a, - 0x4d, 0x53, 0x28, 0xed, 0xa1, 0x75, 0x98, 0x31, 0x63, 0x72, 0x32, 0x56, 0xd6, 0x64, 0x19, 0x98, - 0x55, 0x5d, 0x18, 0x18, 0x1d, 0xd8, 0x47, 0xa8, 0x59, 0xdc, 0x38, 0xc3, 0x35, 0x81, 0x5b, 0x2e, - 0x44, 0x80, 0x9e, 0xa2, 0xb5, 0x34, 0x13, 0xa9, 0x90, 0x2c, 0x1b, 0xd2, 0x20, 0xc8, 0x98, 0x94, - 0xad, 0x15, 0x7d, 0x0d, 0x06, 0xab, 0x85, 0xfe, 0xda, 0xc8, 0xdd, 0xf7, 0xe7, 0x53, 0xcf, 0xb9, - 0x98, 0x7a, 0xce, 0xaf, 0xa9, 0xe7, 0x9c, 0x5d, 0x79, 0xa5, 0x8b, 0x2b, 0xaf, 0xf4, 0xe3, 0xca, - 0x2b, 0x7d, 0x3a, 0x0c, 0xb9, 0x8a, 0x26, 0x23, 0xbd, 0x33, 0x62, 0xff, 0xa7, 0xcc, 0xd7, 0x33, - 0x19, 0x9c, 0x12, 0x7f, 0xcc, 0x59, 0xa2, 0x48, 0x98, 0xa5, 0x3e, 0xf1, 0x63, 0x25, 0x59, 0x96, - 0x73, 0x9f, 0x8d, 0x2a, 0x70, 0x45, 0x0e, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x63, 0x5f, 0x19, - 0xcc, 0xda, 0x04, 0x00, 0x00, + // 647 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x94, 0xcd, 0x6e, 0xd3, 0x4e, + 0x14, 0xc5, 0xe3, 0x36, 0xcd, 0xc7, 0xa4, 0xe9, 0xc7, 0xa8, 0xaa, 0xdc, 0xfc, 0xff, 0x38, 0x55, + 0x11, 0xa5, 0x54, 0xc2, 0xa6, 0x54, 0x2c, 0x58, 0xb0, 0x20, 0x6d, 0xa5, 0x46, 0x82, 0x8d, 0x85, + 0x58, 0xb0, 0x89, 0x26, 0xf6, 0x60, 0x8f, 0x6a, 0x7b, 0x2c, 0xcf, 0x24, 0x82, 0x67, 0x60, 0xd3, + 0xc7, 0x60, 0xc9, 0x63, 0x74, 0xd9, 0x25, 0xab, 0x82, 0xd2, 0x05, 0x4f, 0xc0, 0x1e, 0xcd, 0x9d, + 0x71, 0xeb, 0x10, 0x89, 0x4d, 0x62, 0x9f, 0xfb, 0xbb, 0x27, 0x73, 0xcf, 0x1d, 0x05, 0x1d, 0x06, + 0x5c, 0xa4, 0x5c, 0x78, 0x63, 0x22, 0xa8, 0x27, 0x69, 0x16, 0xd2, 0x22, 0x65, 0x99, 0xf4, 0xa6, + 0x47, 0x63, 0x2a, 0xc9, 0x91, 0x27, 0x3f, 0xe7, 0x54, 0xb8, 0x79, 0xc1, 0x25, 0xc7, 0x8e, 0x66, + 0x5d, 0xc5, 0xba, 0xf7, 0xac, 0x6b, 0xd8, 0xde, 0x56, 0xc4, 0x23, 0x0e, 0xa8, 0xa7, 0x9e, 0x74, + 0x57, 0xef, 0xff, 0x8a, 0x2b, 0xb8, 0x55, 0x3d, 0x7b, 0xfd, 0x85, 0x2a, 0x9d, 0xb2, 0x90, 0x66, + 0x01, 0x35, 0x80, 0x53, 0x3d, 0x14, 0x2d, 0x04, 0xe3, 0xd9, 0xbc, 0x41, 0xc4, 0x79, 0x94, 0x50, + 0x0f, 0xde, 0xc6, 0x93, 0x8f, 0x9e, 0x64, 0x29, 0x15, 0x92, 0xa4, 0xb9, 0x01, 0x36, 0x49, 0xca, + 0x32, 0xee, 0xc1, 0xa7, 0x96, 0xf6, 0xbe, 0x2c, 0xa1, 0x95, 0x41, 0xc2, 0x83, 0x0b, 0x3c, 0x44, + 0x8d, 0x98, 0x92, 0x90, 0x16, 0xb6, 0xb5, 0x6b, 0x1d, 0x74, 0x9e, 0xef, 0xbb, 0xff, 0x9e, 0xd1, + 0x3d, 0x07, 0x7a, 0xd0, 0xbe, 0xba, 0xe9, 0xd7, 0xbe, 0xfe, 0xfa, 0x76, 0x68, 0xf9, 0xc6, 0x00, + 0xbf, 0x40, 0xf5, 0x90, 0x48, 0x62, 0x2f, 0x81, 0xd1, 0x76, 0xb5, 0x59, 0x9f, 0xf7, 0x94, 0x48, + 0x52, 0x6d, 0x04, 0x1c, 0x9f, 0xa1, 0x56, 0x39, 0xb1, 0xbd, 0x0c, 0xad, 0xce, 0x62, 0xeb, 0x99, + 0x21, 0xde, 0x30, 0x21, 0xab, 0x16, 0x77, 0xad, 0xf8, 0x25, 0xea, 0x24, 0x44, 0xc8, 0x51, 0xc0, + 0xd3, 0x94, 0x49, 0xbb, 0x0e, 0x4e, 0xf6, 0xa2, 0xd3, 0x09, 0xd4, 0x7d, 0xa4, 0x60, 0xfd, 0xbc, + 0xf7, 0xbb, 0x8e, 0x1a, 0x7a, 0x2c, 0x3c, 0x40, 0x4d, 0x93, 0xb1, 0xc9, 0xe3, 0xc1, 0x5c, 0x06, + 0xba, 0xe4, 0x9e, 0xf0, 0x4c, 0xd0, 0x4c, 0x4c, 0x44, 0xf5, 0x28, 0x65, 0x23, 0xde, 0x47, 0xad, + 0x20, 0x26, 0x2c, 0x1b, 0xb1, 0x10, 0xb2, 0x68, 0x0f, 0x3a, 0xb3, 0x9b, 0x7e, 0xf3, 0x44, 0x69, + 0xc3, 0x53, 0xbf, 0x09, 0xc5, 0x61, 0x88, 0xb7, 0x55, 0xf4, 0x2c, 0x8a, 0x25, 0x8c, 0xbd, 0xec, + 0x9b, 0x37, 0xfc, 0x0a, 0xd5, 0xd5, 0x0a, 0xcd, 0x08, 0x3d, 0x57, 0xef, 0xd7, 0x2d, 0xf7, 0xeb, + 0xbe, 0x2b, 0xf7, 0x3b, 0xe8, 0xaa, 0x5f, 0xbf, 0xfc, 0xd1, 0xb7, 0x4c, 0x9e, 0xaa, 0x0d, 0x9f, + 0xa3, 0x2e, 0x04, 0x31, 0x56, 0xfb, 0x55, 0x67, 0x58, 0x01, 0x9f, 0x9d, 0xc5, 0x28, 0xe0, 0x06, + 0x0c, 0x4f, 0xab, 0x43, 0x40, 0x86, 0x5a, 0x0f, 0xf1, 0x01, 0xda, 0xa8, 0x44, 0x3a, 0x8a, 0x89, + 0x88, 0xed, 0xc6, 0xae, 0x75, 0xb0, 0xea, 0xaf, 0xdd, 0xa7, 0x77, 0x4e, 0x44, 0x8c, 0xff, 0x43, + 0x6d, 0xb5, 0x4b, 0x8d, 0x34, 0x01, 0x69, 0x29, 0x01, 0x8a, 0x8f, 0xd1, 0xfa, 0x94, 0x24, 0x2c, + 0x24, 0x92, 0x17, 0x42, 0x23, 0x2d, 0xed, 0x72, 0x2f, 0x03, 0xf8, 0x0c, 0x6d, 0x65, 0xf4, 0x93, + 0x1c, 0xfd, 0x4d, 0xb7, 0x81, 0xc6, 0xaa, 0xf6, 0x7e, 0xbe, 0xe3, 0x11, 0x5a, 0x0b, 0xca, 0x5d, + 0x68, 0x16, 0x01, 0xdb, 0xbd, 0x53, 0x01, 0xdb, 0x41, 0x2d, 0x92, 0xe7, 0x1a, 0xe8, 0x00, 0xd0, + 0x24, 0x79, 0x0e, 0xa5, 0x43, 0xb4, 0x09, 0x33, 0x16, 0x54, 0x4c, 0x12, 0x69, 0x4c, 0x56, 0x81, + 0x59, 0x57, 0x05, 0x5f, 0xeb, 0xc0, 0x3e, 0x44, 0xdd, 0xf2, 0xba, 0x69, 0xae, 0x0b, 0xdc, 0x6a, + 0x29, 0x02, 0xf4, 0x04, 0x6d, 0xe4, 0x05, 0xcf, 0xb9, 0xa0, 0xc5, 0x88, 0x84, 0x61, 0x41, 0x85, + 0xb0, 0xd7, 0xd4, 0x2d, 0xf0, 0xd7, 0x4b, 0xfd, 0xb5, 0x96, 0x07, 0x6f, 0xaf, 0x66, 0x8e, 0x75, + 0x3d, 0x73, 0xac, 0x9f, 0x33, 0xc7, 0xba, 0xbc, 0x75, 0x6a, 0xd7, 0xb7, 0x4e, 0xed, 0xfb, 0xad, + 0x53, 0xfb, 0x70, 0x1c, 0x31, 0x19, 0x4f, 0xc6, 0x6e, 0xc0, 0x53, 0xcf, 0xfc, 0x3f, 0xe9, 0xaf, + 0xa7, 0x22, 0xbc, 0xf0, 0x82, 0x84, 0xd1, 0x4c, 0x7a, 0x51, 0x91, 0x07, 0x5e, 0x90, 0x4a, 0x41, + 0x8b, 0x29, 0x0b, 0xe8, 0xb8, 0x01, 0x37, 0xe4, 0xf8, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, + 0x0c, 0x32, 0xb7, 0xd2, 0x04, 0x00, 0x00, } func (m *Block) Marshal() (dAtA []byte, err error) { @@ -755,7 +754,7 @@ func (m *Block) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.LastCommit == nil { - m.LastCommit = &v2.Commit{} + m.LastCommit = &types.Commit{} } if err := m.LastCommit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err diff --git a/client/grpc/cmtservice/util.go b/client/grpc/cmtservice/util.go index b3b729e506..de06162c8a 100644 --- a/client/grpc/cmtservice/util.go +++ b/client/grpc/cmtservice/util.go @@ -1,7 +1,7 @@ package cmtservice import ( - cmtprototypes "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtprototypes "github.com/cometbft/cometbft/proto/tendermint/types" sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/client/grpc/cmtservice/validator.go b/client/grpc/cmtservice/validator.go index 08de91245d..5b81d2bc4c 100644 --- a/client/grpc/cmtservice/validator.go +++ b/client/grpc/cmtservice/validator.go @@ -3,7 +3,7 @@ package cmtservice import ( "context" - coretypes "github.com/cometbft/cometbft/v2/rpc/core/types" + coretypes "github.com/cometbft/cometbft/rpc/core/types" "github.com/cosmos/cosmos-sdk/client" ) diff --git a/client/grpc_query.go b/client/grpc_query.go index ab02e6e30c..d48f8231f3 100644 --- a/client/grpc_query.go +++ b/client/grpc_query.go @@ -6,7 +6,7 @@ import ( "reflect" "strconv" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" gogogrpc "github.com/cosmos/gogoproto/grpc" "google.golang.org/grpc" "google.golang.org/grpc/encoding" @@ -83,7 +83,7 @@ func (ctx Context) Invoke(grpcCtx gocontext.Context, method string, req, reply a ctx = ctx.WithHeight(height) } - abciReq := abci.QueryRequest{ + abciReq := abci.RequestQuery{ Path: method, Data: reqBz, Height: ctx.Height, diff --git a/client/grpc_query_test.go b/client/grpc_query_test.go index e392099ef6..f409103c73 100644 --- a/client/grpc_query_test.go +++ b/client/grpc_query_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - abci "github.com/cometbft/cometbft/v2/abci/types" - cmtjson "github.com/cometbft/cometbft/v2/libs/json" + abci "github.com/cometbft/cometbft/abci/types" + cmtjson "github.com/cometbft/cometbft/libs/json" dbm "github.com/cosmos/cosmos-db" "github.com/stretchr/testify/suite" "google.golang.org/grpc" @@ -83,14 +83,14 @@ func (s *IntegrationTestSuite) SetupSuite() { s.NoError(err) // init chain will set the validator set and initialize the genesis accounts - _, err = app.InitChain(&abci.InitChainRequest{ + _, err = app.InitChain(&abci.RequestInitChain{ Validators: []abci.ValidatorUpdate{}, ConsensusParams: sims.DefaultConsensusParams, AppStateBytes: stateBytes, }) s.NoError(err) - _, err = app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: app.LastBlockHeight() + 1, Hash: app.LastCommitID().Hash, NextValidatorsHash: valSet.Hash(), diff --git a/client/query.go b/client/query.go index 49244084fe..2bf3014269 100644 --- a/client/query.go +++ b/client/query.go @@ -5,8 +5,8 @@ import ( "strings" "github.com/cockroachdb/errors" - abci "github.com/cometbft/cometbft/v2/abci/types" - rpcclient "github.com/cometbft/cometbft/v2/rpc/client" + abci "github.com/cometbft/cometbft/abci/types" + rpcclient "github.com/cometbft/cometbft/rpc/client" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" @@ -51,7 +51,7 @@ func (ctx Context) QueryStore(key []byte, storeName string) ([]byte, int64, erro // It returns the ResultQuery obtained from the query. The height used to perform // the query is the RequestQuery Height if it is non-zero, otherwise the context // height is used. -func (ctx Context) QueryABCI(req abci.QueryRequest) (abci.QueryResponse, error) { +func (ctx Context) QueryABCI(req abci.RequestQuery) (abci.ResponseQuery, error) { return ctx.queryABCI(req) } @@ -75,10 +75,10 @@ func (ctx Context) GetFromName() string { return ctx.FromName } -func (ctx Context) queryABCI(req abci.QueryRequest) (abci.QueryResponse, error) { +func (ctx Context) queryABCI(req abci.RequestQuery) (abci.ResponseQuery, error) { node, err := ctx.GetNode() if err != nil { - return abci.QueryResponse{}, err + return abci.ResponseQuery{}, err } var queryHeight int64 @@ -96,11 +96,11 @@ func (ctx Context) queryABCI(req abci.QueryRequest) (abci.QueryResponse, error) result, err := node.ABCIQueryWithOptions(ctx.GetCmdContextWithFallback(), req.Path, req.Data, opts) if err != nil { - return abci.QueryResponse{}, err + return abci.ResponseQuery{}, err } if !result.Response.IsOK() { - return abci.QueryResponse{}, sdkErrorToGRPCError(result.Response) + return abci.ResponseQuery{}, sdkErrorToGRPCError(result.Response) } // data from trusted node or subspace query doesn't need verification @@ -111,7 +111,7 @@ func (ctx Context) queryABCI(req abci.QueryRequest) (abci.QueryResponse, error) return result.Response, nil } -func sdkErrorToGRPCError(resp abci.QueryResponse) error { +func sdkErrorToGRPCError(resp abci.ResponseQuery) error { switch resp.Code { case sdkerrors.ErrInvalidRequest.ABCICode(): return status.Error(codes.InvalidArgument, resp.Log) @@ -128,7 +128,7 @@ func sdkErrorToGRPCError(resp abci.QueryResponse) error { // and path. It returns the result and height of the query upon success // or an error if the query fails. func (ctx Context) query(path string, key []byte) ([]byte, int64, error) { - resp, err := ctx.queryABCI(abci.QueryRequest{ + resp, err := ctx.queryABCI(abci.RequestQuery{ Path: path, Data: key, Height: ctx.Height, diff --git a/client/query_test.go b/client/query_test.go index bf74e9d035..880ca36cdd 100644 --- a/client/query_test.go +++ b/client/query_test.go @@ -4,7 +4,7 @@ import ( "context" "testing" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "github.com/stretchr/testify/require" "github.com/cosmos/cosmos-sdk/client" @@ -15,6 +15,6 @@ func TestQueryABCICancellation(t *testing.T) { cancel() ctx := client.Context{}.WithClient(client.MockClient{}).WithCmdContext(cmdCtx) - _, err := ctx.QueryABCI(abci.QueryRequest{}) + _, err := ctx.QueryABCI(abci.RequestQuery{}) require.ErrorIs(t, err, context.Canceled) } diff --git a/client/rpc/block.go b/client/rpc/block.go index 465dbcc080..ed63a7d4c0 100644 --- a/client/rpc/block.go +++ b/client/rpc/block.go @@ -5,8 +5,8 @@ import ( "fmt" "time" - cmt "github.com/cometbft/cometbft/api/cometbft/types/v2" - coretypes "github.com/cometbft/cometbft/v2/rpc/core/types" + cmt "github.com/cometbft/cometbft/proto/tendermint/types" + coretypes "github.com/cometbft/cometbft/rpc/core/types" "github.com/cosmos/cosmos-sdk/client" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/client/rpc/rpc_test.go b/client/rpc/rpc_test.go index 80fd379887..90b0f8c7ed 100644 --- a/client/rpc/rpc_test.go +++ b/client/rpc/rpc_test.go @@ -6,7 +6,7 @@ import ( "strconv" "testing" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" "google.golang.org/grpc" @@ -65,14 +65,14 @@ func (s *IntegrationTestSuite) TestQueryABCIHeight() { reqHeight int64 ctxHeight int64 awaitMinChainHeight int64 - assertFn func(t *testing.T, latestHeightAtQuery int64, resp abci.QueryResponse) + assertFn func(t *testing.T, latestHeightAtQuery int64, resp abci.ResponseQuery) }{ { name: "request height set", reqHeight: 2, // no proof when < 2 ctxHeight: 1, awaitMinChainHeight: 3, // wait +1 block to be on the safe side - assertFn: func(t *testing.T, _ int64, resp abci.QueryResponse) { + assertFn: func(t *testing.T, _ int64, resp abci.ResponseQuery) { t.Helper() assert.Equal(t, int64(2), resp.Height) }, @@ -82,7 +82,7 @@ func (s *IntegrationTestSuite) TestQueryABCIHeight() { reqHeight: 0, ctxHeight: 3, awaitMinChainHeight: 4, // wait +1 block to be on the safe side - assertFn: func(t *testing.T, _ int64, resp abci.QueryResponse) { + assertFn: func(t *testing.T, _ int64, resp abci.ResponseQuery) { t.Helper() assert.Equal(t, int64(3), resp.Height) }, @@ -92,7 +92,7 @@ func (s *IntegrationTestSuite) TestQueryABCIHeight() { reqHeight: 0, ctxHeight: 0, awaitMinChainHeight: 2, // no proof when < 2 - assertFn: func(t *testing.T, latestHeightAtQuery int64, resp abci.QueryResponse) { + assertFn: func(t *testing.T, latestHeightAtQuery int64, resp abci.ResponseQuery) { t.Helper() anyOf := []int64{latestHeightAtQuery, latestHeightAtQuery - 1} assert.Contains(t, anyOf, resp.Height) @@ -108,7 +108,7 @@ func (s *IntegrationTestSuite) TestQueryABCIHeight() { clientCtx := val.ClientCtx clientCtx = clientCtx.WithHeight(tc.ctxHeight) - req := abci.QueryRequest{ + req := abci.RequestQuery{ Path: fmt.Sprintf("store/%s/key", banktypes.StoreKey), Height: tc.reqHeight, Data: address.MustLengthPrefix(val.Address), diff --git a/client/rpc/tx.go b/client/rpc/tx.go index 09c7b6657a..5c41e24fc4 100644 --- a/client/rpc/tx.go +++ b/client/rpc/tx.go @@ -9,9 +9,9 @@ import ( "strings" "time" - rpchttp "github.com/cometbft/cometbft/v2/rpc/client/http" - coretypes "github.com/cometbft/cometbft/v2/rpc/core/types" - tmtypes "github.com/cometbft/cometbft/v2/types" + rpchttp "github.com/cometbft/cometbft/rpc/client/http" + coretypes "github.com/cometbft/cometbft/rpc/core/types" + tmtypes "github.com/cometbft/cometbft/types" "github.com/spf13/cobra" "github.com/cosmos/cosmos-sdk/client" @@ -119,7 +119,7 @@ $ %[1]s tx [flags] | %[1]s q wait-tx return err } - c, err := rpchttp.New(clientCtx.NodeURI) + c, err := rpchttp.New(clientCtx.NodeURI, "/websocket") if err != nil { return err } diff --git a/client/test_helpers.go b/client/test_helpers.go index cea9ccee02..edea981e9b 100644 --- a/client/test_helpers.go +++ b/client/test_helpers.go @@ -4,11 +4,11 @@ import ( "context" "fmt" - "github.com/cometbft/cometbft/v2/libs/bytes" - rpcclient "github.com/cometbft/cometbft/v2/rpc/client" - "github.com/cometbft/cometbft/v2/rpc/client/mock" - coretypes "github.com/cometbft/cometbft/v2/rpc/core/types" - cmttypes "github.com/cometbft/cometbft/v2/types" + "github.com/cometbft/cometbft/libs/bytes" + rpcclient "github.com/cometbft/cometbft/rpc/client" + "github.com/cometbft/cometbft/rpc/client/mock" + coretypes "github.com/cometbft/cometbft/rpc/core/types" + cmttypes "github.com/cometbft/cometbft/types" cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/client/utils.go b/client/utils.go index 08a11f54cf..08a1193464 100644 --- a/client/utils.go +++ b/client/utils.go @@ -3,7 +3,7 @@ package client import ( "encoding/base64" - rpchttp "github.com/cometbft/cometbft/v2/rpc/client/http" + rpchttp "github.com/cometbft/cometbft/rpc/client/http" "github.com/spf13/pflag" errorsmod "cosmossdk.io/errors" @@ -74,7 +74,7 @@ func ReadPageRequest(flagSet *pflag.FlagSet) (*query.PageRequest, error) { // NewClientFromNode sets up Client implementation that communicates with a CometBFT node over // JSON RPC and WebSockets func NewClientFromNode(nodeURI string) (*rpchttp.HTTP, error) { - return rpchttp.New(nodeURI) + return rpchttp.New(nodeURI, "/websocket") } // FlagSetWithPageKeyDecoded returns the provided flagSet with the page-key value base64 decoded (if it exists). diff --git a/client/v2/go.mod b/client/v2/go.mod index acb2ab1809..dcd114b748 100644 --- a/client/v2/go.mod +++ b/client/v2/go.mod @@ -3,14 +3,14 @@ module cosmossdk.io/client/v2 go 1.24 require ( - cosmossdk.io/api v1.0.0-rc.1 - cosmossdk.io/core v1.1.0-rc.1 + cosmossdk.io/api v0.9.2 + cosmossdk.io/core v0.11.3 cosmossdk.io/depinject v1.2.1 cosmossdk.io/math v1.5.3 - cosmossdk.io/x/tx v1.2.0-rc.1 + cosmossdk.io/x/tx v0.14.0 github.com/cockroachdb/errors v1.12.0 github.com/cosmos/cosmos-proto v1.0.0-beta.5 - github.com/cosmos/cosmos-sdk v0.54.0-rc.1 + github.com/cosmos/cosmos-sdk v0.53.4 github.com/cosmos/gogoproto v1.7.0 github.com/spf13/cobra v1.9.1 github.com/spf13/pflag v1.0.7 @@ -26,12 +26,13 @@ require ( cosmossdk.io/errors v1.0.2 // indirect cosmossdk.io/log v1.6.1 // indirect cosmossdk.io/schema v1.1.0 // indirect - cosmossdk.io/store v1.10.0-rc.2 // indirect + cosmossdk.io/store v1.1.2 // indirect filippo.io/edwards25519 v1.1.0 // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect github.com/99designs/keyring v1.2.1 // indirect github.com/DataDog/datadog-go v3.2.0+incompatible // indirect github.com/DataDog/zstd v1.5.7 // indirect + github.com/Microsoft/go-winio v0.6.2 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/bgentry/speakeasy v0.2.0 // indirect github.com/bytedance/sonic v1.14.0 // indirect @@ -45,9 +46,8 @@ require ( github.com/cockroachdb/pebble v1.1.5 // indirect github.com/cockroachdb/redact v1.1.6 // indirect github.com/cockroachdb/tokenbucket v0.0.0-20250429170803-42689b6311bb // indirect - github.com/cometbft/cometbft-db v1.0.4 // indirect - github.com/cometbft/cometbft/api v1.1.0-rc1 // indirect - github.com/cometbft/cometbft/v2 v2.0.0-rc1 // indirect + github.com/cometbft/cometbft v0.38.18 // indirect + github.com/cometbft/cometbft-db v0.14.1 // indirect github.com/cosmos/btcutil v1.0.5 // indirect github.com/cosmos/cosmos-db v1.1.3 // indirect github.com/cosmos/go-bip39 v1.0.0 // indirect @@ -64,11 +64,13 @@ require ( github.com/dustin/go-humanize v1.0.1 // indirect github.com/dvsekhvalnov/jose2go v1.6.0 // indirect github.com/emicklei/dot v1.8.0 // indirect - github.com/ethereum/go-ethereum v1.15.5 // indirect github.com/fatih/color v1.18.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.9.0 // indirect github.com/getsentry/sentry-go v0.35.0 // indirect + github.com/go-kit/kit v0.13.0 // indirect + github.com/go-kit/log v0.2.1 // indirect + github.com/go-logfmt/logfmt v0.6.0 // indirect github.com/go-logr/logr v1.4.3 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/go-viper/mapstructure/v2 v2.4.0 // indirect @@ -81,7 +83,6 @@ require ( github.com/google/flatbuffers v25.2.10+incompatible // indirect github.com/google/go-cmp v0.7.0 // indirect github.com/google/orderedcode v0.0.1 // indirect - github.com/google/uuid v1.6.0 // indirect github.com/gorilla/handlers v1.5.2 // indirect github.com/gorilla/mux v1.8.1 // indirect github.com/gorilla/websocket v1.5.3 // indirect @@ -96,7 +97,6 @@ require ( github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect github.com/hashicorp/yamux v0.1.2 // indirect github.com/hdevalence/ed25519consensus v0.2.0 // indirect - github.com/holiman/uint256 v1.3.2 // indirect github.com/huandu/skiplist v1.2.1 // indirect github.com/iancoleman/strcase v0.3.0 // indirect github.com/improbable-eng/grpc-web v0.15.0 // indirect @@ -107,8 +107,7 @@ require ( github.com/kr/pretty v0.3.1 // indirect github.com/kr/text v0.2.0 // indirect github.com/lib/pq v1.10.9 // indirect - github.com/linxGnu/grocksdb v1.10.1 // indirect - github.com/lmittmann/tint v1.0.7 // indirect + github.com/linxGnu/grocksdb v1.9.8 // indirect github.com/manifoldco/promptui v0.9.0 // indirect github.com/mattn/go-colorable v0.1.14 // indirect github.com/mattn/go-isatty v0.0.20 // indirect @@ -117,6 +116,7 @@ require ( github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a // indirect github.com/oklog/run v1.1.0 // indirect + github.com/opencontainers/image-spec v1.1.0-rc5 // indirect github.com/pelletier/go-toml/v2 v2.2.4 // indirect github.com/petermattis/goid v0.0.0-20240813172612-4fcff4a6cae7 // indirect github.com/pkg/errors v0.9.1 // indirect @@ -136,7 +136,6 @@ require ( github.com/spf13/cast v1.9.2 // indirect github.com/spf13/viper v1.20.1 // indirect github.com/subosito/gotenv v1.6.0 // indirect - github.com/supranational/blst v0.3.14 // indirect github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect github.com/tendermint/go-amino v0.16.0 // indirect github.com/tidwall/btree v1.7.0 // indirect diff --git a/client/v2/go.sum b/client/v2/go.sum index 51a56adfa4..cd3942cbce 100644 --- a/client/v2/go.sum +++ b/client/v2/go.sum @@ -1,11 +1,11 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cosmossdk.io/api v1.0.0-rc.1 h1:KwZHIMveoeg6YVwvKZxJLp7be5uk6qmnqNAar2tPxVU= -cosmossdk.io/api v1.0.0-rc.1/go.mod h1:8YOT+XjVFb9eZJk62YqjFILOm8MlLhbnkC9/jxIYri8= +cosmossdk.io/api v0.9.2 h1:9i9ptOBdmoIEVEVWLtYYHjxZonlF/aOVODLFaxpmNtg= +cosmossdk.io/api v0.9.2/go.mod h1:CWt31nVohvoPMTlPv+mMNCtC0a7BqRdESjCsstHcTkU= cosmossdk.io/collections v1.3.1 h1:09e+DUId2brWsNOQ4nrk+bprVmMUaDH9xvtZkeqIjVw= cosmossdk.io/collections v1.3.1/go.mod h1:ynvkP0r5ruAjbmedE+vQ07MT6OtJ0ZIDKrtJHK7Q/4c= -cosmossdk.io/core v1.1.0-rc.1 h1:VhF5xd4uJZt/lQzbl8qT1W3Pcrklp4RSnugcWQZyf5M= -cosmossdk.io/core v1.1.0-rc.1/go.mod h1:fKHIWVYfPCC4tto9eoYFZC/yAWFlWw2mz8YgSYvjnUs= +cosmossdk.io/core v0.11.3 h1:mei+MVDJOwIjIniaKelE3jPDqShCc/F4LkNNHh+4yfo= +cosmossdk.io/core v0.11.3/go.mod h1:9rL4RE1uDt5AJ4Tg55sYyHWXA16VmpHgbe0PbJc6N2Y= cosmossdk.io/depinject v1.2.1 h1:eD6FxkIjlVaNZT+dXTQuwQTKZrFZ4UrfCq1RKgzyhMw= cosmossdk.io/depinject v1.2.1/go.mod h1:lqQEycz0H2JXqvOgVwTsjEdMI0plswI7p6KX+MVqFOM= cosmossdk.io/errors v1.0.2 h1:wcYiJz08HThbWxd/L4jObeLaLySopyyuUFB5w4AGpCo= @@ -16,10 +16,10 @@ cosmossdk.io/math v1.5.3 h1:WH6tu6Z3AUCeHbeOSHg2mt9rnoiUWVWaQ2t6Gkll96U= cosmossdk.io/math v1.5.3/go.mod h1:uqcZv7vexnhMFJF+6zh9EWdm/+Ylyln34IvPnBauPCQ= cosmossdk.io/schema v1.1.0 h1:mmpuz3dzouCoyjjcMcA/xHBEmMChN+EHh8EHxHRHhzE= cosmossdk.io/schema v1.1.0/go.mod h1:Gb7pqO+tpR+jLW5qDcNOSv0KtppYs7881kfzakguhhI= -cosmossdk.io/store v1.10.0-rc.2 h1:7ze2UoheVTVMK4ElHtoRhYv8nlUImj34e4yp1yy1bgE= -cosmossdk.io/store v1.10.0-rc.2/go.mod h1:3p1IV4EGsULFfeyAcfj7/DBcDsy8d3VlYIEJnhhbP3U= -cosmossdk.io/x/tx v1.2.0-rc.1 h1:AartiA6eiTD9KHmnlj3uG3H8FjyjI0qNkmvmU+p6cJ8= -cosmossdk.io/x/tx v1.2.0-rc.1/go.mod h1:UzpMTUmQEFfz+m0E+lhzFIiEhtZCHjScU/NC652DBHI= +cosmossdk.io/store v1.1.2 h1:3HOZG8+CuThREKv6cn3WSohAc6yccxO3hLzwK6rBC7o= +cosmossdk.io/store v1.1.2/go.mod h1:60rAGzTHevGm592kFhiUVkNC9w7gooSEn5iUBPzHQ6A= +cosmossdk.io/x/tx v0.14.0 h1:hB3O25kIcyDW/7kMTLMaO8Ripj3yqs5imceVd6c/heA= +cosmossdk.io/x/tx v0.14.0/go.mod h1:Tn30rSRA1PRfdGB3Yz55W4Sn6EIutr9xtMKSHij+9PM= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA= filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4= @@ -42,6 +42,7 @@ github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 h1:TngWCqHvy9oXAN6lEV github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5/go.mod h1:lmUJ/7eu/Q8D7ML55dXQrVaamCz2vxCfdQBasLZfHKk= github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= +github.com/VividCortex/gohistogram v1.0.0 h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE= github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= github.com/adlio/schema v1.3.6 h1:k1/zc2jNfeiZBA5aFTRy37jlBIuCkXCm0XmvpzCKI9I= github.com/adlio/schema v1.3.6/go.mod h1:qkxwLgPBd1FgLRHYVCmQT/rrBr3JH38J9LjmVzWNudg= @@ -134,12 +135,10 @@ github.com/cockroachdb/redact v1.1.6/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZ github.com/cockroachdb/tokenbucket v0.0.0-20250429170803-42689b6311bb h1:3bCgBvB8PbJVMX1ouCcSIxvsqKPYM7gs72o0zC76n9g= github.com/cockroachdb/tokenbucket v0.0.0-20250429170803-42689b6311bb/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ= github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= -github.com/cometbft/cometbft-db v1.0.4 h1:cezb8yx/ZWcF124wqUtAFjAuDksS1y1yXedvtprUFxs= -github.com/cometbft/cometbft-db v1.0.4/go.mod h1:M+BtHAGU2XLrpUxo3Nn1nOCcnVCiLM9yx5OuT0u5SCA= -github.com/cometbft/cometbft/api v1.1.0-rc1 h1:NdlXfp4wialMwJ+1ds1DBtfysdxErUxg8/AaqgT0ifQ= -github.com/cometbft/cometbft/api v1.1.0-rc1/go.mod h1:Ivh6nSCTJPQOyfQo8dgnyu/T88it092sEqSrZSmTQN8= -github.com/cometbft/cometbft/v2 v2.0.0-rc1 h1:3QyDHTFzH3a1N6c2jt03kFDCxM/hgUvhzDYBVnPVXY8= -github.com/cometbft/cometbft/v2 v2.0.0-rc1/go.mod h1:/ze08eO171CqUqTqAE7FW7ydUJIVkgp6e2svpYvIR3c= +github.com/cometbft/cometbft v0.38.18 h1:1ZHYMdu0S75YxFM13LlPXnOwiIpUW5z9TKMQtTIALpw= +github.com/cometbft/cometbft v0.38.18/go.mod h1:PlOQgf3jQorep+g6oVnJgtP65TJvBJoLiXjGaMdNxBE= +github.com/cometbft/cometbft-db v0.14.1 h1:SxoamPghqICBAIcGpleHbmoPqy+crij/++eZz3DlerQ= +github.com/cometbft/cometbft-db v0.14.1/go.mod h1:KHP1YghilyGV/xjD5DP3+2hyigWx0WTp9X+0Gnx0RxQ= github.com/containerd/continuity v0.3.0 h1:nisirsYROK15TAMVukJOUyGJjz4BNQJBVsNvAXZJ/eg= github.com/containerd/continuity v0.3.0/go.mod h1:wJEAIwKOm/pBZuBd0JmeTvnLquTB1Ag8espWhkykbPM= github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= @@ -152,8 +151,8 @@ github.com/cosmos/cosmos-db v1.1.3 h1:7QNT77+vkefostcKkhrzDK9uoIEryzFrU9eoMeaQOP github.com/cosmos/cosmos-db v1.1.3/go.mod h1:kN+wGsnwUJZYn8Sy5Q2O0vCYA99MJllkKASbs6Unb9U= github.com/cosmos/cosmos-proto v1.0.0-beta.5 h1:eNcayDLpip+zVLRLYafhzLvQlSmyab+RC5W7ZfmxJLA= github.com/cosmos/cosmos-proto v1.0.0-beta.5/go.mod h1:hQGLpiIUloJBMdQMMWb/4wRApmI9hjHH05nefC0Ojec= -github.com/cosmos/cosmos-sdk v0.54.0-rc.1 h1:hCsF4kJK/iqNDNIXF+bNP72G+Ik2K77TUluWRmsuGSU= -github.com/cosmos/cosmos-sdk v0.54.0-rc.1/go.mod h1:8jH0Q4+2IhIu3kXsGDtIvUZfmeydcvNJxYlOE80ukz4= +github.com/cosmos/cosmos-sdk v0.53.4 h1:kPF6vY68+/xi1/VebSZGpoxQqA52qkhUzqkrgeBn3Mg= +github.com/cosmos/cosmos-sdk v0.53.4/go.mod h1:7U3+WHZtI44dEOnU46+lDzBb2tFh1QlMvi8Z5JugopI= github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY= github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw= github.com/cosmos/gogogateway v1.2.0 h1:Ae/OivNhp8DqBi/sh2A8a1D0y638GpL3tkmLQAiKxTE= @@ -213,8 +212,6 @@ github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.m github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/ethereum/go-ethereum v1.15.5 h1:Fo2TbBWC61lWVkFw9tsMoHCNX1ndpuaQBRJ8H6xLUPo= -github.com/ethereum/go-ethereum v1.15.5/go.mod h1:1LG2LnMOx2yPRHR/S+xuipXH29vPr6BIH6GElD8N/fo= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM= @@ -245,10 +242,16 @@ github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2 github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o= +github.com/go-kit/kit v0.13.0 h1:OoneCcHKHQ03LfBpoQCUfCluwd2Vt3ohz+kvbJneZAU= +github.com/go-kit/kit v0.13.0/go.mod h1:phqEHMMUbyrCFCTgH48JueqrM3md2HcAZ8N3XE4FKDg= github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= +github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU= +github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= +github.com/go-logfmt/logfmt v0.6.0 h1:wGYYu3uicYdqXVgoYbvnkrPVXkuLM1p1ifugDMEdRi4= +github.com/go-logfmt/logfmt v0.6.0/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= @@ -384,9 +387,8 @@ github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.1 h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE= github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= -github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= @@ -403,8 +405,6 @@ github.com/hashicorp/yamux v0.1.2 h1:XtB8kyFOyHXYVFnwT5C3+Bdo8gArse7j2AQ0DA0Uey8 github.com/hashicorp/yamux v0.1.2/go.mod h1:C+zze2n6e/7wshOZep2A70/aQU6QBRWJO/G6FT1wIns= github.com/hdevalence/ed25519consensus v0.2.0 h1:37ICyZqdyj0lAZ8P4D1d1id3HqbbG1N3iBb1Tb4rdcU= github.com/hdevalence/ed25519consensus v0.2.0/go.mod h1:w3BHWjwJbFU29IRHL1Iqkw3sus+7FctEyM4RqDxYNzo= -github.com/holiman/uint256 v1.3.2 h1:a9EgMPSC1AAaj1SZL5zIQD3WbwTuHrMGOerLjGmM/TA= -github.com/holiman/uint256 v1.3.2/go.mod h1:EOMSn4q6Nyt9P6efbI3bueV4e1b3dGlUCXeiRV4ng7E= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/huandu/go-assert v1.1.5 h1:fjemmA7sSfYHJD7CUqs9qTwwfdNAx7/j2/ZlHXzNB3c= github.com/huandu/go-assert v1.1.5/go.mod h1:yOLvuqZwmcHIC5rIzrBhT7D3Q9c3GFnd0JrPVhn/06U= @@ -468,10 +468,8 @@ github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw= github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM= github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= -github.com/linxGnu/grocksdb v1.10.1 h1:YX6gUcKvSC3d0s9DaqgbU+CRkZHzlELgHu1Z/kmtslg= -github.com/linxGnu/grocksdb v1.10.1/go.mod h1:C3CNe9UYc9hlEM2pC82AqiGS3LRW537u9LFV4wIZuHk= -github.com/lmittmann/tint v1.0.7 h1:D/0OqWZ0YOGZ6AyC+5Y2kD8PBEzBk6rFHVSfOqCkF9Y= -github.com/lmittmann/tint v1.0.7/go.mod h1:HIS3gSy7qNwGCj+5oRjAutErFBl4BzdQP6cJZ0NfMwE= +github.com/linxGnu/grocksdb v1.9.8 h1:vOIKv9/+HKiqJAElJIEYv3ZLcihRxyP7Suu/Mu8Dxjs= +github.com/linxGnu/grocksdb v1.9.8/go.mod h1:C3CNe9UYc9hlEM2pC82AqiGS3LRW537u9LFV4wIZuHk= github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ= github.com/magiconair/properties v1.8.10 h1:s31yESBquKXCV9a/ScB3ESkOjUYYv+X0rg8SYxI99mE= github.com/magiconair/properties v1.8.10/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= @@ -701,8 +699,6 @@ github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= -github.com/supranational/blst v0.3.14 h1:xNMoHRJOTwMn63ip6qoWJ2Ymgvj7E2b9jY2FAwY+qRo= -github.com/supranational/blst v0.3.14/go.mod h1:jZJtfjgudtNl4en1tzwPIV3KjUnQUvG3/j+w+fVonLw= github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d h1:vfofYNRScrDdvS342BElfbETmL1Aiz3i2t0zfRj16Hs= github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d/go.mod h1:RRCYJbIwD5jmqPI9XoAFR0OcDxqUctll6zUj/+B4S48= github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E= diff --git a/codec/amino.go b/codec/amino.go index a920febf87..ea5ab67abf 100644 --- a/codec/amino.go +++ b/codec/amino.go @@ -7,7 +7,7 @@ import ( "fmt" "io" - cmttypes "github.com/cometbft/cometbft/v2/types" + cmttypes "github.com/cometbft/cometbft/types" amino "github.com/tendermint/go-amino" "github.com/cosmos/cosmos-sdk/codec/types" diff --git a/collections/go.mod b/collections/go.mod index eabafb04f7..e4f1fe1e48 100644 --- a/collections/go.mod +++ b/collections/go.mod @@ -9,7 +9,7 @@ require ( github.com/google/go-cmp v0.7.0 github.com/stretchr/testify v1.11.1 github.com/tidwall/btree v1.8.1 - google.golang.org/protobuf v1.36.7 + google.golang.org/protobuf v1.36.8 pgregory.net/rapid v1.2.0 ) diff --git a/collections/go.sum b/collections/go.sum index a3fbf5be34..d73e2db996 100644 --- a/collections/go.sum +++ b/collections/go.sum @@ -164,8 +164,8 @@ google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQ google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.36.7 h1:IgrO7UwFQGJdRNXH/sQux4R1Dj1WAKcLElzeeRaXV2A= -google.golang.org/protobuf v1.36.7/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY= +google.golang.org/protobuf v1.36.8 h1:xHScyCOEuuwZEc6UtSOvPbAT4zRh0xcNRYekJwfqyMc= +google.golang.org/protobuf v1.36.8/go.mod h1:fuxRtAxBytpl4zzqUh6/eyUujkJdNiuEkXntxiD/uRU= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= diff --git a/contrib/x/circuit/ante/circuit_test.go b/contrib/x/circuit/ante/circuit_test.go index a3cb60c6d8..9a668a4e6b 100644 --- a/contrib/x/circuit/ante/circuit_test.go +++ b/contrib/x/circuit/ante/circuit_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - cmproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" + cmproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/require" storetypes "cosmossdk.io/store/types" @@ -45,7 +45,7 @@ func initFixture(t *testing.T) *fixture { encCfg := moduletestutil.MakeTestEncodingConfig(auth.AppModuleBasic{}, bank.AppModuleBasic{}) mockclientCtx := client.Context{}. WithTxConfig(encCfg.TxConfig). - WithClient(clitestutil.NewMockCometRPC(abci.QueryResponse{})) + WithClient(clitestutil.NewMockCometRPC(abci.ResponseQuery{})) return &fixture{ ctx: testutil.DefaultContextWithDB(t, mockStoreKey, storetypes.NewTransientStoreKey("transient_test")).Ctx.WithBlockHeader(cmproto.Header{}), diff --git a/contrib/x/circuit/keeper/keeper_test.go b/contrib/x/circuit/keeper/keeper_test.go index dc74d76613..94fb55c52f 100644 --- a/contrib/x/circuit/keeper/keeper_test.go +++ b/contrib/x/circuit/keeper/keeper_test.go @@ -5,7 +5,7 @@ import ( context "context" "testing" - cmproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/require" "cosmossdk.io/core/address" diff --git a/contrib/x/group/client/cli/tx_test.go b/contrib/x/group/client/cli/tx_test.go index 23a236af5f..bf48a16e1f 100644 --- a/contrib/x/group/client/cli/tx_test.go +++ b/contrib/x/group/client/cli/tx_test.go @@ -7,8 +7,8 @@ import ( "io" "testing" - abci "github.com/cometbft/cometbft/v2/abci/types" - rpcclientmock "github.com/cometbft/cometbft/v2/rpc/client/mock" + abci "github.com/cometbft/cometbft/abci/types" + rpcclientmock "github.com/cometbft/cometbft/rpc/client/mock" "github.com/stretchr/testify/suite" // without this import amino json encoding will fail when resolving any types @@ -70,7 +70,7 @@ func (s *CLITestSuite) SetupSuite() { ctxGen := func() client.Context { bz, _ := s.encCfg.Codec.Marshal(&sdk.TxResponse{}) - c := clitestutil.NewMockCometRPC(abci.QueryResponse{ + c := clitestutil.NewMockCometRPC(abci.ResponseQuery{ Value: bz, }) return s.baseCtx.WithClient(c) @@ -273,7 +273,7 @@ func (s *CLITestSuite) TestTxUpdateGroupAdmin() { "correct data", func() client.Context { bz, _ := s.encCfg.Codec.Marshal(&sdk.TxResponse{}) - c := clitestutil.NewMockCometRPC(abci.QueryResponse{ + c := clitestutil.NewMockCometRPC(abci.ResponseQuery{ Value: bz, }) return s.baseCtx.WithClient(c) @@ -293,7 +293,7 @@ func (s *CLITestSuite) TestTxUpdateGroupAdmin() { "with amino-json", func() client.Context { bz, _ := s.encCfg.Codec.Marshal(&sdk.TxResponse{}) - c := clitestutil.NewMockCometRPC(abci.QueryResponse{ + c := clitestutil.NewMockCometRPC(abci.ResponseQuery{ Value: bz, }) return s.baseCtx.WithClient(c) @@ -314,7 +314,7 @@ func (s *CLITestSuite) TestTxUpdateGroupAdmin() { "group id invalid", func() client.Context { bz, _ := s.encCfg.Codec.Marshal(&sdk.TxResponse{}) - c := clitestutil.NewMockCometRPC(abci.QueryResponse{ + c := clitestutil.NewMockCometRPC(abci.ResponseQuery{ Value: bz, }) return s.baseCtx.WithClient(c) diff --git a/contrib/x/group/keeper/genesis.go b/contrib/x/group/keeper/genesis.go index 6da12ef366..8c264ef3c6 100644 --- a/contrib/x/group/keeper/genesis.go +++ b/contrib/x/group/keeper/genesis.go @@ -3,7 +3,7 @@ package keeper import ( "encoding/json" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "cosmossdk.io/errors" diff --git a/contrib/x/group/keeper/keeper_test.go b/contrib/x/group/keeper/keeper_test.go index 9f219c40dc..e254481619 100644 --- a/contrib/x/group/keeper/keeper_test.go +++ b/contrib/x/group/keeper/keeper_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - cmttime "github.com/cometbft/cometbft/v2/types/time" + cmttime "github.com/cometbft/cometbft/types/time" "github.com/stretchr/testify/suite" "go.uber.org/mock/gomock" diff --git a/contrib/x/group/keeper/msg_server_test.go b/contrib/x/group/keeper/msg_server_test.go index e2bf595756..0efbf80f56 100644 --- a/contrib/x/group/keeper/msg_server_test.go +++ b/contrib/x/group/keeper/msg_server_test.go @@ -8,7 +8,7 @@ import ( "strings" "time" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "go.uber.org/mock/gomock" "github.com/cosmos/cosmos-sdk/codec/address" diff --git a/contrib/x/group/module/abci_test.go b/contrib/x/group/module/abci_test.go index a73680d274..318a06f710 100644 --- a/contrib/x/group/module/abci_test.go +++ b/contrib/x/group/module/abci_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - cmttime "github.com/cometbft/cometbft/v2/types/time" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + cmttime "github.com/cometbft/cometbft/types/time" "github.com/stretchr/testify/suite" "cosmossdk.io/core/address" diff --git a/contrib/x/group/simulation/operations_test.go b/contrib/x/group/simulation/operations_test.go index a9ee7791a9..2613f41544 100644 --- a/contrib/x/group/simulation/operations_test.go +++ b/contrib/x/group/simulation/operations_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "github.com/cosmos/gogoproto/proto" "github.com/stretchr/testify/suite" @@ -130,7 +130,7 @@ func (suite *SimTestSuite) TestSimulateCreateGroup() { r := rand.New(s) accounts := suite.getTestingAccounts(r, 1) - _, err := suite.app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err := suite.app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: suite.app.LastBlockHeight() + 1, Hash: suite.app.LastCommitID().Hash, }) @@ -157,7 +157,7 @@ func (suite *SimTestSuite) TestSimulateCreateGroupWithPolicy() { r := rand.New(s) accounts := suite.getTestingAccounts(r, 1) - _, err := suite.app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err := suite.app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: suite.app.LastBlockHeight() + 1, Hash: suite.app.LastCommitID().Hash, }) @@ -199,7 +199,7 @@ func (suite *SimTestSuite) TestSimulateCreateGroupPolicy() { ) suite.Require().NoError(err) - _, err = suite.app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = suite.app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: suite.app.LastBlockHeight() + 1, Hash: suite.app.LastCommitID().Hash, }) @@ -250,7 +250,7 @@ func (suite *SimTestSuite) TestSimulateSubmitProposal() { groupPolicyRes, err := suite.groupKeeper.CreateGroupPolicy(ctx, accountReq) suite.Require().NoError(err) - _, err = suite.app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = suite.app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: suite.app.LastBlockHeight() + 1, Hash: suite.app.LastCommitID().Hash, }) @@ -314,7 +314,7 @@ func (suite *SimTestSuite) TestWithdrawProposal() { _, err = suite.groupKeeper.SubmitProposal(ctx, proposalReq) suite.Require().NoError(err) - _, err = suite.app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = suite.app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: suite.app.LastBlockHeight() + 1, Hash: suite.app.LastCommitID().Hash, }) @@ -379,7 +379,7 @@ func (suite *SimTestSuite) TestSimulateVote() { _, err = suite.groupKeeper.SubmitProposal(ctx, proposalReq) suite.Require().NoError(err) - _, err = suite.app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = suite.app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: suite.app.LastBlockHeight() + 1, Hash: suite.app.LastCommitID().Hash, }) @@ -452,7 +452,7 @@ func (suite *SimTestSuite) TestSimulateExec() { }) suite.Require().NoError(err) - _, err = suite.app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = suite.app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: suite.app.LastBlockHeight() + 1, Hash: suite.app.LastCommitID().Hash, }) @@ -492,7 +492,7 @@ func (suite *SimTestSuite) TestSimulateUpdateGroupAdmin() { ) suite.Require().NoError(err) - _, err = suite.app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = suite.app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: suite.app.LastBlockHeight() + 1, Hash: suite.app.LastCommitID().Hash, }) @@ -532,7 +532,7 @@ func (suite *SimTestSuite) TestSimulateUpdateGroupMetadata() { ) suite.Require().NoError(err) - _, err = suite.app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = suite.app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: suite.app.LastBlockHeight() + 1, Hash: suite.app.LastCommitID().Hash, }) @@ -572,7 +572,7 @@ func (suite *SimTestSuite) TestSimulateUpdateGroupMembers() { ) suite.Require().NoError(err) - _, err = suite.app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = suite.app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: suite.app.LastBlockHeight() + 1, Hash: suite.app.LastCommitID().Hash, }) @@ -623,7 +623,7 @@ func (suite *SimTestSuite) TestSimulateUpdateGroupPolicyAdmin() { groupPolicyRes, err := suite.groupKeeper.CreateGroupPolicy(ctx, accountReq) suite.Require().NoError(err) - _, err = suite.app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = suite.app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: suite.app.LastBlockHeight() + 1, Hash: suite.app.LastCommitID().Hash, }) @@ -674,7 +674,7 @@ func (suite *SimTestSuite) TestSimulateUpdateGroupPolicyDecisionPolicy() { groupPolicyRes, err := suite.groupKeeper.CreateGroupPolicy(ctx, accountReq) suite.Require().NoError(err) - _, err = suite.app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = suite.app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: suite.app.LastBlockHeight() + 1, Hash: suite.app.LastCommitID().Hash, }) @@ -725,7 +725,7 @@ func (suite *SimTestSuite) TestSimulateUpdateGroupPolicyMetadata() { groupPolicyRes, err := suite.groupKeeper.CreateGroupPolicy(ctx, accountReq) suite.Require().NoError(err) - _, err = suite.app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = suite.app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: suite.app.LastBlockHeight() + 1, Hash: suite.app.LastCommitID().Hash, }) @@ -789,7 +789,7 @@ func (suite *SimTestSuite) TestSimulateLeaveGroup() { _, err = suite.groupKeeper.CreateGroupPolicy(ctx, accountReq) require.NoError(err) - _, err = suite.app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = suite.app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: suite.app.LastBlockHeight() + 1, Hash: suite.app.LastCommitID().Hash, }) diff --git a/contrib/x/nft/keeper/keeper_test.go b/contrib/x/nft/keeper/keeper_test.go index 3516f2ef7b..1b87aeb5c9 100644 --- a/contrib/x/nft/keeper/keeper_test.go +++ b/contrib/x/nft/keeper/keeper_test.go @@ -3,8 +3,8 @@ package keeper_test import ( "testing" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - cmttime "github.com/cometbft/cometbft/v2/types/time" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + cmttime "github.com/cometbft/cometbft/types/time" "github.com/stretchr/testify/suite" "go.uber.org/mock/gomock" diff --git a/contrib/x/nft/simulation/operations_test.go b/contrib/x/nft/simulation/operations_test.go index e6d7d96b76..822218e8d8 100644 --- a/contrib/x/nft/simulation/operations_test.go +++ b/contrib/x/nft/simulation/operations_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "github.com/stretchr/testify/suite" "cosmossdk.io/depinject" @@ -124,7 +124,7 @@ func (suite *SimTestSuite) TestSimulateMsgSend() { ctx := suite.ctx.WithBlockTime(blockTime) // begin new block - _, err := suite.app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err := suite.app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: suite.app.LastBlockHeight() + 1, Hash: suite.app.LastCommitID().Hash, }) diff --git a/core/go.mod b/core/go.mod index 3a7a72055d..e3abc72856 100644 --- a/core/go.mod +++ b/core/go.mod @@ -3,13 +3,13 @@ module cosmossdk.io/core go 1.23.0 require ( - cosmossdk.io/api v1.0.0-rc.1 + cosmossdk.io/api v0.9.2 cosmossdk.io/depinject v1.2.1 cosmossdk.io/math v1.5.3 github.com/cosmos/cosmos-db v1.1.3 github.com/stretchr/testify v1.11.1 google.golang.org/grpc v1.75.0 - google.golang.org/protobuf v1.36.7 + google.golang.org/protobuf v1.36.8 ) require ( diff --git a/core/go.sum b/core/go.sum index 888810e41a..2ff8fe9524 100644 --- a/core/go.sum +++ b/core/go.sum @@ -1,5 +1,5 @@ -cosmossdk.io/api v1.0.0-rc.1 h1:KwZHIMveoeg6YVwvKZxJLp7be5uk6qmnqNAar2tPxVU= -cosmossdk.io/api v1.0.0-rc.1/go.mod h1:8YOT+XjVFb9eZJk62YqjFILOm8MlLhbnkC9/jxIYri8= +cosmossdk.io/api v0.9.2 h1:9i9ptOBdmoIEVEVWLtYYHjxZonlF/aOVODLFaxpmNtg= +cosmossdk.io/api v0.9.2/go.mod h1:CWt31nVohvoPMTlPv+mMNCtC0a7BqRdESjCsstHcTkU= cosmossdk.io/depinject v1.2.1 h1:eD6FxkIjlVaNZT+dXTQuwQTKZrFZ4UrfCq1RKgzyhMw= cosmossdk.io/depinject v1.2.1/go.mod h1:lqQEycz0H2JXqvOgVwTsjEdMI0plswI7p6KX+MVqFOM= cosmossdk.io/math v1.5.3 h1:WH6tu6Z3AUCeHbeOSHg2mt9rnoiUWVWaQ2t6Gkll96U= @@ -238,8 +238,8 @@ google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzi google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.36.7 h1:IgrO7UwFQGJdRNXH/sQux4R1Dj1WAKcLElzeeRaXV2A= -google.golang.org/protobuf v1.36.7/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY= +google.golang.org/protobuf v1.36.8 h1:xHScyCOEuuwZEc6UtSOvPbAT4zRh0xcNRYekJwfqyMc= +google.golang.org/protobuf v1.36.8/go.mod h1:fuxRtAxBytpl4zzqUh6/eyUujkJdNiuEkXntxiD/uRU= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= diff --git a/crypto/armor.go b/crypto/armor.go index 5768f9469d..5a191a7218 100644 --- a/crypto/armor.go +++ b/crypto/armor.go @@ -7,7 +7,7 @@ import ( "fmt" "io" - "github.com/cometbft/cometbft/v2/crypto" + "github.com/cometbft/cometbft/crypto" "golang.org/x/crypto/argon2" "golang.org/x/crypto/chacha20poly1305" "golang.org/x/crypto/openpgp/armor" //nolint:staticcheck //TODO: remove this dependency diff --git a/crypto/armor_test.go b/crypto/armor_test.go index d51030a57e..1b98f5add8 100644 --- a/crypto/armor_test.go +++ b/crypto/armor_test.go @@ -7,7 +7,7 @@ import ( "io" "testing" - cmtcrypto "github.com/cometbft/cometbft/v2/crypto" + cmtcrypto "github.com/cometbft/cometbft/crypto" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/crypto/codec/amino.go b/crypto/codec/amino.go index 069fecf8ce..e512ed6bb9 100644 --- a/crypto/codec/amino.go +++ b/crypto/codec/amino.go @@ -1,10 +1,7 @@ package codec import ( - "github.com/cometbft/cometbft/v2/crypto/bls12381" - "github.com/cosmos/cosmos-sdk/codec" - bls12_381 "github.com/cosmos/cosmos-sdk/crypto/keys/bls12_381" "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" kmultisig "github.com/cosmos/cosmos-sdk/crypto/keys/multisig" "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" @@ -21,12 +18,12 @@ func RegisterCrypto(cdc *codec.LegacyAmino) { secp256k1.PubKeyName, nil) cdc.RegisterConcrete(&kmultisig.LegacyAminoPubKey{}, kmultisig.PubKeyAminoRoute, nil) - cdc.RegisterConcrete(&bls12_381.PubKey{}, bls12381.PubKeyName, nil) + // cdc.RegisterConcrete(&bls12_381.PubKey{}, bls12381.PubKeyName, nil) cdc.RegisterInterface((*cryptotypes.PrivKey)(nil), nil) cdc.RegisterConcrete(&ed25519.PrivKey{}, ed25519.PrivKeyName, nil) cdc.RegisterConcrete(&secp256k1.PrivKey{}, secp256k1.PrivKeyName, nil) - cdc.RegisterConcrete(&bls12_381.PrivKey{}, bls12381.PrivKeyName, nil) + // cdc.RegisterConcrete(&bls12_381.PrivKey{}, bls12381.PrivKeyName, nil) } diff --git a/crypto/codec/cmt.go b/crypto/codec/cmt.go index 5df9e89a7d..3df6a898ab 100644 --- a/crypto/codec/cmt.go +++ b/crypto/codec/cmt.go @@ -1,13 +1,13 @@ package codec import ( - cmtprotocrypto "github.com/cometbft/cometbft/api/cometbft/crypto/v1" - cmtcrypto "github.com/cometbft/cometbft/v2/crypto" - "github.com/cometbft/cometbft/v2/crypto/encoding" + cmtcrypto "github.com/cometbft/cometbft/crypto" + "github.com/cometbft/cometbft/crypto/encoding" + cmtprotocrypto "github.com/cometbft/cometbft/proto/tendermint/crypto" "cosmossdk.io/errors" - bls12_381 "github.com/cosmos/cosmos-sdk/crypto/keys/bls12_381" + // bls12_381 "github.com/cosmos/cosmos-sdk/crypto/keys/bls12_381" "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" @@ -25,10 +25,11 @@ func FromCmtProtoPublicKey(protoPk cmtprotocrypto.PublicKey) (cryptotypes.PubKey return &secp256k1.PubKey{ Key: protoPk.Secp256K1, }, nil - case *cmtprotocrypto.PublicKey_Bls12381: - return &bls12_381.PubKey{ - Key: protoPk.Bls12381, - }, nil + // TODO: readd once comet has this + // case *cmtprotocrypto.PublicKey_Bls12381: + // return &bls12_381.PubKey{ + // Key: protoPk.Bls12381, + // }, nil default: return nil, errors.Wrapf(sdkerrors.ErrInvalidType, "cannot convert %v from Tendermint public key", protoPk) } @@ -49,12 +50,13 @@ func ToCmtProtoPublicKey(pk cryptotypes.PubKey) (cmtprotocrypto.PublicKey, error Secp256K1: pk.Key, }, }, nil - case *bls12_381.PubKey: - return cmtprotocrypto.PublicKey{ - Sum: &cmtprotocrypto.PublicKey_Bls12381{ - Bls12381: pk.Key, - }, - }, nil + // TODO: readd once comet has this + // case *bls12_381.PubKey: + // return cmtprotocrypto.PublicKey{ + // Sum: &cmtprotocrypto.PublicKey_Bls12381{ + // Bls12381: pk.Key, + // }, + // }, nil default: return cmtprotocrypto.PublicKey{}, errors.Wrapf(sdkerrors.ErrInvalidType, "cannot convert %v to Tendermint public key", pk) } diff --git a/crypto/codec/proto.go b/crypto/codec/proto.go index a43749d243..86828b2f1d 100644 --- a/crypto/codec/proto.go +++ b/crypto/codec/proto.go @@ -2,7 +2,7 @@ package codec import ( codectypes "github.com/cosmos/cosmos-sdk/codec/types" - bls12_381 "github.com/cosmos/cosmos-sdk/crypto/keys/bls12_381" + // bls12_381 "github.com/cosmos/cosmos-sdk/crypto/keys/bls12_381" "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" "github.com/cosmos/cosmos-sdk/crypto/keys/multisig" "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" @@ -16,13 +16,13 @@ func RegisterInterfaces(registry codectypes.InterfaceRegistry) { registry.RegisterInterface("cosmos.crypto.PubKey", pk) registry.RegisterImplementations(pk, &ed25519.PubKey{}) registry.RegisterImplementations(pk, &secp256k1.PubKey{}) - registry.RegisterImplementations(pk, &bls12_381.PubKey{}) + // registry.RegisterImplementations(pk, &bls12_381.PubKey{}) registry.RegisterImplementations(pk, &multisig.LegacyAminoPubKey{}) var priv *cryptotypes.PrivKey registry.RegisterInterface("cosmos.crypto.PrivKey", priv) registry.RegisterImplementations(priv, &secp256k1.PrivKey{}) registry.RegisterImplementations(priv, &ed25519.PrivKey{}) - registry.RegisterImplementations(priv, &bls12_381.PrivKey{}) + // registry.RegisterImplementations(priv, &bls12_381.PrivKey{}) secp256r1.RegisterInterfaces(registry) } diff --git a/crypto/hd/fundraiser_test.go b/crypto/hd/fundraiser_test.go index c660230108..37cb1eff16 100644 --- a/crypto/hd/fundraiser_test.go +++ b/crypto/hd/fundraiser_test.go @@ -7,7 +7,7 @@ import ( "os" "testing" - "github.com/cometbft/cometbft/v2/crypto" + "github.com/cometbft/cometbft/crypto" "github.com/cosmos/go-bip39" "github.com/stretchr/testify/require" diff --git a/crypto/keyring/keyring_test.go b/crypto/keyring/keyring_test.go index 59f6d674c9..62f2335852 100644 --- a/crypto/keyring/keyring_test.go +++ b/crypto/keyring/keyring_test.go @@ -12,7 +12,7 @@ import ( "testing" "github.com/99designs/keyring" - cmtcrypto "github.com/cometbft/cometbft/v2/crypto" + cmtcrypto "github.com/cometbft/cometbft/crypto" "github.com/stretchr/testify/require" "golang.org/x/crypto/bcrypt" diff --git a/crypto/keys/bls12_381/key.go b/crypto/keys/bls12_381/key.go index adc46e41b2..3430d0c92c 100644 --- a/crypto/keys/bls12_381/key.go +++ b/crypto/keys/bls12_381/key.go @@ -2,12 +2,14 @@ package bls12_381 +/* import ( "bytes" "errors" "fmt" - "github.com/cometbft/cometbft/v2/crypto" + "github.com/cometbft/cometbft/crypto" + // TODO: use mainline and not v2 once we have the chance bls "github.com/cometbft/cometbft/v2/crypto/bls12381" "github.com/cosmos/cosmos-sdk/codec" @@ -109,7 +111,7 @@ func (pubKey PubKey) Address() crypto.Address { } // VerifySignature verifies the given signature. -func (pubKey PubKey) VerifySignature(msg, sig []byte) bool { +func (pubKey PubKey) VerifySignature(_, _ []byte) bool { panic("not implemented, build flags are required to use bls12_381 keys") } @@ -128,7 +130,9 @@ func (pubKey PubKey) Equals(other cryptotypes.PubKey) bool { return pubKey.Type() == other.Type() && bytes.Equal(pubKey.Bytes(), other.Bytes()) } -// String returns Hex representation of a pubkey with it's type +// String returns Hex representation of a pubkey with its type func (pubKey PubKey) String() string { return fmt.Sprintf("PubKeyBLS12_381{%X}", pubKey.Key) } + +*/ diff --git a/crypto/keys/bls12_381/key_cgo.go b/crypto/keys/bls12_381/key_cgo.go index a681e87264..da168416a7 100644 --- a/crypto/keys/bls12_381/key_cgo.go +++ b/crypto/keys/bls12_381/key_cgo.go @@ -2,14 +2,15 @@ package bls12_381 +/* import ( "bytes" "errors" "fmt" - "github.com/cometbft/cometbft/v2/crypto" + "github.com/cometbft/cometbft/crypto" + "github.com/cometbft/cometbft/crypto/tmhash" "github.com/cometbft/cometbft/v2/crypto/bls12381" - "github.com/cometbft/cometbft/v2/crypto/tmhash" "github.com/cosmos/cosmos-sdk/codec" cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" @@ -167,3 +168,5 @@ func (pubKey PubKey) Equals(other cryptotypes.PubKey) bool { func (pubKey PubKey) String() string { return fmt.Sprintf("PubKeyBLS12_381{%X}", pubKey.Key) } + +*/ diff --git a/crypto/keys/bls12_381/keys.pb.go b/crypto/keys/bls12_381/keys.pb.go index 4524d9e5dd..6328d49aab 100644 --- a/crypto/keys/bls12_381/keys.pb.go +++ b/crypto/keys/bls12_381/keys.pb.go @@ -1,8 +1,11 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: cosmos/crypto/bls12_381/keys.proto + package bls12_381 +/* + import ( fmt "fmt" _ "github.com/cosmos/cosmos-sdk/types/tx/amino" @@ -502,3 +505,6 @@ var ( ErrIntOverflowKeys = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupKeys = fmt.Errorf("proto: unexpected end of group") ) + + + */ \ No newline at end of file diff --git a/crypto/keys/convert.go b/crypto/keys/convert.go deleted file mode 100644 index 43f417ec3f..0000000000 --- a/crypto/keys/convert.go +++ /dev/null @@ -1,48 +0,0 @@ -package keys - -import ( - "github.com/cometbft/cometbft/v2/crypto/ed25519" - "github.com/cometbft/cometbft/v2/crypto/encoding" - "github.com/cometbft/cometbft/v2/crypto/secp256k1" - - cosmosed25519 "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - cosmossecp256k1 "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - "github.com/cosmos/cosmos-sdk/crypto/types" -) - -// PubKeyFromCometTypeAndBytes builds a crypto.PubKey from the given comet/v2 type and bytes. -// It returns ErrUnsupportedKey if the pubkey type is unsupported or -// ErrInvalidKeyLen if the key length is invalid. -func PubKeyFromCometTypeAndBytes(pkType string, bytes []byte) (types.PubKey, error) { - var pubKey types.PubKey - switch pkType { - case ed25519.KeyType: - if len(bytes) != ed25519.PubKeySize { - return nil, encoding.ErrInvalidKeyLen{ - Key: pkType, - Got: len(bytes), - Want: ed25519.PubKeySize, - } - } - - pk := make([]byte, ed25519.PubKeySize) - copy(pk, bytes) - pubKey = &cosmosed25519.PubKey{Key: pk} - - case secp256k1.KeyType: - if len(bytes) != secp256k1.PubKeySize { - return nil, encoding.ErrInvalidKeyLen{ - Key: pkType, - Got: len(bytes), - Want: secp256k1.PubKeySize, - } - } - - pk := make([]byte, secp256k1.PubKeySize) - copy(pk, bytes) - pubKey = &cosmossecp256k1.PubKey{Key: pk} - default: - return nil, encoding.ErrUnsupportedKey{KeyType: pkType} - } - return pubKey, nil -} diff --git a/crypto/keys/convert_test.go b/crypto/keys/convert_test.go deleted file mode 100644 index 38c53c6889..0000000000 --- a/crypto/keys/convert_test.go +++ /dev/null @@ -1,80 +0,0 @@ -package keys_test - -import ( - "testing" - - "github.com/cometbft/cometbft/v2/crypto/bls12381" - "github.com/cometbft/cometbft/v2/crypto/ed25519" - "github.com/cometbft/cometbft/v2/crypto/encoding" - "github.com/cometbft/cometbft/v2/crypto/secp256k1" - "github.com/cometbft/cometbft/v2/crypto/secp256k1eth" - "github.com/stretchr/testify/require" - - "github.com/cosmos/cosmos-sdk/crypto/keys" -) - -func TestPubKeyFromCometTypeAndBytes(t *testing.T) { - // --- ed25519 --- - edPriv := ed25519.GenPrivKey() - edPub := edPriv.PubKey() - - // valid - pk, err := keys.PubKeyFromCometTypeAndBytes(edPub.Type(), edPub.Bytes()) - require.NoError(t, err) - require.Equal(t, edPub.Type(), pk.Type()) - require.Equal(t, edPub.Bytes(), pk.Bytes()) - require.Equal(t, edPub.Address(), pk.Address()) - require.Equal(t, edPub.VerifySignature([]byte("msg"), []byte("sig")), pk.VerifySignature([]byte("msg"), []byte("sig"))) - - // invalid length - _, err = keys.PubKeyFromCometTypeAndBytes(edPub.Type(), edPub.Bytes()[:5]) - require.Error(t, err) - var invLen encoding.ErrInvalidKeyLen - require.ErrorAs(t, err, &invLen) - - // --- secp256k1 --- - secpPriv := secp256k1.GenPrivKey() - secpPub := secpPriv.PubKey() - - pk, err = keys.PubKeyFromCometTypeAndBytes(secpPub.Type(), secpPub.Bytes()) - require.NoError(t, err) - require.Equal(t, secpPub.Type(), pk.Type()) - require.Equal(t, secpPub.Bytes(), pk.Bytes()) - require.Equal(t, secpPub.Address(), pk.Address()) - require.Equal(t, secpPub.VerifySignature([]byte("msg"), []byte("sig")), pk.VerifySignature([]byte("msg"), []byte("sig"))) - - _, err = keys.PubKeyFromCometTypeAndBytes(secpPub.Type(), secpPub.Bytes()[:5]) - require.Error(t, err) - require.ErrorAs(t, err, &invLen) - - // --- secp256k1eth (optional) --- - if secp256k1eth.Enabled { - ethPriv := secp256k1eth.GenPrivKey() - ethPub := ethPriv.PubKey() - - pk, err = keys.PubKeyFromCometTypeAndBytes(ethPub.Type(), ethPub.Bytes()) - require.NoError(t, err) - require.Equal(t, ethPub.Type(), pk.Type()) - require.Equal(t, ethPub.Bytes(), pk.Bytes()) - require.Equal(t, ethPub.Address(), pk.Address()) - require.Equal(t, ethPub.VerifySignature([]byte("msg"), []byte("sig")), pk.VerifySignature([]byte("msg"), []byte("sig"))) - - _, err = keys.PubKeyFromCometTypeAndBytes(ethPub.Type(), ethPub.Bytes()[:5]) - require.Error(t, err) - require.ErrorAs(t, err, &invLen) - } else { - // should error if type known but not enabled - _, err := keys.PubKeyFromCometTypeAndBytes(secp256k1eth.KeyType, []byte{}) - require.Error(t, err) - } - - // --- bls keys are not enabled in comet and should fail --- - _, err = bls12381.GenPrivKey() - require.Error(t, err) - - // --- unsupported type --- - _, err = keys.PubKeyFromCometTypeAndBytes("not-a-key", []byte{1, 2, 3}) - require.Error(t, err) - var unsup encoding.ErrUnsupportedKey - require.ErrorAs(t, err, &unsup) -} diff --git a/crypto/keys/ed25519/doc.go b/crypto/keys/ed25519/doc.go index 3248d07fc2..10f3a6e9ac 100644 --- a/crypto/keys/ed25519/doc.go +++ b/crypto/keys/ed25519/doc.go @@ -4,7 +4,7 @@ package ed25519 This package contains a wrapper around crypto/ed25519 to make it comply with the crypto interfaces. This package employs zip215 rules. We use https://github.com/hdevalence/ed25519consensus verification function. This is done in order to keep compatibility with Tendermints ed25519 implementation. - - https://github.com/cometbft/cometbft/v2/blob/master/crypto/ed25519/ed25519.go#L155 + - https://github.com/cometbft/cometbft/blob/master/crypto/ed25519/ed25519.go#L155 This package works with correctly generated signatures. To read more about what this means see https://hdevalence.ca/blog/2020-10-04-its-25519am diff --git a/crypto/keys/ed25519/ed25519.go b/crypto/keys/ed25519/ed25519.go index 15a3ebc149..f2300f6e18 100644 --- a/crypto/keys/ed25519/ed25519.go +++ b/crypto/keys/ed25519/ed25519.go @@ -6,8 +6,8 @@ import ( "fmt" "io" - "github.com/cometbft/cometbft/v2/crypto" - "github.com/cometbft/cometbft/v2/crypto/tmhash" + "github.com/cometbft/cometbft/crypto" + "github.com/cometbft/cometbft/crypto/tmhash" "github.com/hdevalence/ed25519consensus" errorsmod "cosmossdk.io/errors" diff --git a/crypto/keys/ed25519/ed25519_test.go b/crypto/keys/ed25519/ed25519_test.go index 2fbee6289c..70956aa48c 100644 --- a/crypto/keys/ed25519/ed25519_test.go +++ b/crypto/keys/ed25519/ed25519_test.go @@ -5,8 +5,8 @@ import ( "encoding/base64" "testing" - "github.com/cometbft/cometbft/v2/crypto" - tmed25519 "github.com/cometbft/cometbft/v2/crypto/ed25519" + "github.com/cometbft/cometbft/crypto" + tmed25519 "github.com/cometbft/cometbft/crypto/ed25519" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/crypto/keys/internal/ecdsa/privkey_internal_test.go b/crypto/keys/internal/ecdsa/privkey_internal_test.go index 5106b42600..4dced3c989 100644 --- a/crypto/keys/internal/ecdsa/privkey_internal_test.go +++ b/crypto/keys/internal/ecdsa/privkey_internal_test.go @@ -7,7 +7,7 @@ import ( "math/big" "testing" - "github.com/cometbft/cometbft/v2/crypto" + "github.com/cometbft/cometbft/crypto" "github.com/stretchr/testify/suite" ) diff --git a/crypto/keys/internal/ecdsa/pubkey.go b/crypto/keys/internal/ecdsa/pubkey.go index 3067703276..1141baebec 100644 --- a/crypto/keys/internal/ecdsa/pubkey.go +++ b/crypto/keys/internal/ecdsa/pubkey.go @@ -7,7 +7,7 @@ import ( "fmt" "math/big" - cmtcrypto "github.com/cometbft/cometbft/v2/crypto" + cmtcrypto "github.com/cometbft/cometbft/crypto" errorsmod "cosmossdk.io/errors" diff --git a/crypto/keys/multisig/codec.go b/crypto/keys/multisig/codec.go index 30c3cf810f..09cde8b67e 100644 --- a/crypto/keys/multisig/codec.go +++ b/crypto/keys/multisig/codec.go @@ -1,10 +1,8 @@ package multisig import ( - "github.com/cometbft/cometbft/v2/crypto/bls12381" - "github.com/cosmos/cosmos-sdk/codec" - bls12_381 "github.com/cosmos/cosmos-sdk/crypto/keys/bls12_381" + // bls12_381 "github.com/cosmos/cosmos-sdk/crypto/keys/bls12_381" "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" @@ -12,6 +10,7 @@ import ( // TODO: Figure out API for others to either add their own pubkey types, or // to make verify / marshal accept a AminoCdc. + const ( PubKeyAminoRoute = "tendermint/PubKeyMultisigThreshold" ) @@ -26,8 +25,9 @@ func init() { ed25519.PubKeyName, nil) AminoCdc.RegisterConcrete(&secp256k1.PubKey{}, secp256k1.PubKeyName, nil) - AminoCdc.RegisterConcrete(&bls12_381.PubKey{}, - bls12381.PubKeyName, nil) + // TODO: add back in once comet supports again + // aminoCdc.RegisterConcrete(&bls12_381.PubKey{}, + // bls12381.PubKeyName, nil) AminoCdc.RegisterConcrete(&LegacyAminoPubKey{}, PubKeyAminoRoute, nil) } diff --git a/crypto/keys/multisig/multisig.go b/crypto/keys/multisig/multisig.go index 005711edaa..dbe8688140 100644 --- a/crypto/keys/multisig/multisig.go +++ b/crypto/keys/multisig/multisig.go @@ -3,7 +3,7 @@ package multisig import ( fmt "fmt" - cmtcrypto "github.com/cometbft/cometbft/v2/crypto" + cmtcrypto "github.com/cometbft/cometbft/crypto" "github.com/cosmos/cosmos-sdk/codec/types" cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" diff --git a/crypto/keys/secp256k1/secp256k1.go b/crypto/keys/secp256k1/secp256k1.go index cd5dfb0083..377e40e65f 100644 --- a/crypto/keys/secp256k1/secp256k1.go +++ b/crypto/keys/secp256k1/secp256k1.go @@ -8,7 +8,7 @@ import ( "io" "math/big" - "github.com/cometbft/cometbft/v2/crypto" + "github.com/cometbft/cometbft/crypto" secp256k1 "github.com/decred/dcrd/dcrec/secp256k1/v4" "golang.org/x/crypto/ripemd160" //nolint // using just for backwards compat diff --git a/crypto/keys/secp256k1/secp256k1_cgo.go b/crypto/keys/secp256k1/secp256k1_cgo.go index 295d5f3048..050cc1b213 100644 --- a/crypto/keys/secp256k1/secp256k1_cgo.go +++ b/crypto/keys/secp256k1/secp256k1_cgo.go @@ -4,7 +4,7 @@ package secp256k1 import ( - "github.com/cometbft/cometbft/v2/crypto" + "github.com/cometbft/cometbft/crypto" "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1/internal/secp256k1" ) diff --git a/crypto/keys/secp256k1/secp256k1_nocgo.go b/crypto/keys/secp256k1/secp256k1_nocgo.go index e9b435e1be..bad10212b6 100644 --- a/crypto/keys/secp256k1/secp256k1_nocgo.go +++ b/crypto/keys/secp256k1/secp256k1_nocgo.go @@ -6,7 +6,7 @@ package secp256k1 import ( "errors" - "github.com/cometbft/cometbft/v2/crypto" + "github.com/cometbft/cometbft/crypto" secp256k1 "github.com/decred/dcrd/dcrec/secp256k1/v4" "github.com/decred/dcrd/dcrec/secp256k1/v4/ecdsa" ) diff --git a/crypto/keys/secp256k1/secp256k1_test.go b/crypto/keys/secp256k1/secp256k1_test.go index 4dd0196830..2037a5ebb8 100644 --- a/crypto/keys/secp256k1/secp256k1_test.go +++ b/crypto/keys/secp256k1/secp256k1_test.go @@ -7,8 +7,8 @@ import ( "math/big" "testing" - "github.com/cometbft/cometbft/v2/crypto" - tmsecp256k1 "github.com/cometbft/cometbft/v2/crypto/secp256k1" + "github.com/cometbft/cometbft/crypto" + tmsecp256k1 "github.com/cometbft/cometbft/crypto/secp256k1" "github.com/cosmos/btcutil/base58" secp "github.com/decred/dcrd/dcrec/secp256k1/v4" btcecdsa "github.com/decred/dcrd/dcrec/secp256k1/v4/ecdsa" diff --git a/crypto/keys/secp256r1/privkey_internal_test.go b/crypto/keys/secp256r1/privkey_internal_test.go index 615b5661f2..52ea3239da 100644 --- a/crypto/keys/secp256r1/privkey_internal_test.go +++ b/crypto/keys/secp256r1/privkey_internal_test.go @@ -3,7 +3,7 @@ package secp256r1 import ( "testing" - "github.com/cometbft/cometbft/v2/crypto" + "github.com/cometbft/cometbft/crypto" "github.com/cosmos/gogoproto/proto" "github.com/stretchr/testify/suite" diff --git a/crypto/keys/secp256r1/pubkey.go b/crypto/keys/secp256r1/pubkey.go index 8890e30d7a..4cd1b8be31 100644 --- a/crypto/keys/secp256r1/pubkey.go +++ b/crypto/keys/secp256r1/pubkey.go @@ -3,7 +3,7 @@ package secp256r1 import ( "encoding/base64" - cmtcrypto "github.com/cometbft/cometbft/v2/crypto" + cmtcrypto "github.com/cometbft/cometbft/crypto" "github.com/cosmos/gogoproto/proto" errorsmod "cosmossdk.io/errors" diff --git a/crypto/ledger/encode_test.go b/crypto/ledger/encode_test.go index 8a519cdff0..6f28dfa169 100644 --- a/crypto/ledger/encode_test.go +++ b/crypto/ledger/encode_test.go @@ -32,9 +32,11 @@ func ExamplePrintRegisteredTypes() { //nolint:govet // ignore for examples // | ---- | ---- | ------ | ----- | ------ | // | PrivKeyLedgerSecp256k1 | tendermint/PrivKeyLedgerSecp256k1 | 0x10CAB393 | variable | | // | PubKey | tendermint/PubKeyEd25519 | 0x1624DE64 | variable | | + // | PubKey | tendermint/PubKeySr25519 | 0x0DFB1005 | variable | | // | PubKey | tendermint/PubKeySecp256k1 | 0xEB5AE987 | variable | | // | PubKeyMultisigThreshold | tendermint/PubKeyMultisigThreshold | 0x22C1F7E2 | variable | | // | PrivKey | tendermint/PrivKeyEd25519 | 0xA3288910 | variable | | + // | PrivKey | tendermint/PrivKeySr25519 | 0x2F82D78B | variable | | // | PrivKey | tendermint/PrivKeySecp256k1 | 0xE1B0F79B | variable | | } */ diff --git a/crypto/ledger/ledger_mock.go b/crypto/ledger/ledger_mock.go index ac273c958e..b67b53b053 100644 --- a/crypto/ledger/ledger_mock.go +++ b/crypto/ledger/ledger_mock.go @@ -7,7 +7,7 @@ import ( "errors" "fmt" - "github.com/cometbft/cometbft/v2/crypto" + "github.com/cometbft/cometbft/crypto" "github.com/cosmos/go-bip39" secp "github.com/decred/dcrd/dcrec/secp256k1/v4" "github.com/decred/dcrd/dcrec/secp256k1/v4/ecdsa" diff --git a/crypto/types/types.go b/crypto/types/types.go index d5980bc2be..12fc6e3954 100644 --- a/crypto/types/types.go +++ b/crypto/types/types.go @@ -1,7 +1,7 @@ package types import ( - cmtcrypto "github.com/cometbft/cometbft/v2/crypto" + cmtcrypto "github.com/cometbft/cometbft/crypto" proto "github.com/cosmos/gogoproto/proto" ) diff --git a/depinject/go.mod b/depinject/go.mod index bbf951d1d2..58987947f4 100644 --- a/depinject/go.mod +++ b/depinject/go.mod @@ -7,7 +7,7 @@ require ( github.com/cosmos/gogoproto v1.7.0 github.com/stretchr/testify v1.11.1 google.golang.org/grpc v1.75.0 - google.golang.org/protobuf v1.36.7 + google.golang.org/protobuf v1.36.8 gotest.tools/v3 v3.5.2 sigs.k8s.io/yaml v1.6.0 ) diff --git a/depinject/go.sum b/depinject/go.sum index 0fff999be1..3b2e843cf8 100644 --- a/depinject/go.sum +++ b/depinject/go.sum @@ -53,8 +53,8 @@ google.golang.org/genproto/googleapis/rpc v0.0.0-20250528174236-200df99c418a h1: google.golang.org/genproto/googleapis/rpc v0.0.0-20250528174236-200df99c418a/go.mod h1:qQ0YXyHHx3XkvlzUtpXDkS29lDSafHMZBAZDc03LQ3A= google.golang.org/grpc v1.67.1 h1:zWnc1Vrcno+lHZCOofnIMvycFcc0QRGIzm9dhnDX68E= google.golang.org/grpc v1.67.1/go.mod h1:1gLDyUQU7CTLJI90u3nXZ9ekeghjeM7pTDZlqFNg2AA= -google.golang.org/protobuf v1.36.7 h1:IgrO7UwFQGJdRNXH/sQux4R1Dj1WAKcLElzeeRaXV2A= -google.golang.org/protobuf v1.36.7/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY= +google.golang.org/protobuf v1.36.8 h1:xHScyCOEuuwZEc6UtSOvPbAT4zRh0xcNRYekJwfqyMc= +google.golang.org/protobuf v1.36.8/go.mod h1:fuxRtAxBytpl4zzqUh6/eyUujkJdNiuEkXntxiD/uRU= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= diff --git a/docs/architecture/adr-038-state-listening.md b/docs/architecture/adr-038-state-listening.md index 63f2ec163c..319d872be3 100644 --- a/docs/architecture/adr-038-state-listening.md +++ b/docs/architecture/adr-038-state-listening.md @@ -7,7 +7,7 @@ * 10/14/2022: * Add `ListenCommit`, flatten the state writes in a block to a single batch. * Remove listeners from cache stores, should only listen to `rootmulti.Store`. - * Remove `HaltAppOnDeliveryError()`, the errors are propagated by default, the implementations should return nil if they don't want to propagate errors. + * Remove `HaltAppOnDeliveryError()`, the errors are propagated by default, the implementations should return nil if don't want to propogate errors. * 26/05/2023: Update with ABCI 2.0 ## Status @@ -20,7 +20,7 @@ This ADR defines a set of changes to enable listening to state changes of indivi ## Context -Currently, KVStore data can be remotely accessed through [Queries](https://docs.cosmos.network/main/build/building-modules/messages-and-queries#queries) +Currently, KVStore data can be remotely accessed through [Queries](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules/messages-and-queries.md#queries) which proceed either through Tendermint and the ABCI, or through the gRPC server. In addition to these request/response queries, it would be beneficial to have a means of listening to state changes as they occur in real time. @@ -40,7 +40,7 @@ type MemoryListener struct { stateCache []StoreKVPair } -// NewMemoryListener creates a listener that accumulates the state writes in memory. +// NewMemoryListener creates a listener that accumulate the state writes in memory. func NewMemoryListener() *MemoryListener { return &MemoryListener{} } @@ -114,7 +114,7 @@ func (s *Store) Delete(key []byte) { ### MultiStore interface updates -We will update the `CommitMultiStore` interface to allow us to wrap a `MemoryListener` to a specific `KVStore`. +We will update the `CommitMultiStore` interface to allow us to wrap a `Memorylistener` to a specific `KVStore`. Note that the `MemoryListener` will be attached internally by the concrete `rootmulti` implementation. ```go @@ -224,9 +224,9 @@ so that the service can group the state changes with the ABCI requests. // ABCIListener is the interface that we're exposing as a streaming service. type ABCIListener interface { // ListenFinalizeBlock updates the streaming service with the latest FinalizeBlock messages - ListenFinalizeBlock(ctx context.Context, req abci.FinalizeBlockRequest, res abci.FinalizeBlockResponse) error - // ListenCommit updates the streaming service with the latest Commit messages and state changes - ListenCommit(ctx context.Context, res abci.CommitResponse, changeSet []*StoreKVPair) error + ListenFinalizeBlock(ctx context.Context, req abci.RequestFinalizeBlock, res abci.ResponseFinalizeBlock) error + // ListenCommit updates the steaming service with the latest Commit messages and state changes + ListenCommit(ctx context.Context, res abci.ResponseCommit, changeSet []*StoreKVPair) error } ``` @@ -267,16 +267,16 @@ We will modify the `FinalizeBlock` and `Commit` methods to pass ABCI requests an to any streaming service hooks registered with the `BaseApp`. ```go -func (app *BaseApp) FinalizeBlock(req abci.FinalizeBlockRequest) abci.FinalizeBlockResponse { +func (app *BaseApp) FinalizeBlock(req abci.RequestFinalizeBlock) abci.ResponseFinalizeBlock { - var abciRes abci.FinalizeBlockResponse + var abciRes abci.ResponseFinalizeBlock defer func() { // call the streaming service hook with the FinalizeBlock messages for _, abciListener := range app.abciListeners { ctx := app.finalizeState.ctx blockHeight := ctx.BlockHeight() if app.abciListenersAsync { - go func(req abci.FinalizeBlockRequest, res abci.FinalizeBlockResponse) { + go func(req abci.RequestFinalizeBlock, res abci.ResponseFinalizeBlock) { if err := app.abciListener.FinalizeBlock(blockHeight, req, res); err != nil { app.logger.Error("FinalizeBlock listening hook failed", "height", blockHeight, "err", err) } @@ -299,11 +299,11 @@ func (app *BaseApp) FinalizeBlock(req abci.FinalizeBlockRequest) abci.FinalizeBl ``` ```go -func (app *BaseApp) Commit() abci.CommitResponse { +func (app *BaseApp) Commit() abci.ResponseCommit { ... - res := abci.CommitResponse{ + res := abci.ResponseCommit{ Data: commitID.Hash, RetainHeight: retainHeight, } @@ -314,7 +314,7 @@ func (app *BaseApp) Commit() abci.CommitResponse { blockHeight := ctx.BlockHeight() changeSet := app.cms.PopStateCache() if app.abciListenersAsync { - go func(res abci.CommitResponse, changeSet []store.StoreKVPair) { + go func(res abci.ResponseCommit, changeSet []store.StoreKVPair) { if err := app.abciListener.ListenCommit(ctx, res, changeSet); err != nil { app.logger.Error("ListenCommit listening hook failed", "height", blockHeight, "err", err) } @@ -354,7 +354,7 @@ var Handshake = plugin.HandshakeConfig{ MagicCookieValue: "ef78114d-7bdf-411c-868f-347c99a78345", } -// ListenerPlugin is the base struct for all kinds of go-plugin implementations +// ListenerPlugin is the base struc for all kinds of go-plugin implementations // It will be included in interfaces of different Plugins type ABCIListenerPlugin struct { // GRPCPlugin must still implement the Plugin interface @@ -433,13 +433,13 @@ type GRPCClient struct { client ABCIListenerServiceClient } -func (m *GRPCClient) ListenFinalizeBlock(goCtx context.Context, req abci.FinalizeBlockRequest, res abci.FinalizeBlockResponse) error { +func (m *GRPCClient) ListenFinalizeBlock(goCtx context.Context, req abci.RequestFinalizeBlock, res abci.ResponseFinalizeBlock) error { ctx := sdk.UnwrapSDKContext(goCtx) _, err := m.client.ListenDeliverTx(ctx, &ListenDeliverTxRequest{BlockHeight: ctx.BlockHeight(), Req: req, Res: res}) return err } -func (m *GRPCClient) ListenCommit(goCtx context.Context, res abci.CommitResponse, changeSet []store.StoreKVPair) error { +func (m *GRPCClient) ListenCommit(goCtx context.Context, res abci.ResponseCommit, changeSet []store.StoreKVPair) error { ctx := sdk.UnwrapSDKContext(goCtx) _, err := m.client.ListenCommit(ctx, &ListenCommitRequest{BlockHeight: ctx.BlockHeight(), Res: res, ChangeSet: changeSet}) return err @@ -471,11 +471,11 @@ And the pre-compiled Go plugin `Impl`(*this is only used for plugins that are wr // ABCIListener is the implementation of the baseapp.ABCIListener interface type ABCIListener struct{} -func (m *ABCIListenerPlugin) ListenFinalizeBlock(ctx context.Context, req abci.FinalizeBlockRequest, res abci.FinalizeBlockResponse) error { +func (m *ABCIListenerPlugin) ListenFinalizeBlock(ctx context.Context, req abci.RequestFinalizeBlock, res abci.ResponseFinalizeBlock) error { // send data to external system } -func (m *ABCIListenerPlugin) ListenCommit(ctx context.Context, res abci.CommitResponse, changeSet []store.StoreKVPair) error { +func (m *ABCIListenerPlugin) ListenCommit(ctx context.Context, res abci.ResponseCommit, changeSet []store.StoreKVPair) error { // send data to external system } @@ -529,7 +529,7 @@ func NewStreamingPlugin(name string, logLevel string) (interface{}, error) { We propose a `RegisterStreamingPlugin` function for the App to register `NewStreamingPlugin`s with the App's BaseApp. Streaming plugins can be of `Any` type; therefore, the function takes in an interface vs a concrete type. -For example, we could have plugins of `ABCIListener`, `WasmListener` or `IBCListener`. Note that `RegisterStreamingPlugin` function +For example, we could have plugins of `ABCIListener`, `WasmListener` or `IBCListener`. Note that `RegisterStreamingPluing` function is helper function and not a requirement. Plugin registration can easily be moved from the App to the BaseApp directly. ```go @@ -720,5 +720,5 @@ These changes will provide a means of subscribing to KVStore state changes in re ### Neutral -* Introduces additional—but optional—complexity to configuring and running a cosmos application +* Introduces additional- but optional- complexity to configuring and running a cosmos application * If an application developer opts to use these features to expose data, they need to be aware of the ramifications/risks of that data exposure as it pertains to the specifics of their application diff --git a/docs/architecture/adr-040-storage-and-smt-state-commitments.md b/docs/architecture/adr-040-storage-and-smt-state-commitments.md index 6259e588f6..3a7bc2dd58 100644 --- a/docs/architecture/adr-040-storage-and-smt-state-commitments.md +++ b/docs/architecture/adr-040-storage-and-smt-state-commitments.md @@ -92,7 +92,7 @@ A new database snapshot will be created in every `EndBlocker` and identified by NOTE: `Commit` must be called exactly once per block. Otherwise we risk going out of sync for the version number and block height. NOTE: For the Cosmos SDK storage, we may consider splitting that interface into `Committer` and `PruningCommitter` - only the multiroot should implement `PruningCommitter` (cache and prefix store don't need pruning). -Number of historical versions for `abci.QueryRequest` and state sync snapshots is part of a node configuration, not a chain configuration (configuration implied by the blockchain consensus). A configuration should allow to specify number of past blocks and number of past blocks modulo some number (eg: 100 past blocks and one snapshot every 100 blocks for past 2000 blocks). Archival nodes can keep all past versions. +Number of historical versions for `abci.RequestQuery` and state sync snapshots is part of a node configuration, not a chain configuration (configuration implied by the blockchain consensus). A configuration should allow to specify number of past blocks and number of past blocks modulo some number (eg: 100 past blocks and one snapshot every 100 blocks for past 2000 blocks). Archival nodes can keep all past versions. Pruning old snapshots is effectively done by a database. Whenever we update a record in `SC`, SMT won't update nodes - instead it creates new nodes on the update path, without removing the old one. Since we are snapshotting each block, we need to change that mechanism to immediately remove orphaned nodes from the database. This is a safe operation - snapshots will keep track of the records and make it available when accessing past versions. @@ -100,8 +100,8 @@ To manage the active snapshots we will either use a DB _max number of snapshots_ #### Accessing old state versions -One of the functional requirements is to access old state. This is done through `abci.QueryRequest` structure. The version is specified by a block height (so we query for an object by a key `K` at block height `H`). The number of old versions supported for `abci.QueryRequest` is configurable. Accessing an old state is done by using available snapshots. -`abci.QueryRequest` doesn't need old state of `SC` unless the `prove=true` parameter is set. The SMT merkle proof must be included in the `abci.QueryResponse` only if both `SC` and `SS` have a snapshot for requested version. +One of the functional requirements is to access old state. This is done through `abci.RequestQuery` structure. The version is specified by a block height (so we query for an object by a key `K` at block height `H`). The number of old versions supported for `abci.RequestQuery` is configurable. Accessing an old state is done by using available snapshots. +`abci.RequestQuery` doesn't need old state of `SC` unless the `prove=true` parameter is set. The SMT merkle proof must be included in the `abci.ResponseQuery` only if both `SC` and `SS` have a snapshot for requested version. Moreover, Cosmos SDK could provide a way to directly access a historical state. However, a state machine shouldn't do that - since the number of snapshots is configurable, it would lead to nondeterministic execution. diff --git a/docs/architecture/adr-060-abci-1.0.md b/docs/architecture/adr-060-abci-1.0.md index 41e2230bc3..01928e7b9c 100644 --- a/docs/architecture/adr-060-abci-1.0.md +++ b/docs/architecture/adr-060-abci-1.0.md @@ -169,7 +169,7 @@ Instead, we will define an additional ABCI interface method on the existing or `EndBlock`. This new interface method will be defined as follows: ```go -ProcessProposal(sdk.Context, abci.ProcessProposalRequest) error {} +ProcessProposal(sdk.Context, abci.RequestProcessProposal) error {} ``` Note, we must call `ProcessProposal` with a new internal branched state on the diff --git a/docs/architecture/adr-064-abci-2.0.md b/docs/architecture/adr-064-abci-2.0.md index 4768962768..67187eb781 100644 --- a/docs/architecture/adr-064-abci-2.0.md +++ b/docs/architecture/adr-064-abci-2.0.md @@ -103,8 +103,8 @@ vote extensions. We propose the following new handlers for applications to implement: ```go -type ExtendVoteHandler func(sdk.Context, abci.ExtendVoteRequest) abci.ExtendVoteResponse -type VerifyVoteExtensionHandler func(sdk.Context, abci.VerifyVoteExtensionRequest) abci.VerifyVoteExtensionResponse +type ExtendVoteHandler func(sdk.Context, abci.RequestExtendVote) abci.ResponseExtendVote +type VerifyVoteExtensionHandler func(sdk.Context, abci.RequestVerifyVoteExtension) abci.ResponseVerifyVoteExtension ``` An ephemeral context and state will be supplied to both handlers. The @@ -144,7 +144,7 @@ type VoteExtensionHandler struct { // ExtendVoteHandler can do something with h.mk and possibly h.state to create // a vote extension, such as fetching a series of prices for supported assets. -func (h VoteExtensionHandler) ExtendVoteHandler(ctx sdk.Context, req abci.ExtendVoteRequest) abci.ExtendVoteResponse { +func (h VoteExtensionHandler) ExtendVoteHandler(ctx sdk.Context, req abci.RequestExtendVote) abci.ResponseExtendVote { prices := GetPrices(ctx, h.mk.Assets()) bz, err := EncodePrices(h.cdc, prices) if err != nil { @@ -156,22 +156,22 @@ func (h VoteExtensionHandler) ExtendVoteHandler(ctx sdk.Context, req abci.Extend // NOTE: Vote extensions can be overridden since we can timeout in a round. SetPrices(h.state, req, bz) - return abci.ExtendVoteResponse{VoteExtension: bz} + return abci.ResponseExtendVote{VoteExtension: bz} } // VerifyVoteExtensionHandler can do something with h.state and req to verify // the req.VoteExtension field, such as ensuring the provided oracle prices are // within some valid range of our prices. -func (h VoteExtensionHandler) VerifyVoteExtensionHandler(ctx sdk.Context, req abci.VerifyVoteExtensionRequest) abci.VerifyVoteExtensionResponse { +func (h VoteExtensionHandler) VerifyVoteExtensionHandler(ctx sdk.Context, req abci.RequestVerifyVoteExtension) abci.ResponseVerifyVoteExtension { prices, err := DecodePrices(h.cdc, req.VoteExtension) if err != nil { log("failed to decode vote extension", "err", err) - return abci.VerifyVoteExtensionResponse{Status: REJECT} + return abci.ResponseVerifyVoteExtension{Status: REJECT} } if err := ValidatePrices(h.state, req, prices); err != nil { log("failed to validate vote extension", "prices", prices, "err", err) - return abci.VerifyVoteExtensionResponse{Status: REJECT} + return abci.ResponseVerifyVoteExtension{Status: REJECT} } // store updated vote extensions at the given height @@ -179,7 +179,7 @@ func (h VoteExtensionHandler) VerifyVoteExtensionHandler(ctx sdk.Context, req ab // NOTE: Vote extensions can be overridden since we can timeout in a round. SetPrices(h.state, req, req.VoteExtension) - return abci.VerifyVoteExtensionResponse{Status: ACCEPT} + return abci.ResponseVerifyVoteExtension{Status: ACCEPT} } ``` @@ -301,7 +301,7 @@ during `ProcessProposal` because during replay, CometBFT will NOT call `ProcessP which would result in an incomplete state view. ```go -func (a MyApp) PreBlocker(ctx sdk.Context, req *abci.FinalizeBlockRequest) error { +func (a MyApp) PreBlocker(ctx sdk.Context, req *abci.RequestFinalizeBlock) error { voteExts := GetVoteExtensions(ctx, req.Txs) // Process and perform some compute on vote extensions, storing any resulting @@ -350,7 +350,7 @@ legacy ABCI types, e.g. `LegacyBeginBlockRequest` and `LegacyEndBlockRequest`. O we can come up with new types and names altogether. ```go -func (app *BaseApp) FinalizeBlock(req abci.FinalizeBlockRequest) (*abci.FinalizeBlockResponse, error) { +func (app *BaseApp) FinalizeBlock(req abci.RequestFinalizeBlock) (*abci.ResponseFinalizeBlock, error) { ctx := ... if app.preBlocker != nil { @@ -375,7 +375,7 @@ func (app *BaseApp) FinalizeBlock(req abci.FinalizeBlockRequest) (*abci.Finalize endBlockResp, err := app.endBlock(app.finalizeBlockState.ctx) appendBlockEventAttr(beginBlockResp.Events, "end_block") - return abci.FinalizeBlockResponse{ + return abci.ResponseFinalizeBlock{ TxResults: txExecResults, Events: joinEvents(beginBlockResp.Events, endBlockResp.Events), ValidatorUpdates: endBlockResp.ValidatorUpdates, diff --git a/docs/docs/build/abci/03-vote-extensions.md b/docs/docs/build/abci/03-vote-extensions.md index a57395e303..f3744660ae 100644 --- a/docs/docs/build/abci/03-vote-extensions.md +++ b/docs/docs/build/abci/03-vote-extensions.md @@ -11,7 +11,7 @@ ABCI 2.0 (colloquially called ABCI++) allows an application to extend a pre-comm validator process. The Cosmos SDK defines [`baseapp.ExtendVoteHandler`](https://github.com/cosmos/cosmos-sdk/blob/v0.53.0/types/abci.go#L32): ```go -type ExtendVoteHandler func(Context, *abci.ExtendVoteRequest) (*abci.ExtendVoteResponse, error) +type ExtendVoteHandler func(Context, *abci.RequestExtendVote) (*abci.ResponseExtendVote, error) ``` An application can set this handler in `app.go` via the `baseapp.SetExtendVoteHandler` @@ -38,7 +38,7 @@ other validators when validating their pre-commits. For a given vote extension, this process MUST be deterministic. The Cosmos SDK defines [`sdk.VerifyVoteExtensionHandler`](https://github.com/cosmos/cosmos-sdk/blob/v0.50.1/types/abci.go#L29-L31): ```go -type VerifyVoteExtensionHandler func(Context, *abci.VerifyVoteExtensionRequest) (*abci.VerifyVoteExtensionResponse, error) +type VerifyVoteExtensionHandler func(Context, *abci.RequestVerifyVoteExtension) (*abci.ResponseVerifyVoteExtension, error) ``` An application can set this handler in `app.go` via the `baseapp.SetVerifyVoteExtensionHandler` @@ -78,7 +78,7 @@ will be available to the application during the subsequent `FinalizeBlock` call. An example of how a pre-FinalizeBlock hook could look like is shown below: ```go -app.SetPreBlocker(func(ctx sdk.Context, req *abci.FinalizeBlockRequest) error { +app.SetPreBlocker(func(ctx sdk.Context, req *abci.RequestFinalizeBlock) error { allVEs := []VE{} // store all parsed vote extensions here for _, tx := range req.Txs { // define a custom function that tries to parse the tx as a vote extension diff --git a/docs/docs/build/building-apps/04-vote-extensions.md b/docs/docs/build/building-apps/04-vote-extensions.md index f20ebde66c..976e216548 100644 --- a/docs/docs/build/building-apps/04-vote-extensions.md +++ b/docs/docs/build/building-apps/04-vote-extensions.md @@ -16,7 +16,7 @@ process does NOT have to be deterministic, and the data returned can be unique t validator process. The Cosmos SDK defines `baseapp.ExtendVoteHandler`: ```go -type ExtendVoteHandler func(Context, *abci.ExtendVoteRequest) (*abci.ExtendVoteResponse, error) +type ExtendVoteHandler func(Context, *abci.RequestExtendVote) (*abci.ResponseExtendVote, error) ``` An application can set this handler in `app.go` via the `baseapp.SetExtendVoteHandler` @@ -77,7 +77,7 @@ will be available to the application during the subsequent `FinalizeBlock` call. An example of how a pre-FinalizeBlock hook could look is shown below: ```go -app.SetPreBlocker(func(ctx sdk.Context, req *abci.FinalizeBlockRequest) error { +app.SetPreBlocker(func(ctx sdk.Context, req *abci.RequestFinalizeBlock) error { allVEs := []VE{} // store all parsed vote extensions here for _, tx := range req.Txs { // define a custom function that tries to parse the tx as a vote extension diff --git a/docs/docs/build/building-modules/01-module-manager.md b/docs/docs/build/building-modules/01-module-manager.md index ee2a83a807..15a6e72433 100644 --- a/docs/docs/build/building-modules/01-module-manager.md +++ b/docs/docs/build/building-modules/01-module-manager.md @@ -302,7 +302,7 @@ The module manager is used throughout the application whenever an action on a co * `SetOrderMigrations(moduleNames ...string)`: Sets the order of migrations to be run. If not set then migrations will be run with an order defined in `DefaultMigrationsOrder`. * `RegisterInvariants(ir sdk.InvariantRegistry)`: Registers the [invariants](./07-invariants.md) of module implementing the `HasInvariants` interface. * `RegisterServices(cfg Configurator)`: Registers the services of modules implementing the `HasServices` interface. -* `InitGenesis(ctx context.Context, cdc codec.JSONCodec, genesisData map[string]json.RawMessage)`: Calls the [`InitGenesis`](./08-genesis.md#initgenesis) function of each module when the application is first started, in the order defined in `OrderInitGenesis`. Returns an `abci.InitChainResponse` to the underlying consensus engine, which can contain validator updates. +* `InitGenesis(ctx context.Context, cdc codec.JSONCodec, genesisData map[string]json.RawMessage)`: Calls the [`InitGenesis`](./08-genesis.md#initgenesis) function of each module when the application is first started, in the order defined in `OrderInitGenesis`. Returns an `abci.ResponseInitChain` to the underlying consensus engine, which can contain validator updates. * `ExportGenesis(ctx context.Context, cdc codec.JSONCodec)`: Calls the [`ExportGenesis`](./08-genesis.md#exportgenesis) function of each module, in the order defined in `OrderExportGenesis`. The export constructs a genesis file from a previously existing state, and is mainly used when a hard-fork upgrade of the chain is required. * `ExportGenesisForModules(ctx context.Context, cdc codec.JSONCodec, modulesToExport []string)`: Behaves the same as `ExportGenesis`, except takes a list of modules to export. * `BeginBlock(ctx context.Context) error`: At the beginning of each block, this function is called from [`BaseApp`](../../learn/advanced/00-baseapp.md#beginblock) and, in turn, calls the [`BeginBlock`](./06-beginblock-endblock.md) function of each modules implementing the `appmodule.HasBeginBlocker` interface, in the order defined in `OrderBeginBlockers`. It creates a child [context](../../learn/advanced/02-context.md) with an event manager to aggregate [events](../../learn/advanced/08-events.md) emitted from each modules. diff --git a/docs/docs/build/building-modules/02-messages-and-queries.md b/docs/docs/build/building-modules/02-messages-and-queries.md index e6048c313a..573c35cd77 100644 --- a/docs/docs/build/building-modules/02-messages-and-queries.md +++ b/docs/docs/build/building-modules/02-messages-and-queries.md @@ -39,15 +39,15 @@ https://github.com/cosmos/cosmos-sdk/blob/v0.50.0-alpha.0/proto/cosmos/bank/v1be ### `sdk.Msg` Interface -`sdk.Msg` is an alias of `proto.Message`. +`sdk.Msg` is a alias of `proto.Message`. -To attach a `ValidateBasic()` method to a message then you must add methods to the type adhering to the `HasValidateBasic`. +To attach a `ValidateBasic()` method to a message then you must add methods to the type adhereing to the `HasValidateBasic`. ```go reference https://github.com/cosmos/cosmos-sdk/blob/9c1e8b247cd47b5d3decda6e86fbc3bc996ee5d7/types/tx_msg.go#L84-L88 ``` -In 0.50+ signers from the `GetSigners()` call are automated via a protobuf annotation. +In 0.50+ signers from the `GetSigners()` call is automated via a protobuf annotation. Read more about the signer field [here](./05-protobuf-annotations.md). @@ -120,7 +120,7 @@ where: * `queryType` is used by the module's [`querier`](./04-query-services.md#legacy-queriers) to map the `query` to the appropriate `querier function` within the module. * `args` are the actual arguments needed to process the `query`. They are filled out by the end-user. Note that for bigger queries, you might prefer passing arguments in the `Data` field of the request `req` instead of the `path`. -The `path` for each `query` must be defined by the module developer in the module's [command-line interface file](./09-module-interfaces.md#query-commands). Overall, there are 3 mains components module developers need to implement in order to make the subset of the state defined by their module queryable: +The `path` for each `query` must be defined by the module developer in the module's [command-line interface file](./09-module-interfaces.md#query-commands).Overall, there are 3 mains components module developers need to implement in order to make the subset of the state defined by their module queryable: * A [`querier`](./04-query-services.md#legacy-queriers), to process the `query` once it has been [routed to the module](../../learn/advanced/00-baseapp.md#query-routing). * [Query commands](./09-module-interfaces.md#query-commands) in the module's CLI file, where the `path` for each `query` is specified. @@ -128,7 +128,7 @@ The `path` for each `query` must be defined by the module developer in the modul ### Store Queries -Store queries access store keys directly. They use `clientCtx.QueryABCI(req abci.QueryRequest)` to return the full `abci.QueryResponse` with inclusion Merkle proofs. +Store queries query directly for store keys. They use `clientCtx.QueryABCI(req abci.RequestQuery)` to return the full `abci.ResponseQuery` with inclusion Merkle proofs. See following examples: diff --git a/docs/docs/learn/advanced/00-baseapp.md b/docs/docs/learn/advanced/00-baseapp.md index cb1f67ebd3..8a3d3a7cf0 100644 --- a/docs/docs/learn/advanced/00-baseapp.md +++ b/docs/docs/learn/advanced/00-baseapp.md @@ -264,7 +264,7 @@ Note that, unlike `CheckTx()`, `PrepareProposal` process `sdk.Msg`s, so it can d It's important to note that `PrepareProposal` complements the `ProcessProposal` method which is executed after this method. The combination of these two methods means that it is possible to guarantee that no invalid transactions are ever committed. Furthermore, such a setup can give rise to other interesting use cases such as Oracles, threshold decryption and more. -`PrepareProposal` returns a response to the underlying consensus engine of type [`abci.CheckTxResponse`](https://github.com/cometbft/cometbft/blob/v0.37.x/spec/abci/abci++_methods.md#processproposal). The response contains: +`PrepareProposal` returns a response to the underlying consensus engine of type [`abci.ResponseCheckTx`](https://github.com/cometbft/cometbft/blob/v0.37.x/spec/abci/abci++_methods.md#processproposal). The response contains: * `Code (uint32)`: Response Code. `0` if successful. * `Data ([]byte)`: Result bytes, if any. @@ -291,7 +291,7 @@ CometBFT calls it when it receives a proposal and the CometBFT algorithm has not However, developers must exercise greater caution when using these methods. Incorrectly coding these methods could affect liveness as CometBFT is unable to receive 2/3 valid precommits to finalize a block. -`ProcessProposal` returns a response to the underlying consensus engine of type [`abci.CheckTxResponse`](https://github.com/cometbft/cometbft/blob/v0.37.x/spec/abci/abci++_methods.md#processproposal). The response contains: +`ProcessProposal` returns a response to the underlying consensus engine of type [`abci.ResponseCheckTx`](https://github.com/cometbft/cometbft/blob/v0.37.x/spec/abci/abci++_methods.md#processproposal). The response contains: * `Code (uint32)`: Response Code. `0` if successful. * `Data ([]byte)`: Result bytes, if any. @@ -338,7 +338,7 @@ be rejected. In any case, the sender's account will not actually pay the fees un is actually included in a block, because `checkState` never gets committed to the main state. The `checkState` is reset to the latest state of the main state each time a blocks gets [committed](#commit). -`CheckTx` returns a response to the underlying consensus engine of type [`abci.CheckTxResponse`](https://github.com/cometbft/cometbft/blob/v0.37.x/spec/abci/abci++_methods.md#checktx). +`CheckTx` returns a response to the underlying consensus engine of type [`abci.ResponseCheckTx`](https://github.com/cometbft/cometbft/blob/v0.37.x/spec/abci/abci++_methods.md#checktx). The response contains: * `Code (uint32)`: Response Code. `0` if successful. @@ -432,7 +432,7 @@ The [`InitChain` ABCI message](https://github.com/cometbft/cometbft/blob/v0.37.x * [`checkState` and `finalizeBlockState`](#state-updates) via `setState`. * The [block gas meter](../beginner/04-gas-fees.md#block-gas-meter), with infinite gas to process genesis transactions. -Finally, the `InitChain(req abci.InitChainRequest)` method of `BaseApp` calls the [`initChainer()`](../beginner/00-app-anatomy.md#initchainer) of the application in order to initialize the main state of the application from the `genesis file` and, if defined, call the [`InitGenesis`](../../build/building-modules/08-genesis.md#initgenesis) function of each of the application's modules. +Finally, the `InitChain(req abci.RequestInitChain)` method of `BaseApp` calls the [`initChainer()`](../beginner/00-app-anatomy.md#initchainer) of the application in order to initialize the main state of the application from the `genesis file` and, if defined, call the [`InitGenesis`](../../build/building-modules/08-genesis.md#initgenesis) function of each of the application's modules. ### FinalizeBlock @@ -450,7 +450,7 @@ https://github.com/cosmos/cosmos-sdk/blob/v0.53.0/baseapp/abci.go#L869 #### BeginBlock -* Initialize [`finalizeBlockState`](#state-updates) with the latest header using the `req abci.FinalizeBlockRequest` passed as parameter via the `setState` function. +* Initialize [`finalizeBlockState`](#state-updates) with the latest header using the `req abci.RequestFinalizeBlock` passed as parameter via the `setState` function. ```go reference https://github.com/cosmos/cosmos-sdk/blob/v0.53.0/baseapp/baseapp.go#L746-L770 @@ -508,7 +508,7 @@ At the end of `FinalizeBlock`, the application returns a `ResponseFinalizeBlock` ### Commit -The [`Commit` ABCI message](https://github.com/cometbft/cometbft/blob/v0.37.x/spec/abci/abci++_basic_concepts.md#method-overview) is sent from the underlying CometBFT engine after the full-node has received _precommits_ from 2/3+ of validators (weighted by voting power). On the `BaseApp` end, the `Commit(res abci.CommitResponse)` function is implemented to commit all the valid state transitions that occurred during `FinalizeBlock` and to reset state for the next block. +The [`Commit` ABCI message](https://github.com/cometbft/cometbft/blob/v0.37.x/spec/abci/abci++_basic_concepts.md#method-overview) is sent from the underlying CometBFT engine after the full-node has received _precommits_ from 2/3+ of validators (weighted by voting power). On the `BaseApp` end, the `Commit(res abci.ResponseCommit)` function is implemented to commit all the valid state transitions that occurred during `FinalizeBlock` and to reset state for the next block. To commit state-transitions, the `Commit` function calls the `Write()` function on `finalizeBlockState.ms`, where `finalizeBlockState.ms` is a branched multistore of the main store `app.cms`. Then, the `Commit` function sets `checkState` to the latest header (obtained from `finalizeBlockState.ctx.BlockHeader`) and `finalizeBlockState` to `nil`. @@ -516,13 +516,13 @@ Finally, the `app_hash` that was returned in `ResponseFinalizeBlock` is now used ### Info -The [`Info` ABCI message](https://github.com/cometbft/cometbft/blob/v0.37.x/spec/abci/abci++_basic_concepts.md#info-methods) is a simple query from the underlying consensus engine, notably used to sync the latter with the application during a handshake that happens on startup. When called, the `Info(res abci.InfoResponse)` function from `BaseApp` will return the application's name, version and the hash of the last commit of `app.cms`. +The [`Info` ABCI message](https://github.com/cometbft/cometbft/blob/v0.37.x/spec/abci/abci++_basic_concepts.md#info-methods) is a simple query from the underlying consensus engine, notably used to sync the latter with the application during a handshake that happens on startup. When called, the `Info(res abci.ResponseInfo)` function from `BaseApp` will return the application's name, version and the hash of the last commit of `app.cms`. ### Query The [`Query` ABCI message](https://github.com/cometbft/cometbft/blob/v0.37.x/spec/abci/abci++_basic_concepts.md#info-methods) is used to serve queries received from the underlying consensus engine, including queries received via RPC like CometBFT RPC. It used to be the main entrypoint to build interfaces with the application, but with the introduction of [gRPC queries](../../build/building-modules/04-query-services.md) in Cosmos SDK v0.40, its usage is more limited. The application must respect a few rules when implementing the `Query` method, which are outlined [here](https://github.com/cometbft/cometbft/blob/v0.37.x/spec/abci/abci++_app_requirements.md#query). -Each CometBFT `query` comes with a `path`, which is a `string` which denotes what to query. If the `path` matches a gRPC fully-qualified service method, then `BaseApp` will defer the query to the `grpcQueryRouter` and let it handle it like explained [above](#grpc-query-router). Otherwise, the `path` represents a query that is not (yet) handled by the gRPC router. `BaseApp` splits the `path` string with the `/` delimiter. By convention, the first element of the split string (`split[0]`) contains the category of `query` (`app`, `p2p`, `store` or `custom` ). The `BaseApp` implementation of the `Query(req abci.QueryRequest)` method is a simple dispatcher serving these 4 main categories of queries: +Each CometBFT `query` comes with a `path`, which is a `string` which denotes what to query. If the `path` matches a gRPC fully-qualified service method, then `BaseApp` will defer the query to the `grpcQueryRouter` and let it handle it like explained [above](#grpc-query-router). Otherwise, the `path` represents a query that is not (yet) handled by the gRPC router. `BaseApp` splits the `path` string with the `/` delimiter. By convention, the first element of the split string (`split[0]`) contains the category of `query` (`app`, `p2p`, `store` or `custom` ). The `BaseApp` implementation of the `Query(req abci.RequestQuery)` method is a simple dispatcher serving these 4 main categories of queries: * Application-related queries like querying the application's version, which are served via the `handleQueryApp` method. * Direct queries to the multistore, which are served by the `handlerQueryStore` method. These direct queries are different from custom queries which go through `app.queryRouter`, and are mainly used by third-party service provider like block explorers. diff --git a/docs/docs/learn/advanced/15-upgrade.md b/docs/docs/learn/advanced/15-upgrade.md index 3a106efa0e..46c84d2be1 100644 --- a/docs/docs/learn/advanced/15-upgrade.md +++ b/docs/docs/learn/advanced/15-upgrade.md @@ -103,7 +103,7 @@ if upgradeInfo.Name == "my-plan" && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo. When starting a new chain, the consensus version of each module MUST be saved to state during the application's genesis. To save the consensus version, add the following line to the `InitChainer` method in `app.go`: ```diff -func (app *MyApp) InitChainer(ctx sdk.Context, req abci.InitChainRequest) abci.InitChainResponse { +func (app *MyApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain { ... + app.UpgradeKeeper.SetModuleVersionMap(ctx, app.mm.GetVersionMap()) ... diff --git a/docs/docs/learn/beginner/01-tx-lifecycle.md b/docs/docs/learn/beginner/01-tx-lifecycle.md index b004b355b7..b2e821e9f8 100644 --- a/docs/docs/learn/beginner/01-tx-lifecycle.md +++ b/docs/docs/learn/beginner/01-tx-lifecycle.md @@ -71,9 +71,9 @@ The command-line is an easy way to interact with an application, but `Tx` can al ## Addition to Mempool -Each full-node (running CometBFT) that receives a `Tx` sends an [ABCI message](https://docs.cometbft.com/v0.37/spec/p2p/legacy-docs/messages/), -`CheckTx`, to the application layer to check for validity, and receives an `abci.CheckTxResponse`. If the `Tx` passes the checks, it is held in the node's -[**Mempool**](https://docs.cometbft.com/v0.37/spec/p2p/legacy-docs/messages/mempool), an in-memory pool of transactions unique to each node, pending inclusion in a block - honest nodes discard a `Tx` if it is found to be invalid. Prior to consensus, nodes continuously check incoming transactions and gossip them to their peers. +Each full-node (running CometBFT) that receives a `Tx` sends an [ABCI message](https://docs.cometbft.com/v0.37/spec/p2p/messages/), +`CheckTx`, to the application layer to check for validity, and receives an `abci.ResponseCheckTx`. If the `Tx` passes the checks, it is held in the node's +[**Mempool**](https://docs.cometbft.com/v0.37/spec/p2p/messages/mempool/), an in-memory pool of transactions unique to each node, pending inclusion in a block - honest nodes discard a `Tx` if it is found to be invalid. Prior to consensus, nodes continuously check incoming transactions and gossip them to their peers. ### Types of Checks @@ -98,7 +98,7 @@ through several steps, beginning with decoding `Tx`. ### Decoding -When `Tx` is received by the application from the underlying consensus engine (e.g. CometBFT), it is still in its [encoded](../advanced/05-encoding.md) `[]byte` form and needs to be unmarshaled in order to be processed. Then, the [`runTx`](../advanced/00-baseapp.md#runtx-antehandler-runmsgs-posthandler) function is called to run in `runTxModeCheck` mode, meaning the function runs all checks but exits before executing messages and writing state changes. +When `Tx` is received by the application from the underlying consensus engine (e.g. CometBFT ), it is still in its [encoded](../advanced/05-encoding.md) `[]byte` form and needs to be unmarshaled in order to be processed. Then, the [`runTx`](../advanced/00-baseapp.md#runtx-antehandler-runmsgs-posthandler) function is called to run in `runTxModeCheck` mode, meaning the function runs all checks but exits before executing messages and writing state changes. ### ValidateBasic (deprecated) @@ -113,7 +113,7 @@ Read [RFC 001](https://docs.cosmos.network/main/rfc/rfc-001-tx-validation) for m ::: :::note -`BaseApp` still calls `ValidateBasic` on messages that implement that method for backwards compatibility. +`BaseApp` still calls `ValidateBasic` on messages that implements that method for backwards compatibility. ::: #### Guideline @@ -126,10 +126,10 @@ Read [RFC 001](https://docs.cosmos.network/main/rfc/rfc-001-tx-validation) for m A copy of the cached context is provided to the `AnteHandler`, which performs limited checks specified for the transaction type. Using a copy allows the `AnteHandler` to do stateful checks for `Tx` without modifying the last committed state, and revert back to the original if the execution fails. -For example, the [`auth`](https://github.com/cosmos/cosmos-sdk/blob/main/x/auth/README.md) module `AnteHandler` checks and increments sequence numbers, checks signatures and account numbers, and deducts fees from the first signer of the transaction - all state changes are made using the `checkState`. +For example, the [`auth`](https://github.com/cosmos/cosmos-sdk/tree/main/x/auth/spec) module `AnteHandler` checks and increments sequence numbers, checks signatures and account numbers, and deducts fees from the first signer of the transaction - all state changes are made using the `checkState`. :::warning -Ante handlers only run on a transaction. If a transaction embeds multiple messages (like some x/authz, x/gov transactions for instance), the ante handlers only have awareness of the outer message. Inner messages are mostly directly routed to the [message router](https://docs.cosmos.network/main/learn/advanced/baseapp#msg-service-router) and will skip the chain of ante handlers. Keep that in mind when designing your own ante handler. +Ante handlers only run on a transaction. If a transaction embed multiple messages (like some x/authz, x/gov transactions for instance), the ante handlers only have awareness of the outer message. Inner messages are mostly directly routed to the [message router](https://docs.cosmos.network/main/learn/advanced/baseapp#msg-service-router) and will skip the chain of ante handlers. Keep that in mind when designing your own ante handler. ::: ### Gas @@ -230,7 +230,7 @@ to during consensus. Under the hood, transaction execution is almost identical t Instead of using their `checkState`, full-nodes use `finalizeblock`: * **Decoding:** Since `FinalizeBlock` is an ABCI call, `Tx` is received in the encoded `[]byte` form. - Nodes first unmarshal the transaction, using the [`TxConfig`](./00-app-anatomy.md#register-codec) defined in the app, then call `runTx` in `execModeFinalize`, which is very similar to `CheckTx` but also executes and writes state changes. + Nodes first unmarshal the transaction, using the [`TxConfig`](./app-anatomy#register-codec) defined in the app, then call `runTx` in `execModeFinalize`, which is very similar to `CheckTx` but also executes and writes state changes. * **Checks and `AnteHandler`:** Full-nodes call `validateBasicMsgs` and `AnteHandler` again. This second check happens because they may not have seen the same transactions during the addition to Mempool stage diff --git a/docs/docs/learn/beginner/02-query-lifecycle.md b/docs/docs/learn/beginner/02-query-lifecycle.md index 4b11bfed60..c3d7eb1ccc 100644 --- a/docs/docs/learn/beginner/02-query-lifecycle.md +++ b/docs/docs/learn/beginner/02-query-lifecycle.md @@ -17,7 +17,7 @@ This document describes the lifecycle of a query in a Cosmos SDK application, fr A [**query**](../../build/building-modules/02-messages-and-queries.md#queries) is a request for information made by end-users of applications through an interface and processed by a full-node. Users can query information about the network, the application itself, and application state directly from the application's stores or modules. Note that queries are different from [transactions](../advanced/01-transactions.md) (view the lifecycle [here](./01-tx-lifecycle.md)), particularly in that they do not require consensus to be processed (as they do not trigger state-transitions); they can be fully handled by one full-node. -For the purpose of explaining the query lifecycle, let's say the query, `MyQuery`, is requesting a list of delegations made by a certain delegator address in the application called `simapp`. As is to be expected, the [`staking`](../../../../x/staking/README.md) module handles this query. But first, there are a few ways `MyQuery` can be created by users. +For the purpose of explaining the query lifecycle, let's say the query, `MyQuery`, is requesting a list of delegations made by a certain delegator address in the application called `simapp`. As is to be expected, the [`staking`](../../build/modules/staking/README.md) module handles this query. But first, there are a few ways `MyQuery` can be created by users. ### CLI @@ -27,7 +27,7 @@ The main interface for an application is the command-line interface. Users conne simd query staking delegations ``` -This query command was defined by the [`staking`](../../../../x/staking/README.md) module developer and added to the list of subcommands by the application developer when creating the CLI. +This query command was defined by the [`staking`](../../build/modules/staking/README.md) module developer and added to the list of subcommands by the application developer when creating the CLI. Note that the general format is as follows: @@ -47,7 +47,7 @@ One such tool is [grpcurl](https://github.com/fullstorydev/grpcurl), and a gRPC ```bash grpcurl \ - -plaintext # We want results in plain text + -plaintext # We want results in plain test -import-path ./proto \ # Import these .proto files -proto ./proto/cosmos/staking/v1beta1/query.proto \ # Look into this .proto file for the Query protobuf service -d '{"address":"$MY_DELEGATOR"}' \ # Query arguments @@ -74,9 +74,9 @@ The preceding examples show how an external user can interact with a node by que The first thing that is created in the execution of a CLI command is a `client.Context`. A `client.Context` is an object that stores all the data needed to process a request on the user side. In particular, a `client.Context` stores the following: * **Codec**: The [encoder/decoder](../advanced/05-encoding.md) used by the application, used to marshal the parameters and query before making the CometBFT RPC request and unmarshal the returned response into a JSON object. The default codec used by the CLI is Protobuf. -* **Account Decoder**: The account decoder from the [`auth`](../../../../x/auth/README.md) module, which translates `[]byte`s into accounts. +* **Account Decoder**: The account decoder from the [`auth`](../../build/modules/auth/README.md) module, which translates `[]byte`s into accounts. * **RPC Client**: The CometBFT RPC Client, or node, to which requests are relayed. -* **Keyring**: A [Key Manager](../beginner/03-accounts.md#keyring) used to sign transactions and handle other operations with keys. +* **Keyring**: A [Key Manager]../beginner/03-accounts.md#keyring) used to sign transactions and handle other operations with keys. * **Output Writer**: A [Writer](https://pkg.go.dev/io/#Writer) used to output the response. * **Configurations**: The flags configured by the user for this command, including `--height`, specifying the height of the blockchain to query, and `--indent`, which indicates to add an indent to the JSON response. @@ -134,7 +134,7 @@ Once a result is received from the querier, `baseapp` begins the process of retu ## Response -Since `Query()` is an ABCI function, `baseapp` returns the response as an [`abci.QueryResponse`](https://docs.cometbft.com/main/spec/abci/abci++_methods#query) type. The `client.Context` `Query()` routine receives the response and processes it. +Since `Query()` is an ABCI function, `baseapp` returns the response as an [`abci.ResponseQuery`](https://docs.cometbft.com/master/spec/abci/abci.html#query-2) type. The `client.Context` `Query()` routine receives the response and. ### CLI Response diff --git a/docs/spec/store/README.md b/docs/spec/store/README.md index 3bf8b0e349..ec3573900e 100644 --- a/docs/spec/store/README.md +++ b/docs/spec/store/README.md @@ -156,7 +156,7 @@ state from each `KVStore` to disk and returning an application state Merkle root Queries can be performed to return state data along with associated state commitment proofs for both previous heights/versions and the current state root. Queries are routed based on store name, i.e. a module, along with other parameters -which are defined in `abci.QueryRequest`. +which are defined in `abci.RequestQuery`. The `rootmulti.Store` also provides primitives for pruning data at a given height/version from state storage. When a height is committed, the `rootmulti.Store` diff --git a/errors/go.mod b/errors/go.mod index 788220e780..a110a081c3 100644 --- a/errors/go.mod +++ b/errors/go.mod @@ -15,7 +15,7 @@ require ( github.com/rogpeppe/go-internal v1.14.1 // indirect golang.org/x/sys v0.33.0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20250707201910-8d1bb00bc6a7 // indirect - google.golang.org/protobuf v1.36.7 // indirect + google.golang.org/protobuf v1.36.8 // indirect gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/errors/go.sum b/errors/go.sum index fef2576c3c..7c7d5439e6 100644 --- a/errors/go.sum +++ b/errors/go.sum @@ -32,8 +32,8 @@ google.golang.org/genproto/googleapis/rpc v0.0.0-20250707201910-8d1bb00bc6a7 h1: google.golang.org/genproto/googleapis/rpc v0.0.0-20250707201910-8d1bb00bc6a7/go.mod h1:qQ0YXyHHx3XkvlzUtpXDkS29lDSafHMZBAZDc03LQ3A= google.golang.org/grpc v1.75.0 h1:+TW+dqTd2Biwe6KKfhE5JpiYIBWq865PhKGSXiivqt4= google.golang.org/grpc v1.75.0/go.mod h1:JtPAzKiq4v1xcAB2hydNlWI2RnF85XXcV0mhKXr2ecQ= -google.golang.org/protobuf v1.36.7 h1:IgrO7UwFQGJdRNXH/sQux4R1Dj1WAKcLElzeeRaXV2A= -google.golang.org/protobuf v1.36.7/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY= +google.golang.org/protobuf v1.36.8 h1:xHScyCOEuuwZEc6UtSOvPbAT4zRh0xcNRYekJwfqyMc= +google.golang.org/protobuf v1.36.8/go.mod h1:fuxRtAxBytpl4zzqUh6/eyUujkJdNiuEkXntxiD/uRU= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= diff --git a/go.mod b/go.mod index cf23425086..51fa1bc680 100644 --- a/go.mod +++ b/go.mod @@ -3,23 +3,22 @@ go 1.24 module github.com/cosmos/cosmos-sdk require ( - cosmossdk.io/api v1.0.0-rc.1 + cosmossdk.io/api v0.9.2 cosmossdk.io/collections v1.3.1 - cosmossdk.io/core v1.1.0-rc.1 - cosmossdk.io/depinject v1.2.1 + cosmossdk.io/core v0.11.3 + cosmossdk.io/depinject v1.2.0 cosmossdk.io/errors v1.0.2 cosmossdk.io/log v1.6.1 cosmossdk.io/math v1.5.3 - cosmossdk.io/store v1.10.0-rc.2 - cosmossdk.io/x/tx v1.2.0-rc.1 + cosmossdk.io/store v1.1.2 + cosmossdk.io/x/tx v0.14.0 github.com/99designs/keyring v1.2.1 github.com/bgentry/speakeasy v0.2.0 github.com/bits-and-blooms/bitset v1.24.0 github.com/chzyer/readline v1.5.1 github.com/cockroachdb/apd/v2 v2.0.2 github.com/cockroachdb/errors v1.12.0 - github.com/cometbft/cometbft/api v1.1.0-rc1 - github.com/cometbft/cometbft/v2 v2.0.0-rc1 + github.com/cometbft/cometbft v0.38.18 github.com/cosmos/btcutil v1.0.5 github.com/cosmos/cosmos-db v1.1.3 github.com/cosmos/cosmos-proto v1.0.0-beta.5 @@ -84,7 +83,7 @@ require ( github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.29.0 // indirect github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.50.0 // indirect github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.50.0 // indirect - github.com/aws/aws-sdk-go v1.44.122 // indirect + github.com/aws/aws-sdk-go v1.55.8 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect github.com/bufbuild/protocompile v0.14.1 // indirect @@ -99,7 +98,7 @@ require ( github.com/cockroachdb/pebble v1.1.5 // indirect github.com/cockroachdb/redact v1.1.6 // indirect github.com/cockroachdb/tokenbucket v0.0.0-20250429170803-42689b6311bb // indirect - github.com/cometbft/cometbft-db v1.0.4 // indirect + github.com/cometbft/cometbft-db v0.14.1 // indirect github.com/cosmos/iavl v1.2.6 // indirect github.com/cosmos/ics23/go v0.11.0 // indirect github.com/danieljoos/wincred v1.1.2 // indirect @@ -112,15 +111,18 @@ require ( github.com/emicklei/dot v1.8.0 // indirect github.com/envoyproxy/go-control-plane/envoy v1.32.4 // indirect github.com/envoyproxy/protoc-gen-validate v1.2.1 // indirect - github.com/ethereum/go-ethereum v1.15.5 // indirect github.com/fatih/color v1.18.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.9.0 // indirect github.com/getsentry/sentry-go v0.35.0 // indirect github.com/go-jose/go-jose/v4 v4.1.1 // indirect + github.com/go-kit/kit v0.13.0 // indirect + github.com/go-kit/log v0.2.1 // indirect + github.com/go-logfmt/logfmt v0.6.0 // indirect github.com/go-logr/logr v1.4.3 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/go-viper/mapstructure/v2 v2.4.0 // indirect + github.com/goccy/go-json v0.10.4 // indirect github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/gogo/googleapis v1.4.1 // indirect github.com/gogo/protobuf v1.3.2 // indirect @@ -141,7 +143,6 @@ require ( github.com/hashicorp/go-version v1.7.0 // indirect github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect github.com/hashicorp/yamux v0.1.2 // indirect - github.com/holiman/uint256 v1.3.2 // indirect github.com/iancoleman/strcase v0.3.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect @@ -152,7 +153,6 @@ require ( github.com/kr/text v0.2.0 // indirect github.com/lib/pq v1.10.9 // indirect github.com/linxGnu/grocksdb v1.10.1 // indirect - github.com/lmittmann/tint v1.0.7 // indirect github.com/mattn/go-colorable v0.1.14 // indirect github.com/minio/highwayhash v1.0.3 // indirect github.com/mitchellh/go-homedir v1.1.0 // indirect @@ -161,6 +161,7 @@ require ( github.com/nxadm/tail v1.4.11 // indirect github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a // indirect github.com/oklog/run v1.1.0 // indirect + github.com/opencontainers/image-spec v1.1.0-rc5 // indirect github.com/pelletier/go-toml/v2 v2.2.4 // indirect github.com/petermattis/goid v0.0.0-20240813172612-4fcff4a6cae7 // indirect github.com/pkg/errors v0.9.1 // indirect @@ -177,9 +178,8 @@ require ( github.com/spf13/afero v1.14.0 // indirect github.com/spiffe/go-spiffe/v2 v2.5.0 // indirect github.com/subosito/gotenv v1.6.0 // indirect - github.com/supranational/blst v0.3.14 // indirect github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect - github.com/tidwall/btree v1.7.0 // indirect + github.com/tidwall/btree v1.8.1 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ulikunitz/xz v0.5.14 // indirect github.com/zeebo/errs v1.4.0 // indirect @@ -232,6 +232,8 @@ replace ( github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 ) +replace cosmossdk.io/store => ./store + retract ( // false start by tagging the wrong branch v0.50.0 diff --git a/go.sum b/go.sum index ed9a5c069a..802bcb69bc 100644 --- a/go.sum +++ b/go.sum @@ -614,14 +614,14 @@ cloud.google.com/go/workflows v1.7.0/go.mod h1:JhSrZuVZWuiDfKEFxU0/F1PQjmpnpcoIS cloud.google.com/go/workflows v1.8.0/go.mod h1:ysGhmEajwZxGn1OhGOGKsTXc5PyxOc0vfKf5Af+to4M= cloud.google.com/go/workflows v1.9.0/go.mod h1:ZGkj1aFIOd9c8Gerkjjq7OW7I5+l6cSvT3ujaO/WwSA= cloud.google.com/go/workflows v1.10.0/go.mod h1:fZ8LmRmZQWacon9UCX1r/g/DfAXx5VcPALq2CxzdePw= -cosmossdk.io/api v1.0.0-rc.1 h1:KwZHIMveoeg6YVwvKZxJLp7be5uk6qmnqNAar2tPxVU= -cosmossdk.io/api v1.0.0-rc.1/go.mod h1:8YOT+XjVFb9eZJk62YqjFILOm8MlLhbnkC9/jxIYri8= +cosmossdk.io/api v0.9.2 h1:9i9ptOBdmoIEVEVWLtYYHjxZonlF/aOVODLFaxpmNtg= +cosmossdk.io/api v0.9.2/go.mod h1:CWt31nVohvoPMTlPv+mMNCtC0a7BqRdESjCsstHcTkU= cosmossdk.io/collections v1.3.1 h1:09e+DUId2brWsNOQ4nrk+bprVmMUaDH9xvtZkeqIjVw= cosmossdk.io/collections v1.3.1/go.mod h1:ynvkP0r5ruAjbmedE+vQ07MT6OtJ0ZIDKrtJHK7Q/4c= -cosmossdk.io/core v1.1.0-rc.1 h1:VhF5xd4uJZt/lQzbl8qT1W3Pcrklp4RSnugcWQZyf5M= -cosmossdk.io/core v1.1.0-rc.1/go.mod h1:fKHIWVYfPCC4tto9eoYFZC/yAWFlWw2mz8YgSYvjnUs= -cosmossdk.io/depinject v1.2.1 h1:eD6FxkIjlVaNZT+dXTQuwQTKZrFZ4UrfCq1RKgzyhMw= -cosmossdk.io/depinject v1.2.1/go.mod h1:lqQEycz0H2JXqvOgVwTsjEdMI0plswI7p6KX+MVqFOM= +cosmossdk.io/core v0.11.3 h1:mei+MVDJOwIjIniaKelE3jPDqShCc/F4LkNNHh+4yfo= +cosmossdk.io/core v0.11.3/go.mod h1:9rL4RE1uDt5AJ4Tg55sYyHWXA16VmpHgbe0PbJc6N2Y= +cosmossdk.io/depinject v1.2.0 h1:6NW/FSK1IkWTrX7XxUpBmX1QMBozpEI9SsWkKTBc5zw= +cosmossdk.io/depinject v1.2.0/go.mod h1:pvitjtUxZZZTQESKNS9KhGjWVslJZxtO9VooRJYyPjk= cosmossdk.io/errors v1.0.2 h1:wcYiJz08HThbWxd/L4jObeLaLySopyyuUFB5w4AGpCo= cosmossdk.io/errors v1.0.2/go.mod h1:0rjgiHkftRYPj//3DrD6y8hcm40HcPv/dR4R/4efr0k= cosmossdk.io/log v1.6.1 h1:YXNwAgbDwMEKwDlCdH8vPcoggma48MgZrTQXCfmMBeI= @@ -630,10 +630,8 @@ cosmossdk.io/math v1.5.3 h1:WH6tu6Z3AUCeHbeOSHg2mt9rnoiUWVWaQ2t6Gkll96U= cosmossdk.io/math v1.5.3/go.mod h1:uqcZv7vexnhMFJF+6zh9EWdm/+Ylyln34IvPnBauPCQ= cosmossdk.io/schema v1.1.0 h1:mmpuz3dzouCoyjjcMcA/xHBEmMChN+EHh8EHxHRHhzE= cosmossdk.io/schema v1.1.0/go.mod h1:Gb7pqO+tpR+jLW5qDcNOSv0KtppYs7881kfzakguhhI= -cosmossdk.io/store v1.10.0-rc.2 h1:7ze2UoheVTVMK4ElHtoRhYv8nlUImj34e4yp1yy1bgE= -cosmossdk.io/store v1.10.0-rc.2/go.mod h1:3p1IV4EGsULFfeyAcfj7/DBcDsy8d3VlYIEJnhhbP3U= -cosmossdk.io/x/tx v1.2.0-rc.1 h1:AartiA6eiTD9KHmnlj3uG3H8FjyjI0qNkmvmU+p6cJ8= -cosmossdk.io/x/tx v1.2.0-rc.1/go.mod h1:UzpMTUmQEFfz+m0E+lhzFIiEhtZCHjScU/NC652DBHI= +cosmossdk.io/x/tx v0.14.0 h1:hB3O25kIcyDW/7kMTLMaO8Ripj3yqs5imceVd6c/heA= +cosmossdk.io/x/tx v0.14.0/go.mod h1:Tn30rSRA1PRfdGB3Yz55W4Sn6EIutr9xtMKSHij+9PM= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA= filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4= @@ -666,6 +664,7 @@ github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5/go.mod h1:lmUJ/7eu/Q8 github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= +github.com/VividCortex/gohistogram v1.0.0 h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE= github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= github.com/adlio/schema v1.3.6 h1:k1/zc2jNfeiZBA5aFTRy37jlBIuCkXCm0XmvpzCKI9I= github.com/adlio/schema v1.3.6/go.mod h1:qkxwLgPBd1FgLRHYVCmQT/rrBr3JH38J9LjmVzWNudg= @@ -693,8 +692,9 @@ github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a/go.mod h1:DAHtR1m6lCRdSC2Tm3DSWRPvIPr6xNKyeHdqDQSQT+A= github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU= github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/aws/aws-sdk-go v1.44.122 h1:p6mw01WBaNpbdP2xrisz5tIkcNwzj/HysobNoaAHjgo= github.com/aws/aws-sdk-go v1.44.122/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= +github.com/aws/aws-sdk-go v1.55.8 h1:JRmEUbU52aJQZ2AjX4q4Wu7t4uZjOu71uyNmaWlUkJQ= +github.com/aws/aws-sdk-go v1.55.8/go.mod h1:ZkViS9AqA6otK+JBBNH2++sx1sgxrPKcSzPPvQkUtXk= github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= @@ -789,12 +789,10 @@ github.com/cockroachdb/redact v1.1.6/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZ github.com/cockroachdb/tokenbucket v0.0.0-20250429170803-42689b6311bb h1:3bCgBvB8PbJVMX1ouCcSIxvsqKPYM7gs72o0zC76n9g= github.com/cockroachdb/tokenbucket v0.0.0-20250429170803-42689b6311bb/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ= github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= -github.com/cometbft/cometbft-db v1.0.4 h1:cezb8yx/ZWcF124wqUtAFjAuDksS1y1yXedvtprUFxs= -github.com/cometbft/cometbft-db v1.0.4/go.mod h1:M+BtHAGU2XLrpUxo3Nn1nOCcnVCiLM9yx5OuT0u5SCA= -github.com/cometbft/cometbft/api v1.1.0-rc1 h1:NdlXfp4wialMwJ+1ds1DBtfysdxErUxg8/AaqgT0ifQ= -github.com/cometbft/cometbft/api v1.1.0-rc1/go.mod h1:Ivh6nSCTJPQOyfQo8dgnyu/T88it092sEqSrZSmTQN8= -github.com/cometbft/cometbft/v2 v2.0.0-rc1 h1:3QyDHTFzH3a1N6c2jt03kFDCxM/hgUvhzDYBVnPVXY8= -github.com/cometbft/cometbft/v2 v2.0.0-rc1/go.mod h1:/ze08eO171CqUqTqAE7FW7ydUJIVkgp6e2svpYvIR3c= +github.com/cometbft/cometbft v0.38.18 h1:1ZHYMdu0S75YxFM13LlPXnOwiIpUW5z9TKMQtTIALpw= +github.com/cometbft/cometbft v0.38.18/go.mod h1:PlOQgf3jQorep+g6oVnJgtP65TJvBJoLiXjGaMdNxBE= +github.com/cometbft/cometbft-db v0.14.1 h1:SxoamPghqICBAIcGpleHbmoPqy+crij/++eZz3DlerQ= +github.com/cometbft/cometbft-db v0.14.1/go.mod h1:KHP1YghilyGV/xjD5DP3+2hyigWx0WTp9X+0Gnx0RxQ= github.com/containerd/continuity v0.3.0 h1:nisirsYROK15TAMVukJOUyGJjz4BNQJBVsNvAXZJ/eg= github.com/containerd/continuity v0.3.0/go.mod h1:wJEAIwKOm/pBZuBd0JmeTvnLquTB1Ag8espWhkykbPM= github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= @@ -885,8 +883,6 @@ github.com/envoyproxy/protoc-gen-validate v0.9.1/go.mod h1:OKNgG7TCp5pF4d6XftA0+ github.com/envoyproxy/protoc-gen-validate v0.10.1/go.mod h1:DRjgyB0I43LtJapqN6NiRwroiAU2PaFuvk/vjgh61ss= github.com/envoyproxy/protoc-gen-validate v1.2.1 h1:DEo3O99U8j4hBFwbJfrz9VtgcDfUKS7KJ7spH3d86P8= github.com/envoyproxy/protoc-gen-validate v1.2.1/go.mod h1:d/C80l/jxXLdfEIhX1W2TmLfsJ31lvEjwamM4DxlWXU= -github.com/ethereum/go-ethereum v1.15.5 h1:Fo2TbBWC61lWVkFw9tsMoHCNX1ndpuaQBRJ8H6xLUPo= -github.com/ethereum/go-ethereum v1.15.5/go.mod h1:1LG2LnMOx2yPRHR/S+xuipXH29vPr6BIH6GElD8N/fo= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM= @@ -930,12 +926,18 @@ github.com/go-jose/go-jose/v4 v4.1.1/go.mod h1:BdsZGqgdO3b6tTc6LSE56wcDbMMLuPsw5 github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o= +github.com/go-kit/kit v0.13.0 h1:OoneCcHKHQ03LfBpoQCUfCluwd2Vt3ohz+kvbJneZAU= +github.com/go-kit/kit v0.13.0/go.mod h1:phqEHMMUbyrCFCTgH48JueqrM3md2HcAZ8N3XE4FKDg= github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= +github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU= +github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= github.com/go-latex/latex v0.0.0-20210118124228-b3d85cf34e07/go.mod h1:CO1AlKB2CSIqUrmQPqA0gdRIlnLEY0gK5JGjh37zN5U= github.com/go-latex/latex v0.0.0-20210823091927-c0d11ff05a81/go.mod h1:SX0U8uGpxhq9o2S/CELCSUxEWWAuoCUcVCQWv7G2OCk= github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= +github.com/go-logfmt/logfmt v0.6.0 h1:wGYYu3uicYdqXVgoYbvnkrPVXkuLM1p1ifugDMEdRi4= +github.com/go-logfmt/logfmt v0.6.0/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= @@ -1180,8 +1182,6 @@ github.com/hashicorp/yamux v0.1.2 h1:XtB8kyFOyHXYVFnwT5C3+Bdo8gArse7j2AQ0DA0Uey8 github.com/hashicorp/yamux v0.1.2/go.mod h1:C+zze2n6e/7wshOZep2A70/aQU6QBRWJO/G6FT1wIns= github.com/hdevalence/ed25519consensus v0.2.0 h1:37ICyZqdyj0lAZ8P4D1d1id3HqbbG1N3iBb1Tb4rdcU= github.com/hdevalence/ed25519consensus v0.2.0/go.mod h1:w3BHWjwJbFU29IRHL1Iqkw3sus+7FctEyM4RqDxYNzo= -github.com/holiman/uint256 v1.3.2 h1:a9EgMPSC1AAaj1SZL5zIQD3WbwTuHrMGOerLjGmM/TA= -github.com/holiman/uint256 v1.3.2/go.mod h1:EOMSn4q6Nyt9P6efbI3bueV4e1b3dGlUCXeiRV4ng7E= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/huandu/go-assert v1.1.5 h1:fjemmA7sSfYHJD7CUqs9qTwwfdNAx7/j2/ZlHXzNB3c= github.com/huandu/go-assert v1.1.5/go.mod h1:yOLvuqZwmcHIC5rIzrBhT7D3Q9c3GFnd0JrPVhn/06U= @@ -1265,8 +1265,6 @@ github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-b github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= github.com/linxGnu/grocksdb v1.10.1 h1:YX6gUcKvSC3d0s9DaqgbU+CRkZHzlELgHu1Z/kmtslg= github.com/linxGnu/grocksdb v1.10.1/go.mod h1:C3CNe9UYc9hlEM2pC82AqiGS3LRW537u9LFV4wIZuHk= -github.com/lmittmann/tint v1.0.7 h1:D/0OqWZ0YOGZ6AyC+5Y2kD8PBEzBk6rFHVSfOqCkF9Y= -github.com/lmittmann/tint v1.0.7/go.mod h1:HIS3gSy7qNwGCj+5oRjAutErFBl4BzdQP6cJZ0NfMwE= github.com/lyft/protoc-gen-star v0.6.0/go.mod h1:TGAoBVkt8w7MPG72TrKIu85MIdXwDuzJYeZuUPFPNwA= github.com/lyft/protoc-gen-star v0.6.1/go.mod h1:TGAoBVkt8w7MPG72TrKIu85MIdXwDuzJYeZuUPFPNwA= github.com/lyft/protoc-gen-star/v2 v2.0.1/go.mod h1:RcCdONR2ScXaYnQC5tUzxzlpA3WVYF7/opLeUgcQs/o= @@ -1524,14 +1522,12 @@ github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= -github.com/supranational/blst v0.3.14 h1:xNMoHRJOTwMn63ip6qoWJ2Ymgvj7E2b9jY2FAwY+qRo= -github.com/supranational/blst v0.3.14/go.mod h1:jZJtfjgudtNl4en1tzwPIV3KjUnQUvG3/j+w+fVonLw= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 h1:epCh84lMvA70Z7CTTCmYQn2CKbY8j86K7/FAIr141uY= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7/go.mod h1:q4W45IWZaF22tdD+VEXcAWRA037jwmWEB5VWYORlTpc= github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E= github.com/tendermint/go-amino v0.16.0/go.mod h1:TQU0M1i/ImAo+tYpZi73AU3V/dKeCoMC9Sphe2ZwGME= -github.com/tidwall/btree v1.7.0 h1:L1fkJH/AuEh5zBnnBbmTwQ5Lt+bRJ5A8EWecslvo9iI= -github.com/tidwall/btree v1.7.0/go.mod h1:twD9XRA5jj9VUQGELzDO4HPQTNJsoWWfYEL+EUQ2cKY= +github.com/tidwall/btree v1.8.1 h1:27ehoXvm5AG/g+1VxLS1SD3vRhp/H7LuEfwNvddEdmA= +github.com/tidwall/btree v1.8.1/go.mod h1:jBbTdUWhSZClZWoDg54VnvV7/54modSOzDN7VXftj1A= github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI= diff --git a/math/unsafe/rand.go b/math/unsafe/rand.go index f4faa1f6ab..66d48ae4dc 100644 --- a/math/unsafe/rand.go +++ b/math/unsafe/rand.go @@ -136,7 +136,7 @@ func (r *Rand) Bytes(n int) []byte { // NOTE: This relies on the os's random number generator. // For real security, we should salt that with some seed. -// See github.com/cometbft/cometbft/v2/crypto for a more secure reader. +// See github.com/cometbft/cometbft/crypto for a more secure reader. func cRandBytes(numBytes int) []byte { b := make([]byte, numBytes) _, err := crand.Read(b) diff --git a/proto/buf.lock b/proto/buf.lock index 25d09ad536..c55f94bee8 100644 --- a/proto/buf.lock +++ b/proto/buf.lock @@ -14,8 +14,8 @@ deps: - remote: buf.build owner: googleapis repository: googleapis - commit: 61b203b9a9164be9a834f58c37be6f62 - digest: shake256:e619113001d6e284ee8a92b1561e5d4ea89a47b28bf0410815cb2fa23914df8be9f1a6a98dcf069f5bc2d829a2cfb1ac614863be45cd4f8a5ad8606c5f200224 + commit: 751cbe31638d43a9bfb6162cd2352e67 + digest: shake256:87f55470d9d124e2d1dedfe0231221f4ed7efbc55bc5268917c678e2d9b9c41573a7f9a557f6d8539044524d9fc5ca8fbb7db05eb81379d168285d76b57eb8a4 - remote: buf.build owner: protocolbuffers repository: wellknowntypes diff --git a/proto/buf.yaml b/proto/buf.yaml index ea7717af71..3e130ed10b 100644 --- a/proto/buf.yaml +++ b/proto/buf.yaml @@ -23,4 +23,4 @@ lint: - PACKAGE_VERSION_SUFFIX - RPC_REQUEST_STANDARD_NAME ignore: - - cometbft + - tendermint diff --git a/proto/cometbft/abci/v2/service.proto b/proto/cometbft/abci/v2/service.proto deleted file mode 100644 index 956d922462..0000000000 --- a/proto/cometbft/abci/v2/service.proto +++ /dev/null @@ -1,42 +0,0 @@ -syntax = "proto3"; -package cometbft.abci.v2; - -import "cometbft/abci/v2/types.proto"; - -option go_package = "github.com/cometbft/cometbft/api/cometbft/abci/v2"; - -// ABCIService is a service for an ABCI application. -service ABCIService { - // Echo returns back the same message it is sent. - rpc Echo(EchoRequest) returns (EchoResponse); - // Flush flushes the write buffer. - rpc Flush(FlushRequest) returns (FlushResponse); - // Info returns information about the application state. - rpc Info(InfoRequest) returns (InfoResponse); - // CheckTx validates a transaction. - rpc CheckTx(CheckTxRequest) returns (CheckTxResponse); - // Query queries the application state. - rpc Query(QueryRequest) returns (QueryResponse); - // Commit commits a block of transactions. - rpc Commit(CommitRequest) returns (CommitResponse); - // InitChain initializes the blockchain. - rpc InitChain(InitChainRequest) returns (InitChainResponse); - // ListSnapshots lists all the available snapshots. - rpc ListSnapshots(ListSnapshotsRequest) returns (ListSnapshotsResponse); - // OfferSnapshot sends a snapshot offer. - rpc OfferSnapshot(OfferSnapshotRequest) returns (OfferSnapshotResponse); - // LoadSnapshotChunk returns a chunk of snapshot. - rpc LoadSnapshotChunk(LoadSnapshotChunkRequest) returns (LoadSnapshotChunkResponse); - // ApplySnapshotChunk applies a chunk of snapshot. - rpc ApplySnapshotChunk(ApplySnapshotChunkRequest) returns (ApplySnapshotChunkResponse); - // PrepareProposal returns a proposal for the next block. - rpc PrepareProposal(PrepareProposalRequest) returns (PrepareProposalResponse); - // ProcessProposal validates a proposal. - rpc ProcessProposal(ProcessProposalRequest) returns (ProcessProposalResponse); - // ExtendVote extends a vote with application-injected data (vote extensions). - rpc ExtendVote(ExtendVoteRequest) returns (ExtendVoteResponse); - // VerifyVoteExtension verifies a vote extension. - rpc VerifyVoteExtension(VerifyVoteExtensionRequest) returns (VerifyVoteExtensionResponse); - // FinalizeBlock finalizes a block. - rpc FinalizeBlock(FinalizeBlockRequest) returns (FinalizeBlockResponse); -} diff --git a/proto/cometbft/abci/v2/types.proto b/proto/cometbft/abci/v2/types.proto deleted file mode 100644 index cfeb808df1..0000000000 --- a/proto/cometbft/abci/v2/types.proto +++ /dev/null @@ -1,587 +0,0 @@ -syntax = "proto3"; -package cometbft.abci.v2; - -import "cometbft/crypto/v1/proof.proto"; -import "cometbft/types/v2/params.proto"; -import "cometbft/types/v2/validator.proto"; -import "gogoproto/gogo.proto"; -import "google/protobuf/timestamp.proto"; -import "google/protobuf/duration.proto"; - -option go_package = "github.com/cometbft/cometbft/api/cometbft/abci/v2"; - -// ---------------------------------------- -// Request types - -// Request represents a request to the ABCI application. -message Request { - // Sum of all possible messages. - oneof value { - EchoRequest echo = 1; - FlushRequest flush = 2; - InfoRequest info = 3; - InitChainRequest init_chain = 5; - QueryRequest query = 6; - CheckTxRequest check_tx = 8; - CommitRequest commit = 11; - ListSnapshotsRequest list_snapshots = 12; - OfferSnapshotRequest offer_snapshot = 13; - LoadSnapshotChunkRequest load_snapshot_chunk = 14; - ApplySnapshotChunkRequest apply_snapshot_chunk = 15; - PrepareProposalRequest prepare_proposal = 16; - ProcessProposalRequest process_proposal = 17; - ExtendVoteRequest extend_vote = 18; - VerifyVoteExtensionRequest verify_vote_extension = 19; - FinalizeBlockRequest finalize_block = 20; - } - reserved 4, 7, 9, 10; // SetOption, BeginBlock, DeliverTx, EndBlock -} - -// EchoRequest is a request to "echo" the given string. -message EchoRequest { - string message = 1; -} - -// FlushRequest is a request to flush the write buffer. -message FlushRequest {} - -// InfoRequest is a request for the ABCI application version. -message InfoRequest { - string version = 1; - uint64 block_version = 2; - uint64 p2p_version = 3; - string abci_version = 4; -} - -// InitChainRequest is a request to initialize the blockchain. -message InitChainRequest { - google.protobuf.Timestamp time = 1 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; - string chain_id = 2; - cometbft.types.v2.ConsensusParams consensus_params = 3; - repeated ValidatorUpdate validators = 4 [(gogoproto.nullable) = false]; - bytes app_state_bytes = 5; - int64 initial_height = 6; -} - -// QueryRequest is a request to query the application state. -message QueryRequest { - bytes data = 1; - string path = 2; - int64 height = 3; - bool prove = 4; -} - -// Type of the transaction check request. -// -// This enumeration is incompatible with the CheckTxType definition in -// cometbft.abci.v1beta1 and therefore shall not be used in encoding with the same -// field number. -enum CheckTxType { - option (gogoproto.goproto_enum_prefix) = false; - - // Unknown - CHECK_TX_TYPE_UNKNOWN = 0; - // Recheck (2nd, 3rd, etc.) - CHECK_TX_TYPE_RECHECK = 1; - // Check (1st time) - CHECK_TX_TYPE_CHECK = 2; -} - -// CheckTxRequest is a request to check that the transaction is valid. -message CheckTxRequest { - bytes tx = 1; - CheckTxType type = 3; - reserved 2; // v1beta1.CheckTxType type -} - -// CommitRequest is a request to commit the pending application state. -message CommitRequest {} - -// Request to list available snapshots. -message ListSnapshotsRequest {} - -// Request offering a snapshot to the application. -message OfferSnapshotRequest { - Snapshot snapshot = 1; // snapshot offered by peers - bytes app_hash = 2; // light client-verified app hash for snapshot height -} - -// Request to load a snapshot chunk. -message LoadSnapshotChunkRequest { - uint64 height = 1; - uint32 format = 2; - uint32 chunk = 3; -} - -// Request to apply a snapshot chunk. -message ApplySnapshotChunkRequest { - uint32 index = 1; - bytes chunk = 2; - string sender = 3; -} - -// PrepareProposalRequest is a request for the ABCI application to prepare a new -// block proposal. -message PrepareProposalRequest { - // the modified transactions cannot exceed this size. - int64 max_tx_bytes = 1; - // txs is an array of transactions that will be included in a block, - // sent to the app for possible modifications. - repeated bytes txs = 2; - ExtendedCommitInfo local_last_commit = 3 [(gogoproto.nullable) = false]; - repeated Misbehavior misbehavior = 4 [(gogoproto.nullable) = false]; - int64 height = 5; - google.protobuf.Timestamp time = 6 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; - bytes next_validators_hash = 7; - // address of the public key of the validator proposing the block. - bytes proposer_address = 8; -} - -// ProcessProposalRequest is a request for the ABCI application to process a proposal -// received from another validator. -message ProcessProposalRequest { - repeated bytes txs = 1; - CommitInfo proposed_last_commit = 2 [(gogoproto.nullable) = false]; - repeated Misbehavior misbehavior = 3 [(gogoproto.nullable) = false]; - // Merkle root hash of the fields of the proposed block. - bytes hash = 4; - int64 height = 5; - google.protobuf.Timestamp time = 6 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; - bytes next_validators_hash = 7; - // address of the public key of the original proposer of the block. - bytes proposer_address = 8; -} - -// ExtendVoteRequest extends a precommit vote with application-injected data. -message ExtendVoteRequest { - // the hash of the block that this vote may be referring to - bytes hash = 1; - // the height of the extended vote - int64 height = 2; - // info of the block that this vote may be referring to - google.protobuf.Timestamp time = 3 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; - repeated bytes txs = 4; - CommitInfo proposed_last_commit = 5 [(gogoproto.nullable) = false]; - repeated Misbehavior misbehavior = 6 [(gogoproto.nullable) = false]; - bytes next_validators_hash = 7; - // address of the public key of the original proposer of the block. - bytes proposer_address = 8; -} - -// VerifyVoteExtensionRequest is a request for the application to verify a vote extension -// produced by a different validator. -// The request contains two vote extension fields: one that is replay-protected ('vote_extension') -// and one that is not ('non_rp_vote_extension'). -message VerifyVoteExtensionRequest { - // the hash of the block that this received vote corresponds to - bytes hash = 1; - // the validator that signed the vote extension - bytes validator_address = 2; - int64 height = 3; - // replay-protected vote extension - bytes vote_extension = 4; - // non-replay-protected vote extension - bytes non_rp_vote_extension = 5; -} - -// FinalizeBlockRequest is a request to finalize the block. -message FinalizeBlockRequest { - repeated bytes txs = 1; - CommitInfo decided_last_commit = 2 [(gogoproto.nullable) = false]; - repeated Misbehavior misbehavior = 3 [(gogoproto.nullable) = false]; - // Merkle root hash of the fields of the decided block. - bytes hash = 4; - int64 height = 5; - google.protobuf.Timestamp time = 6 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; - bytes next_validators_hash = 7; - // address of the public key of the original proposer of the block. - bytes proposer_address = 8; - // If the node is syncing/replaying blocks - target height. If not, syncing_to == height. - int64 syncing_to_height = 9; -} - -// ---------------------------------------- -// Response types - -// Response represents a response from the ABCI application. -message Response { - // Sum of all possible messages. - oneof value { - ExceptionResponse exception = 1; - EchoResponse echo = 2; - FlushResponse flush = 3; - InfoResponse info = 4; - InitChainResponse init_chain = 6; - QueryResponse query = 7; - CheckTxResponse check_tx = 9; - CommitResponse commit = 12; - ListSnapshotsResponse list_snapshots = 13; - OfferSnapshotResponse offer_snapshot = 14; - LoadSnapshotChunkResponse load_snapshot_chunk = 15; - ApplySnapshotChunkResponse apply_snapshot_chunk = 16; - PrepareProposalResponse prepare_proposal = 17; - ProcessProposalResponse process_proposal = 18; - ExtendVoteResponse extend_vote = 19; - VerifyVoteExtensionResponse verify_vote_extension = 20; - FinalizeBlockResponse finalize_block = 21; - } - reserved 5, 8, 10, 11; // SetOption, BeginBlock, DeliverTx, EndBlock -} - -// nondeterministic -message ExceptionResponse { - string error = 1; -} - -// EchoResponse indicates that the connection is still alive. -message EchoResponse { - string message = 1; -} - -// FlushResponse indicates that the write buffer was flushed. -message FlushResponse {} - -// InfoResponse contains the ABCI application version information. -message InfoResponse { - string data = 1; - - string version = 2; - uint64 app_version = 3; - - int64 last_block_height = 4; - bytes last_block_app_hash = 5; - - map lane_priorities = 6; - string default_lane = 7; -} - -// InitChainResponse contains the ABCI application's hash and updates to the -// validator set and/or the consensus params, if any. -message InitChainResponse { - cometbft.types.v2.ConsensusParams consensus_params = 1; - repeated ValidatorUpdate validators = 2 [(gogoproto.nullable) = false]; - bytes app_hash = 3; -} - -// QueryResponse contains the ABCI application data along with a proof. -message QueryResponse { - uint32 code = 1; - // bytes data = 2; // use "value" instead. - string log = 3; // nondeterministic - string info = 4; // nondeterministic - int64 index = 5; - bytes key = 6; - bytes value = 7; - cometbft.crypto.v1.ProofOps proof_ops = 8; - int64 height = 9; - string codespace = 10; -} - -// CheckTxResponse shows if the transaction was deemed valid by the ABCI -// application. -message CheckTxResponse { - uint32 code = 1; - bytes data = 2; - string log = 3; // nondeterministic - string info = 4; // nondeterministic - int64 gas_wanted = 5 [json_name = "gas_wanted"]; - int64 gas_used = 6 [json_name = "gas_used"]; - repeated Event events = 7 - [(gogoproto.nullable) = false, - (gogoproto.jsontag) = "events,omitempty"]; // nondeterministic - string codespace = 8; - - // These reserved fields were used till v0.37 by the priority mempool (now - // removed). - reserved 9 to 11; - reserved "sender", "priority", "mempool_error"; - - string lane_id = 12; -} - -// CommitResponse indicates how much blocks should CometBFT retain. -message CommitResponse { - reserved 1, 2; // data was previously returned here - int64 retain_height = 3; -} - -// ListSnapshotsResponse contains the list of snapshots. -message ListSnapshotsResponse { - repeated Snapshot snapshots = 1; -} - -// OfferSnapshotResponse indicates the ABCI application decision whenever to -// provide a snapshot to the requester or not. -message OfferSnapshotResponse { - OfferSnapshotResult result = 1; -} - -// The result of offering a snapshot. -enum OfferSnapshotResult { - option (gogoproto.goproto_enum_prefix) = false; - - // Unknown result, abort all snapshot restoration - OFFER_SNAPSHOT_RESULT_UNKNOWN = 0; - // Snapshot accepted, apply chunks - OFFER_SNAPSHOT_RESULT_ACCEPT = 1; - // Abort all snapshot restoration - OFFER_SNAPSHOT_RESULT_ABORT = 2; - // Reject this specific snapshot, try others - OFFER_SNAPSHOT_RESULT_REJECT = 3; - // Reject all snapshots of this format, try others - OFFER_SNAPSHOT_RESULT_REJECT_FORMAT = 4; - // Reject all snapshots from the sender(s), try others - OFFER_SNAPSHOT_RESULT_REJECT_SENDER = 5; -} - -// LoadSnapshotChunkResponse returns a snapshot's chunk. -message LoadSnapshotChunkResponse { - bytes chunk = 1; -} - -// ApplySnapshotChunkResponse returns a result of applying the specified chunk. -message ApplySnapshotChunkResponse { - ApplySnapshotChunkResult result = 1; - repeated uint32 refetch_chunks = 2; // Chunks to refetch and reapply - repeated string reject_senders = 3; // Chunk senders to reject and ban -} - -// The result of applying a snapshot chunk. -enum ApplySnapshotChunkResult { - option (gogoproto.goproto_enum_prefix) = false; - - // Unknown result, abort all snapshot restoration - APPLY_SNAPSHOT_CHUNK_RESULT_UNKNOWN = 0; - // Chunk successfully accepted - APPLY_SNAPSHOT_CHUNK_RESULT_ACCEPT = 1; - // Abort all snapshot restoration - APPLY_SNAPSHOT_CHUNK_RESULT_ABORT = 2; - // Retry chunk (combine with refetch and reject) - APPLY_SNAPSHOT_CHUNK_RESULT_RETRY = 3; - // Retry snapshot (combine with refetch and reject) - APPLY_SNAPSHOT_CHUNK_RESULT_RETRY_SNAPSHOT = 4; - // Reject this snapshot, try others - APPLY_SNAPSHOT_CHUNK_RESULT_REJECT_SNAPSHOT = 5; -} - -// PrepareProposalResponse contains a list of transactions, which will form a block. -message PrepareProposalResponse { - repeated bytes txs = 1; -} - -// ProcessProposalResponse indicates the ABCI application's decision whenever -// the given proposal should be accepted or not. -message ProcessProposalResponse { - ProcessProposalStatus status = 1; -} - -// ProcessProposalStatus is the status of the proposal processing. -enum ProcessProposalStatus { - option (gogoproto.goproto_enum_prefix) = false; - - // Unknown - PROCESS_PROPOSAL_STATUS_UNKNOWN = 0; - // Accepted - PROCESS_PROPOSAL_STATUS_ACCEPT = 1; - // Rejected - PROCESS_PROPOSAL_STATUS_REJECT = 2; -} - -// ExtendVoteResponse contains the vote extension that the application would like to -// attach to its next precommit vote. -// Information in `vote_extension` will be replay-protected. -// Information in `non_rp_extension` will not be replay-protected. -message ExtendVoteResponse { - bytes vote_extension = 1; // this extension's signature is replay-protected - bytes non_rp_extension = 2; // this extension's signature is _not_ replay-protected -} - -// VerifyVoteExtensionResponse indicates the ABCI application's decision -// whenever the vote extension should be accepted or not. -message VerifyVoteExtensionResponse { - VerifyVoteExtensionStatus status = 1; -} - -// VerifyVoteExtensionStatus is the status of the vote extension verification. -enum VerifyVoteExtensionStatus { - option (gogoproto.goproto_enum_prefix) = false; - - // Unknown - VERIFY_VOTE_EXTENSION_STATUS_UNKNOWN = 0; - // Accepted - VERIFY_VOTE_EXTENSION_STATUS_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. - VERIFY_VOTE_EXTENSION_STATUS_REJECT = 2; -} - -// FinalizeBlockResponse contains the result of executing the block. -message FinalizeBlockResponse { - // set of block events emitted as part of executing the block - repeated Event events = 1 - [(gogoproto.nullable) = false, - (gogoproto.jsontag) = "events,omitempty"]; // nondeterministic - // the result of executing each transaction including the events - // the particular transaction emitted. This should match the order - // of the transactions delivered in the block itself - repeated ExecTxResult tx_results = 2; - // a list of updates to the validator set. These will reflect the validator set at current height + 2. - repeated ValidatorUpdate validator_updates = 3 [(gogoproto.nullable) = false]; - // updates to the consensus params, if any. - cometbft.types.v2.ConsensusParams consensus_param_updates = 4; - // 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. - bytes app_hash = 5; - // delay between the time when this block is committed and the next height is started. - // previously `timeout_commit` in config.toml - google.protobuf.Duration next_block_delay = 6 [(gogoproto.nullable) = false, (gogoproto.stdduration) = true]; -} - -// ---------------------------------------- -// Misc. - -// CommitInfo contains votes for the particular round. -message CommitInfo { - int32 round = 1; - repeated VoteInfo votes = 2 [(gogoproto.nullable) = false]; -} - -// ExtendedCommitInfo is similar to CommitInfo except that it is only used in -// the PrepareProposal request such that Tendermint can provide vote extensions -// to the application. -message ExtendedCommitInfo { - // The round at which the block proposer decided in the previous height. - int32 round = 1; - // List of validators' addresses in the last validator set with their voting - // information, including vote extensions. - repeated ExtendedVoteInfo votes = 2 [(gogoproto.nullable) = false]; -} - -// Event allows application developers to attach additional information to -// ResponseFinalizeBlock and ResponseCheckTx. -// Up to 0.37, this could also be used in ResponseBeginBlock, ResponseEndBlock, -// and ResponseDeliverTx. -// Later, transactions may be queried using these events. -message Event { - string type = 1; - repeated EventAttribute attributes = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "attributes,omitempty"]; -} - -// EventAttribute is a single key-value pair, associated with an event. -message EventAttribute { - string key = 1; - string value = 2; - bool index = 3; // nondeterministic -} - -// ExecTxResult contains results of executing one individual transaction. -// -// * Its structure is equivalent to #ResponseDeliverTx which will be deprecated/deleted -message ExecTxResult { - uint32 code = 1; - bytes data = 2; - string log = 3; // nondeterministic - string info = 4; // nondeterministic - int64 gas_wanted = 5 [json_name = "gas_wanted"]; - int64 gas_used = 6 [json_name = "gas_used"]; - repeated Event events = 7 - [(gogoproto.nullable) = false, (gogoproto.jsontag) = "events,omitempty"]; // nondeterministic - string codespace = 8; -} - -// TxResult contains results of executing the transaction. -// -// One usage is indexing transaction results. -message TxResult { - int64 height = 1; - uint32 index = 2; - bytes tx = 3; - ExecTxResult result = 4 [(gogoproto.nullable) = false]; -} - -// ---------------------------------------- -// Blockchain Types - -// Validator in the validator set. -message Validator { - bytes address = 1; // The first 20 bytes of SHA256(public key) - // PubKey pub_key = 2 [(gogoproto.nullable)=false]; - int64 power = 3; // The voting power -} - -// ValidatorUpdate is a singular update to a validator set. -message ValidatorUpdate { - int64 power = 2; - bytes pub_key_bytes = 3; - string pub_key_type = 4; - - reserved 1; // pub_key -} - -// VoteInfo contains the information about the vote. -message VoteInfo { - Validator validator = 1 [(gogoproto.nullable) = false]; - cometbft.types.v2.BlockIDFlag block_id_flag = 3; - - reserved 2; // signed_last_block -} - -// ExtendedVoteInfo extends VoteInfo with the vote extensions (non-deterministic). -message ExtendedVoteInfo { - // The validator that sent the vote. - Validator validator = 1 [(gogoproto.nullable) = false]; - // Non-deterministic extension provided by the sending validator's application. - bytes vote_extension = 3; - // Vote extension signature created by CometBFT - bytes extension_signature = 4; - // block_id_flag indicates whether the validator voted for a block, nil, or did not vote at all - cometbft.types.v2.BlockIDFlag block_id_flag = 5; - // Non-deterministic non-replay-protected extension provided by the sending validator's application. - bytes non_rp_vote_extension = 6; - // Signature on non-replay-protected extension created by CometBFT - bytes non_rp_extension_signature = 7; - - reserved 2; // signed_last_block -} - -// The type of misbehavior committed by a validator. -enum MisbehaviorType { - option (gogoproto.goproto_enum_prefix) = false; - - // Unknown - MISBEHAVIOR_TYPE_UNKNOWN = 0; - // Duplicate vote - MISBEHAVIOR_TYPE_DUPLICATE_VOTE = 1; - // Light client attack - MISBEHAVIOR_TYPE_LIGHT_CLIENT_ATTACK = 2; -} - -// Misbehavior is a type of misbehavior committed by a validator. -message Misbehavior { - MisbehaviorType type = 1; - // The offending validator - Validator validator = 2 [(gogoproto.nullable) = false]; - // The height when the offense occurred - int64 height = 3; - // The corresponding time where the offense occurred - google.protobuf.Timestamp time = 4 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; - // Total voting power of the validator set in case the ABCI application does - // not store historical validators. - // https://github.com/tendermint/tendermint/issues/4581 - int64 total_voting_power = 5; -} - -// ---------------------------------------- -// State Sync Types - -// Snapshot of the ABCI application state. -message Snapshot { - uint64 height = 1; // The height at which the snapshot was taken - uint32 format = 2; // The application-specific snapshot format - uint32 chunks = 3; // Number of chunks in the snapshot - bytes hash = 4; // Arbitrary snapshot hash, equal only if identical - bytes metadata = 5; // Arbitrary application metadata -} diff --git a/proto/cometbft/libs/bits/v1/types.proto b/proto/cometbft/libs/bits/v1/types.proto deleted file mode 100644 index b735bf8834..0000000000 --- a/proto/cometbft/libs/bits/v1/types.proto +++ /dev/null @@ -1,10 +0,0 @@ -syntax = "proto3"; -package cometbft.libs.bits.v1; - -option go_package = "github.com/cometbft/cometbft/api/cometbft/libs/bits/v1"; - -// BitArray is an array of bits. -message BitArray { - int64 bits = 1; - repeated uint64 elems = 2; -} diff --git a/proto/cometbft/p2p/v1/conn.proto b/proto/cometbft/p2p/v1/conn.proto deleted file mode 100644 index c69b034930..0000000000 --- a/proto/cometbft/p2p/v1/conn.proto +++ /dev/null @@ -1,38 +0,0 @@ -syntax = "proto3"; -package cometbft.p2p.v1; - -option go_package = "github.com/cometbft/cometbft/api/cometbft/p2p/v1"; - -import "gogoproto/gogo.proto"; -import "cometbft/crypto/v1/keys.proto"; - -// PacketPing is a request to confirm that the connection is alive. -message PacketPing {} - -// PacketPong is a response to confirm that the connection is alive. -message PacketPong {} - -// PacketMsg contains data for the specified channel ID. EOF means the message -// is fully received. -message PacketMsg { - int32 channel_id = 1 [(gogoproto.customname) = "ChannelID"]; - bool eof = 2 [(gogoproto.customname) = "EOF"]; - bytes data = 3; -} - -// Packet is an abstract p2p message. -message Packet { - // Sum of all possible messages. - oneof sum { - PacketPing packet_ping = 1; - PacketPong packet_pong = 2; - PacketMsg packet_msg = 3; - } -} - -// AuthSigMessage is sent during the authentication and contains our/remote's -// signature along with the public key. -message AuthSigMessage { - cometbft.crypto.v1.PublicKey pub_key = 1 [(gogoproto.nullable) = false]; - bytes sig = 2; -} diff --git a/proto/cometbft/p2p/v1/pex.proto b/proto/cometbft/p2p/v1/pex.proto deleted file mode 100644 index c7a9144cf5..0000000000 --- a/proto/cometbft/p2p/v1/pex.proto +++ /dev/null @@ -1,24 +0,0 @@ -syntax = "proto3"; -package cometbft.p2p.v1; - -option go_package = "github.com/cometbft/cometbft/api/cometbft/p2p/v1"; - -import "cometbft/p2p/v1/types.proto"; -import "gogoproto/gogo.proto"; - -// PexRequest is a request for peer addresses. -message PexRequest {} - -// PexAddrs is a response with peer addresses. -message PexAddrs { - repeated NetAddress addrs = 1 [(gogoproto.nullable) = false]; -} - -// Message is an abstract PEX message. -message Message { - // Sum of all possible messages. - oneof sum { - PexRequest pex_request = 1; - PexAddrs pex_addrs = 2; - } -} diff --git a/proto/cometbft/types/v2/block.proto b/proto/cometbft/types/v2/block.proto deleted file mode 100644 index 5f8f470ede..0000000000 --- a/proto/cometbft/types/v2/block.proto +++ /dev/null @@ -1,16 +0,0 @@ -syntax = "proto3"; -package cometbft.types.v2; - -option go_package = "github.com/cometbft/cometbft/api/cometbft/types/v2"; - -import "cometbft/types/v2/types.proto"; -import "cometbft/types/v2/evidence.proto"; -import "gogoproto/gogo.proto"; - -// Block defines the structure of a block in the CometBFT blockchain. -message Block { - Header header = 1 [(gogoproto.nullable) = false]; - Data data = 2 [(gogoproto.nullable) = false]; - EvidenceList evidence = 3 [(gogoproto.nullable) = false]; - Commit last_commit = 4; -} diff --git a/proto/cometbft/types/v2/canonical.proto b/proto/cometbft/types/v2/canonical.proto deleted file mode 100644 index 7af214be68..0000000000 --- a/proto/cometbft/types/v2/canonical.proto +++ /dev/null @@ -1,54 +0,0 @@ -syntax = "proto3"; -package cometbft.types.v2; - -option go_package = "github.com/cometbft/cometbft/api/cometbft/types/v2"; - -import "gogoproto/gogo.proto"; -import "cometbft/types/v2/types.proto"; -import "google/protobuf/timestamp.proto"; - -// CanonicalBlockID is a canonical representation of a BlockID, which gets -// serialized and signed. -message CanonicalBlockID { - bytes hash = 1; - CanonicalPartSetHeader part_set_header = 2 [(gogoproto.nullable) = false]; -} - -// CanonicalPartSetHeader is a canonical representation of a PartSetHeader, -// which gets serialized and signed. -message CanonicalPartSetHeader { - uint32 total = 1; - bytes hash = 2; -} - -// CanonicalProposal is a canonical representation of a Proposal, which gets -// serialized and signed. -message CanonicalProposal { - SignedMsgType type = 1; // type alias for byte - sfixed64 height = 2; // canonicalization requires fixed size encoding here - sfixed64 round = 3; // canonicalization requires fixed size encoding here - int64 pol_round = 4 [(gogoproto.customname) = "POLRound"]; - CanonicalBlockID block_id = 5 [(gogoproto.customname) = "BlockID"]; - google.protobuf.Timestamp timestamp = 6 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; - string chain_id = 7 [(gogoproto.customname) = "ChainID"]; -} - -// CanonicalVote is a canonical representation of a Vote, which gets -// serialized and signed. -message CanonicalVote { - SignedMsgType type = 1; // type alias for byte - sfixed64 height = 2; // canonicalization requires fixed size encoding here - sfixed64 round = 3; // canonicalization requires fixed size encoding here - CanonicalBlockID block_id = 4 [(gogoproto.customname) = "BlockID"]; - google.protobuf.Timestamp timestamp = 5 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; - string chain_id = 6 [(gogoproto.customname) = "ChainID"]; -} - -// CanonicalVoteExtension provides us a way to serialize a vote extension from -// a particular validator such that we can sign over those serialized bytes. -message CanonicalVoteExtension { - bytes extension = 1; - sfixed64 height = 2; - sfixed64 round = 3; - string chain_id = 4; -} diff --git a/proto/cometbft/types/v2/events.proto b/proto/cometbft/types/v2/events.proto deleted file mode 100644 index b496677884..0000000000 --- a/proto/cometbft/types/v2/events.proto +++ /dev/null @@ -1,11 +0,0 @@ -syntax = "proto3"; -package cometbft.types.v2; - -option go_package = "github.com/cometbft/cometbft/api/cometbft/types/v2"; - -// EventDataRoundState is emitted with each new round step. -message EventDataRoundState { - int64 height = 1; - int32 round = 2; - string step = 3; -} diff --git a/proto/cometbft/types/v2/params.proto b/proto/cometbft/types/v2/params.proto deleted file mode 100644 index a9e94e6201..0000000000 --- a/proto/cometbft/types/v2/params.proto +++ /dev/null @@ -1,147 +0,0 @@ -syntax = "proto3"; -package cometbft.types.v2; - -option go_package = "github.com/cometbft/cometbft/api/cometbft/types/v2"; - -import "gogoproto/gogo.proto"; -import "google/protobuf/duration.proto"; -import "google/protobuf/wrappers.proto"; - -option (gogoproto.equal_all) = true; - -// ConsensusParams contains consensus critical parameters that determine the -// validity of blocks. -message ConsensusParams { - BlockParams block = 1; - EvidenceParams evidence = 2; - ValidatorParams validator = 3; - VersionParams version = 4; - ABCIParams abci = 5 [deprecated = true]; // Use FeatureParams.vote_extensions_enable_height instead - SynchronyParams synchrony = 6; - FeatureParams feature = 7; -} - -// BlockParams define limits on the block size and gas. -message BlockParams { - // Maximum size of a block, in bytes. - // - // Must be greater or equal to -1 and cannot be greater than the hard-coded - // maximum block size, which is 100MB. - // - // If set to -1, the limit is the hard-coded maximum block size. - int64 max_bytes = 1; - // Maximum gas wanted by transactions included in a block. - // - // Must be greater or equal to -1. If set to -1, no limit is enforced. - int64 max_gas = 2; - - reserved 3; // was TimeIotaMs see https://github.com/tendermint/tendermint/pull/5792 -} - -// EvidenceParams determine the validity of evidences of Byzantine behavior. -message EvidenceParams { - // Maximum age of evidence, in blocks. - // - // The recommended formula for calculating it is max_age_duration / {average - // block time}. - int64 max_age_num_blocks = 1; - - // Maximum age of evidence, in time. - // - // The recommended value of is should correspond to the application's - // "unbonding period" or other similar mechanism for handling - // Nothing-At-Stake attacks. - // See: - // https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed. - google.protobuf.Duration max_age_duration = 2 [(gogoproto.nullable) = false, (gogoproto.stdduration) = true]; - - // Maximum size in bytes of evidence allowed to be included in a block. - // - // It should fall comfortably under the maximum size of a block. - int64 max_bytes = 3; -} - -// ValidatorParams restrict the public key types validators can use. -// -// NOTE: uses ABCI public keys naming, not Amino names. -message ValidatorParams { - option (gogoproto.populate) = true; - option (gogoproto.equal) = true; - - repeated string pub_key_types = 1; -} - -// VersionParams contain the version of specific components of CometBFT. -message VersionParams { - option (gogoproto.populate) = true; - option (gogoproto.equal) = true; - - // The ABCI application version. - // - // It was named app_version in CometBFT 0.34. - uint64 app = 1; -} - -// HashedParams is a subset of ConsensusParams. -// -// It is hashed into the Header.ConsensusHash. -message HashedParams { - int64 block_max_bytes = 1; - int64 block_max_gas = 2; -} - -// SynchronyParams determine the validity of block timestamps. -// -// These parameters are part of the Proposer-Based Timestamps (PBTS) algorithm. -// For more information on the relationship of the synchrony parameters to -// block timestamps validity, refer to the PBTS specification: -// https://github.com/tendermint/spec/blob/master/spec/consensus/proposer-based-timestamp/README.md -message SynchronyParams { - // Bound for how skewed a proposer's clock may be from any validator on the - // network while still producing valid proposals. - google.protobuf.Duration precision = 1 [(gogoproto.stdduration) = true]; - // Bound for how long a proposal message may take to reach all validators on - // a network and still be considered valid. - google.protobuf.Duration message_delay = 2 [(gogoproto.stdduration) = true]; -} - -// FeatureParams configure the height from which features of CometBFT are enabled. -message FeatureParams { - // Height during which vote extensions will be enabled. - // - // A value of 0 means vote extensions are disabled. A value > 0 denotes - // the height at which vote extensions will be (or have been) enabled. - // - // During the specified height, and for all subsequent heights, precommit - // messages that do not contain valid extension data will be considered - // invalid. Prior to this height, or when this height is set to 0, 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, validated by the application in VerifyVoteExtension, and - // used by the application in PrepareProposal, when proposing the next block. - // - // Cannot be set to heights lower or equal to the current blockchain height. - google.protobuf.Int64Value vote_extensions_enable_height = 1 [(gogoproto.nullable) = true]; - - // Height at which Proposer-Based Timestamps (PBTS) will be enabled. - // - // A value of 0 means PBTS is disabled. A value > 0 denotes the height at - // which PBTS will be (or has been) enabled. - // - // From the specified height, and for all subsequent heights, the PBTS - // algorithm will be used to produce and validate block timestamps. Prior to - // this height, or when this height is set to 0, the legacy BFT Time - // algorithm is used to produce and validate timestamps. - // - // Cannot be set to heights lower or equal to the current blockchain height. - google.protobuf.Int64Value pbts_enable_height = 2 [(gogoproto.nullable) = true]; -} - -// ABCIParams is deprecated and its contents moved to FeatureParams -message ABCIParams { - option deprecated = true; - // vote_extensions_enable_height has been deprecated. - // Instead, use FeatureParams.vote_extensions_enable_height. - int64 vote_extensions_enable_height = 1; -} diff --git a/proto/cometbft/types/v2/validator.proto b/proto/cometbft/types/v2/validator.proto deleted file mode 100644 index 11f866a1b1..0000000000 --- a/proto/cometbft/types/v2/validator.proto +++ /dev/null @@ -1,47 +0,0 @@ -syntax = "proto3"; -package cometbft.types.v2; - -option go_package = "github.com/cometbft/cometbft/api/cometbft/types/v2"; - -import "cometbft/crypto/v1/keys.proto"; -import "gogoproto/gogo.proto"; - -// BlockIdFlag indicates which BlockID the signature is for -enum BlockIDFlag { - option (gogoproto.goproto_enum_stringer) = true; - option (gogoproto.goproto_enum_prefix) = false; - - // Indicates an error condition - BLOCK_ID_FLAG_UNKNOWN = 0 [(gogoproto.enumvalue_customname) = "BlockIDFlagUnknown"]; - // The vote was not received - BLOCK_ID_FLAG_ABSENT = 1 [(gogoproto.enumvalue_customname) = "BlockIDFlagAbsent"]; - // Voted for the block that received the majority - BLOCK_ID_FLAG_COMMIT = 2 [(gogoproto.enumvalue_customname) = "BlockIDFlagCommit"]; - // Voted for nil - BLOCK_ID_FLAG_NIL = 3 [(gogoproto.enumvalue_customname) = "BlockIDFlagNil"]; -} - -// ValidatorSet defines a set of validators. -message ValidatorSet { - repeated Validator validators = 1; - Validator proposer = 2; - int64 total_voting_power = 3; -} - -// Validator represents a node participating in the consensus protocol. -message Validator { - bytes address = 1; - cometbft.crypto.v1.PublicKey pub_key = 2 [deprecated = true]; - int64 voting_power = 3; - int64 proposer_priority = 4; - bytes pub_key_bytes = 5; - string pub_key_type = 6; -} - -// SimpleValidator is a Validator, which is serialized and hashed in consensus. -// Address is removed because it's redundant with the pubkey. -// Proposer priority is removed because it changes every round. -message SimpleValidator { - cometbft.crypto.v1.PublicKey pub_key = 1; - int64 voting_power = 2; -} diff --git a/proto/cosmos/base/abci/v1beta1/abci.proto b/proto/cosmos/base/abci/v1beta1/abci.proto index c3e768983d..93eff810ec 100644 --- a/proto/cosmos/base/abci/v1beta1/abci.proto +++ b/proto/cosmos/base/abci/v1beta1/abci.proto @@ -2,8 +2,8 @@ syntax = "proto3"; package cosmos.base.abci.v1beta1; import "gogoproto/gogo.proto"; -import "cometbft/abci/v2/types.proto"; -import "cometbft/types/v2/block.proto"; +import "tendermint/abci/types.proto"; +import "tendermint/types/block.proto"; import "google/protobuf/any.proto"; import "cosmos_proto/cosmos.proto"; @@ -45,7 +45,7 @@ message TxResponse { // 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. - repeated cometbft.abci.v2.Event events = 13 + repeated tendermint.abci.Event events = 13 [(gogoproto.nullable) = false, (cosmos_proto.field_added_in) = "cosmos-sdk 0.45"]; } @@ -61,7 +61,7 @@ message ABCIMessageLog { repeated StringEvent events = 3 [(gogoproto.castrepeated) = "StringEvents", (gogoproto.nullable) = false]; } -// StringEvent defines an Event object wrapper where all the attributes +// StringEvent defines en Event object wrapper where all the attributes // contain key/value pairs that are strings instead of raw bytes. message StringEvent { option (gogoproto.stringer) = true; @@ -101,7 +101,7 @@ message Result { // Events contains a slice of Event objects that were emitted during message // or handler execution. - repeated cometbft.abci.v2.Event events = 3 [(gogoproto.nullable) = false]; + repeated tendermint.abci.Event events = 3 [(gogoproto.nullable) = false]; // msg_responses contains the Msg handler responses type packed in Anys. repeated google.protobuf.Any msg_responses = 4 [(cosmos_proto.field_added_in) = "cosmos-sdk 0.46"]; @@ -169,5 +169,5 @@ message SearchBlocksResult { // Max count blocks per page int64 limit = 5; // List of blocks in current page - repeated cometbft.types.v2.Block blocks = 6; + repeated tendermint.types.Block blocks = 6; } diff --git a/proto/cosmos/base/tendermint/v1beta1/query.proto b/proto/cosmos/base/tendermint/v1beta1/query.proto index 64d0e5c57f..2ec60178f1 100644 --- a/proto/cosmos/base/tendermint/v1beta1/query.proto +++ b/proto/cosmos/base/tendermint/v1beta1/query.proto @@ -4,12 +4,12 @@ package cosmos.base.tendermint.v1beta1; import "gogoproto/gogo.proto"; import "google/protobuf/any.proto"; import "google/api/annotations.proto"; -import "cometbft/p2p/v1/types.proto"; -import "cometbft/types/v2/types.proto"; +import "tendermint/p2p/types.proto"; +import "tendermint/types/types.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; import "cosmos/base/tendermint/v1beta1/types.proto"; import "cosmos_proto/cosmos.proto"; -import "cometbft/types/v2/block.proto"; +import "tendermint/types/block.proto"; import "amino/amino.proto"; option go_package = "github.com/cosmos/cosmos-sdk/client/grpc/cmtservice"; @@ -58,7 +58,7 @@ service Service { // GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method. message GetValidatorSetByHeightRequest { int64 height = 1; - // pagination defines a pagination for the request. + // pagination defines an pagination for the request. cosmos.base.query.v1beta1.PageRequest pagination = 2; } @@ -66,13 +66,13 @@ message GetValidatorSetByHeightRequest { message GetValidatorSetByHeightResponse { int64 block_height = 1; repeated Validator validators = 2; - // pagination defines a pagination for the response. + // pagination defines an pagination for the response. cosmos.base.query.v1beta1.PageResponse pagination = 3; } // GetLatestValidatorSetRequest is the request type for the Query/GetValidatorSetByHeight RPC method. message GetLatestValidatorSetRequest { - // pagination defines a pagination for the request. + // pagination defines an pagination for the request. cosmos.base.query.v1beta1.PageRequest pagination = 1; } @@ -80,7 +80,7 @@ message GetLatestValidatorSetRequest { message GetLatestValidatorSetResponse { int64 block_height = 1; repeated Validator validators = 2; - // pagination defines a pagination for the response. + // pagination defines an pagination for the response. cosmos.base.query.v1beta1.PageResponse pagination = 3; } @@ -99,10 +99,10 @@ message GetBlockByHeightRequest { // GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method. message GetBlockByHeightResponse { - cometbft.types.v2.BlockID block_id = 1; + .tendermint.types.BlockID block_id = 1; // Deprecated: please use `sdk_block` instead - cometbft.types.v2.Block block = 2; + .tendermint.types.Block block = 2; Block sdk_block = 3 [(cosmos_proto.field_added_in) = "cosmos-sdk 0.47"]; } @@ -112,10 +112,10 @@ message GetLatestBlockRequest {} // GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method. message GetLatestBlockResponse { - cometbft.types.v2.BlockID block_id = 1; + .tendermint.types.BlockID block_id = 1; // Deprecated: please use `sdk_block` instead - cometbft.types.v2.Block block = 2; + .tendermint.types.Block block = 2; Block sdk_block = 3 [(cosmos_proto.field_added_in) = "cosmos-sdk 0.47"]; } @@ -133,7 +133,7 @@ message GetNodeInfoRequest {} // GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC method. message GetNodeInfoResponse { - cometbft.p2p.v1.DefaultNodeInfo default_node_info = 1; + .tendermint.p2p.DefaultNodeInfo default_node_info = 1; VersionInfo application_version = 2; } diff --git a/proto/cosmos/base/tendermint/v1beta1/types.proto b/proto/cosmos/base/tendermint/v1beta1/types.proto index c984c1b2be..624ff41491 100644 --- a/proto/cosmos/base/tendermint/v1beta1/types.proto +++ b/proto/cosmos/base/tendermint/v1beta1/types.proto @@ -2,9 +2,9 @@ syntax = "proto3"; package cosmos.base.tendermint.v1beta1; import "gogoproto/gogo.proto"; -import "cometbft/types/v2/types.proto"; -import "cometbft/types/v2/evidence.proto"; -import "cometbft/version/v1/types.proto"; +import "tendermint/types/types.proto"; +import "tendermint/types/evidence.proto"; +import "tendermint/version/types.proto"; import "google/protobuf/timestamp.proto"; import "amino/amino.proto"; @@ -14,22 +14,22 @@ option go_package = "github.com/cosmos/cosmos-sdk/client/grpc/cmtservice"; // field converted to bech32 string. message Block { Header header = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; - cometbft.types.v2.Data data = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; - cometbft.types.v2.EvidenceList evidence = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; - cometbft.types.v2.Commit last_commit = 4; + .tendermint.types.Data data = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + .tendermint.types.EvidenceList evidence = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + .tendermint.types.Commit last_commit = 4; } // Header defines the structure of a Tendermint block header. message Header { // basic block info - cometbft.version.v1.Consensus version = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + .tendermint.version.Consensus version = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; string chain_id = 2 [(gogoproto.customname) = "ChainID"]; int64 height = 3; google.protobuf.Timestamp time = 4 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.stdtime) = true]; // prev block info - cometbft.types.v2.BlockID last_block_id = 5 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + .tendermint.types.BlockID last_block_id = 5 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // hashes of block data bytes last_commit_hash = 6; // commit from validators from the last block diff --git a/proto/cosmos/consensus/v1/query.proto b/proto/cosmos/consensus/v1/query.proto index e1e0401eae..ba9f821fce 100644 --- a/proto/cosmos/consensus/v1/query.proto +++ b/proto/cosmos/consensus/v1/query.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package cosmos.consensus.v1; import "google/api/annotations.proto"; -import "cometbft/types/v2/params.proto"; +import "tendermint/types/params.proto"; import "cosmos_proto/cosmos.proto"; option go_package = "github.com/cosmos/cosmos-sdk/x/consensus/types"; @@ -24,5 +24,5 @@ message QueryParamsResponse { // 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. - cometbft.types.v2.ConsensusParams params = 1; + tendermint.types.ConsensusParams params = 1; } diff --git a/proto/cosmos/consensus/v1/tx.proto b/proto/cosmos/consensus/v1/tx.proto index 95cbc5abe4..1ede7eade6 100644 --- a/proto/cosmos/consensus/v1/tx.proto +++ b/proto/cosmos/consensus/v1/tx.proto @@ -4,7 +4,7 @@ package cosmos.consensus.v1; import "amino/amino.proto"; import "cosmos_proto/cosmos.proto"; import "cosmos/msg/v1/msg.proto"; -import "cometbft/types/v2/params.proto"; +import "tendermint/types/params.proto"; option go_package = "github.com/cosmos/cosmos-sdk/x/consensus/types"; @@ -29,17 +29,14 @@ message MsgUpdateParams { // params defines the x/consensus parameters to update. // VersionsParams is not included in this Msg because it is tracked - // separately in x/upgrade. + // separarately in x/upgrade. // // NOTE: All parameters must be supplied. - cometbft.types.v2.BlockParams block = 2; - cometbft.types.v2.EvidenceParams evidence = 3; - cometbft.types.v2.ValidatorParams validator = 4; + tendermint.types.BlockParams block = 2; + tendermint.types.EvidenceParams evidence = 3; + tendermint.types.ValidatorParams validator = 4; - cometbft.types.v2.ABCIParams abci = 5 [deprecated = true, (cosmos_proto.field_added_in) = "cosmos-sdk 0.50"]; - - cometbft.types.v2.SynchronyParams synchrony = 6 [(cosmos_proto.field_added_in) = "cosmos-sdk 0.54"]; - cometbft.types.v2.FeatureParams feature = 7 [(cosmos_proto.field_added_in) = "cosmos-sdk 0.54"]; + tendermint.types.ABCIParams abci = 5 [(cosmos_proto.field_added_in) = "cosmos-sdk 0.50"]; } // MsgUpdateParamsResponse defines the response structure for executing a diff --git a/proto/cosmos/staking/v1beta1/staking.proto b/proto/cosmos/staking/v1beta1/staking.proto index a7f6ba686e..c8ed16f8ec 100644 --- a/proto/cosmos/staking/v1beta1/staking.proto +++ b/proto/cosmos/staking/v1beta1/staking.proto @@ -9,8 +9,8 @@ import "google/protobuf/timestamp.proto"; import "cosmos_proto/cosmos.proto"; import "cosmos/base/v1beta1/coin.proto"; import "amino/amino.proto"; -import "cometbft/types/v2/types.proto"; -import "cometbft/abci/v2/types.proto"; +import "tendermint/types/types.proto"; +import "tendermint/abci/types.proto"; option go_package = "github.com/cosmos/cosmos-sdk/x/staking/types"; @@ -19,8 +19,8 @@ option go_package = "github.com/cosmos/cosmos-sdk/x/staking/types"; // recent HistoricalInfo // (`n` is set by the staking module's `historical_entries` parameter). message HistoricalInfo { - cometbft.types.v2.Header header = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; - repeated Validator valset = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + tendermint.types.Header header = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + repeated Validator valset = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // CommissionRates defines the initial commission rates to be used for creating @@ -131,7 +131,7 @@ message Validator { // strictly positive if this validator's unbonding has been stopped by external modules int64 unbonding_on_hold_ref_count = 12; - // list of unbonding ids, each uniquely identifying an unbonding of this validator + // list of unbonding ids, each uniquely identifing an unbonding of this validator repeated uint64 unbonding_ids = 13; } @@ -376,7 +376,7 @@ message Pool { ]; } -// Infraction indicates the infraction a validator committed. +// Infraction indicates the infraction a validator commited. enum Infraction { // UNSPECIFIED defines an empty infraction. INFRACTION_UNSPECIFIED = 0; @@ -389,5 +389,5 @@ enum Infraction { // ValidatorUpdates defines an array of abci.ValidatorUpdate objects. // TODO: explore moving this to proto/cosmos/base to separate modules from tendermint dependence message ValidatorUpdates { - repeated cometbft.abci.v2.ValidatorUpdate updates = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + repeated tendermint.abci.ValidatorUpdate updates = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } diff --git a/proto/cosmos/store/streaming/abci/grpc.proto b/proto/cosmos/store/streaming/abci/grpc.proto index 0f62815209..25366cdbdc 100644 --- a/proto/cosmos/store/streaming/abci/grpc.proto +++ b/proto/cosmos/store/streaming/abci/grpc.proto @@ -2,15 +2,15 @@ syntax = "proto3"; package cosmos.store.streaming.abci; -import "cometbft/abci/v2/types.proto"; +import "tendermint/abci/types.proto"; import "cosmos/store/v1beta1/listening.proto"; option go_package = "cosmossdk.io/store/streaming/abci"; // ListenEndBlockRequest is the request type for the ListenEndBlock RPC method message ListenFinalizeBlockRequest { - cometbft.abci.v2.FinalizeBlockRequest req = 1; - cometbft.abci.v2.FinalizeBlockResponse res = 2; + tendermint.abci.RequestFinalizeBlock req = 1; + tendermint.abci.ResponseFinalizeBlock res = 2; } // ListenEndBlockResponse is the response type for the ListenEndBlock RPC method @@ -19,8 +19,8 @@ message ListenFinalizeBlockResponse {} // ListenCommitRequest is the request type for the ListenCommit RPC method message ListenCommitRequest { // explicitly pass in block height as ResponseCommit does not contain this info - int64 block_height = 1; - cometbft.abci.v2.CommitResponse res = 2; + int64 block_height = 1; + tendermint.abci.ResponseCommit res = 2; repeated cosmos.store.v1beta1.StoreKVPair change_set = 3; } diff --git a/proto/cosmos/store/v1beta1/listening.proto b/proto/cosmos/store/v1beta1/listening.proto index 4ff386ea00..0d892555a1 100644 --- a/proto/cosmos/store/v1beta1/listening.proto +++ b/proto/cosmos/store/v1beta1/listening.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package cosmos.store.v1beta1; -import "cometbft/abci/v2/types.proto"; +import "tendermint/abci/types.proto"; import "cosmos_proto/cosmos.proto"; option go_package = "cosmossdk.io/store/types"; @@ -20,9 +20,9 @@ message StoreKVPair { // BlockMetadata contains all the abci event data of a block // the file streamer dump them into files together with the state changes. message BlockMetadata { - cometbft.abci.v2.CommitResponse response_commit = 6; - cometbft.abci.v2.FinalizeBlockRequest request_finalize_block = 7; - cometbft.abci.v2.FinalizeBlockResponse response_finalize_block = 8; // TODO: should we renumber this? + tendermint.abci.ResponseCommit response_commit = 6; + tendermint.abci.RequestFinalizeBlock request_finalize_block = 7; + tendermint.abci.ResponseFinalizeBlock response_finalize_block = 8; // TODO: should we renumber this? reserved 1, 2, 3, 4, 5; // reserved for from previous use in comet <= 0.37 } diff --git a/proto/cosmos/tx/v1beta1/service.proto b/proto/cosmos/tx/v1beta1/service.proto index 260b378f8a..066b2e27c3 100644 --- a/proto/cosmos/tx/v1beta1/service.proto +++ b/proto/cosmos/tx/v1beta1/service.proto @@ -5,8 +5,8 @@ import "google/api/annotations.proto"; import "cosmos/base/abci/v1beta1/abci.proto"; import "cosmos/tx/v1beta1/tx.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; -import "cometbft/types/v2/block.proto"; -import "cometbft/types/v2/types.proto"; +import "tendermint/types/block.proto"; +import "tendermint/types/types.proto"; import "cosmos_proto/cosmos.proto"; option go_package = "github.com/cosmos/cosmos-sdk/types/tx"; @@ -207,8 +207,8 @@ message GetBlockWithTxsResponse { option (cosmos_proto.message_added_in) = "cosmos-sdk 0.45.2"; // txs are the transactions in the block. repeated cosmos.tx.v1beta1.Tx txs = 1; - cometbft.types.v2.BlockID block_id = 2; - cometbft.types.v2.Block block = 3; + .tendermint.types.BlockID block_id = 2; + .tendermint.types.Block block = 3; // pagination defines a pagination for the response. cosmos.base.query.v1beta1.PageResponse pagination = 4; } diff --git a/proto/tendermint/abci/types.proto b/proto/tendermint/abci/types.proto new file mode 100644 index 0000000000..78eeccebf4 --- /dev/null +++ b/proto/tendermint/abci/types.proto @@ -0,0 +1,486 @@ +syntax = "proto3"; +package tendermint.abci; + +option go_package = "github.com/cometbft/cometbft/abci/types"; + +// For more information on gogo.proto, see: +// https://github.com/cosmos/gogoproto/blob/master/extensions.md +import "tendermint/crypto/proof.proto"; +import "tendermint/crypto/keys.proto"; +import "tendermint/types/params.proto"; +import "tendermint/types/validator.proto"; +import "google/protobuf/timestamp.proto"; +import "gogoproto/gogo.proto"; + +// NOTE: When using custom types, mind the warnings. +// https://github.com/cosmos/gogoproto/blob/master/custom_types.md#warnings-and-issues + +service ABCI { + rpc Echo(RequestEcho) returns (ResponseEcho); + rpc Flush(RequestFlush) returns (ResponseFlush); + rpc Info(RequestInfo) returns (ResponseInfo); + rpc CheckTx(RequestCheckTx) returns (ResponseCheckTx); + rpc Query(RequestQuery) returns (ResponseQuery); + rpc Commit(RequestCommit) returns (ResponseCommit); + rpc InitChain(RequestInitChain) returns (ResponseInitChain); + rpc ListSnapshots(RequestListSnapshots) returns (ResponseListSnapshots); + rpc OfferSnapshot(RequestOfferSnapshot) returns (ResponseOfferSnapshot); + rpc LoadSnapshotChunk(RequestLoadSnapshotChunk) returns (ResponseLoadSnapshotChunk); + rpc ApplySnapshotChunk(RequestApplySnapshotChunk) returns (ResponseApplySnapshotChunk); + rpc PrepareProposal(RequestPrepareProposal) returns (ResponsePrepareProposal); + rpc ProcessProposal(RequestProcessProposal) returns (ResponseProcessProposal); + rpc ExtendVote(RequestExtendVote) returns (ResponseExtendVote); + rpc VerifyVoteExtension(RequestVerifyVoteExtension) returns (ResponseVerifyVoteExtension); + rpc FinalizeBlock(RequestFinalizeBlock) returns (ResponseFinalizeBlock); +} + +//---------------------------------------- +// Request types + +message Request { + oneof value { + RequestEcho echo = 1; + RequestFlush flush = 2; + RequestInfo info = 3; + RequestInitChain init_chain = 5; + RequestQuery query = 6; + RequestCheckTx check_tx = 8; + RequestCommit commit = 11; + RequestListSnapshots list_snapshots = 12; + RequestOfferSnapshot offer_snapshot = 13; + RequestLoadSnapshotChunk load_snapshot_chunk = 14; + RequestApplySnapshotChunk apply_snapshot_chunk = 15; + RequestPrepareProposal prepare_proposal = 16; + RequestProcessProposal process_proposal = 17; + RequestExtendVote extend_vote = 18; + RequestVerifyVoteExtension verify_vote_extension = 19; + RequestFinalizeBlock finalize_block = 20; + } + reserved 4, 7, 9, 10; // SetOption, BeginBlock, DeliverTx, EndBlock +} + +message RequestEcho { + string message = 1; +} + +message RequestFlush {} + +message RequestInfo { + string version = 1; + uint64 block_version = 2; + uint64 p2p_version = 3; + string abci_version = 4; +} + +message RequestInitChain { + google.protobuf.Timestamp time = 1 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; + string chain_id = 2; + tendermint.types.ConsensusParams consensus_params = 3; + repeated ValidatorUpdate validators = 4 [(gogoproto.nullable) = false]; + bytes app_state_bytes = 5; + int64 initial_height = 6; +} + +message RequestQuery { + bytes data = 1; + string path = 2; + int64 height = 3; + bool prove = 4; +} + +enum CheckTxType { + NEW = 0 [(gogoproto.enumvalue_customname) = "New"]; + RECHECK = 1 [(gogoproto.enumvalue_customname) = "Recheck"]; +} + +message RequestCheckTx { + bytes tx = 1; + CheckTxType type = 2; +} + +message RequestCommit {} + +// lists available snapshots +message RequestListSnapshots {} + +// offers a snapshot to the application +message RequestOfferSnapshot { + Snapshot snapshot = 1; // snapshot offered by peers + bytes app_hash = 2; // light client-verified app hash for snapshot height +} + +// loads a snapshot chunk +message RequestLoadSnapshotChunk { + uint64 height = 1; + uint32 format = 2; + uint32 chunk = 3; +} + +// Applies a snapshot chunk +message RequestApplySnapshotChunk { + uint32 index = 1; + bytes chunk = 2; + string sender = 3; +} + +message RequestPrepareProposal { + // the modified transactions cannot exceed this size. + int64 max_tx_bytes = 1; + // txs is an array of transactions that will be included in a block, + // sent to the app for possible modifications. + repeated bytes txs = 2; + ExtendedCommitInfo local_last_commit = 3 [(gogoproto.nullable) = false]; + repeated Misbehavior misbehavior = 4 [(gogoproto.nullable) = false]; + int64 height = 5; + google.protobuf.Timestamp time = 6 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; + bytes next_validators_hash = 7; + // address of the public key of the validator proposing the block. + bytes proposer_address = 8; +} + +message RequestProcessProposal { + repeated bytes txs = 1; + CommitInfo proposed_last_commit = 2 [(gogoproto.nullable) = false]; + repeated Misbehavior misbehavior = 3 [(gogoproto.nullable) = false]; + // hash is the merkle root hash of the fields of the proposed block. + bytes hash = 4; + int64 height = 5; + google.protobuf.Timestamp time = 6 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; + bytes next_validators_hash = 7; + // address of the public key of the original proposer of the block. + bytes proposer_address = 8; +} + +// Extends a vote with application-injected data +message RequestExtendVote { + // the hash of the block that this vote may be referring to + bytes hash = 1; + // the height of the extended vote + int64 height = 2; + // info of the block that this vote may be referring to + google.protobuf.Timestamp time = 3 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; + repeated bytes txs = 4; + CommitInfo proposed_last_commit = 5 [(gogoproto.nullable) = false]; + repeated Misbehavior misbehavior = 6 [(gogoproto.nullable) = false]; + bytes next_validators_hash = 7; + // address of the public key of the original proposer of the block. + bytes proposer_address = 8; +} + +// Verify the vote extension +message RequestVerifyVoteExtension { + // the hash of the block that this received vote corresponds to + bytes hash = 1; + // the validator that signed the vote extension + bytes validator_address = 2; + int64 height = 3; + bytes vote_extension = 4; +} + +message RequestFinalizeBlock { + repeated bytes txs = 1; + CommitInfo decided_last_commit = 2 [(gogoproto.nullable) = false]; + repeated Misbehavior misbehavior = 3 [(gogoproto.nullable) = false]; + // hash is the merkle root hash of the fields of the decided block. + bytes hash = 4; + int64 height = 5; + google.protobuf.Timestamp time = 6 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; + bytes next_validators_hash = 7; + // proposer_address is the address of the public key of the original proposer of the block. + bytes proposer_address = 8; +} + +//---------------------------------------- +// Response types + +message Response { + oneof value { + ResponseException exception = 1; + ResponseEcho echo = 2; + ResponseFlush flush = 3; + ResponseInfo info = 4; + ResponseInitChain init_chain = 6; + ResponseQuery query = 7; + ResponseCheckTx check_tx = 9; + ResponseCommit commit = 12; + ResponseListSnapshots list_snapshots = 13; + ResponseOfferSnapshot offer_snapshot = 14; + ResponseLoadSnapshotChunk load_snapshot_chunk = 15; + ResponseApplySnapshotChunk apply_snapshot_chunk = 16; + ResponsePrepareProposal prepare_proposal = 17; + ResponseProcessProposal process_proposal = 18; + ResponseExtendVote extend_vote = 19; + ResponseVerifyVoteExtension verify_vote_extension = 20; + ResponseFinalizeBlock finalize_block = 21; + } + reserved 5, 8, 10, 11; // SetOption, BeginBlock, DeliverTx, EndBlock +} + +// nondeterministic +message ResponseException { + string error = 1; +} + +message ResponseEcho { + string message = 1; +} + +message ResponseFlush {} + +message ResponseInfo { + string data = 1; + + string version = 2; + uint64 app_version = 3; + + int64 last_block_height = 4; + bytes last_block_app_hash = 5; +} + +message ResponseInitChain { + tendermint.types.ConsensusParams consensus_params = 1; + repeated ValidatorUpdate validators = 2 [(gogoproto.nullable) = false]; + bytes app_hash = 3; +} + +message ResponseQuery { + uint32 code = 1; + // bytes data = 2; // use "value" instead. + string log = 3; // nondeterministic + string info = 4; // nondeterministic + int64 index = 5; + bytes key = 6; + bytes value = 7; + tendermint.crypto.ProofOps proof_ops = 8; + int64 height = 9; + string codespace = 10; +} + +message ResponseCheckTx { + uint32 code = 1; + bytes data = 2; + string log = 3; // nondeterministic + string info = 4; // nondeterministic + int64 gas_wanted = 5 [json_name = "gas_wanted"]; + int64 gas_used = 6 [json_name = "gas_used"]; + repeated Event events = 7 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "events,omitempty"]; + string codespace = 8; + + // These reserved fields were used until v0.37 by the priority mempool (now + // removed). + reserved 9 to 11; + reserved "sender", "priority", "mempool_error"; +} + +message ResponseCommit { + reserved 1, 2; // data was previously returned here + int64 retain_height = 3; +} + +message ResponseListSnapshots { + repeated Snapshot snapshots = 1; +} + +message ResponseOfferSnapshot { + Result result = 1; + + enum Result { + UNKNOWN = 0; // Unknown result, abort all snapshot restoration + ACCEPT = 1; // Snapshot accepted, apply chunks + ABORT = 2; // Abort all snapshot restoration + REJECT = 3; // Reject this specific snapshot, try others + REJECT_FORMAT = 4; // Reject all snapshots of this format, try others + REJECT_SENDER = 5; // Reject all snapshots from the sender(s), try others + } +} + +message ResponseLoadSnapshotChunk { + bytes chunk = 1; +} + +message ResponseApplySnapshotChunk { + Result result = 1; + repeated uint32 refetch_chunks = 2; // Chunks to refetch and reapply + repeated string reject_senders = 3; // Chunk senders to reject and ban + + enum Result { + UNKNOWN = 0; // Unknown result, abort all snapshot restoration + ACCEPT = 1; // Chunk successfully accepted + ABORT = 2; // Abort all snapshot restoration + RETRY = 3; // Retry chunk (combine with refetch and reject) + RETRY_SNAPSHOT = 4; // Retry snapshot (combine with refetch and reject) + REJECT_SNAPSHOT = 5; // Reject this snapshot, try others + } +} + +message ResponsePrepareProposal { + repeated bytes txs = 1; +} + +message ResponseProcessProposal { + ProposalStatus status = 1; + + enum ProposalStatus { + UNKNOWN = 0; + ACCEPT = 1; + REJECT = 2; + } +} + +message ResponseExtendVote { + bytes vote_extension = 1; +} + +message ResponseVerifyVoteExtension { + VerifyStatus status = 1; + + enum VerifyStatus { + UNKNOWN = 0; + 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. + REJECT = 2; + } +} + +message ResponseFinalizeBlock { + // set of block events emmitted as part of executing the block + repeated Event events = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "events,omitempty"]; + // 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 + repeated ExecTxResult tx_results = 2; + // a list of updates to the validator set. These will reflect the validator set at current height + 2. + repeated ValidatorUpdate validator_updates = 3 [(gogoproto.nullable) = false]; + // updates to the consensus params, if any. + tendermint.types.ConsensusParams consensus_param_updates = 4; + // 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. + bytes app_hash = 5; +} + +//---------------------------------------- +// Misc. + +message CommitInfo { + int32 round = 1; + repeated VoteInfo votes = 2 [(gogoproto.nullable) = false]; +} + +// 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. +message ExtendedCommitInfo { + // The round at which the block proposer decided in the previous height. + int32 round = 1; + // List of validators' addresses in the last validator set with their voting + // information, including vote extensions. + repeated ExtendedVoteInfo votes = 2 [(gogoproto.nullable) = false]; +} + +// Event allows application developers to attach additional information to +// ResponseFinalizeBlock and ResponseCheckTx. +// Later, transactions may be queried using these events. +message Event { + string type = 1; + repeated EventAttribute attributes = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "attributes,omitempty"]; +} + +// EventAttribute is a single key-value pair, associated with an event. +message EventAttribute { + string key = 1; + string value = 2; + bool index = 3; // nondeterministic +} + +// ExecTxResult contains results of executing one individual transaction. +// +// * Its structure is equivalent to #ResponseDeliverTx which will be deprecated/deleted +message ExecTxResult { + uint32 code = 1; + bytes data = 2; + string log = 3; // nondeterministic + string info = 4; // nondeterministic + int64 gas_wanted = 5 [json_name = "gas_wanted"]; + int64 gas_used = 6 [json_name = "gas_used"]; + repeated Event events = 7 + [(gogoproto.nullable) = false, (gogoproto.jsontag) = "events,omitempty"]; // nondeterministic + string codespace = 8; +} + +// TxResult contains results of executing the transaction. +// +// One usage is indexing transaction results. +message TxResult { + int64 height = 1; + uint32 index = 2; + bytes tx = 3; + ExecTxResult result = 4 [(gogoproto.nullable) = false]; +} + +//---------------------------------------- +// Blockchain Types + +message Validator { + bytes address = 1; // The first 20 bytes of SHA256(public key) + // PubKey pub_key = 2 [(gogoproto.nullable)=false]; + int64 power = 3; // The voting power +} + +message ValidatorUpdate { + tendermint.crypto.PublicKey pub_key = 1 [(gogoproto.nullable) = false]; + int64 power = 2; +} + +message VoteInfo { + Validator validator = 1 [(gogoproto.nullable) = false]; + tendermint.types.BlockIDFlag block_id_flag = 3; + + reserved 2; // signed_last_block +} + +message ExtendedVoteInfo { + // The validator that sent the vote. + Validator validator = 1 [(gogoproto.nullable) = false]; + // Non-deterministic extension provided by the sending validator's application. + bytes vote_extension = 3; + // Vote extension signature created by CometBFT + bytes extension_signature = 4; + // block_id_flag indicates whether the validator voted for a block, nil, or did not vote at all + tendermint.types.BlockIDFlag block_id_flag = 5; + + reserved 2; // signed_last_block +} + +enum MisbehaviorType { + UNKNOWN = 0; + DUPLICATE_VOTE = 1; + LIGHT_CLIENT_ATTACK = 2; +} + +message Misbehavior { + MisbehaviorType type = 1; + // The offending validator + Validator validator = 2 [(gogoproto.nullable) = false]; + // The height when the offense occurred + int64 height = 3; + // The corresponding time where the offense occurred + google.protobuf.Timestamp time = 4 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; + // Total voting power of the validator set in case the ABCI application does + // not store historical validators. + // https://github.com/tendermint/tendermint/issues/4581 + int64 total_voting_power = 5; +} + +//---------------------------------------- +// State Sync Types + +message Snapshot { + uint64 height = 1; // The height at which the snapshot was taken + uint32 format = 2; // The application-specific snapshot format + uint32 chunks = 3; // Number of chunks in the snapshot + bytes hash = 4; // Arbitrary snapshot hash, equal only if identical + bytes metadata = 5; // Arbitrary application metadata +} diff --git a/proto/cometbft/crypto/v1/keys.proto b/proto/tendermint/crypto/keys.proto similarity index 51% rename from proto/cometbft/crypto/v1/keys.proto rename to proto/tendermint/crypto/keys.proto index 83479b73f9..8fa192fa4b 100644 --- a/proto/cometbft/crypto/v1/keys.proto +++ b/proto/tendermint/crypto/keys.proto @@ -1,19 +1,17 @@ syntax = "proto3"; -package cometbft.crypto.v1; +package tendermint.crypto; -option go_package = "github.com/cometbft/cometbft/api/cometbft/crypto/v1"; +option go_package = "github.com/cometbft/cometbft/proto/tendermint/crypto"; import "gogoproto/gogo.proto"; -// PublicKey is a ED25519 or a secp256k1 public key. +// PublicKey defines the keys available for use with Validators message PublicKey { option (gogoproto.compare) = true; option (gogoproto.equal) = true; - // The type of key. oneof sum { bytes ed25519 = 1; bytes secp256k1 = 2; - bytes bls12381 = 3; } } diff --git a/proto/cometbft/crypto/v1/proof.proto b/proto/tendermint/crypto/proof.proto similarity index 71% rename from proto/cometbft/crypto/v1/proof.proto rename to proto/tendermint/crypto/proof.proto index 2b462166c8..ae72195e86 100644 --- a/proto/cometbft/crypto/v1/proof.proto +++ b/proto/tendermint/crypto/proof.proto @@ -1,11 +1,10 @@ syntax = "proto3"; -package cometbft.crypto.v1; +package tendermint.crypto; -option go_package = "github.com/cometbft/cometbft/api/cometbft/crypto/v1"; +option go_package = "github.com/cometbft/cometbft/proto/tendermint/crypto"; import "gogoproto/gogo.proto"; -// Proof is a Merkle proof. message Proof { int64 total = 1; int64 index = 2; @@ -13,7 +12,6 @@ message Proof { repeated bytes aunts = 4; } -// ValueOp is a Merkle proof for a single key. message ValueOp { // Encoded in ProofOp.Key. bytes key = 1; @@ -22,7 +20,6 @@ message ValueOp { Proof proof = 2; } -// DominoOp always returns the given output. message DominoOp { string key = 1; string input = 2; @@ -30,7 +27,7 @@ message DominoOp { } // ProofOp defines an operation used for calculating Merkle root -// The data could be arbitrary format, providing necessary data +// The data could be arbitrary format, providing nessecary data // for example neighbouring node hash message ProofOp { string type = 1; diff --git a/proto/tendermint/libs/bits/types.proto b/proto/tendermint/libs/bits/types.proto new file mode 100644 index 0000000000..e6afc5e8ec --- /dev/null +++ b/proto/tendermint/libs/bits/types.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; +package tendermint.libs.bits; + +option go_package = "github.com/cometbft/cometbft/proto/tendermint/libs/bits"; + +message BitArray { + int64 bits = 1; + repeated uint64 elems = 2; +} diff --git a/proto/cometbft/p2p/v1/types.proto b/proto/tendermint/p2p/types.proto similarity index 71% rename from proto/cometbft/p2p/v1/types.proto rename to proto/tendermint/p2p/types.proto index 147752aa91..157d8ba1ca 100644 --- a/proto/cometbft/p2p/v1/types.proto +++ b/proto/tendermint/p2p/types.proto @@ -1,26 +1,22 @@ syntax = "proto3"; -package cometbft.p2p.v1; +package tendermint.p2p; -option go_package = "github.com/cometbft/cometbft/api/cometbft/p2p/v1"; +option go_package = "github.com/cometbft/cometbft/proto/tendermint/p2p"; import "gogoproto/gogo.proto"; -// NetAddress represents a peer's network address. message NetAddress { string id = 1 [(gogoproto.customname) = "ID"]; string ip = 2 [(gogoproto.customname) = "IP"]; uint32 port = 3; } -// ProtocolVersion represents the current p2p protocol version. message ProtocolVersion { uint64 p2p = 1 [(gogoproto.customname) = "P2P"]; uint64 block = 2; uint64 app = 3; } -// DefaultNodeInfo is a basic node's information sent to other peers during the -// p2p handshake. message DefaultNodeInfo { ProtocolVersion protocol_version = 1 [(gogoproto.nullable) = false]; string default_node_id = 2 [(gogoproto.customname) = "DefaultNodeID"]; @@ -32,7 +28,6 @@ message DefaultNodeInfo { DefaultNodeInfoOther other = 8 [(gogoproto.nullable) = false]; } -// DefaultNodeInfoOther is the misc. application specific data. message DefaultNodeInfoOther { string tx_index = 1; string rpc_address = 2 [(gogoproto.customname) = "RPCAddress"]; diff --git a/proto/tendermint/types/block.proto b/proto/tendermint/types/block.proto new file mode 100644 index 0000000000..d531c06a00 --- /dev/null +++ b/proto/tendermint/types/block.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; +package tendermint.types; + +option go_package = "github.com/cometbft/cometbft/proto/tendermint/types"; + +import "gogoproto/gogo.proto"; +import "tendermint/types/types.proto"; +import "tendermint/types/evidence.proto"; + +message Block { + Header header = 1 [(gogoproto.nullable) = false]; + Data data = 2 [(gogoproto.nullable) = false]; + tendermint.types.EvidenceList evidence = 3 [(gogoproto.nullable) = false]; + Commit last_commit = 4; +} diff --git a/proto/cometbft/types/v2/evidence.proto b/proto/tendermint/types/evidence.proto similarity index 52% rename from proto/cometbft/types/v2/evidence.proto rename to proto/tendermint/types/evidence.proto index 8350b92a76..06f30ec2f5 100644 --- a/proto/cometbft/types/v2/evidence.proto +++ b/proto/tendermint/types/evidence.proto @@ -1,16 +1,14 @@ syntax = "proto3"; -package cometbft.types.v2; +package tendermint.types; -option go_package = "github.com/cometbft/cometbft/api/cometbft/types/v2"; +option go_package = "github.com/cometbft/cometbft/proto/tendermint/types"; -import "cometbft/types/v2/types.proto"; -import "cometbft/types/v2/validator.proto"; import "gogoproto/gogo.proto"; import "google/protobuf/timestamp.proto"; +import "tendermint/types/types.proto"; +import "tendermint/types/validator.proto"; -// Evidence is a generic type for wrapping evidence of misbehavior by a validator. message Evidence { - // The type of evidence. oneof sum { DuplicateVoteEvidence duplicate_vote_evidence = 1; LightClientAttackEvidence light_client_attack_evidence = 2; @@ -19,8 +17,8 @@ message Evidence { // DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. message DuplicateVoteEvidence { - Vote vote_a = 1; - Vote vote_b = 2; + tendermint.types.Vote vote_a = 1; + tendermint.types.Vote vote_b = 2; int64 total_voting_power = 3; int64 validator_power = 4; google.protobuf.Timestamp timestamp = 5 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; @@ -28,14 +26,13 @@ message DuplicateVoteEvidence { // LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. message LightClientAttackEvidence { - LightBlock conflicting_block = 1; - int64 common_height = 2; - repeated Validator byzantine_validators = 3; - int64 total_voting_power = 4; - google.protobuf.Timestamp timestamp = 5 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; + tendermint.types.LightBlock conflicting_block = 1; + int64 common_height = 2; + repeated tendermint.types.Validator byzantine_validators = 3; + int64 total_voting_power = 4; + google.protobuf.Timestamp timestamp = 5 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; } -// EvidenceList is a list of evidence. message EvidenceList { repeated Evidence evidence = 1 [(gogoproto.nullable) = false]; } diff --git a/proto/tendermint/types/params.proto b/proto/tendermint/types/params.proto new file mode 100644 index 0000000000..6a42d5ef0d --- /dev/null +++ b/proto/tendermint/types/params.proto @@ -0,0 +1,91 @@ +syntax = "proto3"; +package tendermint.types; + +option go_package = "github.com/cometbft/cometbft/proto/tendermint/types"; + +import "gogoproto/gogo.proto"; +import "google/protobuf/duration.proto"; + +option (gogoproto.equal_all) = true; + +// ConsensusParams contains consensus critical parameters that determine the +// validity of blocks. +message ConsensusParams { + BlockParams block = 1; + EvidenceParams evidence = 2; + ValidatorParams validator = 3; + VersionParams version = 4; + ABCIParams abci = 5; +} + +// BlockParams contains limits on the block size. +message BlockParams { + // Max block size, in bytes. + // Note: must be greater than 0 + int64 max_bytes = 1; + // Max gas per block. + // Note: must be greater or equal to -1 + int64 max_gas = 2; + + reserved 3; // was TimeIotaMs see https://github.com/tendermint/tendermint/pull/5792 +} + +// EvidenceParams determine how we handle evidence of malfeasance. +message EvidenceParams { + // Max age of evidence, in blocks. + // + // The basic formula for calculating this is: MaxAgeDuration / {average block + // time}. + int64 max_age_num_blocks = 1; + + // 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). + google.protobuf.Duration max_age_duration = 2 [(gogoproto.nullable) = false, (gogoproto.stdduration) = true]; + + // 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 + int64 max_bytes = 3; +} + +// ValidatorParams restrict the public key types validators can use. +// NOTE: uses ABCI pubkey naming, not Amino names. +message ValidatorParams { + option (gogoproto.populate) = true; + option (gogoproto.equal) = true; + + repeated string pub_key_types = 1; +} + +// VersionParams contains the ABCI application version. +message VersionParams { + option (gogoproto.populate) = true; + option (gogoproto.equal) = true; + + uint64 app = 1; +} + +// HashedParams is a subset of ConsensusParams. +// +// It is hashed into the Header.ConsensusHash. +message HashedParams { + int64 block_max_bytes = 1; + int64 block_max_gas = 2; +} + +// ABCIParams configure functionality specific to the Application Blockchain Interface. +message ABCIParams { + // 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. + int64 vote_extensions_enable_height = 1; +} diff --git a/proto/cometbft/types/v2/types.proto b/proto/tendermint/types/types.proto similarity index 62% rename from proto/cometbft/types/v2/types.proto rename to proto/tendermint/types/types.proto index 0112046a39..a0d545ad9e 100644 --- a/proto/cometbft/types/v2/types.proto +++ b/proto/tendermint/types/types.proto @@ -1,56 +1,55 @@ syntax = "proto3"; -package cometbft.types.v2; +package tendermint.types; -option go_package = "github.com/cometbft/cometbft/api/cometbft/types/v2"; - -import "cometbft/crypto/v1/proof.proto"; -import "cometbft/types/v2/validator.proto"; -import "cometbft/version/v1/types.proto"; +option go_package = "github.com/cometbft/cometbft/proto/tendermint/types"; import "gogoproto/gogo.proto"; import "google/protobuf/timestamp.proto"; +import "tendermint/crypto/proof.proto"; +import "tendermint/version/types.proto"; +import "tendermint/types/validator.proto"; // SignedMsgType is a type of signed message in the consensus. enum SignedMsgType { option (gogoproto.goproto_enum_stringer) = true; option (gogoproto.goproto_enum_prefix) = false; - // Unknown SIGNED_MSG_TYPE_UNKNOWN = 0 [(gogoproto.enumvalue_customname) = "UnknownType"]; - // Prevote - SIGNED_MSG_TYPE_PREVOTE = 1 [(gogoproto.enumvalue_customname) = "PrevoteType"]; - // Precommit + // Votes + SIGNED_MSG_TYPE_PREVOTE = 1 [(gogoproto.enumvalue_customname) = "PrevoteType"]; SIGNED_MSG_TYPE_PRECOMMIT = 2 [(gogoproto.enumvalue_customname) = "PrecommitType"]; - // Proposal + + // Proposals SIGNED_MSG_TYPE_PROPOSAL = 32 [(gogoproto.enumvalue_customname) = "ProposalType"]; } -// Header of the parts set for a block. +// PartsetHeader message PartSetHeader { uint32 total = 1; bytes hash = 2; } -// Part of the block. message Part { - uint32 index = 1; - bytes bytes = 2; - cometbft.crypto.v1.Proof proof = 3 [(gogoproto.nullable) = false]; + uint32 index = 1; + bytes bytes = 2; + tendermint.crypto.Proof proof = 3 [(gogoproto.nullable) = false]; } -// BlockID defines the unique ID of a block as its hash and its `PartSetHeader`. +// BlockID message BlockID { bytes hash = 1; PartSetHeader part_set_header = 2 [(gogoproto.nullable) = false]; } +// -------------------------------- + // Header defines the structure of a block header. message Header { // basic block info - cometbft.version.v1.Consensus version = 1 [(gogoproto.nullable) = false]; - string chain_id = 2 [(gogoproto.customname) = "ChainID"]; - int64 height = 3; - google.protobuf.Timestamp time = 4 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; + tendermint.version.Consensus version = 1 [(gogoproto.nullable) = false]; + string chain_id = 2 [(gogoproto.customname) = "ChainID"]; + int64 height = 3; + google.protobuf.Timestamp time = 4 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; // prev block info BlockID last_block_id = 5 [(gogoproto.nullable) = false]; @@ -81,8 +80,6 @@ message Data { // Vote represents a prevote or precommit vote from validators for // consensus. -// For precommit messages, the message contains vote extensions (replay-protected and non-replay-protected) -// and their signatures. message Vote { SignedMsgType type = 1; int64 height = 2; @@ -101,13 +98,6 @@ message Vote { // consensus for the associated block. // Only valid for precommit messages. bytes extension_signature = 10; - // Non-Replay-Protected (NRP) vote extension provided by the application. - // Only valid for precommit messages. - bytes non_rp_extension = 11; - // Non-Replay-Protected (NRP) vote extension signature by the validator if - // they participated in consensus for the associated block. - // Only valid for precommit messages. - bytes non_rp_extension_signature = 12; } // Commit contains the evidence that a block was committed by a set of validators. @@ -120,13 +110,12 @@ message Commit { // CommitSig is a part of the Vote included in a Commit. message CommitSig { - BlockIDFlag block_id_flag = 1; - bytes validator_address = 2; - google.protobuf.Timestamp timestamp = 3 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; - bytes signature = 4; + tendermint.types.BlockIDFlag block_id_flag = 1; + bytes validator_address = 2; + google.protobuf.Timestamp timestamp = 3 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; + bytes signature = 4; } -// ExtendedCommit is a Commit with ExtendedCommitSig. message ExtendedCommit { int64 height = 1; int32 round = 2; @@ -135,27 +124,19 @@ message ExtendedCommit { } // ExtendedCommitSig retains all the same fields as CommitSig but adds vote -// extension-related fields, where: -// 'extension' and 'extension_signature' are used for replay-protected vote extensions. -// 'non_rp_extension' and 'non_rp_extension_signature' are used for non-replay-protected vote extensions. -// We use two signatures to ensure backwards compatibility. +// 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 message ExtendedCommitSig { - BlockIDFlag block_id_flag = 1; - bytes validator_address = 2; - google.protobuf.Timestamp timestamp = 3 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; - bytes signature = 4; + tendermint.types.BlockIDFlag block_id_flag = 1; + bytes validator_address = 2; + google.protobuf.Timestamp timestamp = 3 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; + bytes signature = 4; // Vote extension data bytes extension = 5; // Vote extension signature bytes extension_signature = 6; - // Non-Replay-Protected vote extension data - bytes non_rp_extension = 7; - // Non-Replay-Protected vote extension signature - bytes non_rp_extension_signature = 8; } -// Block proposal. message Proposal { SignedMsgType type = 1; int64 height = 2; @@ -166,19 +147,16 @@ message Proposal { bytes signature = 7; } -// SignedHeader contains a Header(H) and Commit(H+1) with signatures of validators who signed it. message SignedHeader { Header header = 1; Commit commit = 2; } -// LightBlock is a combination of SignedHeader and ValidatorSet. It is used by light clients. message LightBlock { - SignedHeader signed_header = 1; - ValidatorSet validator_set = 2; + SignedHeader signed_header = 1; + tendermint.types.ValidatorSet validator_set = 2; } -// BlockMeta contains meta information about a block. message BlockMeta { BlockID block_id = 1 [(gogoproto.customname) = "BlockID", (gogoproto.nullable) = false]; int64 block_size = 2; @@ -188,7 +166,7 @@ message BlockMeta { // TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree. message TxProof { - bytes root_hash = 1; - bytes data = 2; - cometbft.crypto.v1.Proof proof = 3; + bytes root_hash = 1; + bytes data = 2; + tendermint.crypto.Proof proof = 3; } diff --git a/proto/tendermint/types/validator.proto b/proto/tendermint/types/validator.proto new file mode 100644 index 0000000000..cd5105fac7 --- /dev/null +++ b/proto/tendermint/types/validator.proto @@ -0,0 +1,37 @@ +syntax = "proto3"; +package tendermint.types; + +option go_package = "github.com/cometbft/cometbft/proto/tendermint/types"; + +import "gogoproto/gogo.proto"; +import "tendermint/crypto/keys.proto"; + +// BlockIdFlag indicates which BlockID the signature is for +enum BlockIDFlag { + option (gogoproto.goproto_enum_stringer) = true; + option (gogoproto.goproto_enum_prefix) = false; + + BLOCK_ID_FLAG_UNKNOWN = 0 [(gogoproto.enumvalue_customname) = "BlockIDFlagUnknown"]; // indicates an error condition + BLOCK_ID_FLAG_ABSENT = 1 [(gogoproto.enumvalue_customname) = "BlockIDFlagAbsent"]; // the vote was not received + BLOCK_ID_FLAG_COMMIT = 2 + [(gogoproto.enumvalue_customname) = "BlockIDFlagCommit"]; // voted for the block that received the majority + BLOCK_ID_FLAG_NIL = 3 [(gogoproto.enumvalue_customname) = "BlockIDFlagNil"]; // voted for nil +} + +message ValidatorSet { + repeated Validator validators = 1; + Validator proposer = 2; + int64 total_voting_power = 3; +} + +message Validator { + bytes address = 1; + tendermint.crypto.PublicKey pub_key = 2 [(gogoproto.nullable) = false]; + int64 voting_power = 3; + int64 proposer_priority = 4; +} + +message SimpleValidator { + tendermint.crypto.PublicKey pub_key = 1; + int64 voting_power = 2; +} diff --git a/proto/cometbft/version/v1/types.proto b/proto/tendermint/version/types.proto similarity index 84% rename from proto/cometbft/version/v1/types.proto rename to proto/tendermint/version/types.proto index 243675cdbb..3b6ef45479 100644 --- a/proto/cometbft/version/v1/types.proto +++ b/proto/tendermint/version/types.proto @@ -1,7 +1,7 @@ syntax = "proto3"; -package cometbft.version.v1; +package tendermint.version; -option go_package = "github.com/cometbft/cometbft/api/cometbft/version/v1"; +option go_package = "github.com/cometbft/cometbft/proto/tendermint/version"; import "gogoproto/gogo.proto"; diff --git a/runtime/app.go b/runtime/app.go index 91c5c2f4a7..8c63e2623d 100644 --- a/runtime/app.go +++ b/runtime/app.go @@ -5,7 +5,7 @@ import ( "fmt" "slices" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" runtimev1alpha1 "cosmossdk.io/api/cosmos/app/runtime/v1alpha1" appv1alpha1 "cosmossdk.io/api/cosmos/app/v1alpha1" @@ -157,7 +157,7 @@ func (a *App) Load(loadLatest bool) error { } // PreBlocker application updates every pre block -func (a *App) PreBlocker(ctx sdk.Context, _ *abci.FinalizeBlockRequest) (*sdk.ResponsePreBlock, error) { +func (a *App) PreBlocker(ctx sdk.Context, _ *abci.RequestFinalizeBlock) (*sdk.ResponsePreBlock, error) { return a.ModuleManager.PreBlock(ctx) } @@ -182,7 +182,7 @@ func (a *App) PrepareCheckStater(ctx sdk.Context) { } // InitChainer initializes the chain. -func (a *App) InitChainer(ctx sdk.Context, req *abci.InitChainRequest) (*abci.InitChainResponse, error) { +func (a *App) InitChainer(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error) { var genesisState map[string]json.RawMessage if err := json.Unmarshal(req.AppStateBytes, &genesisState); err != nil { panic(err) diff --git a/runtime/types.go b/runtime/types.go index 9e39c774e5..029b9be798 100644 --- a/runtime/types.go +++ b/runtime/types.go @@ -1,7 +1,7 @@ package runtime import ( - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/server/types" @@ -28,7 +28,7 @@ type AppI interface { EndBlocker(ctx sdk.Context) (sdk.EndBlock, error) // InitChainer is the application update at chain (i.e app) initialization. - InitChainer(ctx sdk.Context, req *abci.InitChainRequest) (*abci.InitChainResponse, error) + InitChainer(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error) // LoadHeight loads the app at a given height. LoadHeight(height int64) error diff --git a/scripts/protocgen.sh b/scripts/protocgen.sh index 10e9de5768..e84178a05f 100755 --- a/scripts/protocgen.sh +++ b/scripts/protocgen.sh @@ -26,22 +26,15 @@ done cd .. # generate tests proto code -echo "Generating tests proto code" (cd testutil/testdata; buf generate) (cd baseapp/testutil; buf generate) (cd tests/integration/tx/internal; make codegen) # move proto files to the right places -echo "Moving proto files" cp -r github.com/cosmos/cosmos-sdk/* ./ cp -r cosmossdk.io/** ./ rm -rf github.com cosmossdk.io -echo "Generating pulsar proto code" -./scripts/protocgen-pulsar.sh - -echo -echo "All Protobuf code generation steps completed" -echo "Last step: running go mod tidy" -echo go mod tidy + +./scripts/protocgen-pulsar.sh \ No newline at end of file diff --git a/server/api/server.go b/server/api/server.go index cfb6a46033..5e2aee04dc 100644 --- a/server/api/server.go +++ b/server/api/server.go @@ -9,7 +9,7 @@ import ( "sync" "time" - cmtrpcserver "github.com/cometbft/cometbft/v2/rpc/jsonrpc/server" + cmtrpcserver "github.com/cometbft/cometbft/rpc/jsonrpc/server" gateway "github.com/cosmos/gogogateway" "github.com/golang/protobuf/proto" //nolint:staticcheck // keeping deprecated import "github.com/gorilla/handlers" diff --git a/server/cmd/execute.go b/server/cmd/execute.go index c950337b34..fb69303252 100644 --- a/server/cmd/execute.go +++ b/server/cmd/execute.go @@ -3,7 +3,7 @@ package cmd import ( "context" - cmtcli "github.com/cometbft/cometbft/v2/libs/cli" + cmtcli "github.com/cometbft/cometbft/libs/cli" "github.com/rs/zerolog" "github.com/spf13/cobra" diff --git a/server/cmt_abci.go b/server/cmt_abci.go index 0ca2e53f18..74040f2451 100644 --- a/server/cmt_abci.go +++ b/server/cmt_abci.go @@ -3,7 +3,7 @@ package server import ( "context" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" servertypes "github.com/cosmos/cosmos-sdk/server/types" ) @@ -16,58 +16,58 @@ func NewCometABCIWrapper(app servertypes.ABCI) abci.Application { return cometABCIWrapper{app: app} } -func (w cometABCIWrapper) Info(_ context.Context, req *abci.InfoRequest) (*abci.InfoResponse, error) { +func (w cometABCIWrapper) Info(_ context.Context, req *abci.RequestInfo) (*abci.ResponseInfo, error) { return w.app.Info(req) } -func (w cometABCIWrapper) Query(ctx context.Context, req *abci.QueryRequest) (*abci.QueryResponse, error) { +func (w cometABCIWrapper) Query(ctx context.Context, req *abci.RequestQuery) (*abci.ResponseQuery, error) { return w.app.Query(ctx, req) } -func (w cometABCIWrapper) CheckTx(_ context.Context, req *abci.CheckTxRequest) (*abci.CheckTxResponse, error) { +func (w cometABCIWrapper) CheckTx(_ context.Context, req *abci.RequestCheckTx) (*abci.ResponseCheckTx, error) { return w.app.CheckTx(req) } -func (w cometABCIWrapper) InitChain(_ context.Context, req *abci.InitChainRequest) (*abci.InitChainResponse, error) { +func (w cometABCIWrapper) InitChain(_ context.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error) { return w.app.InitChain(req) } -func (w cometABCIWrapper) PrepareProposal(_ context.Context, req *abci.PrepareProposalRequest) (*abci.PrepareProposalResponse, error) { +func (w cometABCIWrapper) PrepareProposal(_ context.Context, req *abci.RequestPrepareProposal) (*abci.ResponsePrepareProposal, error) { return w.app.PrepareProposal(req) } -func (w cometABCIWrapper) ProcessProposal(_ context.Context, req *abci.ProcessProposalRequest) (*abci.ProcessProposalResponse, error) { +func (w cometABCIWrapper) ProcessProposal(_ context.Context, req *abci.RequestProcessProposal) (*abci.ResponseProcessProposal, error) { return w.app.ProcessProposal(req) } -func (w cometABCIWrapper) FinalizeBlock(_ context.Context, req *abci.FinalizeBlockRequest) (*abci.FinalizeBlockResponse, error) { +func (w cometABCIWrapper) FinalizeBlock(_ context.Context, req *abci.RequestFinalizeBlock) (*abci.ResponseFinalizeBlock, error) { return w.app.FinalizeBlock(req) } -func (w cometABCIWrapper) ExtendVote(ctx context.Context, req *abci.ExtendVoteRequest) (*abci.ExtendVoteResponse, error) { +func (w cometABCIWrapper) ExtendVote(ctx context.Context, req *abci.RequestExtendVote) (*abci.ResponseExtendVote, error) { return w.app.ExtendVote(ctx, req) } -func (w cometABCIWrapper) VerifyVoteExtension(_ context.Context, req *abci.VerifyVoteExtensionRequest) (*abci.VerifyVoteExtensionResponse, error) { +func (w cometABCIWrapper) VerifyVoteExtension(_ context.Context, req *abci.RequestVerifyVoteExtension) (*abci.ResponseVerifyVoteExtension, error) { return w.app.VerifyVoteExtension(req) } -func (w cometABCIWrapper) Commit(_ context.Context, _ *abci.CommitRequest) (*abci.CommitResponse, error) { +func (w cometABCIWrapper) Commit(_ context.Context, _ *abci.RequestCommit) (*abci.ResponseCommit, error) { return w.app.Commit() } -func (w cometABCIWrapper) ListSnapshots(_ context.Context, req *abci.ListSnapshotsRequest) (*abci.ListSnapshotsResponse, error) { +func (w cometABCIWrapper) ListSnapshots(_ context.Context, req *abci.RequestListSnapshots) (*abci.ResponseListSnapshots, error) { return w.app.ListSnapshots(req) } -func (w cometABCIWrapper) OfferSnapshot(_ context.Context, req *abci.OfferSnapshotRequest) (*abci.OfferSnapshotResponse, error) { +func (w cometABCIWrapper) OfferSnapshot(_ context.Context, req *abci.RequestOfferSnapshot) (*abci.ResponseOfferSnapshot, error) { return w.app.OfferSnapshot(req) } -func (w cometABCIWrapper) LoadSnapshotChunk(_ context.Context, req *abci.LoadSnapshotChunkRequest) (*abci.LoadSnapshotChunkResponse, error) { +func (w cometABCIWrapper) LoadSnapshotChunk(_ context.Context, req *abci.RequestLoadSnapshotChunk) (*abci.ResponseLoadSnapshotChunk, error) { return w.app.LoadSnapshotChunk(req) } -func (w cometABCIWrapper) ApplySnapshotChunk(_ context.Context, req *abci.ApplySnapshotChunkRequest) (*abci.ApplySnapshotChunkResponse, error) { +func (w cometABCIWrapper) ApplySnapshotChunk(_ context.Context, req *abci.RequestApplySnapshotChunk) (*abci.ResponseApplySnapshotChunk, error) { return w.app.ApplySnapshotChunk(req) } diff --git a/server/cmt_cmds.go b/server/cmt_cmds.go index 8c452d616d..a9ea7126d7 100644 --- a/server/cmt_cmds.go +++ b/server/cmt_cmds.go @@ -7,12 +7,12 @@ import ( "strconv" "strings" - cmtcfg "github.com/cometbft/cometbft/v2/config" - cmtjson "github.com/cometbft/cometbft/v2/libs/json" - "github.com/cometbft/cometbft/v2/node" - "github.com/cometbft/cometbft/v2/p2p" - pvm "github.com/cometbft/cometbft/v2/privval" - cmtversion "github.com/cometbft/cometbft/v2/version" + cmtcfg "github.com/cometbft/cometbft/config" + cmtjson "github.com/cometbft/cometbft/libs/json" + "github.com/cometbft/cometbft/node" + "github.com/cometbft/cometbft/p2p" + pvm "github.com/cometbft/cometbft/privval" + cmtversion "github.com/cometbft/cometbft/version" "github.com/spf13/cobra" "sigs.k8s.io/yaml" @@ -155,7 +155,7 @@ func VersionCmd() *cobra.Command { BlockProtocol uint64 P2PProtocol uint64 }{ - CometBFT: cmtversion.CMTSemVer, + CometBFT: cmtversion.TMCoreSemVer, ABCI: cmtversion.ABCIVersion, BlockProtocol: cmtversion.BlockProtocol, P2PProtocol: cmtversion.P2PProtocol, @@ -384,10 +384,8 @@ func BootstrapStateCmd(appCreator types.AppCreator) *cobra.Command { app := appCreator(logger, db, nil, serverCtx.Viper) height = app.CommitMultiStore().LastCommitID().Version } - if height < 0 { - return fmt.Errorf("height must be non-negative, got %d", height) - } - return node.BootstrapState(cmd.Context(), cfg, cmtcfg.DefaultDBProvider, getGenDocProvider(cfg), uint64(height), nil) + + return node.BootstrapStateWithGenProvider(cmd.Context(), cfg, cmtcfg.DefaultDBProvider, getGenDocProvider(cfg), uint64(height), nil) }, } diff --git a/server/export_test.go b/server/export_test.go index 137cdcda11..f86e7a5ca7 100644 --- a/server/export_test.go +++ b/server/export_test.go @@ -10,9 +10,9 @@ import ( "testing" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - cmtcfg "github.com/cometbft/cometbft/v2/config" - cmttypes "github.com/cometbft/cometbft/v2/types" + cmtcfg "github.com/cometbft/cometbft/config" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + cmttypes "github.com/cometbft/cometbft/types" dbm "github.com/cosmos/cosmos-db" "github.com/rs/zerolog" "github.com/spf13/viper" diff --git a/server/log/cmt_logger.go b/server/log/cmt_logger.go index 6125caabaf..832e9d5213 100644 --- a/server/log/cmt_logger.go +++ b/server/log/cmt_logger.go @@ -1,7 +1,7 @@ package server import ( - cmtlog "github.com/cometbft/cometbft/v2/libs/log" + cmtlog "github.com/cometbft/cometbft/libs/log" "cosmossdk.io/log" ) diff --git a/server/mock/app.go b/server/mock/app.go index 0fb61f2d06..5c6680b469 100644 --- a/server/mock/app.go +++ b/server/mock/app.go @@ -7,7 +7,7 @@ import ( "fmt" "path/filepath" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" db "github.com/cosmos/cosmos-db" "google.golang.org/grpc" "google.golang.org/protobuf/proto" @@ -100,21 +100,21 @@ type GenesisJSON struct { // InitChainer returns a function that can initialize the chain // with key/value pairs -func InitChainer(key storetypes.StoreKey) func(sdk.Context, *abci.InitChainRequest) (*abci.InitChainResponse, error) { - return func(ctx sdk.Context, req *abci.InitChainRequest) (*abci.InitChainResponse, error) { +func InitChainer(key storetypes.StoreKey) func(sdk.Context, *abci.RequestInitChain) (*abci.ResponseInitChain, error) { + return func(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error) { stateJSON := req.AppStateBytes genesisState := new(GenesisJSON) err := json.Unmarshal(stateJSON, genesisState) if err != nil { - return &abci.InitChainResponse{}, err + return &abci.ResponseInitChain{}, err } for _, val := range genesisState.Values { store := ctx.KVStore(key) store.Set([]byte(val.Key), []byte(val.Value)) } - return &abci.InitChainResponse{}, nil + return &abci.ResponseInitChain{}, nil } } diff --git a/server/mock/app_test.go b/server/mock/app_test.go index 346601efb4..a200761ea4 100644 --- a/server/mock/app_test.go +++ b/server/mock/app_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "github.com/stretchr/testify/require" "cosmossdk.io/log" @@ -37,12 +37,12 @@ func TestInitApp(t *testing.T) { appState, err := AppGenState(nil, genutiltypes.AppGenesis{}, nil) require.NoError(t, err) - res, err := app.InitChain(&abci.InitChainRequest{ + res, err := app.InitChain(&abci.RequestInitChain{ AppStateBytes: appState, }) require.NoError(t, err) - _, err = app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = app.FinalizeBlock(&abci.RequestFinalizeBlock{ Hash: res.AppHash, Height: 1, }) @@ -52,7 +52,7 @@ func TestInitApp(t *testing.T) { require.NoError(t, err) // make sure we can query these values - query := abci.QueryRequest{ + query := abci.RequestQuery{ Path: "/store/main/key", Data: []byte("foo"), } @@ -75,7 +75,7 @@ func TestDeliverTx(t *testing.T) { tx := NewTx(key, value, randomAccounts[0].Address) txBytes := tx.GetSignBytes() - res, err := app.FinalizeBlock(&abci.FinalizeBlockRequest{ + res, err := app.FinalizeBlock(&abci.RequestFinalizeBlock{ Hash: []byte("apphash"), Height: 1, Txs: [][]byte{txBytes}, @@ -87,7 +87,7 @@ func TestDeliverTx(t *testing.T) { require.NoError(t, err) // make sure we can query these values - query := abci.QueryRequest{ + query := abci.RequestQuery{ Path: "/store/main/key", Data: []byte(key), } diff --git a/server/rollback.go b/server/rollback.go index d4fc18808c..ccd7e32139 100644 --- a/server/rollback.go +++ b/server/rollback.go @@ -3,7 +3,7 @@ package server import ( "fmt" - cmtcmd "github.com/cometbft/cometbft/v2/cmd/cometbft/commands" + cmtcmd "github.com/cometbft/cometbft/cmd/cometbft/commands" "github.com/spf13/cobra" "github.com/cosmos/cosmos-sdk/client/flags" diff --git a/server/start.go b/server/start.go index 6c072164ac..aab620b275 100644 --- a/server/start.go +++ b/server/start.go @@ -3,8 +3,6 @@ package server import ( "bufio" "context" - "crypto/sha256" - "encoding/json" "fmt" "io" "net" @@ -14,21 +12,21 @@ import ( "strings" "time" - cmtstate "github.com/cometbft/cometbft/api/cometbft/state/v2" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - "github.com/cometbft/cometbft/v2/abci/server" - cmtcmd "github.com/cometbft/cometbft/v2/cmd/cometbft/commands" - cmtcfg "github.com/cometbft/cometbft/v2/config" - cmtjson "github.com/cometbft/cometbft/v2/libs/json" - "github.com/cometbft/cometbft/v2/node" - "github.com/cometbft/cometbft/v2/p2p" - pvm "github.com/cometbft/cometbft/v2/privval" - "github.com/cometbft/cometbft/v2/proxy" - rpchttp "github.com/cometbft/cometbft/v2/rpc/client/http" - "github.com/cometbft/cometbft/v2/rpc/client/local" - sm "github.com/cometbft/cometbft/v2/state" - "github.com/cometbft/cometbft/v2/store" - cmttypes "github.com/cometbft/cometbft/v2/types" + "github.com/cometbft/cometbft/abci/server" + cmtcmd "github.com/cometbft/cometbft/cmd/cometbft/commands" + cmtcfg "github.com/cometbft/cometbft/config" + cmtjson "github.com/cometbft/cometbft/libs/json" + "github.com/cometbft/cometbft/node" + "github.com/cometbft/cometbft/p2p" + pvm "github.com/cometbft/cometbft/privval" + cmtstate "github.com/cometbft/cometbft/proto/tendermint/state" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + "github.com/cometbft/cometbft/proxy" + rpchttp "github.com/cometbft/cometbft/rpc/client/http" + "github.com/cometbft/cometbft/rpc/client/local" + sm "github.com/cometbft/cometbft/state" + "github.com/cometbft/cometbft/store" + cmttypes "github.com/cometbft/cometbft/types" dbm "github.com/cosmos/cosmos-db" "github.com/hashicorp/go-metrics" "github.com/spf13/cobra" @@ -265,7 +263,7 @@ func startStandAlone(svrCtx *Context, svrCfg serverconfig.Config, clientCtx clie if svrCfg.API.Enable || svrCfg.GRPC.Enable { // create tendermint client // assumes the rpc listen address is where tendermint has its rpc server - rpcclient, err := rpchttp.New(svrCtx.Config.RPC.ListenAddress) + rpcclient, err := rpchttp.New(svrCtx.Config.RPC.ListenAddress, "/websocket") if err != nil { return err } @@ -281,12 +279,12 @@ func startStandAlone(svrCtx *Context, svrCfg serverconfig.Config, clientCtx clie grpcSrv, clientCtx, err := startGrpcServer(ctx, g, svrCfg.GRPC, clientCtx, svrCtx, app) if err != nil { - return fmt.Errorf("failed to start grpc server: %w", err) + return err } err = startAPIServer(ctx, g, svrCfg, clientCtx, svrCtx, app, svrCtx.Config.RootDir, grpcSrv, metrics) if err != nil { - return fmt.Errorf("failed to start api server: %w", err) + return err } if opts.PostSetupStandalone != nil { @@ -366,6 +364,7 @@ func startInProcess(svrCtx *Context, svrCfg serverconfig.Config, clientCtx clien return g.Wait() } +// TODO: Move nodeKey into being created within the function. func startCmtNode( ctx context.Context, cfg *cmtcfg.Config, @@ -374,20 +373,14 @@ func startCmtNode( ) (tmNode *node.Node, cleanupFn func(), err error) { nodeKey, err := p2p.LoadOrGenNodeKey(cfg.NodeKeyFile()) if err != nil { - return nil, cleanupFn, fmt.Errorf("failed to load or generate node key: %w", err) - } - - // CometBFT uses the ed25519 key generator as default if the given generator function is nil. - pv, err := pvm.LoadOrGenFilePV(cfg.PrivValidatorKeyFile(), cfg.PrivValidatorStateFile(), nil) - if err != nil { - return nil, cleanupFn, fmt.Errorf("failed to load or generate priv_validator: %w", err) + return nil, cleanupFn, err } cmtApp := NewCometABCIWrapper(app) - tmNode, err = node.NewNode( + tmNode, err = node.NewNodeWithContext( ctx, cfg, - pv, + pvm.LoadOrGenFilePV(cfg.PrivValidatorKeyFile(), cfg.PrivValidatorStateFile()), nodeKey, proxy.NewLocalClientCreator(cmtApp), getGenDocProvider(cfg), @@ -396,11 +389,11 @@ func startCmtNode( servercmtlog.CometLoggerWrapper{Logger: svrCtx.Logger}, ) if err != nil { - return tmNode, cleanupFn, fmt.Errorf("failed to create new comet node: %w", err) + return tmNode, cleanupFn, err } if err := tmNode.Start(); err != nil { - return tmNode, cleanupFn, fmt.Errorf("failed to start comet node: %w", err) + return tmNode, cleanupFn, err } cleanupFn = func() { @@ -424,38 +417,15 @@ func getAndValidateConfig(svrCtx *Context) (serverconfig.Config, error) { return config, nil } -// getGenDocProvider returns a function which returns the genesis doc from the genesis file. -func getGenDocProvider(cfg *cmtcfg.Config) func() (node.ChecksummedGenesisDoc, error) { - return func() (node.ChecksummedGenesisDoc, error) { - defaultGenesisDoc := node.ChecksummedGenesisDoc{ - Sha256Checksum: []byte{}, - } - +// returns a function which returns the genesis doc from the genesis file. +func getGenDocProvider(cfg *cmtcfg.Config) func() (*cmttypes.GenesisDoc, error) { + return func() (*cmttypes.GenesisDoc, error) { appGenesis, err := genutiltypes.AppGenesisFromFile(cfg.GenesisFile()) if err != nil { - return defaultGenesisDoc, err + return nil, err } - gen, err := appGenesis.ToGenesisDoc() - if err != nil { - return defaultGenesisDoc, err - } - - genbz, err := gen.AppState.MarshalJSON() - if err != nil { - return defaultGenesisDoc, err - } - - bz, err := json.Marshal(genbz) - if err != nil { - return defaultGenesisDoc, err - } - sum := sha256.Sum256(bz) - - return node.ChecksummedGenesisDoc{ - GenesisDoc: gen, - Sha256Checksum: sum[:], - }, nil + return appGenesis.ToGenesisDoc() } } @@ -811,12 +781,7 @@ func testnetify(ctx *Context, testnetAppCreator types.AppCreator, db dbm.DB, tra defer blockStore.Close() defer stateDB.Close() - // CometBFT uses the ed25519 key generator as default if the given generator function is nil. - privValidator, err := pvm.LoadOrGenFilePV(config.PrivValidatorKeyFile(), config.PrivValidatorStateFile(), nil) - if err != nil { - return nil, err - } - + privValidator := pvm.LoadOrGenFilePV(config.PrivValidatorKeyFile(), config.PrivValidatorStateFile()) userPubKey, err := privValidator.GetPubKey() if err != nil { return nil, err @@ -827,7 +792,7 @@ func testnetify(ctx *Context, testnetAppCreator types.AppCreator, db dbm.DB, tra DiscardABCIResponses: config.Storage.DiscardABCIResponses, }) - state, genDoc, err := node.LoadStateFromDBOrGenesisDocProvider(stateDB, genDocProvider, "") + state, genDoc, err := node.LoadStateFromDBOrGenesisDocProvider(stateDB, genDocProvider) if err != nil { return nil, err } @@ -843,12 +808,12 @@ func testnetify(ctx *Context, testnetAppCreator types.AppCreator, db dbm.DB, tra _, context := getCtx(ctx, true) clientCreator := proxy.NewLocalClientCreator(cmtApp) metrics := node.DefaultMetricsProvider(cmtcfg.DefaultConfig().Instrumentation) - _, _, _, _, _, proxyMetrics, _, _ := metrics(genDoc.ChainID) //nolint: dogsled // function from comet + _, _, _, _, proxyMetrics, _, _ := metrics(genDoc.ChainID) proxyApp := proxy.NewAppConns(clientCreator, proxyMetrics) if err := proxyApp.Start(); err != nil { return nil, fmt.Errorf("error starting proxy app connections: %w", err) } - res, err := proxyApp.Query().Info(context, proxy.InfoRequest) + res, err := proxyApp.Query().Info(context, proxy.RequestInfo) if err != nil { return nil, fmt.Errorf("error calling Info: %w", err) } @@ -862,7 +827,7 @@ func testnetify(ctx *Context, testnetAppCreator types.AppCreator, db dbm.DB, tra var block *cmttypes.Block switch { case appHeight == blockStore.Height(): - block, _ = blockStore.LoadBlock(blockStore.Height()) + block = blockStore.LoadBlock(blockStore.Height()) // If the state's last blockstore height does not match the app and blockstore height, we likely stopped with the halt height flag. if state.LastBlockHeight != appHeight { state.LastBlockHeight = appHeight @@ -881,10 +846,10 @@ func testnetify(ctx *Context, testnetAppCreator types.AppCreator, db dbm.DB, tra if err != nil { return nil, err } - block, _ = blockStore.LoadBlock(blockStore.Height()) + block = blockStore.LoadBlock(blockStore.Height()) default: // If there is any other state, we just load the block - block, _ = blockStore.LoadBlock(blockStore.Height()) + block = blockStore.LoadBlock(blockStore.Height()) } block.ChainID = newChainID @@ -907,7 +872,7 @@ func testnetify(ctx *Context, testnetAppCreator types.AppCreator, db dbm.DB, tra // Sign the vote and copy the proto changes from the act of signing to the vote itself voteProto := vote.ToProto() - err = privValidator.SignVote(newChainID, voteProto, false) + err = privValidator.SignVote(newChainID, voteProto) if err != nil { return nil, err } diff --git a/server/types/abci.go b/server/types/abci.go index f7da74043b..965aed3df6 100644 --- a/server/types/abci.go +++ b/server/types/abci.go @@ -3,35 +3,35 @@ package types import ( "context" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" ) // ABCI is an interface that enables any finite, deterministic state machine // to be driven by a blockchain-based replication engine via the ABCI. type ABCI interface { // Info/Query Connection - Info(*abci.InfoRequest) (*abci.InfoResponse, error) // Return application info - Query(context.Context, *abci.QueryRequest) (*abci.QueryResponse, error) // Query for state + Info(*abci.RequestInfo) (*abci.ResponseInfo, error) // Return application info + Query(context.Context, *abci.RequestQuery) (*abci.ResponseQuery, error) // Query for state // Mempool Connection - CheckTx(*abci.CheckTxRequest) (*abci.CheckTxResponse, error) // Validate a tx for the mempool + CheckTx(*abci.RequestCheckTx) (*abci.ResponseCheckTx, error) // Validate a tx for the mempool // Consensus Connection - InitChain(*abci.InitChainRequest) (*abci.InitChainResponse, error) // Initialize blockchain with validators/other info from CometBFT - PrepareProposal(*abci.PrepareProposalRequest) (*abci.PrepareProposalResponse, error) - ProcessProposal(*abci.ProcessProposalRequest) (*abci.ProcessProposalResponse, error) + InitChain(*abci.RequestInitChain) (*abci.ResponseInitChain, error) // Initialize blockchain w validators/other info from CometBFT + PrepareProposal(*abci.RequestPrepareProposal) (*abci.ResponsePrepareProposal, error) + ProcessProposal(*abci.RequestProcessProposal) (*abci.ResponseProcessProposal, error) // Deliver the decided block with its txs to the Application - FinalizeBlock(*abci.FinalizeBlockRequest) (*abci.FinalizeBlockResponse, error) + FinalizeBlock(*abci.RequestFinalizeBlock) (*abci.ResponseFinalizeBlock, error) // Create application specific vote extension - ExtendVote(context.Context, *abci.ExtendVoteRequest) (*abci.ExtendVoteResponse, error) + ExtendVote(context.Context, *abci.RequestExtendVote) (*abci.ResponseExtendVote, error) // Verify application's vote extension data - VerifyVoteExtension(*abci.VerifyVoteExtensionRequest) (*abci.VerifyVoteExtensionResponse, error) + VerifyVoteExtension(*abci.RequestVerifyVoteExtension) (*abci.ResponseVerifyVoteExtension, error) // Commit the state and return the application Merkle root hash - Commit() (*abci.CommitResponse, error) + Commit() (*abci.ResponseCommit, error) // State Sync Connection - ListSnapshots(*abci.ListSnapshotsRequest) (*abci.ListSnapshotsResponse, error) // List available snapshots - OfferSnapshot(*abci.OfferSnapshotRequest) (*abci.OfferSnapshotResponse, error) // Offer a snapshot to the application - LoadSnapshotChunk(*abci.LoadSnapshotChunkRequest) (*abci.LoadSnapshotChunkResponse, error) // Load a snapshot chunk - ApplySnapshotChunk(*abci.ApplySnapshotChunkRequest) (*abci.ApplySnapshotChunkResponse, error) // Apply a snapshot chunk + ListSnapshots(*abci.RequestListSnapshots) (*abci.ResponseListSnapshots, error) // List available snapshots + OfferSnapshot(*abci.RequestOfferSnapshot) (*abci.ResponseOfferSnapshot, error) // Offer a snapshot to the application + LoadSnapshotChunk(*abci.RequestLoadSnapshotChunk) (*abci.ResponseLoadSnapshotChunk, error) // Load a snapshot chunk + ApplySnapshotChunk(*abci.RequestApplySnapshotChunk) (*abci.ResponseApplySnapshotChunk, error) // Apply a shapshot chunk } diff --git a/server/types/app.go b/server/types/app.go index 6ea9e8aa92..77aa56d93b 100644 --- a/server/types/app.go +++ b/server/types/app.go @@ -4,8 +4,8 @@ import ( "encoding/json" "io" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - cmttypes "github.com/cometbft/cometbft/v2/types" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + cmttypes "github.com/cometbft/cometbft/types" dbm "github.com/cosmos/cosmos-db" "github.com/cosmos/gogoproto/grpc" "github.com/spf13/cobra" @@ -56,7 +56,7 @@ type ( // CommitMultiStore returns the multistore instance CommitMultiStore() storetypes.CommitMultiStore - // Returns the snapshot manager + // SnapshotManager returns the snapshot manager SnapshotManager() *snapshots.Manager // Close is called in start cmd to gracefully cleanup resources. diff --git a/server/util.go b/server/util.go index 9e5cc05a3b..84461a05f7 100644 --- a/server/util.go +++ b/server/util.go @@ -14,8 +14,8 @@ import ( "syscall" "time" - cmtcmd "github.com/cometbft/cometbft/v2/cmd/cometbft/commands" - cmtcfg "github.com/cometbft/cometbft/v2/config" + cmtcmd "github.com/cometbft/cometbft/cmd/cometbft/commands" + cmtcfg "github.com/cometbft/cometbft/config" dbm "github.com/cosmos/cosmos-db" "github.com/rs/zerolog" "github.com/spf13/cast" @@ -265,8 +265,8 @@ func interceptConfigs(rootViper *viper.Viper, customAppTemplate string, customCo defaultCometCfg := cmtcfg.DefaultConfig() // The SDK is opinionated about those comet values, so we set them here. // We verify first that the user has not changed them for not overriding them. - if conf.Consensus.TimeoutCommit == defaultCometCfg.Consensus.TimeoutCommit { // nolint: staticcheck // we are continuing to use this value for backwards compatibility - conf.Consensus.TimeoutCommit = 5 * time.Second // nolint: staticcheck // we are continuing to use this value for backwards compatibility + if conf.Consensus.TimeoutCommit == defaultCometCfg.Consensus.TimeoutCommit { + conf.Consensus.TimeoutCommit = 5 * time.Second } if conf.RPC.PprofListenAddress == defaultCometCfg.RPC.PprofListenAddress { conf.RPC.PprofListenAddress = "localhost:6060" diff --git a/server/util_test.go b/server/util_test.go index 8ecfda08fb..6d1c8862a4 100644 --- a/server/util_test.go +++ b/server/util_test.go @@ -10,7 +10,7 @@ import ( "strings" "testing" - cmtcfg "github.com/cometbft/cometbft/v2/config" + cmtcfg "github.com/cometbft/cometbft/config" db "github.com/cosmos/cosmos-db" "github.com/spf13/cobra" "github.com/spf13/viper" diff --git a/simapp/abci.go b/simapp/abci.go index 5b0d874add..7848d254d5 100644 --- a/simapp/abci.go +++ b/simapp/abci.go @@ -6,7 +6,7 @@ import ( "encoding/json" "fmt" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "github.com/cosmos/cosmos-sdk/baseapp" sdk "github.com/cosmos/cosmos-sdk/types" @@ -37,7 +37,7 @@ func (h *VoteExtensionHandler) SetHandlers(bApp *baseapp.BaseApp) { } func (h *VoteExtensionHandler) ExtendVote() sdk.ExtendVoteHandler { - return func(_ sdk.Context, req *abci.ExtendVoteRequest) (*abci.ExtendVoteResponse, error) { + return func(_ sdk.Context, req *abci.RequestExtendVote) (*abci.ResponseExtendVote, error) { buf := make([]byte, 1024) _, err := rand.Read(buf) @@ -56,29 +56,29 @@ func (h *VoteExtensionHandler) ExtendVote() sdk.ExtendVoteHandler { return nil, fmt.Errorf("failed to encode vote extension: %w", err) } - return &abci.ExtendVoteResponse{VoteExtension: bz}, nil + return &abci.ResponseExtendVote{VoteExtension: bz}, nil } } func (h *VoteExtensionHandler) VerifyVoteExtension() sdk.VerifyVoteExtensionHandler { - return func(ctx sdk.Context, req *abci.VerifyVoteExtensionRequest) (*abci.VerifyVoteExtensionResponse, error) { + return func(ctx sdk.Context, req *abci.RequestVerifyVoteExtension) (*abci.ResponseVerifyVoteExtension, error) { var ve VoteExtension if err := json.Unmarshal(req.VoteExtension, &ve); err != nil { - return &abci.VerifyVoteExtensionResponse{Status: abci.VERIFY_VOTE_EXTENSION_STATUS_REJECT}, nil + return &abci.ResponseVerifyVoteExtension{Status: abci.ResponseVerifyVoteExtension_REJECT}, nil } switch { case req.Height != ve.Height: - return &abci.VerifyVoteExtensionResponse{Status: abci.VERIFY_VOTE_EXTENSION_STATUS_REJECT}, nil + return &abci.ResponseVerifyVoteExtension{Status: abci.ResponseVerifyVoteExtension_REJECT}, nil case !bytes.Equal(req.Hash, ve.Hash): - return &abci.VerifyVoteExtensionResponse{Status: abci.VERIFY_VOTE_EXTENSION_STATUS_REJECT}, nil + return &abci.ResponseVerifyVoteExtension{Status: abci.ResponseVerifyVoteExtension_REJECT}, nil case len(ve.Data) != 1024: - return &abci.VerifyVoteExtensionResponse{Status: abci.VERIFY_VOTE_EXTENSION_STATUS_REJECT}, nil + return &abci.ResponseVerifyVoteExtension{Status: abci.ResponseVerifyVoteExtension_REJECT}, nil } - return &abci.VerifyVoteExtensionResponse{Status: abci.VERIFY_VOTE_EXTENSION_STATUS_ACCEPT}, nil + return &abci.ResponseVerifyVoteExtension{Status: abci.ResponseVerifyVoteExtension_ACCEPT}, nil } } diff --git a/simapp/app.go b/simapp/app.go index 6d4d660b38..be6cbcee4a 100644 --- a/simapp/app.go +++ b/simapp/app.go @@ -8,7 +8,7 @@ import ( "io" "maps" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" dbm "github.com/cosmos/cosmos-db" "github.com/cosmos/gogoproto/proto" "github.com/spf13/cast" @@ -679,7 +679,7 @@ func (app *SimApp) setPostHandler() { func (app *SimApp) Name() string { return app.BaseApp.Name() } // PreBlocker application updates every pre block -func (app *SimApp) PreBlocker(ctx sdk.Context, _ *abci.FinalizeBlockRequest) (*sdk.ResponsePreBlock, error) { +func (app *SimApp) PreBlocker(ctx sdk.Context, _ *abci.RequestFinalizeBlock) (*sdk.ResponsePreBlock, error) { return app.ModuleManager.PreBlock(ctx) } @@ -698,7 +698,7 @@ func (a *SimApp) Configurator() module.Configurator { } // InitChainer application update at chain initialization -func (app *SimApp) InitChainer(ctx sdk.Context, req *abci.InitChainRequest) (*abci.InitChainResponse, error) { +func (app *SimApp) InitChainer(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error) { var genesisState GenesisState if err := json.Unmarshal(req.AppStateBytes, &genesisState); err != nil { panic(err) diff --git a/simapp/app_test.go b/simapp/app_test.go index e7555f09fb..4528bb9a00 100644 --- a/simapp/app_test.go +++ b/simapp/app_test.go @@ -5,8 +5,8 @@ import ( "fmt" "testing" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" dbm "github.com/cosmos/cosmos-db" "github.com/cosmos/gogoproto/proto" "github.com/stretchr/testify/require" @@ -83,7 +83,7 @@ func TestSimAppExportAndBlockedAddrs(t *testing.T) { } // finalize block so we have CheckTx state set - _, err := app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err := app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: 1, }) require.NoError(t, err) @@ -132,7 +132,7 @@ func TestRunMigrations(t *testing.T) { } // Initialize the chain - _, err := app.InitChain(&abci.InitChainRequest{}) + _, err := app.InitChain(&abci.RequestInitChain{}) require.NoError(t, err) _, err = app.Commit() require.NoError(t, err) diff --git a/simapp/export.go b/simapp/export.go index b69ade6e6c..8baf066772 100644 --- a/simapp/export.go +++ b/simapp/export.go @@ -5,7 +5,7 @@ import ( "fmt" "log" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" storetypes "cosmossdk.io/store/types" diff --git a/simapp/genesis_account_test.go b/simapp/genesis_account_test.go index 8dd9d9b324..eccb8cc66c 100644 --- a/simapp/genesis_account_test.go +++ b/simapp/genesis_account_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/cometbft/cometbft/v2/crypto" + "github.com/cometbft/cometbft/crypto" "github.com/stretchr/testify/require" "cosmossdk.io/simapp" diff --git a/simapp/go.mod b/simapp/go.mod index 3e351caa9d..71fc2f7c98 100644 --- a/simapp/go.mod +++ b/simapp/go.mod @@ -3,20 +3,19 @@ module cosmossdk.io/simapp go 1.24 require ( - cosmossdk.io/api v1.0.0-rc.1 - cosmossdk.io/client/v2 v2.10.0-beta.4 - cosmossdk.io/core v1.1.0-rc.1 + cosmossdk.io/api v0.9.2 + cosmossdk.io/client/v2 v2.0.0-beta.9 + cosmossdk.io/core v0.11.3 cosmossdk.io/depinject v1.2.1 cosmossdk.io/log v1.6.1 cosmossdk.io/math v1.5.3 - cosmossdk.io/store v1.10.0-rc.2 - cosmossdk.io/tools/confix v0.2.0-rc.4 - cosmossdk.io/x/tx v1.2.0-rc.1 - github.com/cometbft/cometbft/api v1.1.0-rc1 - github.com/cometbft/cometbft/v2 v2.0.0-rc1 + cosmossdk.io/store v1.1.2 + cosmossdk.io/tools/confix v0.1.2 + cosmossdk.io/x/tx v0.14.0 + github.com/cometbft/cometbft v0.38.18 github.com/cosmos/cosmos-db v1.1.3 // this version is not used as it is always replaced by the latest Cosmos SDK version - github.com/cosmos/cosmos-sdk v0.54.0-rc.1 + github.com/cosmos/cosmos-sdk v0.53.4 github.com/cosmos/gogoproto v1.7.0 github.com/spf13/cast v1.9.2 github.com/spf13/cobra v1.9.1 @@ -47,7 +46,7 @@ require ( github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.29.0 // indirect github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.51.0 // indirect github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.51.0 // indirect - github.com/aws/aws-sdk-go v1.44.224 // indirect + github.com/aws/aws-sdk-go v1.55.8 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect github.com/bgentry/speakeasy v0.2.0 // indirect @@ -66,7 +65,7 @@ require ( github.com/cockroachdb/pebble v1.1.5 // indirect github.com/cockroachdb/redact v1.1.6 // indirect github.com/cockroachdb/tokenbucket v0.0.0-20250429170803-42689b6311bb // indirect - github.com/cometbft/cometbft-db v1.0.4 // indirect + github.com/cometbft/cometbft-db v0.14.1 // indirect github.com/cosmos/btcutil v1.0.5 // indirect github.com/cosmos/cosmos-proto v1.0.0-beta.5 // indirect github.com/cosmos/go-bip39 v1.0.0 // indirect @@ -87,12 +86,14 @@ require ( github.com/emicklei/dot v1.8.0 // indirect github.com/envoyproxy/go-control-plane/envoy v1.32.4 // indirect github.com/envoyproxy/protoc-gen-validate v1.2.1 // indirect - github.com/ethereum/go-ethereum v1.15.5 // indirect github.com/fatih/color v1.18.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.9.0 // indirect github.com/getsentry/sentry-go v0.35.0 // indirect github.com/go-jose/go-jose/v4 v4.1.1 // indirect + github.com/go-kit/kit v0.13.0 // indirect + github.com/go-kit/log v0.2.1 // indirect + github.com/go-logfmt/logfmt v0.6.0 // indirect github.com/go-logr/logr v1.4.3 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/go-viper/mapstructure/v2 v2.4.0 // indirect @@ -127,7 +128,6 @@ require ( github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect github.com/hashicorp/yamux v0.1.2 // indirect github.com/hdevalence/ed25519consensus v0.2.0 // indirect - github.com/holiman/uint256 v1.3.2 // indirect github.com/huandu/skiplist v1.2.1 // indirect github.com/iancoleman/strcase v0.3.0 // indirect github.com/improbable-eng/grpc-web v0.15.0 // indirect @@ -140,7 +140,6 @@ require ( github.com/kr/text v0.2.0 // indirect github.com/lib/pq v1.10.9 // indirect github.com/linxGnu/grocksdb v1.10.1 // indirect - github.com/lmittmann/tint v1.0.7 // indirect github.com/manifoldco/promptui v0.9.0 // indirect github.com/mattn/go-colorable v0.1.14 // indirect github.com/mattn/go-isatty v0.0.20 // indirect @@ -170,10 +169,9 @@ require ( github.com/spf13/afero v1.14.0 // indirect github.com/spiffe/go-spiffe/v2 v2.5.0 // indirect github.com/subosito/gotenv v1.6.0 // indirect - github.com/supranational/blst v0.3.14 // indirect github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect github.com/tendermint/go-amino v0.16.0 // indirect - github.com/tidwall/btree v1.7.0 // indirect + github.com/tidwall/btree v1.8.1 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ulikunitz/xz v0.5.14 // indirect github.com/zeebo/errs v1.4.0 // indirect diff --git a/simapp/go.sum b/simapp/go.sum index 9b7ce503f0..05d9f064b2 100644 --- a/simapp/go.sum +++ b/simapp/go.sum @@ -614,14 +614,14 @@ cloud.google.com/go/workflows v1.7.0/go.mod h1:JhSrZuVZWuiDfKEFxU0/F1PQjmpnpcoIS cloud.google.com/go/workflows v1.8.0/go.mod h1:ysGhmEajwZxGn1OhGOGKsTXc5PyxOc0vfKf5Af+to4M= cloud.google.com/go/workflows v1.9.0/go.mod h1:ZGkj1aFIOd9c8Gerkjjq7OW7I5+l6cSvT3ujaO/WwSA= cloud.google.com/go/workflows v1.10.0/go.mod h1:fZ8LmRmZQWacon9UCX1r/g/DfAXx5VcPALq2CxzdePw= -cosmossdk.io/api v1.0.0-rc.1 h1:KwZHIMveoeg6YVwvKZxJLp7be5uk6qmnqNAar2tPxVU= -cosmossdk.io/api v1.0.0-rc.1/go.mod h1:8YOT+XjVFb9eZJk62YqjFILOm8MlLhbnkC9/jxIYri8= -cosmossdk.io/client/v2 v2.10.0-beta.4 h1:M6V016IEp4bnaJrE9eS+VdIXGQ30CguQeU4yIDBxCkI= -cosmossdk.io/client/v2 v2.10.0-beta.4/go.mod h1:+SdBBTm1xLd2AEzLKyC8A1v2jn1gG2aigErS9jD+9R0= +cosmossdk.io/api v0.9.2 h1:9i9ptOBdmoIEVEVWLtYYHjxZonlF/aOVODLFaxpmNtg= +cosmossdk.io/api v0.9.2/go.mod h1:CWt31nVohvoPMTlPv+mMNCtC0a7BqRdESjCsstHcTkU= +cosmossdk.io/client/v2 v2.0.0-beta.9 h1:xc06zg4G858/pK5plhf8RCfo+KR2mdDKJNrEkfrVAqc= +cosmossdk.io/client/v2 v2.0.0-beta.9/go.mod h1:pHf3CCHX5gmbL9rDCVbXhGI2+/DdAVTEZSLpdd5V9Zs= cosmossdk.io/collections v1.3.1 h1:09e+DUId2brWsNOQ4nrk+bprVmMUaDH9xvtZkeqIjVw= cosmossdk.io/collections v1.3.1/go.mod h1:ynvkP0r5ruAjbmedE+vQ07MT6OtJ0ZIDKrtJHK7Q/4c= -cosmossdk.io/core v1.1.0-rc.1 h1:VhF5xd4uJZt/lQzbl8qT1W3Pcrklp4RSnugcWQZyf5M= -cosmossdk.io/core v1.1.0-rc.1/go.mod h1:fKHIWVYfPCC4tto9eoYFZC/yAWFlWw2mz8YgSYvjnUs= +cosmossdk.io/core v0.11.3 h1:mei+MVDJOwIjIniaKelE3jPDqShCc/F4LkNNHh+4yfo= +cosmossdk.io/core v0.11.3/go.mod h1:9rL4RE1uDt5AJ4Tg55sYyHWXA16VmpHgbe0PbJc6N2Y= cosmossdk.io/depinject v1.2.1 h1:eD6FxkIjlVaNZT+dXTQuwQTKZrFZ4UrfCq1RKgzyhMw= cosmossdk.io/depinject v1.2.1/go.mod h1:lqQEycz0H2JXqvOgVwTsjEdMI0plswI7p6KX+MVqFOM= cosmossdk.io/errors v1.0.2 h1:wcYiJz08HThbWxd/L4jObeLaLySopyyuUFB5w4AGpCo= @@ -632,12 +632,12 @@ cosmossdk.io/math v1.5.3 h1:WH6tu6Z3AUCeHbeOSHg2mt9rnoiUWVWaQ2t6Gkll96U= cosmossdk.io/math v1.5.3/go.mod h1:uqcZv7vexnhMFJF+6zh9EWdm/+Ylyln34IvPnBauPCQ= cosmossdk.io/schema v1.1.0 h1:mmpuz3dzouCoyjjcMcA/xHBEmMChN+EHh8EHxHRHhzE= cosmossdk.io/schema v1.1.0/go.mod h1:Gb7pqO+tpR+jLW5qDcNOSv0KtppYs7881kfzakguhhI= -cosmossdk.io/store v1.10.0-rc.2 h1:7ze2UoheVTVMK4ElHtoRhYv8nlUImj34e4yp1yy1bgE= -cosmossdk.io/store v1.10.0-rc.2/go.mod h1:3p1IV4EGsULFfeyAcfj7/DBcDsy8d3VlYIEJnhhbP3U= -cosmossdk.io/tools/confix v0.2.0-rc.4 h1:m+rE4N7sUHxwcEJE9pSm1O8HfdUmTSI3l90lQBF4cQY= -cosmossdk.io/tools/confix v0.2.0-rc.4/go.mod h1:ANAmjE5X02R492sFxO1WWST47HNgYt7ltSltKI1wJWk= -cosmossdk.io/x/tx v1.2.0-rc.1 h1:AartiA6eiTD9KHmnlj3uG3H8FjyjI0qNkmvmU+p6cJ8= -cosmossdk.io/x/tx v1.2.0-rc.1/go.mod h1:UzpMTUmQEFfz+m0E+lhzFIiEhtZCHjScU/NC652DBHI= +cosmossdk.io/store v1.1.2 h1:3HOZG8+CuThREKv6cn3WSohAc6yccxO3hLzwK6rBC7o= +cosmossdk.io/store v1.1.2/go.mod h1:60rAGzTHevGm592kFhiUVkNC9w7gooSEn5iUBPzHQ6A= +cosmossdk.io/tools/confix v0.1.2 h1:2hoM1oFCNisd0ltSAAZw2i4ponARPmlhuNu3yy0VwI4= +cosmossdk.io/tools/confix v0.1.2/go.mod h1:7XfcbK9sC/KNgVGxgLM0BrFbVcR/+6Dg7MFfpx7duYo= +cosmossdk.io/x/tx v0.14.0 h1:hB3O25kIcyDW/7kMTLMaO8Ripj3yqs5imceVd6c/heA= +cosmossdk.io/x/tx v0.14.0/go.mod h1:Tn30rSRA1PRfdGB3Yz55W4Sn6EIutr9xtMKSHij+9PM= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA= filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4= @@ -670,6 +670,7 @@ github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5/go.mod h1:lmUJ/7eu/Q8 github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= +github.com/VividCortex/gohistogram v1.0.0 h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE= github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= github.com/adlio/schema v1.3.6 h1:k1/zc2jNfeiZBA5aFTRy37jlBIuCkXCm0XmvpzCKI9I= github.com/adlio/schema v1.3.6/go.mod h1:qkxwLgPBd1FgLRHYVCmQT/rrBr3JH38J9LjmVzWNudg= @@ -698,8 +699,8 @@ github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a/go.mod h1:DAHtR1m6l github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU= github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/aws/aws-sdk-go v1.44.122/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= -github.com/aws/aws-sdk-go v1.44.224 h1:09CiaaF35nRmxrzWZ2uRq5v6Ghg/d2RiPjZnSgtt+RQ= -github.com/aws/aws-sdk-go v1.44.224/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= +github.com/aws/aws-sdk-go v1.55.8 h1:JRmEUbU52aJQZ2AjX4q4Wu7t4uZjOu71uyNmaWlUkJQ= +github.com/aws/aws-sdk-go v1.55.8/go.mod h1:ZkViS9AqA6otK+JBBNH2++sx1sgxrPKcSzPPvQkUtXk= github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= @@ -794,12 +795,10 @@ github.com/cockroachdb/redact v1.1.6/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZ github.com/cockroachdb/tokenbucket v0.0.0-20250429170803-42689b6311bb h1:3bCgBvB8PbJVMX1ouCcSIxvsqKPYM7gs72o0zC76n9g= github.com/cockroachdb/tokenbucket v0.0.0-20250429170803-42689b6311bb/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ= github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= -github.com/cometbft/cometbft-db v1.0.4 h1:cezb8yx/ZWcF124wqUtAFjAuDksS1y1yXedvtprUFxs= -github.com/cometbft/cometbft-db v1.0.4/go.mod h1:M+BtHAGU2XLrpUxo3Nn1nOCcnVCiLM9yx5OuT0u5SCA= -github.com/cometbft/cometbft/api v1.1.0-rc1 h1:NdlXfp4wialMwJ+1ds1DBtfysdxErUxg8/AaqgT0ifQ= -github.com/cometbft/cometbft/api v1.1.0-rc1/go.mod h1:Ivh6nSCTJPQOyfQo8dgnyu/T88it092sEqSrZSmTQN8= -github.com/cometbft/cometbft/v2 v2.0.0-rc1 h1:3QyDHTFzH3a1N6c2jt03kFDCxM/hgUvhzDYBVnPVXY8= -github.com/cometbft/cometbft/v2 v2.0.0-rc1/go.mod h1:/ze08eO171CqUqTqAE7FW7ydUJIVkgp6e2svpYvIR3c= +github.com/cometbft/cometbft v0.38.18 h1:1ZHYMdu0S75YxFM13LlPXnOwiIpUW5z9TKMQtTIALpw= +github.com/cometbft/cometbft v0.38.18/go.mod h1:PlOQgf3jQorep+g6oVnJgtP65TJvBJoLiXjGaMdNxBE= +github.com/cometbft/cometbft-db v0.14.1 h1:SxoamPghqICBAIcGpleHbmoPqy+crij/++eZz3DlerQ= +github.com/cometbft/cometbft-db v0.14.1/go.mod h1:KHP1YghilyGV/xjD5DP3+2hyigWx0WTp9X+0Gnx0RxQ= github.com/containerd/continuity v0.3.0 h1:nisirsYROK15TAMVukJOUyGJjz4BNQJBVsNvAXZJ/eg= github.com/containerd/continuity v0.3.0/go.mod h1:wJEAIwKOm/pBZuBd0JmeTvnLquTB1Ag8espWhkykbPM= github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= @@ -897,8 +896,6 @@ github.com/envoyproxy/protoc-gen-validate v0.9.1/go.mod h1:OKNgG7TCp5pF4d6XftA0+ github.com/envoyproxy/protoc-gen-validate v0.10.1/go.mod h1:DRjgyB0I43LtJapqN6NiRwroiAU2PaFuvk/vjgh61ss= github.com/envoyproxy/protoc-gen-validate v1.2.1 h1:DEo3O99U8j4hBFwbJfrz9VtgcDfUKS7KJ7spH3d86P8= github.com/envoyproxy/protoc-gen-validate v1.2.1/go.mod h1:d/C80l/jxXLdfEIhX1W2TmLfsJ31lvEjwamM4DxlWXU= -github.com/ethereum/go-ethereum v1.15.5 h1:Fo2TbBWC61lWVkFw9tsMoHCNX1ndpuaQBRJ8H6xLUPo= -github.com/ethereum/go-ethereum v1.15.5/go.mod h1:1LG2LnMOx2yPRHR/S+xuipXH29vPr6BIH6GElD8N/fo= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM= @@ -941,12 +938,18 @@ github.com/go-jose/go-jose/v4 v4.1.1/go.mod h1:BdsZGqgdO3b6tTc6LSE56wcDbMMLuPsw5 github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o= +github.com/go-kit/kit v0.13.0 h1:OoneCcHKHQ03LfBpoQCUfCluwd2Vt3ohz+kvbJneZAU= +github.com/go-kit/kit v0.13.0/go.mod h1:phqEHMMUbyrCFCTgH48JueqrM3md2HcAZ8N3XE4FKDg= github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= +github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU= +github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= github.com/go-latex/latex v0.0.0-20210118124228-b3d85cf34e07/go.mod h1:CO1AlKB2CSIqUrmQPqA0gdRIlnLEY0gK5JGjh37zN5U= github.com/go-latex/latex v0.0.0-20210823091927-c0d11ff05a81/go.mod h1:SX0U8uGpxhq9o2S/CELCSUxEWWAuoCUcVCQWv7G2OCk= github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= +github.com/go-logfmt/logfmt v0.6.0 h1:wGYYu3uicYdqXVgoYbvnkrPVXkuLM1p1ifugDMEdRi4= +github.com/go-logfmt/logfmt v0.6.0/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= @@ -1168,9 +1171,8 @@ github.com/hashicorp/go-safetemp v1.0.0/go.mod h1:oaerMy3BhqiTbVye6QuFhFtIceqFoD github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.1 h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE= github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= -github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.7.0 h1:5tqGy27NaOTB8yJKUZELlFAS/LTKJkrmONwQKeRZfjY= @@ -1190,8 +1192,6 @@ github.com/hashicorp/yamux v0.1.2 h1:XtB8kyFOyHXYVFnwT5C3+Bdo8gArse7j2AQ0DA0Uey8 github.com/hashicorp/yamux v0.1.2/go.mod h1:C+zze2n6e/7wshOZep2A70/aQU6QBRWJO/G6FT1wIns= github.com/hdevalence/ed25519consensus v0.2.0 h1:37ICyZqdyj0lAZ8P4D1d1id3HqbbG1N3iBb1Tb4rdcU= github.com/hdevalence/ed25519consensus v0.2.0/go.mod h1:w3BHWjwJbFU29IRHL1Iqkw3sus+7FctEyM4RqDxYNzo= -github.com/holiman/uint256 v1.3.2 h1:a9EgMPSC1AAaj1SZL5zIQD3WbwTuHrMGOerLjGmM/TA= -github.com/holiman/uint256 v1.3.2/go.mod h1:EOMSn4q6Nyt9P6efbI3bueV4e1b3dGlUCXeiRV4ng7E= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/huandu/go-assert v1.1.5 h1:fjemmA7sSfYHJD7CUqs9qTwwfdNAx7/j2/ZlHXzNB3c= github.com/huandu/go-assert v1.1.5/go.mod h1:yOLvuqZwmcHIC5rIzrBhT7D3Q9c3GFnd0JrPVhn/06U= @@ -1275,8 +1275,6 @@ github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-b github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= github.com/linxGnu/grocksdb v1.10.1 h1:YX6gUcKvSC3d0s9DaqgbU+CRkZHzlELgHu1Z/kmtslg= github.com/linxGnu/grocksdb v1.10.1/go.mod h1:C3CNe9UYc9hlEM2pC82AqiGS3LRW537u9LFV4wIZuHk= -github.com/lmittmann/tint v1.0.7 h1:D/0OqWZ0YOGZ6AyC+5Y2kD8PBEzBk6rFHVSfOqCkF9Y= -github.com/lmittmann/tint v1.0.7/go.mod h1:HIS3gSy7qNwGCj+5oRjAutErFBl4BzdQP6cJZ0NfMwE= github.com/lyft/protoc-gen-star v0.6.0/go.mod h1:TGAoBVkt8w7MPG72TrKIu85MIdXwDuzJYeZuUPFPNwA= github.com/lyft/protoc-gen-star v0.6.1/go.mod h1:TGAoBVkt8w7MPG72TrKIu85MIdXwDuzJYeZuUPFPNwA= github.com/lyft/protoc-gen-star/v2 v2.0.1/go.mod h1:RcCdONR2ScXaYnQC5tUzxzlpA3WVYF7/opLeUgcQs/o= @@ -1534,14 +1532,12 @@ github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= -github.com/supranational/blst v0.3.14 h1:xNMoHRJOTwMn63ip6qoWJ2Ymgvj7E2b9jY2FAwY+qRo= -github.com/supranational/blst v0.3.14/go.mod h1:jZJtfjgudtNl4en1tzwPIV3KjUnQUvG3/j+w+fVonLw= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 h1:epCh84lMvA70Z7CTTCmYQn2CKbY8j86K7/FAIr141uY= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7/go.mod h1:q4W45IWZaF22tdD+VEXcAWRA037jwmWEB5VWYORlTpc= github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E= github.com/tendermint/go-amino v0.16.0/go.mod h1:TQU0M1i/ImAo+tYpZi73AU3V/dKeCoMC9Sphe2ZwGME= -github.com/tidwall/btree v1.7.0 h1:L1fkJH/AuEh5zBnnBbmTwQ5Lt+bRJ5A8EWecslvo9iI= -github.com/tidwall/btree v1.7.0/go.mod h1:twD9XRA5jj9VUQGELzDO4HPQTNJsoWWfYEL+EUQ2cKY= +github.com/tidwall/btree v1.8.1 h1:27ehoXvm5AG/g+1VxLS1SD3vRhp/H7LuEfwNvddEdmA= +github.com/tidwall/btree v1.8.1/go.mod h1:jBbTdUWhSZClZWoDg54VnvV7/54modSOzDN7VXftj1A= github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI= @@ -1782,7 +1778,6 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.0.0-20221012135044-0b7e1fb9d458/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= -golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= golang.org/x/net v0.4.0/go.mod h1:MBQ8lrhLObU/6UmLb4fmbmk5OcyYmqtbGd/9yIeKjEE= golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws= @@ -1950,7 +1945,6 @@ golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220829200755-d48e67d00261/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1968,7 +1962,6 @@ golang.org/x/sys v0.35.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= golang.org/x/telemetry v0.0.0-20240228155512-f48c80bd79b2/go.mod h1:TeRTkGYfJXctD9OcfyVLyj2J3IxLnKwHJR8f4D8a3YE= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= golang.org/x/term v0.3.0/go.mod h1:q750SLmJuPmVoN1blW3UFBPREJfb1KmY3vwxfr+nFDA= golang.org/x/term v0.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ= diff --git a/simapp/sim_test.go b/simapp/sim_test.go index a4a4633a90..c76a12735d 100644 --- a/simapp/sim_test.go +++ b/simapp/sim_test.go @@ -12,8 +12,8 @@ import ( "sync" "testing" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" dbm "github.com/cosmos/cosmos-db" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" @@ -125,7 +125,7 @@ func TestAppSimulationAfterImport(t *testing.T) { tb.Log("importing genesis...\n") newTestInstance := sims.NewSimulationAppInstance(tb, ti.Cfg, NewSimApp) newApp := newTestInstance.App - _, err = newApp.InitChain(&abci.InitChainRequest{ + _, err = newApp.InitChain(&abci.RequestInitChain{ AppStateBytes: exported.AppState, ChainId: sims.SimAppChainID, }) diff --git a/simapp/simd/cmd/commands.go b/simapp/simd/cmd/commands.go index c07be74393..a38d398a1a 100644 --- a/simapp/simd/cmd/commands.go +++ b/simapp/simd/cmd/commands.go @@ -4,7 +4,7 @@ import ( "errors" "io" - cmtcfg "github.com/cometbft/cometbft/v2/config" + cmtcfg "github.com/cometbft/cometbft/config" dbm "github.com/cosmos/cosmos-db" "github.com/spf13/cobra" "github.com/spf13/viper" diff --git a/simapp/simd/cmd/testnet.go b/simapp/simd/cmd/testnet.go index e9bf677d2f..4eb1642061 100644 --- a/simapp/simd/cmd/testnet.go +++ b/simapp/simd/cmd/testnet.go @@ -9,8 +9,8 @@ import ( "path/filepath" "time" - cmtconfig "github.com/cometbft/cometbft/v2/config" - cmttime "github.com/cometbft/cometbft/v2/types/time" + cmtconfig "github.com/cometbft/cometbft/config" + cmttime "github.com/cometbft/cometbft/types/time" "github.com/spf13/cobra" "github.com/spf13/pflag" @@ -156,7 +156,7 @@ Example: args.algo, _ = cmd.Flags().GetString(flags.FlagKeyType) args.bondTokenDenom, _ = cmd.Flags().GetString(flagStakingDenom) args.singleMachine, _ = cmd.Flags().GetBool(flagSingleHost) - config.Consensus.TimeoutCommit, err = cmd.Flags().GetDuration(flagCommitTimeout) // nolint: staticcheck // we are continuing to use this value for backwards compatibility + config.Consensus.TimeoutCommit, err = cmd.Flags().GetDuration(flagCommitTimeout) if err != nil { return err } diff --git a/simapp/test_helpers.go b/simapp/test_helpers.go index bdf2a76515..ff409f9394 100644 --- a/simapp/test_helpers.go +++ b/simapp/test_helpers.go @@ -6,9 +6,9 @@ import ( "os" "testing" - abci "github.com/cometbft/cometbft/v2/abci/types" - cmtjson "github.com/cometbft/cometbft/v2/libs/json" - cmttypes "github.com/cometbft/cometbft/v2/types" + abci "github.com/cometbft/cometbft/abci/types" + cmtjson "github.com/cometbft/cometbft/libs/json" + cmttypes "github.com/cometbft/cometbft/types" dbm "github.com/cosmos/cosmos-db" "github.com/stretchr/testify/require" @@ -80,7 +80,7 @@ func NewSimappWithCustomOptions(t *testing.T, isCheckTx bool, options SetupOptio require.NoError(t, err) // Initialize the chain - _, err = app.InitChain(&abci.InitChainRequest{ + _, err = app.InitChain(&abci.RequestInitChain{ Validators: []abci.ValidatorUpdate{}, ConsensusParams: simtestutil.DefaultConsensusParams, AppStateBytes: stateBytes, @@ -131,7 +131,7 @@ func SetupWithGenesisValSet(t *testing.T, valSet *cmttypes.ValidatorSet, genAccs require.NoError(t, err) // init chain will set the validator set and initialize the genesis accounts - _, err = app.InitChain(&abci.InitChainRequest{ + _, err = app.InitChain(&abci.RequestInitChain{ Validators: []abci.ValidatorUpdate{}, ConsensusParams: simtestutil.DefaultConsensusParams, AppStateBytes: stateBytes, @@ -140,7 +140,7 @@ func SetupWithGenesisValSet(t *testing.T, valSet *cmttypes.ValidatorSet, genAccs require.NoError(t, err) require.NoError(t, err) - _, err = app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: app.LastBlockHeight() + 1, Hash: app.LastCommitID().Hash, NextValidatorsHash: valSet.Hash(), diff --git a/store/go.mod b/store/go.mod index a05cb07024..3095f468aa 100644 --- a/store/go.mod +++ b/store/go.mod @@ -6,9 +6,8 @@ require ( cosmossdk.io/errors v1.0.2 cosmossdk.io/log v1.6.1 cosmossdk.io/math v1.5.3 - github.com/cometbft/cometbft/api v1.1.0-rc1 - github.com/cometbft/cometbft/v2 v2.0.0-rc1 - github.com/cosmos/cosmos-db v1.1.3 + github.com/cometbft/cometbft v0.38.18 + github.com/cosmos/cosmos-db v1.1.1 github.com/cosmos/cosmos-proto v1.0.0-beta.5 github.com/cosmos/gogoproto v1.7.0 github.com/cosmos/iavl v1.2.6 @@ -21,10 +20,12 @@ require ( github.com/tidwall/btree v1.8.1 go.uber.org/mock v0.6.0 google.golang.org/grpc v1.75.0 - google.golang.org/protobuf v1.36.7 + google.golang.org/protobuf v1.36.8 gotest.tools/v3 v3.5.2 ) +require github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0 // indirect + require ( github.com/DataDog/zstd v1.5.7 // indirect github.com/beorn7/perks v1.0.1 // indirect @@ -58,7 +59,9 @@ require ( github.com/mattn/go-colorable v0.1.14 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect + github.com/oasisprotocol/curve25519-voi v0.0.0-20220708102147-0a8a51822cae // indirect github.com/oklog/run v1.1.0 // indirect + github.com/petermattis/goid v0.0.0-20240813172612-4fcff4a6cae7 // indirect github.com/pkg/errors v0.9.1 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/prometheus/client_golang v1.22.0 // indirect @@ -67,6 +70,7 @@ require ( github.com/prometheus/procfs v0.16.1 // indirect github.com/rogpeppe/go-internal v1.14.1 // indirect github.com/rs/zerolog v1.34.0 // indirect + github.com/sasha-s/go-deadlock v0.3.5 // indirect github.com/spf13/cast v1.8.0 // indirect github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect diff --git a/store/go.sum b/store/go.sum index 4bfff1fc32..859a497b74 100644 --- a/store/go.sum +++ b/store/go.sum @@ -18,6 +18,8 @@ github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24 github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= +github.com/btcsuite/btcd/btcutil v1.1.6 h1:zFL2+c3Lb9gEgqKNzowKUPQNb8jV7v5Oaodi/AYFd6c= +github.com/btcsuite/btcd/btcutil v1.1.6/go.mod h1:9dFymx8HpuLqBnsPELrImQeTQfKBQqzqGbbV3jK55aE= github.com/bufbuild/protocompile v0.14.1 h1:iA73zAf/fyljNjQKwYzUHD6AD4R8KMasmwa/FBatYVw= github.com/bufbuild/protocompile v0.14.1/go.mod h1:ppVdAIhbr2H8asPk6k4pY7t9zB1OU5DoEw9xY/FUi1c= github.com/bytedance/sonic v1.14.0 h1:/OfKt8HFw0kh2rj8N0F6C/qPGRESq0BbaNZgcNXXzQQ= @@ -50,13 +52,11 @@ github.com/cockroachdb/redact v1.1.6 h1:zXJBwDZ84xJNlHl1rMyCojqyIxv+7YUpQiJLQ7n4 github.com/cockroachdb/redact v1.1.6/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg= github.com/cockroachdb/tokenbucket v0.0.0-20250429170803-42689b6311bb h1:3bCgBvB8PbJVMX1ouCcSIxvsqKPYM7gs72o0zC76n9g= github.com/cockroachdb/tokenbucket v0.0.0-20250429170803-42689b6311bb/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ= -github.com/cometbft/cometbft/api v1.1.0-rc1 h1:NdlXfp4wialMwJ+1ds1DBtfysdxErUxg8/AaqgT0ifQ= -github.com/cometbft/cometbft/api v1.1.0-rc1/go.mod h1:Ivh6nSCTJPQOyfQo8dgnyu/T88it092sEqSrZSmTQN8= -github.com/cometbft/cometbft/v2 v2.0.0-rc1 h1:3QyDHTFzH3a1N6c2jt03kFDCxM/hgUvhzDYBVnPVXY8= -github.com/cometbft/cometbft/v2 v2.0.0-rc1/go.mod h1:/ze08eO171CqUqTqAE7FW7ydUJIVkgp6e2svpYvIR3c= +github.com/cometbft/cometbft v0.38.18 h1:1ZHYMdu0S75YxFM13LlPXnOwiIpUW5z9TKMQtTIALpw= +github.com/cometbft/cometbft v0.38.18/go.mod h1:PlOQgf3jQorep+g6oVnJgtP65TJvBJoLiXjGaMdNxBE= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= -github.com/cosmos/cosmos-db v1.1.3 h1:7QNT77+vkefostcKkhrzDK9uoIEryzFrU9eoMeaQOPY= -github.com/cosmos/cosmos-db v1.1.3/go.mod h1:kN+wGsnwUJZYn8Sy5Q2O0vCYA99MJllkKASbs6Unb9U= +github.com/cosmos/cosmos-db v1.1.1 h1:FezFSU37AlBC8S98NlSagL76oqBRWq/prTPvFcEJNCM= +github.com/cosmos/cosmos-db v1.1.1/go.mod h1:AghjcIPqdhSLP/2Z0yha5xPH3nLnskz81pBx3tcVSAw= github.com/cosmos/cosmos-proto v1.0.0-beta.5 h1:eNcayDLpip+zVLRLYafhzLvQlSmyab+RC5W7ZfmxJLA= github.com/cosmos/cosmos-proto v1.0.0-beta.5/go.mod h1:hQGLpiIUloJBMdQMMWb/4wRApmI9hjHH05nefC0Ojec= github.com/cosmos/gogoproto v1.7.0 h1:79USr0oyXAbxg3rspGh/m4SWNyoz/GLaAh0QlCe2fro= @@ -70,6 +70,10 @@ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/decred/dcrd/crypto/blake256 v1.1.0 h1:zPMNGQCm0g4QTY27fOCorQW7EryeQ/U0x++OzVrdms8= +github.com/decred/dcrd/crypto/blake256 v1.1.0/go.mod h1:2OfgNZ5wDpcsFmHmCK5gZTPcCXqlm2ArzUIkw9czNJo= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0 h1:NMZiJj8QnKe1LgsbDayM4UoHwbvwDRwnI3hwNaAHRnc= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0/go.mod h1:ZXNYxsqcloTdSy/rNShjYzMhyjf0LaoftYK0p+A3h40= github.com/emicklei/dot v1.8.0 h1:HnD60yAKFAevNeT+TPYr9pb8VB9bqdeSo0nzwIW6IOI= github.com/emicklei/dot v1.8.0/go.mod h1:DeV7GvQtIw4h2u73RKBkkFdvVAz0D9fzeJrgPW6gy/s= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= @@ -207,6 +211,8 @@ github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRW github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= +github.com/oasisprotocol/curve25519-voi v0.0.0-20220708102147-0a8a51822cae h1:FatpGJD2jmJfhZiFDElaC0QhZUDQnxUeAwTGkfAHN3I= +github.com/oasisprotocol/curve25519-voi v0.0.0-20220708102147-0a8a51822cae/go.mod h1:hVoHR2EVESiICEMbg137etN/Lx+lSrHPTD39Z/uE+2s= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= @@ -420,8 +426,8 @@ google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzi google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.36.7 h1:IgrO7UwFQGJdRNXH/sQux4R1Dj1WAKcLElzeeRaXV2A= -google.golang.org/protobuf v1.36.7/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY= +google.golang.org/protobuf v1.36.8 h1:xHScyCOEuuwZEc6UtSOvPbAT4zRh0xcNRYekJwfqyMc= +google.golang.org/protobuf v1.36.8/go.mod h1:fuxRtAxBytpl4zzqUh6/eyUujkJdNiuEkXntxiD/uRU= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/store/iavl/store.go b/store/iavl/store.go index f189a2a12f..f59cc7fbb4 100644 --- a/store/iavl/store.go +++ b/store/iavl/store.go @@ -5,7 +5,7 @@ import ( "fmt" "io" - cmtprotocrypto "github.com/cometbft/cometbft/api/cometbft/crypto/v1" + cmtprotocrypto "github.com/cometbft/cometbft/proto/tendermint/crypto" dbm "github.com/cosmos/cosmos-db" "github.com/cosmos/iavl" ics23 "github.com/cosmos/ics23/go" diff --git a/store/internal/maps/maps.go b/store/internal/maps/maps.go index 34b2f09b7e..fdef546c09 100644 --- a/store/internal/maps/maps.go +++ b/store/internal/maps/maps.go @@ -3,9 +3,9 @@ package maps import ( "encoding/binary" - cmtprotocrypto "github.com/cometbft/cometbft/api/cometbft/crypto/v1" - "github.com/cometbft/cometbft/v2/crypto/merkle" - "github.com/cometbft/cometbft/v2/crypto/tmhash" + "github.com/cometbft/cometbft/crypto/merkle" + "github.com/cometbft/cometbft/crypto/tmhash" + cmtprotocrypto "github.com/cometbft/cometbft/proto/tendermint/crypto" "cosmossdk.io/store/internal/kv" "cosmossdk.io/store/internal/tree" diff --git a/store/internal/proofs/convert.go b/store/internal/proofs/convert.go index 9faaa7ded9..a92ced58f9 100644 --- a/store/internal/proofs/convert.go +++ b/store/internal/proofs/convert.go @@ -4,7 +4,7 @@ import ( "fmt" "math/bits" - cmtprotocrypto "github.com/cometbft/cometbft/api/cometbft/crypto/v1" + cmtprotocrypto "github.com/cometbft/cometbft/proto/tendermint/crypto" ics23 "github.com/cosmos/ics23/go" ) diff --git a/store/internal/proofs/helpers.go b/store/internal/proofs/helpers.go index 059bfd0e3c..74d86ebe13 100644 --- a/store/internal/proofs/helpers.go +++ b/store/internal/proofs/helpers.go @@ -4,7 +4,7 @@ import ( "maps" "slices" - cmtprotocrypto "github.com/cometbft/cometbft/api/cometbft/crypto/v1" + cmtprotocrypto "github.com/cometbft/cometbft/proto/tendermint/crypto" "cosmossdk.io/math/unsafe" sdkmaps "cosmossdk.io/store/internal/maps" diff --git a/store/prefix/store.go b/store/prefix/store.go index dec50ec0b6..26fc0cb50d 100644 --- a/store/prefix/store.go +++ b/store/prefix/store.go @@ -192,7 +192,7 @@ func (pi *prefixIterator) Error() error { return nil } -// stripPrefix is copied from github.com/cometbft/cometbft/v2/libs/db/prefix_db.go +// stripPrefix is copied from github.com/cometbft/cometbft/libs/db/prefix_db.go func stripPrefix(key, prefix []byte) []byte { if len(key) < len(prefix) || !bytes.Equal(key[:len(prefix)], prefix) { panic("should not happen") diff --git a/store/rootmulti/proof.go b/store/rootmulti/proof.go index ba6c55524f..a1524adb6c 100644 --- a/store/rootmulti/proof.go +++ b/store/rootmulti/proof.go @@ -1,7 +1,7 @@ package rootmulti import ( - "github.com/cometbft/cometbft/v2/crypto/merkle" + "github.com/cometbft/cometbft/crypto/merkle" storetypes "cosmossdk.io/store/types" ) diff --git a/store/rootmulti/store.go b/store/rootmulti/store.go index 8b3c94e485..071d94873f 100644 --- a/store/rootmulti/store.go +++ b/store/rootmulti/store.go @@ -12,7 +12,7 @@ import ( "sync" "sync/atomic" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" dbm "github.com/cosmos/cosmos-db" protoio "github.com/cosmos/gogoproto/io" gogotypes "github.com/cosmos/gogoproto/types" diff --git a/store/snapshots/types/convert.go b/store/snapshots/types/convert.go index 4cb161394c..52c966821c 100644 --- a/store/snapshots/types/convert.go +++ b/store/snapshots/types/convert.go @@ -1,7 +1,7 @@ package types import ( - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" proto "github.com/cosmos/gogoproto/proto" "cosmossdk.io/errors" diff --git a/store/streaming/abci/examples/file/file.go b/store/streaming/abci/examples/file/file.go index 427ab92916..150b8cafce 100644 --- a/store/streaming/abci/examples/file/file.go +++ b/store/streaming/abci/examples/file/file.go @@ -6,7 +6,7 @@ import ( "os" "path/filepath" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "github.com/hashicorp/go-plugin" streamingabci "cosmossdk.io/store/streaming/abci" @@ -43,7 +43,7 @@ func (a *FilePlugin) writeToFile(file string, data []byte) error { return nil } -func (a *FilePlugin) ListenFinalizeBlock(ctx context.Context, req abci.FinalizeBlockRequest, res abci.FinalizeBlockResponse) error { +func (a *FilePlugin) ListenFinalizeBlock(ctx context.Context, req abci.RequestFinalizeBlock, res abci.ResponseFinalizeBlock) error { d1 := []byte(fmt.Sprintf("%d:::%v\n", a.BlockHeight, req)) d2 := []byte(fmt.Sprintf("%d:::%v\n", a.BlockHeight, req)) if err := a.writeToFile("finalize-block-req", d1); err != nil { @@ -55,7 +55,7 @@ func (a *FilePlugin) ListenFinalizeBlock(ctx context.Context, req abci.FinalizeB return nil } -func (a *FilePlugin) ListenCommit(ctx context.Context, res abci.CommitResponse, changeSet []*store.StoreKVPair) error { +func (a *FilePlugin) ListenCommit(ctx context.Context, res abci.ResponseCommit, changeSet []*store.StoreKVPair) error { fmt.Printf("listen-commit: block_height=%d data=%v", res.RetainHeight, changeSet) d1 := []byte(fmt.Sprintf("%d:::%v\n", a.BlockHeight, res)) d2 := []byte(fmt.Sprintf("%d:::%v\n", a.BlockHeight, changeSet)) diff --git a/store/streaming/abci/examples/stdout/stdout.go b/store/streaming/abci/examples/stdout/stdout.go deleted file mode 100644 index 6a353d9c2c..0000000000 --- a/store/streaming/abci/examples/stdout/stdout.go +++ /dev/null @@ -1,43 +0,0 @@ -package main - -import ( - "context" - "fmt" - - abci "github.com/cometbft/cometbft/v2/abci/types" - "github.com/hashicorp/go-plugin" - - streamingabci "cosmossdk.io/store/streaming/abci" - store "cosmossdk.io/store/types" -) - -// StdoutPlugin is the implementation of the ABCIListener interface -// For Go plugins this is all that is required to process data sent over gRPC. -type StdoutPlugin struct { - BlockHeight int64 -} - -func (a *StdoutPlugin) ListenFinalizeBlock(ctx context.Context, req abci.FinalizeBlockRequest, res abci.FinalizeBlockResponse) error { - a.BlockHeight = req.Height - // process tx messages (i.e: sent to external system) - fmt.Printf("listen-finalize-block: block-height=%d req=%v res=%v", a.BlockHeight, req, res) - return nil -} - -func (a *StdoutPlugin) ListenCommit(ctx context.Context, res abci.CommitResponse, changeSet []*store.StoreKVPair) error { - // process block commit messages (i.e: sent to external system) - fmt.Printf("listen-commit: block_height=%d res=%v data=%v", a.BlockHeight, res, changeSet) - return nil -} - -func main() { - plugin.Serve(&plugin.ServeConfig{ - HandshakeConfig: streamingabci.Handshake, - Plugins: map[string]plugin.Plugin{ - "abci": &streamingabci.ListenerGRPCPlugin{Impl: &StdoutPlugin{}}, - }, - - // A non-nil value here enables gRPC serving for this streaming... - GRPCServer: plugin.DefaultGRPCServer, - }) -} diff --git a/store/streaming/abci/grpc.go b/store/streaming/abci/grpc.go index 9a281c672b..1aab31852d 100644 --- a/store/streaming/abci/grpc.go +++ b/store/streaming/abci/grpc.go @@ -4,7 +4,7 @@ import ( "context" "os" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "github.com/hashicorp/go-plugin" storetypes "cosmossdk.io/store/types" @@ -22,7 +22,7 @@ type GRPCClient struct { // It panics if a types.Context was not properly attached. // When the node is configured to stop on listening errors, // it will terminate immediately and exit with a non-zero code. -func (m *GRPCClient) ListenFinalizeBlock(goCtx context.Context, req abci.FinalizeBlockRequest, res abci.FinalizeBlockResponse) error { +func (m *GRPCClient) ListenFinalizeBlock(goCtx context.Context, req abci.RequestFinalizeBlock, res abci.ResponseFinalizeBlock) error { ctx := goCtx.(storetypes.Context) sm := ctx.StreamingManager() request := &ListenFinalizeBlockRequest{Req: &req, Res: &res} @@ -39,7 +39,7 @@ func (m *GRPCClient) ListenFinalizeBlock(goCtx context.Context, req abci.Finaliz // It panics if a types.Context was not properly attached. // When the node is configured to stop on listening errors, // it will terminate immediately and exit with a non-zero code. -func (m *GRPCClient) ListenCommit(goCtx context.Context, res abci.CommitResponse, changeSet []*storetypes.StoreKVPair) error { +func (m *GRPCClient) ListenCommit(goCtx context.Context, res abci.ResponseCommit, changeSet []*storetypes.StoreKVPair) error { ctx := goCtx.(storetypes.Context) sm := ctx.StreamingManager() request := &ListenCommitRequest{BlockHeight: ctx.BlockHeight(), Res: &res, ChangeSet: changeSet} diff --git a/store/streaming/abci/grpc.pb.go b/store/streaming/abci/grpc.pb.go index 3d2c954cf7..358bcaa7dc 100644 --- a/store/streaming/abci/grpc.pb.go +++ b/store/streaming/abci/grpc.pb.go @@ -5,9 +5,9 @@ package abci import ( context "context" - types "cosmossdk.io/store/types" + types1 "cosmossdk.io/store/types" fmt "fmt" - v2 "github.com/cometbft/cometbft/api/cometbft/abci/v2" + types "github.com/cometbft/cometbft/abci/types" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" grpc "google.golang.org/grpc" @@ -31,8 +31,8 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // ListenEndBlockRequest is the request type for the ListenEndBlock RPC method type ListenFinalizeBlockRequest struct { - Req *v2.FinalizeBlockRequest `protobuf:"bytes,1,opt,name=req,proto3" json:"req,omitempty"` - Res *v2.FinalizeBlockResponse `protobuf:"bytes,2,opt,name=res,proto3" json:"res,omitempty"` + Req *types.RequestFinalizeBlock `protobuf:"bytes,1,opt,name=req,proto3" json:"req,omitempty"` + Res *types.ResponseFinalizeBlock `protobuf:"bytes,2,opt,name=res,proto3" json:"res,omitempty"` } func (m *ListenFinalizeBlockRequest) Reset() { *m = ListenFinalizeBlockRequest{} } @@ -68,14 +68,14 @@ func (m *ListenFinalizeBlockRequest) XXX_DiscardUnknown() { var xxx_messageInfo_ListenFinalizeBlockRequest proto.InternalMessageInfo -func (m *ListenFinalizeBlockRequest) GetReq() *v2.FinalizeBlockRequest { +func (m *ListenFinalizeBlockRequest) GetReq() *types.RequestFinalizeBlock { if m != nil { return m.Req } return nil } -func (m *ListenFinalizeBlockRequest) GetRes() *v2.FinalizeBlockResponse { +func (m *ListenFinalizeBlockRequest) GetRes() *types.ResponseFinalizeBlock { if m != nil { return m.Res } @@ -122,9 +122,9 @@ var xxx_messageInfo_ListenFinalizeBlockResponse proto.InternalMessageInfo // ListenCommitRequest is the request type for the ListenCommit RPC method type ListenCommitRequest struct { // explicitly pass in block height as ResponseCommit does not contain this info - BlockHeight int64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` - Res *v2.CommitResponse `protobuf:"bytes,2,opt,name=res,proto3" json:"res,omitempty"` - ChangeSet []*types.StoreKVPair `protobuf:"bytes,3,rep,name=change_set,json=changeSet,proto3" json:"change_set,omitempty"` + BlockHeight int64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + Res *types.ResponseCommit `protobuf:"bytes,2,opt,name=res,proto3" json:"res,omitempty"` + ChangeSet []*types1.StoreKVPair `protobuf:"bytes,3,rep,name=change_set,json=changeSet,proto3" json:"change_set,omitempty"` } func (m *ListenCommitRequest) Reset() { *m = ListenCommitRequest{} } @@ -167,14 +167,14 @@ func (m *ListenCommitRequest) GetBlockHeight() int64 { return 0 } -func (m *ListenCommitRequest) GetRes() *v2.CommitResponse { +func (m *ListenCommitRequest) GetRes() *types.ResponseCommit { if m != nil { return m.Res } return nil } -func (m *ListenCommitRequest) GetChangeSet() []*types.StoreKVPair { +func (m *ListenCommitRequest) GetChangeSet() []*types1.StoreKVPair { if m != nil { return m.ChangeSet } @@ -230,33 +230,33 @@ func init() { } var fileDescriptor_7b98083eb9315fb6 = []byte{ - // 414 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0xcf, 0x6e, 0xda, 0x40, - 0x10, 0xc6, 0x31, 0x96, 0x2a, 0x75, 0xe1, 0xb4, 0x54, 0x15, 0x32, 0xad, 0x05, 0x56, 0x45, 0x39, - 0xad, 0x8b, 0x7b, 0x28, 0x55, 0x2f, 0x2d, 0x48, 0x55, 0xab, 0xf6, 0x50, 0x19, 0xa9, 0x87, 0x5e, - 0x90, 0xed, 0x4e, 0xcd, 0x0a, 0xec, 0x35, 0xbb, 0x5b, 0x4b, 0xc9, 0x13, 0xe4, 0x98, 0x1c, 0xf2, - 0x1a, 0x79, 0x8e, 0x1c, 0x39, 0xe6, 0x18, 0xc1, 0x8b, 0x44, 0xde, 0x0d, 0x08, 0x2b, 0xe4, 0x0f, - 0x47, 0xcf, 0x7e, 0xbf, 0x6f, 0x3e, 0xef, 0xcc, 0xa2, 0x6e, 0xc4, 0x44, 0xc2, 0x84, 0x2b, 0x24, - 0xe3, 0xe0, 0x0a, 0xc9, 0x21, 0x48, 0x68, 0x1a, 0xbb, 0x41, 0x18, 0x51, 0x37, 0xe6, 0x59, 0x44, - 0x32, 0xce, 0x24, 0xc3, 0x2d, 0xad, 0x23, 0x4a, 0x47, 0xb6, 0x3a, 0x52, 0xe8, 0xac, 0x57, 0x11, - 0x4b, 0x40, 0x86, 0xff, 0xa4, 0xc6, 0x72, 0xcf, 0x95, 0x47, 0x19, 0x08, 0x8d, 0x5a, 0x6f, 0x4a, - 0x2d, 0xf2, 0x7e, 0x08, 0x32, 0xe8, 0xbb, 0x73, 0x2a, 0x24, 0xa4, 0x85, 0x85, 0x52, 0x39, 0x67, - 0x06, 0xb2, 0x7e, 0xaa, 0xda, 0x57, 0x9a, 0x06, 0x73, 0x7a, 0x0c, 0xc3, 0x39, 0x8b, 0x66, 0x3e, - 0x2c, 0xfe, 0x83, 0x90, 0x78, 0x80, 0x4c, 0x0e, 0x8b, 0xa6, 0xd1, 0x36, 0x7a, 0x35, 0xaf, 0x4b, - 0x36, 0x0d, 0x55, 0x7f, 0x92, 0x7b, 0x64, 0x1f, 0xe4, 0x17, 0x08, 0xfe, 0x58, 0x90, 0xa2, 0x59, - 0x55, 0xe4, 0xdb, 0x47, 0x49, 0x91, 0xb1, 0x54, 0x40, 0x81, 0x0a, 0xe7, 0x35, 0x6a, 0xed, 0x8d, - 0xa4, 0x35, 0xce, 0x85, 0x81, 0x1a, 0xfa, 0x7c, 0xc4, 0x92, 0x84, 0xca, 0x4d, 0xd6, 0x0e, 0xaa, - 0x87, 0x85, 0x70, 0x32, 0x05, 0x1a, 0x4f, 0xa5, 0x0a, 0x6d, 0xfa, 0x35, 0x55, 0xfb, 0xa6, 0x4a, - 0xd8, 0xdb, 0x0d, 0xd5, 0xbe, 0x1b, 0x6a, 0x63, 0xb8, 0x93, 0x06, 0x7f, 0x46, 0x28, 0x9a, 0x06, - 0x69, 0x0c, 0x13, 0x01, 0xb2, 0x69, 0xb6, 0xcd, 0x5e, 0xcd, 0xeb, 0x90, 0xd2, 0x5c, 0x6e, 0x2f, - 0x97, 0x8c, 0x8b, 0xaf, 0x1f, 0xbf, 0x7f, 0x05, 0x94, 0xfb, 0xcf, 0x35, 0x34, 0x06, 0xe9, 0xbc, - 0x44, 0x2f, 0xca, 0x79, 0xb5, 0xbd, 0x77, 0x5e, 0x45, 0x8d, 0x2f, 0xc3, 0xd1, 0x77, 0x7d, 0x08, - 0x7c, 0x0c, 0x3c, 0xa7, 0x11, 0xe0, 0x93, 0xed, 0x0f, 0x96, 0x2e, 0x00, 0x7f, 0x20, 0x0f, 0x6c, - 0x03, 0xb9, 0x7f, 0x8a, 0xd6, 0xe0, 0x70, 0x50, 0x47, 0xc4, 0x02, 0xd5, 0x77, 0xa3, 0xe3, 0x77, - 0x4f, 0x70, 0x2a, 0x4d, 0xc5, 0xea, 0x1f, 0x40, 0xe8, 0xa6, 0xc3, 0x4f, 0x97, 0x2b, 0xdb, 0x58, - 0xae, 0x6c, 0xe3, 0x7a, 0x65, 0x1b, 0xa7, 0x6b, 0xbb, 0xb2, 0x5c, 0xdb, 0x95, 0xab, 0xb5, 0x5d, - 0xf9, 0xd3, 0xd1, 0x5e, 0xe2, 0xef, 0x8c, 0x50, 0xb6, 0xf7, 0xf1, 0x84, 0xcf, 0xd4, 0x5e, 0xbf, - 0xbf, 0x09, 0x00, 0x00, 0xff, 0xff, 0x58, 0x1c, 0x98, 0xef, 0x62, 0x03, 0x00, 0x00, + // 409 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0x31, 0x6f, 0xda, 0x40, + 0x14, 0xc7, 0x31, 0x96, 0x2a, 0xf5, 0x60, 0x3a, 0xaa, 0x0a, 0x19, 0xd5, 0x05, 0xab, 0x45, 0x4c, + 0xe7, 0x9a, 0x0e, 0x20, 0x75, 0x69, 0x41, 0xaa, 0x5a, 0xb5, 0x43, 0x05, 0x52, 0x87, 0x2c, 0xc8, + 0x36, 0x4f, 0xe6, 0x04, 0xf6, 0x99, 0xbb, 0x0b, 0x52, 0xf2, 0x09, 0xb2, 0x25, 0x4b, 0x3e, 0x46, + 0xbe, 0x47, 0x46, 0xc6, 0x8c, 0x11, 0x7c, 0x91, 0xc8, 0x77, 0x84, 0x60, 0x05, 0xa2, 0x30, 0xf2, + 0xee, 0xff, 0x7b, 0xef, 0x77, 0xbc, 0x33, 0x6a, 0x86, 0x4c, 0xc4, 0x4c, 0xb8, 0x42, 0x32, 0x0e, + 0xae, 0x90, 0x1c, 0xfc, 0x98, 0x26, 0x91, 0xeb, 0x07, 0x21, 0x75, 0x23, 0x9e, 0x86, 0x24, 0xe5, + 0x4c, 0x32, 0x5c, 0xd3, 0x39, 0xa2, 0x72, 0x64, 0x9b, 0x23, 0x59, 0xce, 0xaa, 0x49, 0x48, 0xc6, + 0xc0, 0x63, 0x9a, 0x48, 0x0d, 0xca, 0xb3, 0x14, 0x84, 0x26, 0xad, 0x4f, 0xb9, 0x09, 0x0b, 0x2f, + 0x00, 0xe9, 0x7b, 0xee, 0x8c, 0x0a, 0x09, 0x49, 0xd6, 0x41, 0xa5, 0x9c, 0x4b, 0x03, 0x59, 0x7f, + 0x55, 0xed, 0x27, 0x4d, 0xfc, 0x19, 0x3d, 0x87, 0xde, 0x8c, 0x85, 0xd3, 0x01, 0xcc, 0x4f, 0x41, + 0x48, 0xdc, 0x41, 0x26, 0x87, 0x79, 0xd5, 0xa8, 0x1b, 0xad, 0x52, 0xfb, 0x33, 0x79, 0x9a, 0xa7, + 0x04, 0xc8, 0x26, 0x96, 0x47, 0x33, 0x02, 0x77, 0x33, 0x50, 0x54, 0x8b, 0x0a, 0x6c, 0xee, 0x01, + 0x45, 0xca, 0x12, 0x01, 0xcf, 0x48, 0xe1, 0x7c, 0x40, 0xb5, 0xbd, 0x42, 0x1a, 0x70, 0x6e, 0x0c, + 0x54, 0xd1, 0xe7, 0x7d, 0x16, 0xc7, 0x54, 0x3e, 0x9a, 0x36, 0x50, 0x39, 0xc8, 0x82, 0xa3, 0x09, + 0xd0, 0x68, 0x22, 0x95, 0xb2, 0x39, 0x28, 0xa9, 0xda, 0x2f, 0x55, 0xc2, 0xde, 0xae, 0xd3, 0xc7, + 0x83, 0x4e, 0x9b, 0xbe, 0x59, 0x16, 0x7f, 0x47, 0x28, 0x9c, 0xf8, 0x49, 0x04, 0x23, 0x01, 0xb2, + 0x6a, 0xd6, 0xcd, 0x56, 0xa9, 0xdd, 0x20, 0xb9, 0x9d, 0x6c, 0xfe, 0x59, 0x32, 0xcc, 0x7e, 0xfd, + 0xf9, 0xff, 0xcf, 0xa7, 0x7c, 0xf0, 0x56, 0x43, 0x43, 0x90, 0xce, 0x7b, 0xf4, 0x2e, 0xaf, 0xab, + 0x87, 0xb4, 0xaf, 0x8b, 0xa8, 0xf2, 0xa3, 0xd7, 0xff, 0xad, 0x0f, 0x81, 0x0f, 0x81, 0x2f, 0x68, + 0x08, 0xf8, 0x62, 0x7b, 0xbf, 0xdc, 0xfd, 0x71, 0x87, 0xbc, 0xf0, 0x12, 0xc8, 0xe1, 0x15, 0x5a, + 0xdd, 0xe3, 0x41, 0xad, 0x88, 0x05, 0x2a, 0xef, 0xaa, 0xe3, 0x2f, 0xaf, 0xe8, 0x94, 0x5b, 0x8a, + 0xe5, 0x1d, 0x41, 0xe8, 0xa1, 0xbd, 0x6f, 0xb7, 0x2b, 0xdb, 0x58, 0xae, 0x6c, 0xe3, 0x7e, 0x65, + 0x1b, 0x57, 0x6b, 0xbb, 0xb0, 0x5c, 0xdb, 0x85, 0xbb, 0xb5, 0x5d, 0x38, 0x69, 0xe8, 0x5e, 0x62, + 0x3c, 0x25, 0x94, 0xed, 0xfd, 0x70, 0x82, 0x37, 0xea, 0x51, 0x7f, 0x7d, 0x08, 0x00, 0x00, 0xff, + 0xff, 0xa8, 0x04, 0x3e, 0xdb, 0x5e, 0x03, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -660,7 +660,7 @@ func (m *ListenFinalizeBlockRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Req == nil { - m.Req = &v2.FinalizeBlockRequest{} + m.Req = &types.RequestFinalizeBlock{} } if err := m.Req.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -696,7 +696,7 @@ func (m *ListenFinalizeBlockRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Res == nil { - m.Res = &v2.FinalizeBlockResponse{} + m.Res = &types.ResponseFinalizeBlock{} } if err := m.Res.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -851,7 +851,7 @@ func (m *ListenCommitRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Res == nil { - m.Res = &v2.CommitResponse{} + m.Res = &types.ResponseCommit{} } if err := m.Res.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -886,7 +886,7 @@ func (m *ListenCommitRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ChangeSet = append(m.ChangeSet, &types.StoreKVPair{}) + m.ChangeSet = append(m.ChangeSet, &types1.StoreKVPair{}) if err := m.ChangeSet[len(m.ChangeSet)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } diff --git a/store/streaming/streaming_test.go b/store/streaming/streaming_test.go index dfef2b614f..2fc2efda6a 100644 --- a/store/streaming/streaming_test.go +++ b/store/streaming/streaming_test.go @@ -8,8 +8,8 @@ import ( "testing" "time" - tmproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" + tmproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/cosmos/gogoproto/proto" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" @@ -26,9 +26,9 @@ type PluginTestSuite struct { workDir string - finalizeBlockReq abci.FinalizeBlockRequest - finalizeBlockRes abci.FinalizeBlockResponse - commitRes abci.CommitResponse + finalizeBlockReq abci.RequestFinalizeBlock + finalizeBlockRes abci.ResponseFinalizeBlock + commitRes abci.ResponseCommit changeSet []*storetypes.StoreKVPair } @@ -66,14 +66,14 @@ func (s *PluginTestSuite) SetupTest() { // test abci message types - s.finalizeBlockReq = abci.FinalizeBlockRequest{ + s.finalizeBlockReq = abci.RequestFinalizeBlock{ Height: s.loggerCtx.BlockHeight(), Txs: [][]byte{{1}, {2}, {3}, {4}, {5}, {6}, {7}, {8}, {9}}, Misbehavior: []abci.Misbehavior{}, Hash: []byte{1, 2, 3, 4, 5, 6, 7, 8, 9}, DecidedLastCommit: abci.CommitInfo{}, } - s.finalizeBlockRes = abci.FinalizeBlockResponse{ + s.finalizeBlockRes = abci.ResponseFinalizeBlock{ Events: []abci.Event{}, ConsensusParamUpdates: &tmproto.ConsensusParams{}, ValidatorUpdates: []abci.ValidatorUpdate{}, @@ -88,7 +88,7 @@ func (s *PluginTestSuite) SetupTest() { Log: "mockLog", }}, } - s.commitRes = abci.CommitResponse{} + s.commitRes = abci.ResponseCommit{} // test store kv pair types for range [2000]int{} { diff --git a/store/types/commit_info.go b/store/types/commit_info.go index e56193332e..249d0986d4 100644 --- a/store/types/commit_info.go +++ b/store/types/commit_info.go @@ -3,7 +3,7 @@ package types import ( "crypto/sha256" - cmtprotocrypto "github.com/cometbft/cometbft/api/cometbft/crypto/v1" + cmtprotocrypto "github.com/cometbft/cometbft/proto/tendermint/crypto" "cosmossdk.io/store/internal/maps" ) diff --git a/store/types/listening.pb.go b/store/types/listening.pb.go index 836e171df2..48d5c2b2fd 100644 --- a/store/types/listening.pb.go +++ b/store/types/listening.pb.go @@ -5,7 +5,7 @@ package types import ( fmt "fmt" - v2 "github.com/cometbft/cometbft/api/cometbft/abci/v2" + types "github.com/cometbft/cometbft/abci/types" _ "github.com/cosmos/cosmos-proto" proto "github.com/cosmos/gogoproto/proto" io "io" @@ -98,9 +98,9 @@ func (m *StoreKVPair) GetValue() []byte { // BlockMetadata contains all the abci event data of a block // the file streamer dump them into files together with the state changes. type BlockMetadata struct { - ResponseCommit *v2.CommitResponse `protobuf:"bytes,6,opt,name=response_commit,json=responseCommit,proto3" json:"response_commit,omitempty"` - RequestFinalizeBlock *v2.FinalizeBlockRequest `protobuf:"bytes,7,opt,name=request_finalize_block,json=requestFinalizeBlock,proto3" json:"request_finalize_block,omitempty"` - ResponseFinalizeBlock *v2.FinalizeBlockResponse `protobuf:"bytes,8,opt,name=response_finalize_block,json=responseFinalizeBlock,proto3" json:"response_finalize_block,omitempty"` + ResponseCommit *types.ResponseCommit `protobuf:"bytes,6,opt,name=response_commit,json=responseCommit,proto3" json:"response_commit,omitempty"` + RequestFinalizeBlock *types.RequestFinalizeBlock `protobuf:"bytes,7,opt,name=request_finalize_block,json=requestFinalizeBlock,proto3" json:"request_finalize_block,omitempty"` + ResponseFinalizeBlock *types.ResponseFinalizeBlock `protobuf:"bytes,8,opt,name=response_finalize_block,json=responseFinalizeBlock,proto3" json:"response_finalize_block,omitempty"` } func (m *BlockMetadata) Reset() { *m = BlockMetadata{} } @@ -136,21 +136,21 @@ func (m *BlockMetadata) XXX_DiscardUnknown() { var xxx_messageInfo_BlockMetadata proto.InternalMessageInfo -func (m *BlockMetadata) GetResponseCommit() *v2.CommitResponse { +func (m *BlockMetadata) GetResponseCommit() *types.ResponseCommit { if m != nil { return m.ResponseCommit } return nil } -func (m *BlockMetadata) GetRequestFinalizeBlock() *v2.FinalizeBlockRequest { +func (m *BlockMetadata) GetRequestFinalizeBlock() *types.RequestFinalizeBlock { if m != nil { return m.RequestFinalizeBlock } return nil } -func (m *BlockMetadata) GetResponseFinalizeBlock() *v2.FinalizeBlockResponse { +func (m *BlockMetadata) GetResponseFinalizeBlock() *types.ResponseFinalizeBlock { if m != nil { return m.ResponseFinalizeBlock } @@ -167,33 +167,33 @@ func init() { } var fileDescriptor_b6caeb9d7b7c7c10 = []byte{ - // 416 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x41, 0x6f, 0xd3, 0x30, - 0x14, 0xc7, 0xeb, 0xd6, 0x2d, 0x9e, 0x07, 0x2c, 0x32, 0x65, 0x84, 0x81, 0xa2, 0x68, 0x42, 0xd0, - 0xcb, 0x1c, 0xd6, 0x71, 0xe2, 0x38, 0x24, 0x24, 0x32, 0x21, 0xa1, 0x20, 0x71, 0x40, 0x48, 0x91, - 0x93, 0xbe, 0x21, 0xab, 0x69, 0x5c, 0x62, 0x2f, 0x52, 0xb9, 0xf0, 0x15, 0xf8, 0x30, 0x48, 0x7c, - 0x05, 0x8e, 0x13, 0x27, 0x8e, 0xa8, 0xfd, 0x22, 0x28, 0xb6, 0x8b, 0x34, 0x38, 0xec, 0x96, 0xff, - 0x7b, 0xff, 0xff, 0xcf, 0xcf, 0xf1, 0xa3, 0x8f, 0x4a, 0xa5, 0x17, 0x4a, 0x27, 0xda, 0xa8, 0x06, - 0x92, 0xf6, 0xb8, 0x00, 0x23, 0x8e, 0x93, 0x4a, 0x6a, 0x03, 0xb5, 0xac, 0x3f, 0xf2, 0x65, 0xa3, - 0x8c, 0x62, 0x63, 0xe7, 0xe2, 0xd6, 0xc5, 0xbd, 0xeb, 0xe0, 0x61, 0xa9, 0x16, 0x60, 0x8a, 0x73, - 0x93, 0x88, 0xa2, 0x94, 0x49, 0x3b, 0x4d, 0xcc, 0x6a, 0x09, 0xda, 0x65, 0x0e, 0xee, 0xbb, 0x4c, - 0x6e, 0x55, 0xe2, 0x01, 0x56, 0x1c, 0x7e, 0xa1, 0xbb, 0x6f, 0x3b, 0xd2, 0xd9, 0xbb, 0x37, 0x42, - 0x36, 0xec, 0x01, 0xdd, 0xb1, 0xe0, 0x7c, 0x0e, 0xab, 0x10, 0xc5, 0x68, 0xb2, 0x93, 0x11, 0x5b, - 0x38, 0x83, 0x15, 0xdb, 0xa7, 0xa3, 0x19, 0x54, 0x60, 0x20, 0xec, 0xc7, 0x68, 0x42, 0x32, 0xaf, - 0x58, 0x40, 0x07, 0x9d, 0x7d, 0x10, 0xa3, 0xc9, 0xcd, 0xac, 0xfb, 0x64, 0x63, 0x3a, 0x6c, 0x45, - 0x75, 0x01, 0x21, 0xb6, 0x35, 0x27, 0x9e, 0xdf, 0xf9, 0xf9, 0xed, 0x68, 0xcf, 0x9d, 0x7e, 0xa4, - 0x67, 0xf3, 0xf8, 0x29, 0x7f, 0x76, 0x72, 0xf8, 0xbd, 0x4f, 0x6f, 0x9d, 0x56, 0xaa, 0x9c, 0xbf, - 0x06, 0x23, 0x66, 0xc2, 0x08, 0xf6, 0x8a, 0xee, 0x35, 0xa0, 0x97, 0xaa, 0xd6, 0x90, 0x97, 0x6a, - 0xb1, 0x90, 0x26, 0x1c, 0xc5, 0x68, 0xb2, 0x3b, 0x8d, 0xf9, 0xf6, 0x96, 0xbc, 0xbb, 0x25, 0x6f, - 0xa7, 0xfc, 0x85, 0xed, 0x67, 0xde, 0x9e, 0xdd, 0xde, 0x06, 0x5d, 0x9d, 0x7d, 0xa0, 0xfb, 0x0d, - 0x7c, 0xba, 0x00, 0x6d, 0xf2, 0x73, 0x59, 0x8b, 0x4a, 0x7e, 0x86, 0xbc, 0xe8, 0x0e, 0x0b, 0x6f, - 0x58, 0xe2, 0xe3, 0xff, 0x89, 0x2f, 0xbd, 0xcf, 0xce, 0x94, 0xb9, 0x70, 0x36, 0xf6, 0x94, 0x2b, - 0x4d, 0x96, 0xd3, 0x7b, 0x7f, 0x07, 0xfd, 0x07, 0x4f, 0x2c, 0xfe, 0xc9, 0xb5, 0x78, 0x3f, 0xf7, - 0xdd, 0x2d, 0xe7, 0x4a, 0x3b, 0xc5, 0x04, 0x05, 0xfd, 0x14, 0x93, 0x7e, 0x30, 0x48, 0x31, 0x19, - 0x04, 0x38, 0xc5, 0x04, 0x07, 0xc3, 0x14, 0x93, 0x61, 0x30, 0x3a, 0x9d, 0xfe, 0x58, 0x47, 0xe8, - 0x72, 0x1d, 0xa1, 0xdf, 0xeb, 0x08, 0x7d, 0xdd, 0x44, 0xbd, 0xcb, 0x4d, 0xd4, 0xfb, 0xb5, 0x89, - 0x7a, 0xef, 0x43, 0xf7, 0x93, 0xf5, 0x6c, 0xce, 0xa5, 0xf2, 0xfb, 0x64, 0xf7, 0xa1, 0x18, 0xd9, - 0x57, 0x3f, 0xf9, 0x13, 0x00, 0x00, 0xff, 0xff, 0x8f, 0x7d, 0x73, 0x85, 0x6c, 0x02, 0x00, 0x00, + // 407 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xdf, 0x6a, 0xd4, 0x40, + 0x14, 0xc6, 0x77, 0x76, 0x67, 0xd7, 0xe9, 0x54, 0x6d, 0x18, 0xd7, 0x1a, 0x5b, 0x88, 0xa1, 0xa8, + 0xe4, 0xa6, 0x13, 0xdb, 0x7a, 0xe5, 0x65, 0x05, 0x91, 0x14, 0x41, 0x22, 0x78, 0xa1, 0x60, 0x98, + 0x24, 0x47, 0x19, 0xf2, 0x67, 0xd6, 0x99, 0x69, 0x61, 0xbd, 0xf1, 0x15, 0x7c, 0x98, 0x3e, 0x84, + 0x97, 0xc5, 0x2b, 0x2f, 0x65, 0xf7, 0x45, 0x24, 0x93, 0xa0, 0x54, 0xd6, 0xbb, 0x7c, 0x1f, 0xbf, + 0xf3, 0x9d, 0x73, 0x32, 0x87, 0x3e, 0x2c, 0x94, 0x69, 0x94, 0x89, 0x8d, 0x55, 0x1a, 0xe2, 0x8b, + 0xa3, 0x1c, 0xac, 0x38, 0x8a, 0x6b, 0x69, 0x2c, 0xb4, 0xb2, 0xfd, 0xc4, 0x17, 0x5a, 0x59, 0xc5, + 0xe6, 0x3d, 0xc5, 0x1d, 0xc5, 0x07, 0x6a, 0x6f, 0xdf, 0x42, 0x5b, 0x82, 0x6e, 0x64, 0x6b, 0x63, + 0x91, 0x17, 0x32, 0xb6, 0xcb, 0x05, 0x98, 0xbe, 0x64, 0xef, 0x7e, 0x5f, 0x92, 0x39, 0x15, 0x0f, + 0xf5, 0x4e, 0x1c, 0x7c, 0xa5, 0xdb, 0x6f, 0xba, 0xa0, 0xb3, 0xb7, 0xaf, 0x85, 0xd4, 0x6c, 0x9f, + 0x6e, 0xb9, 0xdc, 0xac, 0x82, 0xa5, 0x8f, 0x42, 0x14, 0x6d, 0xa5, 0xc4, 0x19, 0x67, 0xb0, 0x64, + 0xbb, 0x74, 0x56, 0x42, 0x0d, 0x16, 0xfc, 0x71, 0x88, 0x22, 0x92, 0x0e, 0x8a, 0x79, 0x74, 0xd2, + 0xe1, 0x93, 0x10, 0x45, 0x37, 0xd3, 0xee, 0x93, 0xcd, 0xe9, 0xf4, 0x42, 0xd4, 0xe7, 0xe0, 0x63, + 0xe7, 0xf5, 0xe2, 0xd9, 0x9d, 0x1f, 0x97, 0x87, 0x3b, 0x7d, 0xf7, 0x43, 0x53, 0x56, 0xe1, 0x13, + 0xfe, 0xf4, 0xe4, 0xe0, 0x72, 0x4c, 0x6f, 0x9d, 0xd6, 0xaa, 0xa8, 0x5e, 0x81, 0x15, 0xa5, 0xb0, + 0x82, 0xbd, 0xa4, 0x3b, 0x1a, 0xcc, 0x42, 0xb5, 0x06, 0xb2, 0x42, 0x35, 0x8d, 0xb4, 0xfe, 0x2c, + 0x44, 0xd1, 0xf6, 0xf1, 0x03, 0xfe, 0x77, 0x49, 0xde, 0x2d, 0xc9, 0xd3, 0x81, 0x7b, 0xee, 0xb0, + 0xf4, 0xb6, 0xbe, 0xa6, 0xd9, 0x7b, 0xba, 0xab, 0xe1, 0xf3, 0x39, 0x18, 0x9b, 0x7d, 0x94, 0xad, + 0xa8, 0xe5, 0x17, 0xc8, 0xf2, 0xae, 0x97, 0x7f, 0xc3, 0x05, 0x3e, 0xda, 0x10, 0xe8, 0xf0, 0x17, + 0x03, 0xed, 0x06, 0x4b, 0xe7, 0x7a, 0x83, 0xcb, 0x3e, 0xd0, 0x7b, 0x7f, 0xc6, 0xfc, 0x27, 0x9d, + 0xb8, 0xf4, 0xc7, 0xff, 0x1d, 0xf7, 0x7a, 0xfc, 0x5d, 0xbd, 0xc9, 0x4e, 0x30, 0x41, 0xde, 0x38, + 0xc1, 0x64, 0xec, 0x4d, 0x12, 0x4c, 0x26, 0x1e, 0x4e, 0x30, 0xc1, 0xde, 0x34, 0xc1, 0x64, 0xea, + 0xcd, 0x4e, 0x8f, 0xbf, 0xaf, 0x02, 0x74, 0xb5, 0x0a, 0xd0, 0xaf, 0x55, 0x80, 0xbe, 0xad, 0x83, + 0xd1, 0xd5, 0x3a, 0x18, 0xfd, 0x5c, 0x07, 0xa3, 0x77, 0x7e, 0xff, 0x87, 0x4d, 0x59, 0x71, 0xa9, + 0x86, 0x5b, 0x72, 0xc7, 0x90, 0xcf, 0xdc, 0x93, 0x9f, 0xfc, 0x0e, 0x00, 0x00, 0xff, 0xff, 0xec, + 0xf4, 0x90, 0x27, 0x68, 0x02, 0x00, 0x00, } func (m *StoreKVPair) Marshal() (dAtA []byte, err error) { @@ -600,7 +600,7 @@ func (m *BlockMetadata) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.ResponseCommit == nil { - m.ResponseCommit = &v2.CommitResponse{} + m.ResponseCommit = &types.ResponseCommit{} } if err := m.ResponseCommit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -636,7 +636,7 @@ func (m *BlockMetadata) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.RequestFinalizeBlock == nil { - m.RequestFinalizeBlock = &v2.FinalizeBlockRequest{} + m.RequestFinalizeBlock = &types.RequestFinalizeBlock{} } if err := m.RequestFinalizeBlock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -672,7 +672,7 @@ func (m *BlockMetadata) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.ResponseFinalizeBlock == nil { - m.ResponseFinalizeBlock = &v2.FinalizeBlockResponse{} + m.ResponseFinalizeBlock = &types.ResponseFinalizeBlock{} } if err := m.ResponseFinalizeBlock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err diff --git a/store/types/proof.go b/store/types/proof.go index 723af43b00..b1f4a115ed 100644 --- a/store/types/proof.go +++ b/store/types/proof.go @@ -3,8 +3,8 @@ package types import ( "fmt" - cmtprotocrypto "github.com/cometbft/cometbft/api/cometbft/crypto/v1" - "github.com/cometbft/cometbft/v2/crypto/merkle" + "github.com/cometbft/cometbft/crypto/merkle" + cmtprotocrypto "github.com/cometbft/cometbft/proto/tendermint/crypto" ics23 "github.com/cosmos/ics23/go" errorsmod "cosmossdk.io/errors" diff --git a/store/types/store.go b/store/types/store.go index 6f1023d8eb..a9da1fdbab 100644 --- a/store/types/store.go +++ b/store/types/store.go @@ -6,7 +6,7 @@ import ( "maps" "slices" - crypto "github.com/cometbft/cometbft/api/cometbft/crypto/v1" + "github.com/cometbft/cometbft/proto/tendermint/crypto" dbm "github.com/cosmos/cosmos-db" "cosmossdk.io/store/metrics" diff --git a/store/types/streaming.go b/store/types/streaming.go index 6dec45f3ba..14ba37f397 100644 --- a/store/types/streaming.go +++ b/store/types/streaming.go @@ -3,7 +3,7 @@ package types import ( "context" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" ) // ABCIListener is the interface that we're exposing as a streaming service. @@ -12,9 +12,9 @@ import ( // if you don't want to affect consensus, handle the errors internally and always return `nil` in these APIs. type ABCIListener interface { // ListenFinalizeBlock updates the streaming service with the latest FinalizeBlock messages - ListenFinalizeBlock(ctx context.Context, req abci.FinalizeBlockRequest, res abci.FinalizeBlockResponse) error + ListenFinalizeBlock(ctx context.Context, req abci.RequestFinalizeBlock, res abci.ResponseFinalizeBlock) error // ListenCommit updates the streaming service with the latest Commit messages and state changes - ListenCommit(ctx context.Context, res abci.CommitResponse, changeSet []*StoreKVPair) error + ListenCommit(ctx context.Context, res abci.ResponseCommit, changeSet []*StoreKVPair) error } // StreamingManager is the struct that maintains a list of ABCIListeners and configuration settings. diff --git a/systemtests/go.mod b/systemtests/go.mod index 0d26da5af9..d2201c727e 100644 --- a/systemtests/go.mod +++ b/systemtests/go.mod @@ -4,8 +4,8 @@ go 1.24 require ( cosmossdk.io/math v1.5.3 - github.com/cometbft/cometbft/v2 v2.0.0-rc1 - github.com/cosmos/cosmos-sdk v0.54.0-rc.1 + github.com/cometbft/cometbft v0.38.18 + github.com/cosmos/cosmos-sdk v0.53.4 github.com/creachadair/tomledit v0.0.28 github.com/stretchr/testify v1.11.1 github.com/tidwall/gjson v1.18.0 @@ -14,20 +14,21 @@ require ( ) require ( - cosmossdk.io/api v1.0.0-rc.1 // indirect + cosmossdk.io/api v0.9.2 // indirect cosmossdk.io/collections v1.3.1 // indirect - cosmossdk.io/core v1.1.0-rc.1 // indirect + cosmossdk.io/core v0.11.3 // indirect cosmossdk.io/depinject v1.2.1 // indirect cosmossdk.io/errors v1.0.2 // indirect cosmossdk.io/log v1.6.1 // indirect cosmossdk.io/schema v1.1.0 // indirect - cosmossdk.io/store v1.10.0-rc.2 // indirect - cosmossdk.io/x/tx v1.2.0-rc.1 // indirect + cosmossdk.io/store v1.1.2 // indirect + cosmossdk.io/x/tx v0.14.0 // indirect filippo.io/edwards25519 v1.1.0 // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect github.com/99designs/keyring v1.2.1 // indirect github.com/DataDog/datadog-go v3.2.0+incompatible // indirect github.com/DataDog/zstd v1.5.7 // indirect + github.com/Microsoft/go-winio v0.6.2 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/bgentry/speakeasy v0.2.0 // indirect github.com/bytedance/sonic v1.14.0 // indirect @@ -41,8 +42,7 @@ require ( github.com/cockroachdb/pebble v1.1.5 // indirect github.com/cockroachdb/redact v1.1.6 // indirect github.com/cockroachdb/tokenbucket v0.0.0-20250429170803-42689b6311bb // indirect - github.com/cometbft/cometbft-db v1.0.4 // indirect - github.com/cometbft/cometbft/api v1.1.0-rc1 // indirect + github.com/cometbft/cometbft-db v0.14.1 // indirect github.com/cosmos/btcutil v1.0.5 // indirect github.com/cosmos/cosmos-db v1.1.3 // indirect github.com/cosmos/cosmos-proto v1.0.0-beta.5 // indirect @@ -61,11 +61,13 @@ require ( github.com/dustin/go-humanize v1.0.1 // indirect github.com/dvsekhvalnov/jose2go v1.6.0 // indirect github.com/emicklei/dot v1.8.0 // indirect - github.com/ethereum/go-ethereum v1.15.5 // indirect github.com/fatih/color v1.18.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.9.0 // indirect github.com/getsentry/sentry-go v0.35.0 // indirect + github.com/go-kit/kit v0.13.0 // indirect + github.com/go-kit/log v0.2.1 // indirect + github.com/go-logfmt/logfmt v0.6.0 // indirect github.com/go-logr/logr v1.4.3 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/go-viper/mapstructure/v2 v2.4.0 // indirect @@ -78,7 +80,6 @@ require ( github.com/google/flatbuffers v25.2.10+incompatible // indirect github.com/google/go-cmp v0.7.0 // indirect github.com/google/orderedcode v0.0.1 // indirect - github.com/google/uuid v1.6.0 // indirect github.com/gorilla/handlers v1.5.2 // indirect github.com/gorilla/mux v1.8.1 // indirect github.com/gorilla/websocket v1.5.3 // indirect @@ -93,7 +94,6 @@ require ( github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect github.com/hashicorp/yamux v0.1.2 // indirect github.com/hdevalence/ed25519consensus v0.2.0 // indirect - github.com/holiman/uint256 v1.3.2 // indirect github.com/huandu/skiplist v1.2.1 // indirect github.com/iancoleman/strcase v0.3.0 // indirect github.com/improbable-eng/grpc-web v0.15.0 // indirect @@ -104,8 +104,7 @@ require ( github.com/kr/pretty v0.3.1 // indirect github.com/kr/text v0.2.0 // indirect github.com/lib/pq v1.10.9 // indirect - github.com/linxGnu/grocksdb v1.10.1 // indirect - github.com/lmittmann/tint v1.0.7 // indirect + github.com/linxGnu/grocksdb v1.9.8 // indirect github.com/mattn/go-colorable v0.1.14 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/minio/highwayhash v1.0.3 // indirect @@ -113,6 +112,7 @@ require ( github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a // indirect github.com/oklog/run v1.1.0 // indirect + github.com/opencontainers/image-spec v1.1.0-rc5 // indirect github.com/pelletier/go-toml/v2 v2.2.4 // indirect github.com/petermattis/goid v0.0.0-20240813172612-4fcff4a6cae7 // indirect github.com/pkg/errors v0.9.1 // indirect @@ -134,7 +134,6 @@ require ( github.com/spf13/pflag v1.0.7 // indirect github.com/spf13/viper v1.20.1 // indirect github.com/subosito/gotenv v1.6.0 // indirect - github.com/supranational/blst v0.3.14 // indirect github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect github.com/tendermint/go-amino v0.16.0 // indirect github.com/tidwall/btree v1.7.0 // indirect @@ -151,6 +150,7 @@ require ( go.opentelemetry.io/otel/trace v1.37.0 // indirect go.uber.org/multierr v1.11.0 // indirect go.uber.org/zap v1.27.0 // indirect + go.yaml.in/yaml/v2 v2.4.2 // indirect golang.org/x/arch v0.17.0 // indirect golang.org/x/crypto v0.41.0 // indirect golang.org/x/exp v0.0.0-20250506013437-ce4c2cf36ca6 // indirect @@ -167,5 +167,5 @@ require ( gotest.tools/v3 v3.5.2 // indirect nhooyr.io/websocket v1.8.6 // indirect pgregory.net/rapid v1.2.0 // indirect - sigs.k8s.io/yaml v1.4.0 // indirect + sigs.k8s.io/yaml v1.6.0 // indirect ) diff --git a/systemtests/go.sum b/systemtests/go.sum index 2d813f2533..74703d1bce 100644 --- a/systemtests/go.sum +++ b/systemtests/go.sum @@ -1,11 +1,11 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cosmossdk.io/api v1.0.0-rc.1 h1:KwZHIMveoeg6YVwvKZxJLp7be5uk6qmnqNAar2tPxVU= -cosmossdk.io/api v1.0.0-rc.1/go.mod h1:8YOT+XjVFb9eZJk62YqjFILOm8MlLhbnkC9/jxIYri8= +cosmossdk.io/api v0.9.2 h1:9i9ptOBdmoIEVEVWLtYYHjxZonlF/aOVODLFaxpmNtg= +cosmossdk.io/api v0.9.2/go.mod h1:CWt31nVohvoPMTlPv+mMNCtC0a7BqRdESjCsstHcTkU= cosmossdk.io/collections v1.3.1 h1:09e+DUId2brWsNOQ4nrk+bprVmMUaDH9xvtZkeqIjVw= cosmossdk.io/collections v1.3.1/go.mod h1:ynvkP0r5ruAjbmedE+vQ07MT6OtJ0ZIDKrtJHK7Q/4c= -cosmossdk.io/core v1.1.0-rc.1 h1:VhF5xd4uJZt/lQzbl8qT1W3Pcrklp4RSnugcWQZyf5M= -cosmossdk.io/core v1.1.0-rc.1/go.mod h1:fKHIWVYfPCC4tto9eoYFZC/yAWFlWw2mz8YgSYvjnUs= +cosmossdk.io/core v0.11.3 h1:mei+MVDJOwIjIniaKelE3jPDqShCc/F4LkNNHh+4yfo= +cosmossdk.io/core v0.11.3/go.mod h1:9rL4RE1uDt5AJ4Tg55sYyHWXA16VmpHgbe0PbJc6N2Y= cosmossdk.io/depinject v1.2.1 h1:eD6FxkIjlVaNZT+dXTQuwQTKZrFZ4UrfCq1RKgzyhMw= cosmossdk.io/depinject v1.2.1/go.mod h1:lqQEycz0H2JXqvOgVwTsjEdMI0plswI7p6KX+MVqFOM= cosmossdk.io/errors v1.0.2 h1:wcYiJz08HThbWxd/L4jObeLaLySopyyuUFB5w4AGpCo= @@ -16,10 +16,10 @@ cosmossdk.io/math v1.5.3 h1:WH6tu6Z3AUCeHbeOSHg2mt9rnoiUWVWaQ2t6Gkll96U= cosmossdk.io/math v1.5.3/go.mod h1:uqcZv7vexnhMFJF+6zh9EWdm/+Ylyln34IvPnBauPCQ= cosmossdk.io/schema v1.1.0 h1:mmpuz3dzouCoyjjcMcA/xHBEmMChN+EHh8EHxHRHhzE= cosmossdk.io/schema v1.1.0/go.mod h1:Gb7pqO+tpR+jLW5qDcNOSv0KtppYs7881kfzakguhhI= -cosmossdk.io/store v1.10.0-rc.2 h1:7ze2UoheVTVMK4ElHtoRhYv8nlUImj34e4yp1yy1bgE= -cosmossdk.io/store v1.10.0-rc.2/go.mod h1:3p1IV4EGsULFfeyAcfj7/DBcDsy8d3VlYIEJnhhbP3U= -cosmossdk.io/x/tx v1.2.0-rc.1 h1:AartiA6eiTD9KHmnlj3uG3H8FjyjI0qNkmvmU+p6cJ8= -cosmossdk.io/x/tx v1.2.0-rc.1/go.mod h1:UzpMTUmQEFfz+m0E+lhzFIiEhtZCHjScU/NC652DBHI= +cosmossdk.io/store v1.1.2 h1:3HOZG8+CuThREKv6cn3WSohAc6yccxO3hLzwK6rBC7o= +cosmossdk.io/store v1.1.2/go.mod h1:60rAGzTHevGm592kFhiUVkNC9w7gooSEn5iUBPzHQ6A= +cosmossdk.io/x/tx v0.14.0 h1:hB3O25kIcyDW/7kMTLMaO8Ripj3yqs5imceVd6c/heA= +cosmossdk.io/x/tx v0.14.0/go.mod h1:Tn30rSRA1PRfdGB3Yz55W4Sn6EIutr9xtMKSHij+9PM= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA= filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4= @@ -42,6 +42,7 @@ github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 h1:TngWCqHvy9oXAN6lEV github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5/go.mod h1:lmUJ/7eu/Q8D7ML55dXQrVaamCz2vxCfdQBasLZfHKk= github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= +github.com/VividCortex/gohistogram v1.0.0 h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE= github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= github.com/adlio/schema v1.3.6 h1:k1/zc2jNfeiZBA5aFTRy37jlBIuCkXCm0XmvpzCKI9I= github.com/adlio/schema v1.3.6/go.mod h1:qkxwLgPBd1FgLRHYVCmQT/rrBr3JH38J9LjmVzWNudg= @@ -130,12 +131,10 @@ github.com/cockroachdb/redact v1.1.6/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZ github.com/cockroachdb/tokenbucket v0.0.0-20250429170803-42689b6311bb h1:3bCgBvB8PbJVMX1ouCcSIxvsqKPYM7gs72o0zC76n9g= github.com/cockroachdb/tokenbucket v0.0.0-20250429170803-42689b6311bb/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ= github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= -github.com/cometbft/cometbft-db v1.0.4 h1:cezb8yx/ZWcF124wqUtAFjAuDksS1y1yXedvtprUFxs= -github.com/cometbft/cometbft-db v1.0.4/go.mod h1:M+BtHAGU2XLrpUxo3Nn1nOCcnVCiLM9yx5OuT0u5SCA= -github.com/cometbft/cometbft/api v1.1.0-rc1 h1:NdlXfp4wialMwJ+1ds1DBtfysdxErUxg8/AaqgT0ifQ= -github.com/cometbft/cometbft/api v1.1.0-rc1/go.mod h1:Ivh6nSCTJPQOyfQo8dgnyu/T88it092sEqSrZSmTQN8= -github.com/cometbft/cometbft/v2 v2.0.0-rc1 h1:3QyDHTFzH3a1N6c2jt03kFDCxM/hgUvhzDYBVnPVXY8= -github.com/cometbft/cometbft/v2 v2.0.0-rc1/go.mod h1:/ze08eO171CqUqTqAE7FW7ydUJIVkgp6e2svpYvIR3c= +github.com/cometbft/cometbft v0.38.18 h1:1ZHYMdu0S75YxFM13LlPXnOwiIpUW5z9TKMQtTIALpw= +github.com/cometbft/cometbft v0.38.18/go.mod h1:PlOQgf3jQorep+g6oVnJgtP65TJvBJoLiXjGaMdNxBE= +github.com/cometbft/cometbft-db v0.14.1 h1:SxoamPghqICBAIcGpleHbmoPqy+crij/++eZz3DlerQ= +github.com/cometbft/cometbft-db v0.14.1/go.mod h1:KHP1YghilyGV/xjD5DP3+2hyigWx0WTp9X+0Gnx0RxQ= github.com/containerd/continuity v0.3.0 h1:nisirsYROK15TAMVukJOUyGJjz4BNQJBVsNvAXZJ/eg= github.com/containerd/continuity v0.3.0/go.mod h1:wJEAIwKOm/pBZuBd0JmeTvnLquTB1Ag8espWhkykbPM= github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= @@ -148,8 +147,8 @@ github.com/cosmos/cosmos-db v1.1.3 h1:7QNT77+vkefostcKkhrzDK9uoIEryzFrU9eoMeaQOP github.com/cosmos/cosmos-db v1.1.3/go.mod h1:kN+wGsnwUJZYn8Sy5Q2O0vCYA99MJllkKASbs6Unb9U= github.com/cosmos/cosmos-proto v1.0.0-beta.5 h1:eNcayDLpip+zVLRLYafhzLvQlSmyab+RC5W7ZfmxJLA= github.com/cosmos/cosmos-proto v1.0.0-beta.5/go.mod h1:hQGLpiIUloJBMdQMMWb/4wRApmI9hjHH05nefC0Ojec= -github.com/cosmos/cosmos-sdk v0.54.0-rc.1 h1:hCsF4kJK/iqNDNIXF+bNP72G+Ik2K77TUluWRmsuGSU= -github.com/cosmos/cosmos-sdk v0.54.0-rc.1/go.mod h1:8jH0Q4+2IhIu3kXsGDtIvUZfmeydcvNJxYlOE80ukz4= +github.com/cosmos/cosmos-sdk v0.53.4 h1:kPF6vY68+/xi1/VebSZGpoxQqA52qkhUzqkrgeBn3Mg= +github.com/cosmos/cosmos-sdk v0.53.4/go.mod h1:7U3+WHZtI44dEOnU46+lDzBb2tFh1QlMvi8Z5JugopI= github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY= github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw= github.com/cosmos/gogogateway v1.2.0 h1:Ae/OivNhp8DqBi/sh2A8a1D0y638GpL3tkmLQAiKxTE= @@ -211,8 +210,6 @@ github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.m github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/ethereum/go-ethereum v1.15.5 h1:Fo2TbBWC61lWVkFw9tsMoHCNX1ndpuaQBRJ8H6xLUPo= -github.com/ethereum/go-ethereum v1.15.5/go.mod h1:1LG2LnMOx2yPRHR/S+xuipXH29vPr6BIH6GElD8N/fo= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM= @@ -243,10 +240,16 @@ github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2 github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o= +github.com/go-kit/kit v0.13.0 h1:OoneCcHKHQ03LfBpoQCUfCluwd2Vt3ohz+kvbJneZAU= +github.com/go-kit/kit v0.13.0/go.mod h1:phqEHMMUbyrCFCTgH48JueqrM3md2HcAZ8N3XE4FKDg= github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= +github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU= +github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= +github.com/go-logfmt/logfmt v0.6.0 h1:wGYYu3uicYdqXVgoYbvnkrPVXkuLM1p1ifugDMEdRi4= +github.com/go-logfmt/logfmt v0.6.0/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= @@ -325,7 +328,6 @@ github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= @@ -383,9 +385,8 @@ github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.1 h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE= github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= -github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= @@ -402,8 +403,6 @@ github.com/hashicorp/yamux v0.1.2 h1:XtB8kyFOyHXYVFnwT5C3+Bdo8gArse7j2AQ0DA0Uey8 github.com/hashicorp/yamux v0.1.2/go.mod h1:C+zze2n6e/7wshOZep2A70/aQU6QBRWJO/G6FT1wIns= github.com/hdevalence/ed25519consensus v0.2.0 h1:37ICyZqdyj0lAZ8P4D1d1id3HqbbG1N3iBb1Tb4rdcU= github.com/hdevalence/ed25519consensus v0.2.0/go.mod h1:w3BHWjwJbFU29IRHL1Iqkw3sus+7FctEyM4RqDxYNzo= -github.com/holiman/uint256 v1.3.2 h1:a9EgMPSC1AAaj1SZL5zIQD3WbwTuHrMGOerLjGmM/TA= -github.com/holiman/uint256 v1.3.2/go.mod h1:EOMSn4q6Nyt9P6efbI3bueV4e1b3dGlUCXeiRV4ng7E= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/huandu/go-assert v1.1.5 h1:fjemmA7sSfYHJD7CUqs9qTwwfdNAx7/j2/ZlHXzNB3c= github.com/huandu/go-assert v1.1.5/go.mod h1:yOLvuqZwmcHIC5rIzrBhT7D3Q9c3GFnd0JrPVhn/06U= @@ -467,10 +466,8 @@ github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw= github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM= github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= -github.com/linxGnu/grocksdb v1.10.1 h1:YX6gUcKvSC3d0s9DaqgbU+CRkZHzlELgHu1Z/kmtslg= -github.com/linxGnu/grocksdb v1.10.1/go.mod h1:C3CNe9UYc9hlEM2pC82AqiGS3LRW537u9LFV4wIZuHk= -github.com/lmittmann/tint v1.0.7 h1:D/0OqWZ0YOGZ6AyC+5Y2kD8PBEzBk6rFHVSfOqCkF9Y= -github.com/lmittmann/tint v1.0.7/go.mod h1:HIS3gSy7qNwGCj+5oRjAutErFBl4BzdQP6cJZ0NfMwE= +github.com/linxGnu/grocksdb v1.9.8 h1:vOIKv9/+HKiqJAElJIEYv3ZLcihRxyP7Suu/Mu8Dxjs= +github.com/linxGnu/grocksdb v1.9.8/go.mod h1:C3CNe9UYc9hlEM2pC82AqiGS3LRW537u9LFV4wIZuHk= github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ= github.com/magiconair/properties v1.8.10 h1:s31yESBquKXCV9a/ScB3ESkOjUYYv+X0rg8SYxI99mE= github.com/magiconair/properties v1.8.10/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= @@ -700,8 +697,6 @@ github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= -github.com/supranational/blst v0.3.14 h1:xNMoHRJOTwMn63ip6qoWJ2Ymgvj7E2b9jY2FAwY+qRo= -github.com/supranational/blst v0.3.14/go.mod h1:jZJtfjgudtNl4en1tzwPIV3KjUnQUvG3/j+w+fVonLw= github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d h1:vfofYNRScrDdvS342BElfbETmL1Aiz3i2t0zfRj16Hs= github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d/go.mod h1:RRCYJbIwD5jmqPI9XoAFR0OcDxqUctll6zUj/+B4S48= github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E= @@ -776,6 +771,10 @@ go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= go.uber.org/zap v1.18.1/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8= go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= +go.yaml.in/yaml/v2 v2.4.2 h1:DzmwEr2rDGHl7lsFgAHxmNz/1NlQ7xLIrlN2h5d1eGI= +go.yaml.in/yaml/v2 v2.4.2/go.mod h1:081UH+NErpNdqlCXm3TtEran0rJZGxAYx9hb/ELlsPU= +go.yaml.in/yaml/v3 v3.0.3 h1:bXOww4E/J3f66rav3pX3m8w6jDE4knZjGOw8b5Y6iNE= +go.yaml.in/yaml/v3 v3.0.3/go.mod h1:tBHosrYAkRZjRAOREWbDnBXUf08JOwYq++0QNwQiWzI= golang.org/x/arch v0.17.0 h1:4O3dfLzd+lQewptAHqjewQZQDyEdejz3VwgeYwkZneU= golang.org/x/arch v0.17.0/go.mod h1:bdwinDaKcfZUGpH09BB7ZmOfhalA8lQdzl62l8gGWsk= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= @@ -1042,6 +1041,6 @@ nullprogram.com/x/optparse v1.0.0/go.mod h1:KdyPE+Igbe0jQUrVfMqDMeJQIJZEuyV7pjYm pgregory.net/rapid v1.2.0 h1:keKAYRcjm+e1F0oAuU5F5+YPAWcyxNNRK2wud503Gnk= pgregory.net/rapid v1.2.0/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= -sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E= -sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY= +sigs.k8s.io/yaml v1.6.0 h1:G8fkbMSAFqgEFgh4b1wmtzDnioxFCUgTZhlbj5P9QYs= +sigs.k8s.io/yaml v1.6.0/go.mod h1:796bPqUfzR/0jLAl6XjHl3Ck7MiyVv8dbTdyT3/pMf4= sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU= diff --git a/systemtests/node_utils.go b/systemtests/node_utils.go index a161e4c7b8..f503a0f390 100644 --- a/systemtests/node_utils.go +++ b/systemtests/node_utils.go @@ -5,7 +5,7 @@ import ( "path/filepath" "testing" - "github.com/cometbft/cometbft/v2/privval" + "github.com/cometbft/cometbft/privval" "github.com/stretchr/testify/require" cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" diff --git a/systemtests/rpc_client.go b/systemtests/rpc_client.go index 617cd3c934..a1f1af9f34 100644 --- a/systemtests/rpc_client.go +++ b/systemtests/rpc_client.go @@ -7,10 +7,10 @@ import ( "strconv" "testing" - abci "github.com/cometbft/cometbft/v2/abci/types" - rpcclient "github.com/cometbft/cometbft/v2/rpc/client" - client "github.com/cometbft/cometbft/v2/rpc/client/http" - cmtypes "github.com/cometbft/cometbft/v2/types" + abci "github.com/cometbft/cometbft/abci/types" + rpcclient "github.com/cometbft/cometbft/rpc/client" + client "github.com/cometbft/cometbft/rpc/client/http" + cmtypes "github.com/cometbft/cometbft/types" "github.com/stretchr/testify/require" "google.golang.org/grpc" "google.golang.org/grpc/metadata" @@ -30,7 +30,7 @@ type RPCClient struct { // NewRPCClient constructor func NewRPCClient(t *testing.T, addr string) RPCClient { t.Helper() - httpClient, err := client.New(addr) + httpClient, err := client.New(addr, "/websocket") require.NoError(t, err) require.NoError(t, httpClient.Start()) t.Cleanup(func() { _ = httpClient.Stop() }) @@ -70,7 +70,7 @@ func (r RPCClient) Invoke(ctx context.Context, method string, req, reply interfa } } - abciReq := abci.QueryRequest{ + abciReq := abci.RequestQuery{ Path: method, Data: reqBz, Height: height, diff --git a/systemtests/system.go b/systemtests/system.go index a921157147..78548679e2 100644 --- a/systemtests/system.go +++ b/systemtests/system.go @@ -18,10 +18,10 @@ import ( "testing" "time" - "github.com/cometbft/cometbft/v2/libs/sync" - client "github.com/cometbft/cometbft/v2/rpc/client/http" - ctypes "github.com/cometbft/cometbft/v2/rpc/core/types" - tmtypes "github.com/cometbft/cometbft/v2/types" + "github.com/cometbft/cometbft/libs/sync" + client "github.com/cometbft/cometbft/rpc/client/http" + ctypes "github.com/cometbft/cometbft/rpc/core/types" + tmtypes "github.com/cometbft/cometbft/types" "github.com/stretchr/testify/require" "github.com/tidwall/sjson" @@ -177,8 +177,7 @@ func (s *SystemUnderTest) StartChain(t *testing.T, xargs ...string) { t.Helper() s.Log("Start chain\n") s.ChainStarted = true - // HACK: force db_backend - s.startNodesAsync(t, append([]string{"start", "--log_level=info", "--log_no_color", "--db_backend=goleveldb"}, xargs...)...) + s.startNodesAsync(t, append([]string{"start", "--log_level=info", "--log_no_color"}, xargs...)...) s.AwaitNodeUp(t, s.rpcAddr) @@ -299,7 +298,7 @@ func (s *SystemUnderTest) AwaitNodeUp(t *testing.T, rpcAddr string) { go func() { // query for a non empty block on status page t.Logf("Checking node status: %s\n", rpcAddr) for { - con, err := client.New(rpcAddr) + con, err := client.New(rpcAddr, "/websocket") if err != nil || con.Start() != nil { time.Sleep(time.Second) continue @@ -761,7 +760,6 @@ func (s *SystemUnderTest) AddFullnode(t *testing.T, beforeStart ...func(nodeNumb "--log_level=info", "--log_no_color", "--home", nodePath, - "--db_backend", "goleveldb", // HACK: force db_backend } s.Logf("Execute `%s %s`\n", s.execBinary, strings.Join(args, " ")) cmd = exec.Command( //nolint:gosec // used by tests only @@ -858,7 +856,7 @@ type EventListener struct { // NewEventListener event listener func NewEventListener(t *testing.T, rpcAddr string) *EventListener { t.Helper() - httpClient, err := client.New(rpcAddr) + httpClient, err := client.New(rpcAddr, "/websocket") require.NoError(t, err) require.NoError(t, httpClient.Start()) return &EventListener{client: httpClient, t: t} diff --git a/systemtests/testnet_init.go b/systemtests/testnet_init.go index d1e526fcde..b963de3a57 100644 --- a/systemtests/testnet_init.go +++ b/systemtests/testnet_init.go @@ -8,7 +8,7 @@ import ( "strings" "time" - "github.com/cometbft/cometbft/v2/p2p" + "github.com/cometbft/cometbft/p2p" "github.com/creachadair/tomledit" "github.com/creachadair/tomledit/parser" ) diff --git a/tests/e2e/auth/suite.go b/tests/e2e/auth/suite.go index bc1149cbb4..14cb787e83 100644 --- a/tests/e2e/auth/suite.go +++ b/tests/e2e/auth/suite.go @@ -7,7 +7,7 @@ import ( "strings" "testing" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" @@ -106,7 +106,6 @@ func (s *E2ETestSuite) TestCLISignGenOnly() { fmt.Sprintf("--%s=true", flags.FlagGenerateOnly), // shouldn't break if we use keyname with --generate-only flag fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation), fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastSync), - fmt.Sprintf("--%s=%s", flags.FlagFees, sdk.NewCoins(sdk.NewCoin(s.cfg.BondDenom, math.NewInt(10))).String()), } generatedStd, err := clitestutil.ExecTestCLICmd(val.ClientCtx, bank.NewSendTxCmd(addresscodec.NewBech32Codec("cosmos")), args) s.Require().NoError(err) @@ -184,23 +183,21 @@ func (s *E2ETestSuite) TestCLISignGenOnly() { } for _, tc := range cases { - s.Run(tc.name, func() { - cmd := authcli.GetSignCommand() - cmd.PersistentFlags().String(flags.FlagHome, val.ClientCtx.HomeDir, "directory for config and data") - out, err := clitestutil.ExecTestCLICmd(val.ClientCtx, cmd, append(tc.args, commonArgs...)) - if tc.expErr { - s.Require().Error(err) - s.Require().Contains(err.Error(), tc.errMsg) - } else { + cmd := authcli.GetSignCommand() + cmd.PersistentFlags().String(flags.FlagHome, val.ClientCtx.HomeDir, "directory for config and data") + out, err := clitestutil.ExecTestCLICmd(val.ClientCtx, cmd, append(tc.args, commonArgs...)) + if tc.expErr { + s.Require().Error(err) + s.Require().Contains(err.Error(), tc.errMsg) + } else { + s.Require().NoError(err) + func() { + signedTx := testutil.WriteToNewTempFile(s.T(), out.String()) + defer signedTx.Close() + _, err := authclitestutil.TxBroadcastExec(val.ClientCtx, signedTx.Name()) s.Require().NoError(err) - func() { - signedTx := testutil.WriteToNewTempFile(s.T(), out.String()) - defer signedTx.Close() - _, err := authclitestutil.TxBroadcastExec(val.ClientCtx, signedTx.Name()) - s.Require().NoError(err, out.String()) - }() - } - }) + }() + } } } @@ -1085,11 +1082,6 @@ func (s *E2ETestSuite) TestSignBatchMultisig() { addr, err := multisigRecord.GetAddress() s.Require().NoError(err) - - // val may not have processed last tx yet - s.Require().NoError(s.network.WaitForNextBlock()) - s.Require().NoError(s.network.WaitForNextBlock()) - // Send coins from validator to multisig. sendTokens := sdk.NewInt64Coin(s.cfg.BondDenom, 10) _, err = s.createBankMsg( @@ -1156,11 +1148,6 @@ func (s *E2ETestSuite) TestMultisignBatch() { addr, err := multisigRecord.GetAddress() s.Require().NoError(err) - - // val may not have processed last tx yet - s.Require().NoError(s.network.WaitForNextBlock()) - s.Require().NoError(s.network.WaitForNextBlock()) - // Send coins from validator to multisig. sendTokens := sdk.NewInt64Coin(s.cfg.BondDenom, 1000) _, err = s.createBankMsg( @@ -1274,7 +1261,7 @@ func TestGetBroadcastCommandWithoutOfflineFlag(t *testing.T) { } // TestTxWithoutPublicKey makes sure sending a proto tx message without the -// public key causes an error - node will panic but recover. +// public key doesn't cause any error in the RPC layer (broadcast). // See https://github.com/cosmos/cosmos-sdk/issues/7585 for more details. func (s *E2ETestSuite) TestTxWithoutPublicKey() { val1 := s.network.Validators[0] @@ -1324,14 +1311,13 @@ func (s *E2ETestSuite) TestTxWithoutPublicKey() { defer signedTxFile.Close() s.Require().True(strings.Contains(string(txJSON), "\"public_key\":null")) - // val may not have processed last tx yet - s.Require().NoError(s.network.WaitForNextBlock()) - s.Require().NoError(s.network.WaitForNextBlock()) - - // Broadcast tx, test that it should panic internally, recover and error. + // Broadcast tx, test that it shouldn't panic. val1.ClientCtx.BroadcastMode = flags.BroadcastSync - _, err = authclitestutil.TxBroadcastExec(val1.ClientCtx, signedTxFile.Name()) - s.Require().Error(err) + out, err := authclitestutil.TxBroadcastExec(val1.ClientCtx, signedTxFile.Name()) + s.Require().NoError(err) + var res sdk.TxResponse + s.Require().NoError(val1.ClientCtx.Codec.UnmarshalJSON(out.Bytes(), &res)) + s.Require().NotEqual(0, res.Code) } // TestSignWithMultiSignersAminoJSON tests the case where a transaction with 2 @@ -1389,10 +1375,6 @@ func (s *E2ETestSuite) TestSignWithMultiSignersAminoJSON() { signedTxFile := testutil.WriteToNewTempFile(s.T(), signedTx.String()) defer signedTxFile.Close() - // val may not have processed last tx yet - s.Require().NoError(s.network.WaitForNextBlock()) - s.Require().NoError(s.network.WaitForNextBlock()) - res, err := authclitestutil.TxBroadcastExec( val0.ClientCtx, signedTxFile.Name(), diff --git a/tests/e2e/authz/tx.go b/tests/e2e/authz/tx.go index f5356fc16d..c41a41fd70 100644 --- a/tests/e2e/authz/tx.go +++ b/tests/e2e/authz/tx.go @@ -567,12 +567,8 @@ func (s *E2ETestSuite) TestNewExecGrantAuthorized() { out, err := clitestutil.ExecTestCLICmd(clientCtx, cmd, tc.args) switch { case tc.expectErrMsg != "": - if err != nil { - s.Require().Contains(err.Error(), tc.expectErrMsg) - } else { - s.Require().NoError(clientCtx.Codec.UnmarshalJSON(out.Bytes(), &response), out.String()) - s.Require().Contains(response.RawLog, tc.expectErrMsg) - } + s.Require().NoError(clientCtx.Codec.UnmarshalJSON(out.Bytes(), &response), out.String()) + s.Require().Contains(response.RawLog, tc.expectErrMsg) case tc.expectErr: s.Require().Error(err) diff --git a/tests/e2e/bank/suite.go b/tests/e2e/bank/suite.go index 9abdc736e3..2d709abe80 100644 --- a/tests/e2e/bank/suite.go +++ b/tests/e2e/bank/suite.go @@ -209,7 +209,7 @@ func (s *E2ETestSuite) TestNewSendTxCmd() { fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastSync), fmt.Sprintf("--%s=%s", flags.FlagFees, sdk.NewCoins(sdk.NewCoin(s.cfg.BondDenom, math.NewInt(1))).String()), }, - true, + false, sdkerrors.ErrInsufficientFee.ABCICode(), &sdk.TxResponse{}, }, @@ -227,7 +227,7 @@ func (s *E2ETestSuite) TestNewSendTxCmd() { fmt.Sprintf("--%s=%s", flags.FlagFees, sdk.NewCoins(sdk.NewCoin(s.cfg.BondDenom, math.NewInt(10))).String()), "--gas=10", }, - true, + false, sdkerrors.ErrOutOfGas.ABCICode(), &sdk.TxResponse{}, }, @@ -342,7 +342,7 @@ func (s *E2ETestSuite) TestNewMultiSendTxCmd() { fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastSync), fmt.Sprintf("--%s=%s", flags.FlagFees, sdk.NewCoins(sdk.NewCoin(s.cfg.BondDenom, math.NewInt(1))).String()), }, - true, + false, sdkerrors.ErrInsufficientFee.ABCICode(), &sdk.TxResponse{}, }, @@ -360,7 +360,7 @@ func (s *E2ETestSuite) TestNewMultiSendTxCmd() { fmt.Sprintf("--%s=%s", flags.FlagFees, sdk.NewCoins(sdk.NewCoin(s.cfg.BondDenom, math.NewInt(10))).String()), "--gas=10", }, - true, + false, sdkerrors.ErrOutOfGas.ABCICode(), &sdk.TxResponse{}, }, @@ -385,6 +385,11 @@ func (s *E2ETestSuite) TestNewMultiSendTxCmd() { } } +func NewCoin(denom string, amount math.Int) *sdk.Coin { + coin := sdk.NewCoin(denom, amount) + return &coin +} + func MsgMultiSendExec(clientCtx client.Context, from sdk.AccAddress, to []sdk.AccAddress, amount fmt.Stringer, extraArgs ...string) (testutil.BufferWriter, error) { args := []string{from.String()} for _, addr := range to { diff --git a/tests/e2e/server/export_test.go b/tests/e2e/server/export_test.go index 630f512576..f50e369593 100644 --- a/tests/e2e/server/export_test.go +++ b/tests/e2e/server/export_test.go @@ -13,7 +13,7 @@ import ( "path" "testing" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" dbm "github.com/cosmos/cosmos-db" "github.com/spf13/cobra" "gotest.tools/v3/assert" @@ -96,7 +96,7 @@ func TestExportCmd_Height(t *testing.T) { // Fast forward to block `tc.fastForward`. for i := int64(2); i <= tc.fastForward; i++ { - _, err := app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err := app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: i, }) assert.NilError(t, err) @@ -185,14 +185,14 @@ func setupApp(t *testing.T, tempDir string) (*simapp.SimApp, context.Context, ge err = genutil.ExportGenesisFile(&appGenesis, serverCtx.Config.GenesisFile()) assert.NilError(t, err) - _, err = app.InitChain(&abci.InitChainRequest{ + _, err = app.InitChain(&abci.RequestInitChain{ Validators: []abci.ValidatorUpdate{}, ConsensusParams: simtestutil.DefaultConsensusParams, AppStateBytes: appGenesis.AppState, }) assert.NilError(t, err) - _, err = app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: 1, }) assert.NilError(t, err) diff --git a/tests/e2e/staking/suite.go b/tests/e2e/staking/suite.go index 06b68c6588..e45feee3e8 100644 --- a/tests/e2e/staking/suite.go +++ b/tests/e2e/staking/suite.go @@ -6,7 +6,8 @@ import ( "fmt" "testing" - "github.com/cometbft/cometbft/v2/rpc/client/http" + "github.com/cometbft/cometbft/proto/tendermint/crypto" + "github.com/cometbft/cometbft/rpc/client/http" "github.com/stretchr/testify/suite" "cosmossdk.io/math" @@ -64,7 +65,6 @@ func (s *E2ETestSuite) SetupSuite() { s.Require().NoError(val.ClientCtx.Codec.UnmarshalJSON(out.Bytes(), &txRes)) s.Require().Equal(uint32(0), txRes.Code) s.Require().NoError(s.network.WaitForNextBlock()) - s.Require().NoError(s.network.WaitForNextBlock()) unbondingAmount := sdk.NewCoin(sdk.DefaultBondDenom, math.NewInt(5)) @@ -80,7 +80,6 @@ func (s *E2ETestSuite) SetupSuite() { s.Require().NoError(val.ClientCtx.Codec.UnmarshalJSON(out.Bytes(), &txRes)) s.Require().Equal(uint32(0), txRes.Code) s.Require().NoError(s.network.WaitForNextBlock()) - s.Require().NoError(s.network.WaitForNextBlock()) // unbonding the amount out, err = MsgUnbondExec( @@ -94,7 +93,6 @@ func (s *E2ETestSuite) SetupSuite() { s.Require().NoError(val.ClientCtx.Codec.UnmarshalJSON(out.Bytes(), &txRes)) s.Require().Equal(uint32(0), txRes.Code) s.Require().NoError(s.network.WaitForNextBlock()) - s.Require().NoError(s.network.WaitForNextBlock()) } func (s *E2ETestSuite) TearDownSuite() { @@ -127,7 +125,6 @@ func (s *E2ETestSuite) TestBlockResults() { ) require.NoError(err) require.NoError(s.network.WaitForNextBlock()) - require.NoError(s.network.WaitForNextBlock()) // Use CLI to create a delegation from the new account to validator `val`. cmd := cli.NewDelegateCmd(addresscodec.NewBech32Codec("cosmosvaloper"), addresscodec.NewBech32Codec("cosmos")) @@ -141,10 +138,9 @@ func (s *E2ETestSuite) TestBlockResults() { }) require.NoError(err) require.NoError(s.network.WaitForNextBlock()) - require.NoError(s.network.WaitForNextBlock()) // Create a HTTP rpc client. - rpcClient, err := http.New(val.RPCAddress) + rpcClient, err := http.New(val.RPCAddress, "/websocket") require.NoError(err) // Loop until we find a block result with the correct validator updates. @@ -163,7 +159,7 @@ func (s *E2ETestSuite) TestBlockResults() { valUpdate := res.ValidatorUpdates[0] require.Equal( - valUpdate.PubKeyBytes, + valUpdate.GetPubKey().Sum.(*crypto.PublicKey_Ed25519).Ed25519, val.PubKey.Bytes(), ) diff --git a/tests/go.mod b/tests/go.mod index 67095f2ab7..ec2a245752 100644 --- a/tests/go.mod +++ b/tests/go.mod @@ -3,21 +3,20 @@ module github.com/cosmos/cosmos-sdk/tests go 1.24 require ( - cosmossdk.io/api v1.0.0-rc.1 - cosmossdk.io/core v1.1.0-rc.1 + cosmossdk.io/api v0.9.2 + cosmossdk.io/core v0.11.3 cosmossdk.io/depinject v1.2.1 cosmossdk.io/errors v1.0.2 cosmossdk.io/log v1.6.1 cosmossdk.io/math v1.5.3 cosmossdk.io/simapp v0.0.0-20230620040119-e078f1a49e8b - cosmossdk.io/store v1.10.0-rc.2 - cosmossdk.io/x/tx v1.2.0-rc.1 - github.com/cometbft/cometbft/api v1.1.0-rc1 - github.com/cometbft/cometbft/v2 v2.0.0-rc1 + cosmossdk.io/store v1.1.2 + cosmossdk.io/x/tx v0.14.0 + github.com/cometbft/cometbft v0.38.18 github.com/cosmos/cosmos-db v1.1.3 github.com/cosmos/cosmos-proto v1.0.0-beta.5 // this version is not used as it is always replaced by the latest Cosmos SDK version - github.com/cosmos/cosmos-sdk v0.54.0-rc.1 + github.com/cosmos/cosmos-sdk v0.53.4 github.com/cosmos/go-bip39 v1.0.0 github.com/cosmos/gogoproto v1.7.0 github.com/spf13/cobra v1.9.1 @@ -39,7 +38,7 @@ require ( cloud.google.com/go/iam v1.5.2 // indirect cloud.google.com/go/monitoring v1.24.2 // indirect cloud.google.com/go/storage v1.53.0 // indirect - cosmossdk.io/client/v2 v2.10.0-beta.4 // indirect + cosmossdk.io/client/v2 v2.0.0-beta.11 // indirect cosmossdk.io/collections v1.3.1 // indirect cosmossdk.io/schema v1.1.0 // indirect filippo.io/edwards25519 v1.1.0 // indirect @@ -48,9 +47,9 @@ require ( github.com/DataDog/datadog-go v3.2.0+incompatible // indirect github.com/DataDog/zstd v1.5.7 // indirect github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.29.0 // indirect - github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.52.0 // indirect - github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.52.0 // indirect - github.com/aws/aws-sdk-go v1.44.224 // indirect + github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.51.0 // indirect + github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.51.0 // indirect + github.com/aws/aws-sdk-go v1.55.8 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect github.com/bgentry/speakeasy v0.2.0 // indirect @@ -69,7 +68,7 @@ require ( github.com/cockroachdb/pebble v1.1.5 // indirect github.com/cockroachdb/redact v1.1.6 // indirect github.com/cockroachdb/tokenbucket v0.0.0-20250429170803-42689b6311bb // indirect - github.com/cometbft/cometbft-db v1.0.4 // indirect + github.com/cometbft/cometbft-db v0.14.1 // indirect github.com/cosmos/btcutil v1.0.5 // indirect github.com/cosmos/gogogateway v1.2.0 // indirect github.com/cosmos/iavl v1.2.6 // indirect @@ -86,12 +85,14 @@ require ( github.com/emicklei/dot v1.8.0 // indirect github.com/envoyproxy/go-control-plane/envoy v1.32.4 // indirect github.com/envoyproxy/protoc-gen-validate v1.2.1 // indirect - github.com/ethereum/go-ethereum v1.15.5 // indirect github.com/fatih/color v1.18.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.9.0 // indirect github.com/getsentry/sentry-go v0.35.0 // indirect github.com/go-jose/go-jose/v4 v4.1.1 // indirect + github.com/go-kit/kit v0.13.0 // indirect + github.com/go-kit/log v0.2.1 // indirect + github.com/go-logfmt/logfmt v0.6.0 // indirect github.com/go-logr/logr v1.4.3 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/go-viper/mapstructure/v2 v2.4.0 // indirect @@ -126,7 +127,6 @@ require ( github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect github.com/hashicorp/yamux v0.1.2 // indirect github.com/hdevalence/ed25519consensus v0.2.0 // indirect - github.com/holiman/uint256 v1.3.2 // indirect github.com/huandu/skiplist v1.2.1 // indirect github.com/iancoleman/strcase v0.3.0 // indirect github.com/improbable-eng/grpc-web v0.15.0 // indirect @@ -139,7 +139,6 @@ require ( github.com/kr/text v0.2.0 // indirect github.com/lib/pq v1.10.9 // indirect github.com/linxGnu/grocksdb v1.10.1 // indirect - github.com/lmittmann/tint v1.0.7 // indirect github.com/manifoldco/promptui v0.9.0 // indirect github.com/mattn/go-colorable v0.1.14 // indirect github.com/mattn/go-isatty v0.0.20 // indirect @@ -171,9 +170,8 @@ require ( github.com/spf13/viper v1.20.1 // indirect github.com/spiffe/go-spiffe/v2 v2.5.0 // indirect github.com/subosito/gotenv v1.6.0 // indirect - github.com/supranational/blst v0.3.14 // indirect github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect - github.com/tidwall/btree v1.7.0 // indirect + github.com/tidwall/btree v1.8.1 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ulikunitz/xz v0.5.14 // indirect github.com/zeebo/errs v1.4.0 // indirect diff --git a/tests/go.sum b/tests/go.sum index 00c35ed9fe..5973da38a2 100644 --- a/tests/go.sum +++ b/tests/go.sum @@ -614,14 +614,14 @@ cloud.google.com/go/workflows v1.7.0/go.mod h1:JhSrZuVZWuiDfKEFxU0/F1PQjmpnpcoIS cloud.google.com/go/workflows v1.8.0/go.mod h1:ysGhmEajwZxGn1OhGOGKsTXc5PyxOc0vfKf5Af+to4M= cloud.google.com/go/workflows v1.9.0/go.mod h1:ZGkj1aFIOd9c8Gerkjjq7OW7I5+l6cSvT3ujaO/WwSA= cloud.google.com/go/workflows v1.10.0/go.mod h1:fZ8LmRmZQWacon9UCX1r/g/DfAXx5VcPALq2CxzdePw= -cosmossdk.io/api v1.0.0-rc.1 h1:KwZHIMveoeg6YVwvKZxJLp7be5uk6qmnqNAar2tPxVU= -cosmossdk.io/api v1.0.0-rc.1/go.mod h1:8YOT+XjVFb9eZJk62YqjFILOm8MlLhbnkC9/jxIYri8= -cosmossdk.io/client/v2 v2.10.0-beta.4 h1:M6V016IEp4bnaJrE9eS+VdIXGQ30CguQeU4yIDBxCkI= -cosmossdk.io/client/v2 v2.10.0-beta.4/go.mod h1:+SdBBTm1xLd2AEzLKyC8A1v2jn1gG2aigErS9jD+9R0= +cosmossdk.io/api v0.9.2 h1:9i9ptOBdmoIEVEVWLtYYHjxZonlF/aOVODLFaxpmNtg= +cosmossdk.io/api v0.9.2/go.mod h1:CWt31nVohvoPMTlPv+mMNCtC0a7BqRdESjCsstHcTkU= +cosmossdk.io/client/v2 v2.0.0-beta.11 h1:iHbjDw/NuNz2OVaPmx0iE9eu2HrbX+WAv2u9guRcd6o= +cosmossdk.io/client/v2 v2.0.0-beta.11/go.mod h1:ZmmxMUpALO2r1aG6fNOonE7f8I1g/WsafJgVAeQ0ffs= cosmossdk.io/collections v1.3.1 h1:09e+DUId2brWsNOQ4nrk+bprVmMUaDH9xvtZkeqIjVw= cosmossdk.io/collections v1.3.1/go.mod h1:ynvkP0r5ruAjbmedE+vQ07MT6OtJ0ZIDKrtJHK7Q/4c= -cosmossdk.io/core v1.1.0-rc.1 h1:VhF5xd4uJZt/lQzbl8qT1W3Pcrklp4RSnugcWQZyf5M= -cosmossdk.io/core v1.1.0-rc.1/go.mod h1:fKHIWVYfPCC4tto9eoYFZC/yAWFlWw2mz8YgSYvjnUs= +cosmossdk.io/core v0.11.3 h1:mei+MVDJOwIjIniaKelE3jPDqShCc/F4LkNNHh+4yfo= +cosmossdk.io/core v0.11.3/go.mod h1:9rL4RE1uDt5AJ4Tg55sYyHWXA16VmpHgbe0PbJc6N2Y= cosmossdk.io/depinject v1.2.1 h1:eD6FxkIjlVaNZT+dXTQuwQTKZrFZ4UrfCq1RKgzyhMw= cosmossdk.io/depinject v1.2.1/go.mod h1:lqQEycz0H2JXqvOgVwTsjEdMI0plswI7p6KX+MVqFOM= cosmossdk.io/errors v1.0.2 h1:wcYiJz08HThbWxd/L4jObeLaLySopyyuUFB5w4AGpCo= @@ -632,10 +632,10 @@ cosmossdk.io/math v1.5.3 h1:WH6tu6Z3AUCeHbeOSHg2mt9rnoiUWVWaQ2t6Gkll96U= cosmossdk.io/math v1.5.3/go.mod h1:uqcZv7vexnhMFJF+6zh9EWdm/+Ylyln34IvPnBauPCQ= cosmossdk.io/schema v1.1.0 h1:mmpuz3dzouCoyjjcMcA/xHBEmMChN+EHh8EHxHRHhzE= cosmossdk.io/schema v1.1.0/go.mod h1:Gb7pqO+tpR+jLW5qDcNOSv0KtppYs7881kfzakguhhI= -cosmossdk.io/store v1.10.0-rc.2 h1:7ze2UoheVTVMK4ElHtoRhYv8nlUImj34e4yp1yy1bgE= -cosmossdk.io/store v1.10.0-rc.2/go.mod h1:3p1IV4EGsULFfeyAcfj7/DBcDsy8d3VlYIEJnhhbP3U= -cosmossdk.io/x/tx v1.2.0-rc.1 h1:AartiA6eiTD9KHmnlj3uG3H8FjyjI0qNkmvmU+p6cJ8= -cosmossdk.io/x/tx v1.2.0-rc.1/go.mod h1:UzpMTUmQEFfz+m0E+lhzFIiEhtZCHjScU/NC652DBHI= +cosmossdk.io/store v1.1.2 h1:3HOZG8+CuThREKv6cn3WSohAc6yccxO3hLzwK6rBC7o= +cosmossdk.io/store v1.1.2/go.mod h1:60rAGzTHevGm592kFhiUVkNC9w7gooSEn5iUBPzHQ6A= +cosmossdk.io/x/tx v0.14.0 h1:hB3O25kIcyDW/7kMTLMaO8Ripj3yqs5imceVd6c/heA= +cosmossdk.io/x/tx v0.14.0/go.mod h1:Tn30rSRA1PRfdGB3Yz55W4Sn6EIutr9xtMKSHij+9PM= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA= filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4= @@ -653,12 +653,12 @@ github.com/DataDog/zstd v1.5.7 h1:ybO8RBeh29qrxIhCA9E8gKY6xfONU9T6G6aP9DTKfLE= github.com/DataDog/zstd v1.5.7/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw= github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.29.0 h1:UQUsRi8WTzhZntp5313l+CHIAT95ojUI2lpP/ExlZa4= github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.29.0/go.mod h1:Cz6ft6Dkn3Et6l2v2a9/RpN7epQ1GtDlO6lj8bEcOvw= -github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.52.0 h1:QFgWzcdmJlgEAwJz/zePYVJQxfoJGRtgIqZfIUFg5oQ= -github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.52.0/go.mod h1:ayYHuYU7iNcNtEs1K9k6D/Bju7u1VEHMQm5qQ1n3GtM= -github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/cloudmock v0.52.0 h1:0l8ynskVvq1dvIn5vJbFMf/a/3TqFpRmCMrruFbzlvk= -github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/cloudmock v0.52.0/go.mod h1:f/ad5NuHnYz8AOZGuR0cY+l36oSCstdxD73YlIchr6I= -github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.52.0 h1:wbMd4eG/fOhsCa6+IP8uEDvWF5vl7rNoUWmP5f72Tbs= -github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.52.0/go.mod h1:gdIm9TxRk5soClCwuB0FtdXsbqtw0aqPwBEurK9tPkw= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.51.0 h1:fYE9p3esPxA/C0rQ0AHhP0drtPXDRhaWiwg1DPqO7IU= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.51.0/go.mod h1:BnBReJLvVYx2CS/UHOgVz2BXKXD9wsQPxZug20nZhd0= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/cloudmock v0.51.0 h1:OqVGm6Ei3x5+yZmSJG1Mh2NwHvpVmZ08CB5qJhT9Nuk= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/cloudmock v0.51.0/go.mod h1:SZiPHWGOOk3bl8tkevxkoiwPgsIl6CwrWcbwjfHZpdM= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.51.0 h1:6/0iUd0xrnX7qt+mLNRwg5c0PGv8wpE8K90ryANQwMI= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.51.0/go.mod h1:otE2jQekW/PqXk1Awf5lmfokJx4uwuqcj1ab5SpGeW0= github.com/JohnCGriffin/overflow v0.0.0-20211019200055-46fa312c352c/go.mod h1:X0CRv0ky0k6m906ixxpzmDRLvX58TFUKS2eePweuyxk= github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY= @@ -668,6 +668,7 @@ github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5/go.mod h1:lmUJ/7eu/Q8 github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= +github.com/VividCortex/gohistogram v1.0.0 h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE= github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= github.com/adlio/schema v1.3.6 h1:k1/zc2jNfeiZBA5aFTRy37jlBIuCkXCm0XmvpzCKI9I= github.com/adlio/schema v1.3.6/go.mod h1:qkxwLgPBd1FgLRHYVCmQT/rrBr3JH38J9LjmVzWNudg= @@ -696,8 +697,8 @@ github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a/go.mod h1:DAHtR1m6l github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU= github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/aws/aws-sdk-go v1.44.122/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= -github.com/aws/aws-sdk-go v1.44.224 h1:09CiaaF35nRmxrzWZ2uRq5v6Ghg/d2RiPjZnSgtt+RQ= -github.com/aws/aws-sdk-go v1.44.224/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= +github.com/aws/aws-sdk-go v1.55.8 h1:JRmEUbU52aJQZ2AjX4q4Wu7t4uZjOu71uyNmaWlUkJQ= +github.com/aws/aws-sdk-go v1.55.8/go.mod h1:ZkViS9AqA6otK+JBBNH2++sx1sgxrPKcSzPPvQkUtXk= github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= @@ -792,12 +793,10 @@ github.com/cockroachdb/redact v1.1.6/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZ github.com/cockroachdb/tokenbucket v0.0.0-20250429170803-42689b6311bb h1:3bCgBvB8PbJVMX1ouCcSIxvsqKPYM7gs72o0zC76n9g= github.com/cockroachdb/tokenbucket v0.0.0-20250429170803-42689b6311bb/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ= github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= -github.com/cometbft/cometbft-db v1.0.4 h1:cezb8yx/ZWcF124wqUtAFjAuDksS1y1yXedvtprUFxs= -github.com/cometbft/cometbft-db v1.0.4/go.mod h1:M+BtHAGU2XLrpUxo3Nn1nOCcnVCiLM9yx5OuT0u5SCA= -github.com/cometbft/cometbft/api v1.1.0-rc1 h1:NdlXfp4wialMwJ+1ds1DBtfysdxErUxg8/AaqgT0ifQ= -github.com/cometbft/cometbft/api v1.1.0-rc1/go.mod h1:Ivh6nSCTJPQOyfQo8dgnyu/T88it092sEqSrZSmTQN8= -github.com/cometbft/cometbft/v2 v2.0.0-rc1 h1:3QyDHTFzH3a1N6c2jt03kFDCxM/hgUvhzDYBVnPVXY8= -github.com/cometbft/cometbft/v2 v2.0.0-rc1/go.mod h1:/ze08eO171CqUqTqAE7FW7ydUJIVkgp6e2svpYvIR3c= +github.com/cometbft/cometbft v0.38.18 h1:1ZHYMdu0S75YxFM13LlPXnOwiIpUW5z9TKMQtTIALpw= +github.com/cometbft/cometbft v0.38.18/go.mod h1:PlOQgf3jQorep+g6oVnJgtP65TJvBJoLiXjGaMdNxBE= +github.com/cometbft/cometbft-db v0.14.1 h1:SxoamPghqICBAIcGpleHbmoPqy+crij/++eZz3DlerQ= +github.com/cometbft/cometbft-db v0.14.1/go.mod h1:KHP1YghilyGV/xjD5DP3+2hyigWx0WTp9X+0Gnx0RxQ= github.com/containerd/continuity v0.3.0 h1:nisirsYROK15TAMVukJOUyGJjz4BNQJBVsNvAXZJ/eg= github.com/containerd/continuity v0.3.0/go.mod h1:wJEAIwKOm/pBZuBd0JmeTvnLquTB1Ag8espWhkykbPM= github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= @@ -889,8 +888,6 @@ github.com/envoyproxy/protoc-gen-validate v0.9.1/go.mod h1:OKNgG7TCp5pF4d6XftA0+ github.com/envoyproxy/protoc-gen-validate v0.10.1/go.mod h1:DRjgyB0I43LtJapqN6NiRwroiAU2PaFuvk/vjgh61ss= github.com/envoyproxy/protoc-gen-validate v1.2.1 h1:DEo3O99U8j4hBFwbJfrz9VtgcDfUKS7KJ7spH3d86P8= github.com/envoyproxy/protoc-gen-validate v1.2.1/go.mod h1:d/C80l/jxXLdfEIhX1W2TmLfsJ31lvEjwamM4DxlWXU= -github.com/ethereum/go-ethereum v1.15.5 h1:Fo2TbBWC61lWVkFw9tsMoHCNX1ndpuaQBRJ8H6xLUPo= -github.com/ethereum/go-ethereum v1.15.5/go.mod h1:1LG2LnMOx2yPRHR/S+xuipXH29vPr6BIH6GElD8N/fo= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM= @@ -934,12 +931,18 @@ github.com/go-jose/go-jose/v4 v4.1.1/go.mod h1:BdsZGqgdO3b6tTc6LSE56wcDbMMLuPsw5 github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o= +github.com/go-kit/kit v0.13.0 h1:OoneCcHKHQ03LfBpoQCUfCluwd2Vt3ohz+kvbJneZAU= +github.com/go-kit/kit v0.13.0/go.mod h1:phqEHMMUbyrCFCTgH48JueqrM3md2HcAZ8N3XE4FKDg= github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= +github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU= +github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= github.com/go-latex/latex v0.0.0-20210118124228-b3d85cf34e07/go.mod h1:CO1AlKB2CSIqUrmQPqA0gdRIlnLEY0gK5JGjh37zN5U= github.com/go-latex/latex v0.0.0-20210823091927-c0d11ff05a81/go.mod h1:SX0U8uGpxhq9o2S/CELCSUxEWWAuoCUcVCQWv7G2OCk= github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= +github.com/go-logfmt/logfmt v0.6.0 h1:wGYYu3uicYdqXVgoYbvnkrPVXkuLM1p1ifugDMEdRi4= +github.com/go-logfmt/logfmt v0.6.0/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= @@ -1163,9 +1166,8 @@ github.com/hashicorp/go-safetemp v1.0.0/go.mod h1:oaerMy3BhqiTbVye6QuFhFtIceqFoD github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.1 h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE= github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= -github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.7.0 h1:5tqGy27NaOTB8yJKUZELlFAS/LTKJkrmONwQKeRZfjY= @@ -1185,8 +1187,6 @@ github.com/hashicorp/yamux v0.1.2 h1:XtB8kyFOyHXYVFnwT5C3+Bdo8gArse7j2AQ0DA0Uey8 github.com/hashicorp/yamux v0.1.2/go.mod h1:C+zze2n6e/7wshOZep2A70/aQU6QBRWJO/G6FT1wIns= github.com/hdevalence/ed25519consensus v0.2.0 h1:37ICyZqdyj0lAZ8P4D1d1id3HqbbG1N3iBb1Tb4rdcU= github.com/hdevalence/ed25519consensus v0.2.0/go.mod h1:w3BHWjwJbFU29IRHL1Iqkw3sus+7FctEyM4RqDxYNzo= -github.com/holiman/uint256 v1.3.2 h1:a9EgMPSC1AAaj1SZL5zIQD3WbwTuHrMGOerLjGmM/TA= -github.com/holiman/uint256 v1.3.2/go.mod h1:EOMSn4q6Nyt9P6efbI3bueV4e1b3dGlUCXeiRV4ng7E= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/huandu/go-assert v1.1.5 h1:fjemmA7sSfYHJD7CUqs9qTwwfdNAx7/j2/ZlHXzNB3c= github.com/huandu/go-assert v1.1.5/go.mod h1:yOLvuqZwmcHIC5rIzrBhT7D3Q9c3GFnd0JrPVhn/06U= @@ -1270,8 +1270,6 @@ github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-b github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= github.com/linxGnu/grocksdb v1.10.1 h1:YX6gUcKvSC3d0s9DaqgbU+CRkZHzlELgHu1Z/kmtslg= github.com/linxGnu/grocksdb v1.10.1/go.mod h1:C3CNe9UYc9hlEM2pC82AqiGS3LRW537u9LFV4wIZuHk= -github.com/lmittmann/tint v1.0.7 h1:D/0OqWZ0YOGZ6AyC+5Y2kD8PBEzBk6rFHVSfOqCkF9Y= -github.com/lmittmann/tint v1.0.7/go.mod h1:HIS3gSy7qNwGCj+5oRjAutErFBl4BzdQP6cJZ0NfMwE= github.com/lyft/protoc-gen-star v0.6.0/go.mod h1:TGAoBVkt8w7MPG72TrKIu85MIdXwDuzJYeZuUPFPNwA= github.com/lyft/protoc-gen-star v0.6.1/go.mod h1:TGAoBVkt8w7MPG72TrKIu85MIdXwDuzJYeZuUPFPNwA= github.com/lyft/protoc-gen-star/v2 v2.0.1/go.mod h1:RcCdONR2ScXaYnQC5tUzxzlpA3WVYF7/opLeUgcQs/o= @@ -1532,14 +1530,12 @@ github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= -github.com/supranational/blst v0.3.14 h1:xNMoHRJOTwMn63ip6qoWJ2Ymgvj7E2b9jY2FAwY+qRo= -github.com/supranational/blst v0.3.14/go.mod h1:jZJtfjgudtNl4en1tzwPIV3KjUnQUvG3/j+w+fVonLw= github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d h1:vfofYNRScrDdvS342BElfbETmL1Aiz3i2t0zfRj16Hs= github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d/go.mod h1:RRCYJbIwD5jmqPI9XoAFR0OcDxqUctll6zUj/+B4S48= github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E= github.com/tendermint/go-amino v0.16.0/go.mod h1:TQU0M1i/ImAo+tYpZi73AU3V/dKeCoMC9Sphe2ZwGME= -github.com/tidwall/btree v1.7.0 h1:L1fkJH/AuEh5zBnnBbmTwQ5Lt+bRJ5A8EWecslvo9iI= -github.com/tidwall/btree v1.7.0/go.mod h1:twD9XRA5jj9VUQGELzDO4HPQTNJsoWWfYEL+EUQ2cKY= +github.com/tidwall/btree v1.8.1 h1:27ehoXvm5AG/g+1VxLS1SD3vRhp/H7LuEfwNvddEdmA= +github.com/tidwall/btree v1.8.1/go.mod h1:jBbTdUWhSZClZWoDg54VnvV7/54modSOzDN7VXftj1A= github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI= @@ -1780,7 +1776,6 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.0.0-20221012135044-0b7e1fb9d458/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= -golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= golang.org/x/net v0.4.0/go.mod h1:MBQ8lrhLObU/6UmLb4fmbmk5OcyYmqtbGd/9yIeKjEE= golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws= @@ -1946,7 +1941,6 @@ golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220829200755-d48e67d00261/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1964,7 +1958,6 @@ golang.org/x/sys v0.35.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= golang.org/x/telemetry v0.0.0-20240228155512-f48c80bd79b2/go.mod h1:TeRTkGYfJXctD9OcfyVLyj2J3IxLnKwHJR8f4D8a3YE= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= golang.org/x/term v0.3.0/go.mod h1:q750SLmJuPmVoN1blW3UFBPREJfb1KmY3vwxfr+nFDA= golang.org/x/term v0.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ= diff --git a/tests/integration/auth/client/cli/suite_test.go b/tests/integration/auth/client/cli/suite_test.go index 7e9cc9aa65..4fb51801c3 100644 --- a/tests/integration/auth/client/cli/suite_test.go +++ b/tests/integration/auth/client/cli/suite_test.go @@ -7,8 +7,8 @@ import ( "strings" "testing" - abci "github.com/cometbft/cometbft/v2/abci/types" - rpcclientmock "github.com/cometbft/cometbft/v2/rpc/client/mock" + abci "github.com/cometbft/cometbft/abci/types" + rpcclientmock "github.com/cometbft/cometbft/rpc/client/mock" "github.com/stretchr/testify/suite" "cosmossdk.io/core/address" @@ -69,7 +69,7 @@ func (s *CLITestSuite) SetupSuite() { ctxGen := func() client.Context { bz, _ := s.encCfg.Codec.Marshal(&sdk.TxResponse{}) - c := clitestutil.NewMockCometRPC(abci.QueryResponse{ + c := clitestutil.NewMockCometRPC(abci.ResponseQuery{ Value: bz, }) return s.baseCtx.WithClient(c) diff --git a/tests/integration/bank/keeper/deterministic_test.go b/tests/integration/bank/keeper/deterministic_test.go index 533d5be652..d5fe027f5c 100644 --- a/tests/integration/bank/keeper/deterministic_test.go +++ b/tests/integration/bank/keeper/deterministic_test.go @@ -3,7 +3,7 @@ package keeper_test import ( "testing" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/require" "gotest.tools/v3/assert" "pgregory.net/rapid" diff --git a/tests/integration/distribution/keeper/msg_server_test.go b/tests/integration/distribution/keeper/msg_server_test.go index 66149f4d32..fdb654f4a1 100644 --- a/tests/integration/distribution/keeper/msg_server_test.go +++ b/tests/integration/distribution/keeper/msg_server_test.go @@ -5,8 +5,8 @@ import ( "fmt" "testing" - types "github.com/cometbft/cometbft/api/cometbft/types/v2" - cmtabcitypes "github.com/cometbft/cometbft/v2/abci/types" + cmtabcitypes "github.com/cometbft/cometbft/abci/types" + "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/require" "gotest.tools/v3/assert" diff --git a/tests/integration/evidence/keeper/infraction_test.go b/tests/integration/evidence/keeper/infraction_test.go index ff4e260570..1c43ec60eb 100644 --- a/tests/integration/evidence/keeper/infraction_test.go +++ b/tests/integration/evidence/keeper/infraction_test.go @@ -7,8 +7,8 @@ import ( "testing" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "gotest.tools/v3/assert" "cosmossdk.io/core/appmodule" @@ -204,10 +204,10 @@ func TestHandleDoubleSign(t *testing.T) { assert.NilError(t, err) oldTokens := val.GetTokens() - nci := NewCometInfo(abci.FinalizeBlockRequest{ + nci := NewCometInfo(abci.RequestFinalizeBlock{ Misbehavior: []abci.Misbehavior{{ Validator: abci.Validator{Address: valpubkey.Address(), Power: power}, - Type: abci.MISBEHAVIOR_TYPE_DUPLICATE_VOTE, + Type: abci.MisbehaviorType_DUPLICATE_VOTE, Time: time.Now().UTC(), Height: 1, }}, @@ -284,10 +284,10 @@ func TestHandleDoubleSign_TooOld(t *testing.T) { assert.NilError(t, err) assert.DeepEqual(t, amt, val.GetBondedTokens()) - nci := NewCometInfo(abci.FinalizeBlockRequest{ + nci := NewCometInfo(abci.RequestFinalizeBlock{ Misbehavior: []abci.Misbehavior{{ Validator: abci.Validator{Address: valpubkey.Address(), Power: power}, - Type: abci.MISBEHAVIOR_TYPE_DUPLICATE_VOTE, + Type: abci.MisbehaviorType_DUPLICATE_VOTE, Time: ctx.BlockTime(), Height: 0, }}, @@ -353,7 +353,7 @@ type CometService struct { Evidence []abci.Misbehavior } -func NewCometInfo(bg abci.FinalizeBlockRequest) comet.BlockInfo { +func NewCometInfo(bg abci.RequestFinalizeBlock) comet.BlockInfo { return CometService{ Evidence: bg.Misbehavior, } diff --git a/tests/integration/gov/genesis_test.go b/tests/integration/gov/genesis_test.go index 306f546633..f3d1784e53 100644 --- a/tests/integration/gov/genesis_test.go +++ b/tests/integration/gov/genesis_test.go @@ -4,7 +4,7 @@ import ( "encoding/json" "testing" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" dbm "github.com/cosmos/cosmos-db" "gotest.tools/v3/assert" @@ -75,7 +75,7 @@ func TestImportExportQueues(t *testing.T) { ctx := s1.app.NewContext(false) addrs := simtestutil.AddTestAddrs(s1.BankKeeper, s1.StakingKeeper, ctx, 1, valTokens) - _, err = s1.app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = s1.app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: s1.app.LastBlockHeight() + 1, }) assert.NilError(t, err) @@ -140,7 +140,7 @@ func TestImportExportQueues(t *testing.T) { assert.NilError(t, err) _, err = s2.app.InitChain( - &abci.InitChainRequest{ + &abci.RequestInitChain{ Validators: []abci.ValidatorUpdate{}, ConsensusParams: simtestutil.DefaultConsensusParams, AppStateBytes: stateBytes, @@ -148,12 +148,12 @@ func TestImportExportQueues(t *testing.T) { ) assert.NilError(t, err) - _, err = s2.app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = s2.app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: s2.app.LastBlockHeight() + 1, }) assert.NilError(t, err) - _, err = s2.app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = s2.app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: s2.app.LastBlockHeight() + 1, }) assert.NilError(t, err) diff --git a/tests/integration/gov/keeper/keeper_test.go b/tests/integration/gov/keeper/keeper_test.go index c8dee1fd71..388e0be915 100644 --- a/tests/integration/gov/keeper/keeper_test.go +++ b/tests/integration/gov/keeper/keeper_test.go @@ -3,7 +3,7 @@ package keeper_test import ( "testing" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "gotest.tools/v3/assert" "cosmossdk.io/core/appmodule" diff --git a/tests/integration/slashing/keeper/keeper_test.go b/tests/integration/slashing/keeper/keeper_test.go index f8cda43fac..fc296c86d3 100644 --- a/tests/integration/slashing/keeper/keeper_test.go +++ b/tests/integration/slashing/keeper/keeper_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/require" "gotest.tools/v3/assert" diff --git a/tests/integration/staking/keeper/common_test.go b/tests/integration/staking/keeper/common_test.go index 82a3115d31..7ed49482d3 100644 --- a/tests/integration/staking/keeper/common_test.go +++ b/tests/integration/staking/keeper/common_test.go @@ -4,7 +4,7 @@ import ( "math/big" "testing" - cmtprototypes "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtprototypes "github.com/cometbft/cometbft/proto/tendermint/types" "gotest.tools/v3/assert" "cosmossdk.io/core/appmodule" diff --git a/tests/integration/staking/keeper/determinstic_test.go b/tests/integration/staking/keeper/determinstic_test.go index 6a7a305828..170c51535d 100644 --- a/tests/integration/staking/keeper/determinstic_test.go +++ b/tests/integration/staking/keeper/determinstic_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "gotest.tools/v3/assert" "pgregory.net/rapid" diff --git a/tests/integration/staking/keeper/genesis_test.go b/tests/integration/staking/keeper/genesis_test.go index 41bfaca301..ded4bc0185 100644 --- a/tests/integration/staking/keeper/genesis_test.go +++ b/tests/integration/staking/keeper/genesis_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "github.com/stretchr/testify/require" "gotest.tools/v3/assert" diff --git a/tests/integration/staking/keeper/grpc_query_test.go b/tests/integration/staking/keeper/grpc_query_test.go index fae73b06bc..7675eecc8f 100644 --- a/tests/integration/staking/keeper/grpc_query_test.go +++ b/tests/integration/staking/keeper/grpc_query_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "gotest.tools/v3/assert" "cosmossdk.io/math" diff --git a/tests/integration/staking/keeper/slash_test.go b/tests/integration/staking/keeper/slash_test.go index de574d7747..e307057030 100644 --- a/tests/integration/staking/keeper/slash_test.go +++ b/tests/integration/staking/keeper/slash_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/require" "gotest.tools/v3/assert" diff --git a/tests/integration/staking/keeper/validator_test.go b/tests/integration/staking/keeper/validator_test.go index 4a1d332d9d..dd0a4b415f 100644 --- a/tests/integration/staking/keeper/validator_test.go +++ b/tests/integration/staking/keeper/validator_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "gotest.tools/v3/assert" "cosmossdk.io/math" diff --git a/tests/integration/staking/keeper/vote_extensions_test.go b/tests/integration/staking/keeper/vote_extensions_test.go index 563473115b..8b6e3d355e 100644 --- a/tests/integration/staking/keeper/vote_extensions_test.go +++ b/tests/integration/staking/keeper/vote_extensions_test.go @@ -5,11 +5,10 @@ import ( "sort" "testing" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" protoio "github.com/cosmos/gogoproto/io" "github.com/cosmos/gogoproto/proto" - gogotypes "github.com/cosmos/gogoproto/types" "gotest.tools/v3/assert" "cosmossdk.io/core/comet" @@ -36,7 +35,7 @@ func TestValidateVoteExtensions(t *testing.T) { // enable vote extensions cp := simtestutil.DefaultConsensusParams - cp.Feature = &cmtproto.FeatureParams{VoteExtensionsEnableHeight: &gogotypes.Int64Value{Value: 1}} + cp.Abci = &cmtproto.ABCIParams{VoteExtensionsEnableHeight: 1} f.sdkCtx = f.sdkCtx.WithConsensusParams(*cp).WithHeaderInfo(header.Info{Height: 2, ChainID: chainID}) // setup the validators diff --git a/tests/integration/store/rootmulti/rollback_test.go b/tests/integration/store/rootmulti/rollback_test.go index fde14596d0..08f6a93fdc 100644 --- a/tests/integration/store/rootmulti/rollback_test.go +++ b/tests/integration/store/rootmulti/rollback_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" dbm "github.com/cosmos/cosmos-db" "github.com/stretchr/testify/require" "gotest.tools/v3/assert" @@ -32,14 +32,14 @@ func TestRollback(t *testing.T) { AppHash: app.LastCommitID().Hash, } - _, err := app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err := app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: header.Height, }) require.NoError(t, err) ctx := app.NewContextLegacy(false, header) store := ctx.KVStore(app.GetKey("bank")) store.Set([]byte("key"), []byte(fmt.Sprintf("value%d", i))) - _, err = app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: header.Height, }) require.NoError(t, err) @@ -67,12 +67,12 @@ func TestRollback(t *testing.T) { Height: ver0 + i, AppHash: app.LastCommitID().Hash, } - _, err := app.FinalizeBlock(&abci.FinalizeBlockRequest{Height: header.Height}) + _, err := app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: header.Height}) require.NoError(t, err) ctx := app.NewContextLegacy(false, header) store := ctx.KVStore(app.GetKey("bank")) store.Set([]byte("key"), []byte(fmt.Sprintf("VALUE%d", i))) - _, err = app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: header.Height, }) require.NoError(t, err) diff --git a/tests/systemtests/go.mod b/tests/systemtests/go.mod index 72abca3d7b..b1c98af277 100644 --- a/tests/systemtests/go.mod +++ b/tests/systemtests/go.mod @@ -11,22 +11,22 @@ replace ( require ( cosmossdk.io/math v1.5.3 cosmossdk.io/systemtests v1.2.1 - github.com/cosmos/cosmos-sdk v0.54.0-rc.1 + github.com/cosmos/cosmos-sdk v0.53.4 github.com/stretchr/testify v1.11.1 github.com/tidwall/gjson v1.18.0 github.com/tidwall/sjson v1.2.5 ) require ( - cosmossdk.io/api v1.0.0-rc.1 // indirect + cosmossdk.io/api v0.9.2 // indirect cosmossdk.io/collections v1.3.1 // indirect - cosmossdk.io/core v1.1.0-rc.1 // indirect + cosmossdk.io/core v0.11.3 // indirect cosmossdk.io/depinject v1.2.1 // indirect cosmossdk.io/errors v1.0.2 // indirect cosmossdk.io/log v1.6.1 // indirect cosmossdk.io/schema v1.1.0 // indirect - cosmossdk.io/store v1.10.0-rc.2 // indirect - cosmossdk.io/x/tx v1.2.0-rc.1 // indirect + cosmossdk.io/store v1.1.2 // indirect + cosmossdk.io/x/tx v0.14.0 // indirect filippo.io/edwards25519 v1.1.0 // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect github.com/99designs/keyring v1.2.2 // indirect @@ -45,9 +45,8 @@ require ( github.com/cockroachdb/pebble v1.1.5 // indirect github.com/cockroachdb/redact v1.1.6 // indirect github.com/cockroachdb/tokenbucket v0.0.0-20250429170803-42689b6311bb // indirect - github.com/cometbft/cometbft-db v1.0.4 // indirect - github.com/cometbft/cometbft/api v1.1.0-rc1 // indirect - github.com/cometbft/cometbft/v2 v2.0.0-rc1 // indirect + github.com/cometbft/cometbft v0.38.18 // indirect + github.com/cometbft/cometbft-db v0.14.1 // indirect github.com/cosmos/btcutil v1.0.5 // indirect github.com/cosmos/cosmos-db v1.1.3 // indirect github.com/cosmos/cosmos-proto v1.0.0-beta.5 // indirect @@ -67,11 +66,13 @@ require ( github.com/dustin/go-humanize v1.0.1 // indirect github.com/dvsekhvalnov/jose2go v1.8.0 // indirect github.com/emicklei/dot v1.8.0 // indirect - github.com/ethereum/go-ethereum v1.15.5 // indirect github.com/fatih/color v1.18.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.9.0 // indirect github.com/getsentry/sentry-go v0.35.0 // indirect + github.com/go-kit/kit v0.13.0 // indirect + github.com/go-kit/log v0.2.1 // indirect + github.com/go-logfmt/logfmt v0.6.0 // indirect github.com/go-logr/logr v1.4.3 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/go-viper/mapstructure/v2 v2.4.0 // indirect @@ -84,7 +85,6 @@ require ( github.com/google/flatbuffers v25.2.10+incompatible // indirect github.com/google/go-cmp v0.7.0 // indirect github.com/google/orderedcode v0.0.1 // indirect - github.com/google/uuid v1.6.0 // indirect github.com/gorilla/handlers v1.5.2 // indirect github.com/gorilla/mux v1.8.1 // indirect github.com/gorilla/websocket v1.5.3 // indirect @@ -99,7 +99,6 @@ require ( github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect github.com/hashicorp/yamux v0.1.2 // indirect github.com/hdevalence/ed25519consensus v0.2.0 // indirect - github.com/holiman/uint256 v1.3.2 // indirect github.com/huandu/skiplist v1.2.1 // indirect github.com/iancoleman/strcase v0.3.0 // indirect github.com/improbable-eng/grpc-web v0.15.0 // indirect @@ -111,7 +110,6 @@ require ( github.com/kr/text v0.2.0 // indirect github.com/lib/pq v1.10.9 // indirect github.com/linxGnu/grocksdb v1.10.1 // indirect - github.com/lmittmann/tint v1.0.7 // indirect github.com/mattn/go-colorable v0.1.14 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/minio/highwayhash v1.0.3 // indirect @@ -140,10 +138,9 @@ require ( github.com/spf13/pflag v1.0.7 // indirect github.com/spf13/viper v1.20.1 // indirect github.com/subosito/gotenv v1.6.0 // indirect - github.com/supranational/blst v0.3.14 // indirect github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect github.com/tendermint/go-amino v0.16.0 // indirect - github.com/tidwall/btree v1.7.0 // indirect + github.com/tidwall/btree v1.8.1 // indirect github.com/tidwall/match v1.1.1 // indirect github.com/tidwall/pretty v1.2.0 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect diff --git a/tests/systemtests/go.sum b/tests/systemtests/go.sum index 4f36740df6..0729b8473c 100644 --- a/tests/systemtests/go.sum +++ b/tests/systemtests/go.sum @@ -1,11 +1,11 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cosmossdk.io/api v1.0.0-rc.1 h1:KwZHIMveoeg6YVwvKZxJLp7be5uk6qmnqNAar2tPxVU= -cosmossdk.io/api v1.0.0-rc.1/go.mod h1:8YOT+XjVFb9eZJk62YqjFILOm8MlLhbnkC9/jxIYri8= +cosmossdk.io/api v0.9.2 h1:9i9ptOBdmoIEVEVWLtYYHjxZonlF/aOVODLFaxpmNtg= +cosmossdk.io/api v0.9.2/go.mod h1:CWt31nVohvoPMTlPv+mMNCtC0a7BqRdESjCsstHcTkU= cosmossdk.io/collections v1.3.1 h1:09e+DUId2brWsNOQ4nrk+bprVmMUaDH9xvtZkeqIjVw= cosmossdk.io/collections v1.3.1/go.mod h1:ynvkP0r5ruAjbmedE+vQ07MT6OtJ0ZIDKrtJHK7Q/4c= -cosmossdk.io/core v1.1.0-rc.1 h1:VhF5xd4uJZt/lQzbl8qT1W3Pcrklp4RSnugcWQZyf5M= -cosmossdk.io/core v1.1.0-rc.1/go.mod h1:fKHIWVYfPCC4tto9eoYFZC/yAWFlWw2mz8YgSYvjnUs= +cosmossdk.io/core v0.11.3 h1:mei+MVDJOwIjIniaKelE3jPDqShCc/F4LkNNHh+4yfo= +cosmossdk.io/core v0.11.3/go.mod h1:9rL4RE1uDt5AJ4Tg55sYyHWXA16VmpHgbe0PbJc6N2Y= cosmossdk.io/depinject v1.2.1 h1:eD6FxkIjlVaNZT+dXTQuwQTKZrFZ4UrfCq1RKgzyhMw= cosmossdk.io/depinject v1.2.1/go.mod h1:lqQEycz0H2JXqvOgVwTsjEdMI0plswI7p6KX+MVqFOM= cosmossdk.io/errors v1.0.2 h1:wcYiJz08HThbWxd/L4jObeLaLySopyyuUFB5w4AGpCo= @@ -16,10 +16,10 @@ cosmossdk.io/math v1.5.3 h1:WH6tu6Z3AUCeHbeOSHg2mt9rnoiUWVWaQ2t6Gkll96U= cosmossdk.io/math v1.5.3/go.mod h1:uqcZv7vexnhMFJF+6zh9EWdm/+Ylyln34IvPnBauPCQ= cosmossdk.io/schema v1.1.0 h1:mmpuz3dzouCoyjjcMcA/xHBEmMChN+EHh8EHxHRHhzE= cosmossdk.io/schema v1.1.0/go.mod h1:Gb7pqO+tpR+jLW5qDcNOSv0KtppYs7881kfzakguhhI= -cosmossdk.io/store v1.10.0-rc.2 h1:7ze2UoheVTVMK4ElHtoRhYv8nlUImj34e4yp1yy1bgE= -cosmossdk.io/store v1.10.0-rc.2/go.mod h1:3p1IV4EGsULFfeyAcfj7/DBcDsy8d3VlYIEJnhhbP3U= -cosmossdk.io/x/tx v1.2.0-rc.1 h1:AartiA6eiTD9KHmnlj3uG3H8FjyjI0qNkmvmU+p6cJ8= -cosmossdk.io/x/tx v1.2.0-rc.1/go.mod h1:UzpMTUmQEFfz+m0E+lhzFIiEhtZCHjScU/NC652DBHI= +cosmossdk.io/store v1.1.2 h1:3HOZG8+CuThREKv6cn3WSohAc6yccxO3hLzwK6rBC7o= +cosmossdk.io/store v1.1.2/go.mod h1:60rAGzTHevGm592kFhiUVkNC9w7gooSEn5iUBPzHQ6A= +cosmossdk.io/x/tx v0.14.0 h1:hB3O25kIcyDW/7kMTLMaO8Ripj3yqs5imceVd6c/heA= +cosmossdk.io/x/tx v0.14.0/go.mod h1:Tn30rSRA1PRfdGB3Yz55W4Sn6EIutr9xtMKSHij+9PM= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA= filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4= @@ -42,6 +42,7 @@ github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 h1:TngWCqHvy9oXAN6lEV github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5/go.mod h1:lmUJ/7eu/Q8D7ML55dXQrVaamCz2vxCfdQBasLZfHKk= github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= +github.com/VividCortex/gohistogram v1.0.0 h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE= github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= github.com/adlio/schema v1.3.6 h1:k1/zc2jNfeiZBA5aFTRy37jlBIuCkXCm0XmvpzCKI9I= github.com/adlio/schema v1.3.6/go.mod h1:qkxwLgPBd1FgLRHYVCmQT/rrBr3JH38J9LjmVzWNudg= @@ -130,12 +131,10 @@ github.com/cockroachdb/redact v1.1.6/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZ github.com/cockroachdb/tokenbucket v0.0.0-20250429170803-42689b6311bb h1:3bCgBvB8PbJVMX1ouCcSIxvsqKPYM7gs72o0zC76n9g= github.com/cockroachdb/tokenbucket v0.0.0-20250429170803-42689b6311bb/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ= github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= -github.com/cometbft/cometbft-db v1.0.4 h1:cezb8yx/ZWcF124wqUtAFjAuDksS1y1yXedvtprUFxs= -github.com/cometbft/cometbft-db v1.0.4/go.mod h1:M+BtHAGU2XLrpUxo3Nn1nOCcnVCiLM9yx5OuT0u5SCA= -github.com/cometbft/cometbft/api v1.1.0-rc1 h1:NdlXfp4wialMwJ+1ds1DBtfysdxErUxg8/AaqgT0ifQ= -github.com/cometbft/cometbft/api v1.1.0-rc1/go.mod h1:Ivh6nSCTJPQOyfQo8dgnyu/T88it092sEqSrZSmTQN8= -github.com/cometbft/cometbft/v2 v2.0.0-rc1 h1:3QyDHTFzH3a1N6c2jt03kFDCxM/hgUvhzDYBVnPVXY8= -github.com/cometbft/cometbft/v2 v2.0.0-rc1/go.mod h1:/ze08eO171CqUqTqAE7FW7ydUJIVkgp6e2svpYvIR3c= +github.com/cometbft/cometbft v0.38.18 h1:1ZHYMdu0S75YxFM13LlPXnOwiIpUW5z9TKMQtTIALpw= +github.com/cometbft/cometbft v0.38.18/go.mod h1:PlOQgf3jQorep+g6oVnJgtP65TJvBJoLiXjGaMdNxBE= +github.com/cometbft/cometbft-db v0.14.1 h1:SxoamPghqICBAIcGpleHbmoPqy+crij/++eZz3DlerQ= +github.com/cometbft/cometbft-db v0.14.1/go.mod h1:KHP1YghilyGV/xjD5DP3+2hyigWx0WTp9X+0Gnx0RxQ= github.com/containerd/continuity v0.3.0 h1:nisirsYROK15TAMVukJOUyGJjz4BNQJBVsNvAXZJ/eg= github.com/containerd/continuity v0.3.0/go.mod h1:wJEAIwKOm/pBZuBd0JmeTvnLquTB1Ag8espWhkykbPM= github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= @@ -209,8 +208,6 @@ github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.m github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/ethereum/go-ethereum v1.15.5 h1:Fo2TbBWC61lWVkFw9tsMoHCNX1ndpuaQBRJ8H6xLUPo= -github.com/ethereum/go-ethereum v1.15.5/go.mod h1:1LG2LnMOx2yPRHR/S+xuipXH29vPr6BIH6GElD8N/fo= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM= @@ -241,10 +238,16 @@ github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2 github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o= +github.com/go-kit/kit v0.13.0 h1:OoneCcHKHQ03LfBpoQCUfCluwd2Vt3ohz+kvbJneZAU= +github.com/go-kit/kit v0.13.0/go.mod h1:phqEHMMUbyrCFCTgH48JueqrM3md2HcAZ8N3XE4FKDg= github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= +github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU= +github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= +github.com/go-logfmt/logfmt v0.6.0 h1:wGYYu3uicYdqXVgoYbvnkrPVXkuLM1p1ifugDMEdRi4= +github.com/go-logfmt/logfmt v0.6.0/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= @@ -380,9 +383,8 @@ github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.1 h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE= github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= -github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= @@ -399,8 +401,6 @@ github.com/hashicorp/yamux v0.1.2 h1:XtB8kyFOyHXYVFnwT5C3+Bdo8gArse7j2AQ0DA0Uey8 github.com/hashicorp/yamux v0.1.2/go.mod h1:C+zze2n6e/7wshOZep2A70/aQU6QBRWJO/G6FT1wIns= github.com/hdevalence/ed25519consensus v0.2.0 h1:37ICyZqdyj0lAZ8P4D1d1id3HqbbG1N3iBb1Tb4rdcU= github.com/hdevalence/ed25519consensus v0.2.0/go.mod h1:w3BHWjwJbFU29IRHL1Iqkw3sus+7FctEyM4RqDxYNzo= -github.com/holiman/uint256 v1.3.2 h1:a9EgMPSC1AAaj1SZL5zIQD3WbwTuHrMGOerLjGmM/TA= -github.com/holiman/uint256 v1.3.2/go.mod h1:EOMSn4q6Nyt9P6efbI3bueV4e1b3dGlUCXeiRV4ng7E= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/huandu/go-assert v1.1.5 h1:fjemmA7sSfYHJD7CUqs9qTwwfdNAx7/j2/ZlHXzNB3c= github.com/huandu/go-assert v1.1.5/go.mod h1:yOLvuqZwmcHIC5rIzrBhT7D3Q9c3GFnd0JrPVhn/06U= @@ -466,8 +466,6 @@ github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-b github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= github.com/linxGnu/grocksdb v1.10.1 h1:YX6gUcKvSC3d0s9DaqgbU+CRkZHzlELgHu1Z/kmtslg= github.com/linxGnu/grocksdb v1.10.1/go.mod h1:C3CNe9UYc9hlEM2pC82AqiGS3LRW537u9LFV4wIZuHk= -github.com/lmittmann/tint v1.0.7 h1:D/0OqWZ0YOGZ6AyC+5Y2kD8PBEzBk6rFHVSfOqCkF9Y= -github.com/lmittmann/tint v1.0.7/go.mod h1:HIS3gSy7qNwGCj+5oRjAutErFBl4BzdQP6cJZ0NfMwE= github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ= github.com/magiconair/properties v1.8.10 h1:s31yESBquKXCV9a/ScB3ESkOjUYYv+X0rg8SYxI99mE= github.com/magiconair/properties v1.8.10/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= @@ -697,14 +695,12 @@ github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= -github.com/supranational/blst v0.3.14 h1:xNMoHRJOTwMn63ip6qoWJ2Ymgvj7E2b9jY2FAwY+qRo= -github.com/supranational/blst v0.3.14/go.mod h1:jZJtfjgudtNl4en1tzwPIV3KjUnQUvG3/j+w+fVonLw= github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d h1:vfofYNRScrDdvS342BElfbETmL1Aiz3i2t0zfRj16Hs= github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d/go.mod h1:RRCYJbIwD5jmqPI9XoAFR0OcDxqUctll6zUj/+B4S48= github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E= github.com/tendermint/go-amino v0.16.0/go.mod h1:TQU0M1i/ImAo+tYpZi73AU3V/dKeCoMC9Sphe2ZwGME= -github.com/tidwall/btree v1.7.0 h1:L1fkJH/AuEh5zBnnBbmTwQ5Lt+bRJ5A8EWecslvo9iI= -github.com/tidwall/btree v1.7.0/go.mod h1:twD9XRA5jj9VUQGELzDO4HPQTNJsoWWfYEL+EUQ2cKY= +github.com/tidwall/btree v1.8.1 h1:27ehoXvm5AG/g+1VxLS1SD3vRhp/H7LuEfwNvddEdmA= +github.com/tidwall/btree v1.8.1/go.mod h1:jBbTdUWhSZClZWoDg54VnvV7/54modSOzDN7VXftj1A= github.com/tidwall/gjson v1.14.2/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= github.com/tidwall/gjson v1.18.0 h1:FIDeeyB800efLX89e5a8Y0BNH+LOngJyGrIWxG2FKQY= github.com/tidwall/gjson v1.18.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= diff --git a/testutil/cli/cmt_mocks.go b/testutil/cli/cmt_mocks.go index 6890dfcda1..a03ea17606 100644 --- a/testutil/cli/cmt_mocks.go +++ b/testutil/cli/cmt_mocks.go @@ -3,12 +3,12 @@ package cli import ( "context" - abci "github.com/cometbft/cometbft/v2/abci/types" - cmtbytes "github.com/cometbft/cometbft/v2/libs/bytes" - rpcclient "github.com/cometbft/cometbft/v2/rpc/client" - rpcclientmock "github.com/cometbft/cometbft/v2/rpc/client/mock" - coretypes "github.com/cometbft/cometbft/v2/rpc/core/types" - cmttypes "github.com/cometbft/cometbft/v2/types" + abci "github.com/cometbft/cometbft/abci/types" + cmtbytes "github.com/cometbft/cometbft/libs/bytes" + rpcclient "github.com/cometbft/cometbft/rpc/client" + rpcclientmock "github.com/cometbft/cometbft/rpc/client/mock" + coretypes "github.com/cometbft/cometbft/rpc/core/types" + cmttypes "github.com/cometbft/cometbft/types" "github.com/cosmos/cosmos-sdk/client" ) @@ -18,12 +18,12 @@ var _ client.CometRPC = (*MockCometRPC)(nil) type MockCometRPC struct { rpcclientmock.Client - responseQuery abci.QueryResponse + responseQuery abci.ResponseQuery } // NewMockCometRPC returns a mock CometBFT RPC implementation. // It is used for CLI testing. -func NewMockCometRPC(respQuery abci.QueryResponse) MockCometRPC { +func NewMockCometRPC(respQuery abci.ResponseQuery) MockCometRPC { return MockCometRPC{responseQuery: respQuery} } diff --git a/testutil/context.go b/testutil/context.go index f877a9c498..288f7fc55b 100644 --- a/testutil/context.go +++ b/testutil/context.go @@ -4,7 +4,7 @@ import ( "testing" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" dbm "github.com/cosmos/cosmos-db" "github.com/stretchr/testify/assert" diff --git a/testutil/integration/example_test.go b/testutil/integration/example_test.go index 046731c99a..b395324c19 100644 --- a/testutil/integration/example_test.go +++ b/testutil/integration/example_test.go @@ -4,7 +4,7 @@ import ( "fmt" "io" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/google/go-cmp/cmp" "cosmossdk.io/core/appmodule" diff --git a/testutil/integration/router.go b/testutil/integration/router.go index ab697df0ab..cae9a308e3 100644 --- a/testutil/integration/router.go +++ b/testutil/integration/router.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - cmtabcitypes "github.com/cometbft/cometbft/v2/abci/types" + cmtabcitypes "github.com/cometbft/cometbft/abci/types" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" dbm "github.com/cosmos/cosmos-db" "cosmossdk.io/core/appmodule" @@ -60,14 +60,14 @@ func NewIntegrationApp( bApp := baseapp.NewBaseApp(appName, logger, db, txConfig.TxDecoder(), append(baseAppOptions, baseapp.SetChainID(appName))...) bApp.MountKVStores(keys) - bApp.SetInitChainer(func(_ sdk.Context, _ *cmtabcitypes.InitChainRequest) (*cmtabcitypes.InitChainResponse, error) { + bApp.SetInitChainer(func(_ sdk.Context, _ *cmtabcitypes.RequestInitChain) (*cmtabcitypes.ResponseInitChain, error) { for _, mod := range modules { if m, ok := mod.(module.HasGenesis); ok { m.InitGenesis(sdkCtx, appCodec, m.DefaultGenesis(appCodec)) } } - return &cmtabcitypes.InitChainResponse{}, nil + return &cmtabcitypes.ResponseInitChain{}, nil }) bApp.SetBeginBlocker(func(_ sdk.Context) (sdk.BeginBlock, error) { @@ -90,7 +90,7 @@ func NewIntegrationApp( panic(fmt.Errorf("failed to load application version from store: %w", err)) } - if _, err := bApp.InitChain(&cmtabcitypes.InitChainRequest{ChainId: appName, ConsensusParams: simtestutil.DefaultConsensusParams}); err != nil { + if _, err := bApp.InitChain(&cmtabcitypes.RequestInitChain{ChainId: appName, ConsensusParams: simtestutil.DefaultConsensusParams}); err != nil { panic(fmt.Errorf("failed to initialize application: %w", err)) } } else { @@ -98,7 +98,7 @@ func NewIntegrationApp( panic(fmt.Errorf("failed to load application version from store: %w", err)) } - if _, err := bApp.InitChain(&cmtabcitypes.InitChainRequest{ChainId: appName}); err != nil { + if _, err := bApp.InitChain(&cmtabcitypes.RequestInitChain{ChainId: appName}); err != nil { panic(fmt.Errorf("failed to initialize application: %w", err)) } } @@ -138,7 +138,7 @@ func (app *App) RunMsg(msg sdk.Msg, option ...Option) (*codectypes.Any, error) { if cfg.AutomaticFinalizeBlock { height := app.LastBlockHeight() + 1 - if _, err := app.FinalizeBlock(&cmtabcitypes.FinalizeBlockRequest{Height: height}); err != nil { + if _, err := app.FinalizeBlock(&cmtabcitypes.RequestFinalizeBlock{Height: height}); err != nil { return nil, fmt.Errorf("failed to run finalize block: %w", err) } } diff --git a/testutil/mock/privval.go b/testutil/mock/privval.go index 7637d17658..f49a96622c 100644 --- a/testutil/mock/privval.go +++ b/testutil/mock/privval.go @@ -1,9 +1,9 @@ package mock import ( - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - "github.com/cometbft/cometbft/v2/crypto" - cmttypes "github.com/cometbft/cometbft/v2/types" + "github.com/cometbft/cometbft/crypto" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + cmttypes "github.com/cometbft/cometbft/types" cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" @@ -28,21 +28,13 @@ func (pv PV) GetPubKey() (crypto.PubKey, error) { } // SignVote implements PrivValidator interface -func (pv PV) SignVote(chainID string, vote *cmtproto.Vote, signExtension bool) error { +func (pv PV) SignVote(chainID string, vote *cmtproto.Vote) error { signBytes := cmttypes.VoteSignBytes(chainID, vote) sig, err := pv.PrivKey.Sign(signBytes) if err != nil { return err } vote.Signature = sig - if signExtension { - extSignBytes, _ := cmttypes.VoteExtensionSignBytes(chainID, vote) - extSig, err := pv.PrivKey.Sign(extSignBytes) - if err != nil { - return err - } - vote.ExtensionSignature = extSig - } return nil } diff --git a/testutil/mock/privval_test.go b/testutil/mock/privval_test.go index c96ef844a9..d5f8ed02b0 100644 --- a/testutil/mock/privval_test.go +++ b/testutil/mock/privval_test.go @@ -3,7 +3,7 @@ package mock import ( "testing" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/require" ) @@ -17,7 +17,7 @@ func TestGetPubKey(t *testing.T) { func TestSignVote(t *testing.T) { pv := NewPV() v := cmtproto.Vote{} - err := pv.SignVote("chain-id", &v, false) + err := pv.SignVote("chain-id", &v) require.NoError(t, err) require.NotNil(t, v.Signature) } diff --git a/testutil/mock/types_mock_appmodule.go b/testutil/mock/types_mock_appmodule.go index 4502388512..8cab68282a 100644 --- a/testutil/mock/types_mock_appmodule.go +++ b/testutil/mock/types_mock_appmodule.go @@ -15,7 +15,7 @@ import ( reflect "reflect" appmodule "cosmossdk.io/core/appmodule" - types "github.com/cometbft/cometbft/v2/abci/types" + types "github.com/cometbft/cometbft/abci/types" client "github.com/cosmos/cosmos-sdk/client" codec "github.com/cosmos/cosmos-sdk/codec" types0 "github.com/cosmos/cosmos-sdk/codec/types" diff --git a/testutil/mock/types_module_module.go b/testutil/mock/types_module_module.go index 5037376780..a85e911104 100644 --- a/testutil/mock/types_module_module.go +++ b/testutil/mock/types_module_module.go @@ -14,7 +14,7 @@ import ( json "encoding/json" reflect "reflect" - types "github.com/cometbft/cometbft/v2/abci/types" + types "github.com/cometbft/cometbft/abci/types" client "github.com/cosmos/cosmos-sdk/client" codec "github.com/cosmos/cosmos-sdk/codec" types0 "github.com/cosmos/cosmos-sdk/codec/types" diff --git a/testutil/network/network.go b/testutil/network/network.go index f2b6720a9d..138b94bf77 100644 --- a/testutil/network/network.go +++ b/testutil/network/network.go @@ -17,8 +17,8 @@ import ( "testing" "time" - "github.com/cometbft/cometbft/v2/node" - cmtclient "github.com/cometbft/cometbft/v2/rpc/client" + "github.com/cometbft/cometbft/node" + cmtclient "github.com/cometbft/cometbft/rpc/client" dbm "github.com/cosmos/cosmos-db" "github.com/spf13/cobra" "golang.org/x/sync/errgroup" @@ -381,7 +381,7 @@ func New(l Logger, baseDir string, cfg Config) (*Network, error) { ctx := server.NewDefaultContext() cmtCfg := ctx.Config - cmtCfg.Consensus.TimeoutCommit = cfg.TimeoutCommit // nolint: staticcheck // we are continuing to use this value for backwards compatibility + cmtCfg.Consensus.TimeoutCommit = cfg.TimeoutCommit // Only allow the first validator to expose an RPC, API and gRPC // server/client due to CometBFT in-process constraints. @@ -473,12 +473,7 @@ func New(l Logger, baseDir string, cfg Config) (*Network, error) { cmtCfg.P2P.AddrBookStrict = false cmtCfg.P2P.AllowDuplicateIP = true - var mnemonic string - if i < len(cfg.Mnemonics) { - mnemonic = cfg.Mnemonics[i] - } - - nodeID, pubKey, err := genutil.InitializeNodeValidatorFilesFromMnemonic(cmtCfg, mnemonic) + nodeID, pubKey, err := genutil.InitializeNodeValidatorFiles(cmtCfg) if err != nil { return nil, err } @@ -497,6 +492,11 @@ func New(l Logger, baseDir string, cfg Config) (*Network, error) { return nil, err } + var mnemonic string + if i < len(cfg.Mnemonics) { + mnemonic = cfg.Mnemonics[i] + } + addr, secret, err := testutil.GenerateSaveCoinKey(kb, nodeDirName, mnemonic, true, algo) if err != nil { return nil, err diff --git a/testutil/network/util.go b/testutil/network/util.go index 854a8c3892..398be3064b 100644 --- a/testutil/network/util.go +++ b/testutil/network/util.go @@ -2,20 +2,20 @@ package network import ( "context" - "crypto/sha256" "encoding/json" "fmt" "net" "os" "path/filepath" - cmtcfg "github.com/cometbft/cometbft/v2/config" - "github.com/cometbft/cometbft/v2/node" - "github.com/cometbft/cometbft/v2/p2p" - pvm "github.com/cometbft/cometbft/v2/privval" - "github.com/cometbft/cometbft/v2/proxy" - "github.com/cometbft/cometbft/v2/rpc/client/local" - cmttime "github.com/cometbft/cometbft/v2/types/time" + cmtcfg "github.com/cometbft/cometbft/config" + "github.com/cometbft/cometbft/node" + "github.com/cometbft/cometbft/p2p" + pvm "github.com/cometbft/cometbft/privval" + "github.com/cometbft/cometbft/proxy" + "github.com/cometbft/cometbft/rpc/client/local" + cmttypes "github.com/cometbft/cometbft/types" + cmttime "github.com/cometbft/cometbft/types/time" "golang.org/x/sync/errgroup" "cosmossdk.io/log" @@ -47,50 +47,19 @@ func startInProcess(cfg Config, val *Validator) error { app := cfg.AppConstructor(*val) val.app = app - appGenesisProvider := func() (node.ChecksummedGenesisDoc, error) { + appGenesisProvider := func() (*cmttypes.GenesisDoc, error) { appGenesis, err := genutiltypes.AppGenesisFromFile(cmtCfg.GenesisFile()) if err != nil { - return node.ChecksummedGenesisDoc{ - Sha256Checksum: []byte{}, - }, err - } - gen, err := appGenesis.ToGenesisDoc() - if err != nil { - return node.ChecksummedGenesisDoc{ - Sha256Checksum: []byte{}, - }, err + return nil, err } - genbz, err := gen.AppState.MarshalJSON() - if err != nil { - return node.ChecksummedGenesisDoc{ - Sha256Checksum: []byte{}, - }, err - } - - bz, err := json.Marshal(genbz) - if err != nil { - return node.ChecksummedGenesisDoc{ - Sha256Checksum: []byte{}, - }, err - } - sum := sha256.Sum256(bz) - - return node.ChecksummedGenesisDoc{GenesisDoc: gen, Sha256Checksum: sum[:]}, nil + return appGenesis.ToGenesisDoc() } cmtApp := server.NewCometABCIWrapper(app) - - // CometBFT uses the ed25519 key generator as default if the given generator function is nil. - pv, err := pvm.LoadOrGenFilePV(cmtCfg.PrivValidatorKeyFile(), cmtCfg.PrivValidatorStateFile(), nil) - if err != nil { - return err - } - tmNode, err := node.NewNode( //resleak:notresource - context.TODO(), cmtCfg, - pv, + pvm.LoadOrGenFilePV(cmtCfg.PrivValidatorKeyFile(), cmtCfg.PrivValidatorStateFile()), nodeKey, proxy.NewLocalClientCreator(cmtApp), appGenesisProvider, diff --git a/testutil/sims/app_helpers.go b/testutil/sims/app_helpers.go index 6b4b94ace3..0d2f612b7e 100644 --- a/testutil/sims/app_helpers.go +++ b/testutil/sims/app_helpers.go @@ -5,10 +5,10 @@ import ( "fmt" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - abci "github.com/cometbft/cometbft/v2/abci/types" - cmtjson "github.com/cometbft/cometbft/v2/libs/json" - cmttypes "github.com/cometbft/cometbft/v2/types" + abci "github.com/cometbft/cometbft/abci/types" + cmtjson "github.com/cometbft/cometbft/libs/json" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + cmttypes "github.com/cometbft/cometbft/types" dbm "github.com/cosmos/cosmos-db" coreheader "cosmossdk.io/core/header" @@ -110,7 +110,7 @@ func SetupAtGenesis(appConfig depinject.Config, extraOutputs ...any) (*runtime.A // NextBlock starts a new block. func NextBlock(app *runtime.App, ctx sdk.Context, jumpTime time.Duration) (sdk.Context, error) { - _, err := app.FinalizeBlock(&abci.FinalizeBlockRequest{Height: ctx.BlockHeight(), Time: ctx.BlockTime()}) + _, err := app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: ctx.BlockHeight(), Time: ctx.BlockTime()}) if err != nil { return sdk.Context{}, err } @@ -184,7 +184,7 @@ func SetupWithConfiguration(appConfig depinject.Config, startupConfig StartupCon } // init chain will set the validator set and initialize the genesis accounts - _, err = app.InitChain(&abci.InitChainRequest{ + _, err = app.InitChain(&abci.RequestInitChain{ Validators: []abci.ValidatorUpdate{}, ConsensusParams: DefaultConsensusParams, AppStateBytes: stateBytes, @@ -195,7 +195,7 @@ func SetupWithConfiguration(appConfig depinject.Config, startupConfig StartupCon // commit genesis changes if !startupConfig.AtGenesis { - _, err = app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: app.LastBlockHeight() + 1, NextValidatorsHash: valSet.Hash(), }) diff --git a/testutil/sims/tx_helpers.go b/testutil/sims/tx_helpers.go index feb4f43d89..fd9637c53e 100644 --- a/testutil/sims/tx_helpers.go +++ b/testutil/sims/tx_helpers.go @@ -6,8 +6,8 @@ import ( "testing" "time" - types "github.com/cometbft/cometbft/api/cometbft/types/v2" - abcitypes "github.com/cometbft/cometbft/v2/abci/types" + types2 "github.com/cometbft/cometbft/abci/types" + "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/require" "cosmossdk.io/errors" @@ -127,7 +127,7 @@ func SignCheckDeliver( bz, err := txCfg.TxEncoder()(tx) require.NoError(t, err) - resBlock, err := app.FinalizeBlock(&abcitypes.FinalizeBlockRequest{ + resBlock, err := app.FinalizeBlock(&types2.RequestFinalizeBlock{ Height: header.Height, Txs: [][]byte{bz}, }) diff --git a/tools/benchmark/go.mod b/tools/benchmark/go.mod index fb513d0734..e0be822d7f 100644 --- a/tools/benchmark/go.mod +++ b/tools/benchmark/go.mod @@ -3,12 +3,12 @@ module cosmossdk.io/tools/benchmark go 1.24 require ( - cosmossdk.io/api v1.0.0-rc.1 - cosmossdk.io/core v1.1.0-rc.1 + cosmossdk.io/api v0.9.2 + cosmossdk.io/core v0.11.3 cosmossdk.io/depinject v1.2.1 cosmossdk.io/log v1.6.1 github.com/cespare/xxhash/v2 v2.3.0 - github.com/cosmos/cosmos-sdk v0.54.0-rc.1 + github.com/cosmos/cosmos-sdk v0.53.4 github.com/cosmos/gogoproto v1.7.0 github.com/grpc-ecosystem/grpc-gateway v1.16.0 github.com/spf13/cobra v1.9.1 @@ -21,8 +21,8 @@ require ( cosmossdk.io/errors v1.0.2 // indirect cosmossdk.io/math v1.5.3 // indirect cosmossdk.io/schema v1.1.0 // indirect - cosmossdk.io/store v1.10.0-rc.2 // indirect - cosmossdk.io/x/tx v1.2.0-rc.1 // indirect + cosmossdk.io/store v1.1.2 // indirect + cosmossdk.io/x/tx v0.14.0 // indirect filippo.io/edwards25519 v1.1.0 // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect github.com/99designs/keyring v1.2.2 // indirect @@ -40,9 +40,8 @@ require ( github.com/cockroachdb/pebble v1.1.5 // indirect github.com/cockroachdb/redact v1.1.6 // indirect github.com/cockroachdb/tokenbucket v0.0.0-20250429170803-42689b6311bb // indirect - github.com/cometbft/cometbft-db v1.0.4 // indirect - github.com/cometbft/cometbft/api v1.1.0-rc1 // indirect - github.com/cometbft/cometbft/v2 v2.0.0-rc1 // indirect + github.com/cometbft/cometbft v0.38.18 // indirect + github.com/cometbft/cometbft-db v0.14.1 // indirect github.com/cosmos/btcutil v1.0.5 // indirect github.com/cosmos/cosmos-db v1.1.3 // indirect github.com/cosmos/cosmos-proto v1.0.0-beta.5 // indirect @@ -60,11 +59,13 @@ require ( github.com/dustin/go-humanize v1.0.1 // indirect github.com/dvsekhvalnov/jose2go v1.6.0 // indirect github.com/emicklei/dot v1.8.0 // indirect - github.com/ethereum/go-ethereum v1.15.5 // indirect github.com/fatih/color v1.18.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.9.0 // indirect github.com/getsentry/sentry-go v0.35.0 // indirect + github.com/go-kit/kit v0.13.0 // indirect + github.com/go-kit/log v0.2.1 // indirect + github.com/go-logfmt/logfmt v0.6.0 // indirect github.com/go-logr/logr v1.4.3 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/go-viper/mapstructure/v2 v2.4.0 // indirect @@ -76,7 +77,6 @@ require ( github.com/google/btree v1.1.3 // indirect github.com/google/flatbuffers v25.2.10+incompatible // indirect github.com/google/go-cmp v0.7.0 // indirect - github.com/google/orderedcode v0.0.1 // indirect github.com/gorilla/handlers v1.5.2 // indirect github.com/gorilla/mux v1.8.1 // indirect github.com/gorilla/websocket v1.5.3 // indirect @@ -87,10 +87,8 @@ require ( github.com/hashicorp/go-metrics v0.5.4 // indirect github.com/hashicorp/go-plugin v1.7.0 // indirect github.com/hashicorp/golang-lru v1.0.2 // indirect - github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect github.com/hashicorp/yamux v0.1.2 // indirect github.com/hdevalence/ed25519consensus v0.2.0 // indirect - github.com/holiman/uint256 v1.3.2 // indirect github.com/huandu/skiplist v1.2.1 // indirect github.com/iancoleman/strcase v0.3.0 // indirect github.com/improbable-eng/grpc-web v0.15.0 // indirect @@ -100,8 +98,7 @@ require ( github.com/klauspost/cpuid/v2 v2.2.10 // indirect github.com/kr/pretty v0.3.1 // indirect github.com/kr/text v0.2.0 // indirect - github.com/linxGnu/grocksdb v1.10.1 // indirect - github.com/lmittmann/tint v1.0.7 // indirect + github.com/linxGnu/grocksdb v1.9.8 // indirect github.com/mattn/go-colorable v0.1.14 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/mtibben/percent v0.2.1 // indirect @@ -128,7 +125,6 @@ require ( github.com/spf13/pflag v1.0.7 // indirect github.com/spf13/viper v1.20.1 // indirect github.com/subosito/gotenv v1.6.0 // indirect - github.com/supranational/blst v0.3.14 // indirect github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect github.com/tendermint/go-amino v0.16.0 // indirect github.com/tidwall/btree v1.7.0 // indirect @@ -143,6 +139,7 @@ require ( go.opentelemetry.io/otel/trace v1.37.0 // indirect go.uber.org/multierr v1.11.0 // indirect go.uber.org/zap v1.27.0 // indirect + go.yaml.in/yaml/v2 v2.4.2 // indirect golang.org/x/arch v0.17.0 // indirect golang.org/x/crypto v0.41.0 // indirect golang.org/x/exp v0.0.0-20250506013437-ce4c2cf36ca6 // indirect @@ -159,5 +156,5 @@ require ( gotest.tools/v3 v3.5.2 // indirect nhooyr.io/websocket v1.8.6 // indirect pgregory.net/rapid v1.2.0 // indirect - sigs.k8s.io/yaml v1.4.0 // indirect + sigs.k8s.io/yaml v1.6.0 // indirect ) diff --git a/tools/benchmark/go.sum b/tools/benchmark/go.sum index 1454d1317c..587bc829a2 100644 --- a/tools/benchmark/go.sum +++ b/tools/benchmark/go.sum @@ -1,11 +1,11 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cosmossdk.io/api v1.0.0-rc.1 h1:KwZHIMveoeg6YVwvKZxJLp7be5uk6qmnqNAar2tPxVU= -cosmossdk.io/api v1.0.0-rc.1/go.mod h1:8YOT+XjVFb9eZJk62YqjFILOm8MlLhbnkC9/jxIYri8= +cosmossdk.io/api v0.9.2 h1:9i9ptOBdmoIEVEVWLtYYHjxZonlF/aOVODLFaxpmNtg= +cosmossdk.io/api v0.9.2/go.mod h1:CWt31nVohvoPMTlPv+mMNCtC0a7BqRdESjCsstHcTkU= cosmossdk.io/collections v1.3.1 h1:09e+DUId2brWsNOQ4nrk+bprVmMUaDH9xvtZkeqIjVw= cosmossdk.io/collections v1.3.1/go.mod h1:ynvkP0r5ruAjbmedE+vQ07MT6OtJ0ZIDKrtJHK7Q/4c= -cosmossdk.io/core v1.1.0-rc.1 h1:VhF5xd4uJZt/lQzbl8qT1W3Pcrklp4RSnugcWQZyf5M= -cosmossdk.io/core v1.1.0-rc.1/go.mod h1:fKHIWVYfPCC4tto9eoYFZC/yAWFlWw2mz8YgSYvjnUs= +cosmossdk.io/core v0.11.3 h1:mei+MVDJOwIjIniaKelE3jPDqShCc/F4LkNNHh+4yfo= +cosmossdk.io/core v0.11.3/go.mod h1:9rL4RE1uDt5AJ4Tg55sYyHWXA16VmpHgbe0PbJc6N2Y= cosmossdk.io/depinject v1.2.1 h1:eD6FxkIjlVaNZT+dXTQuwQTKZrFZ4UrfCq1RKgzyhMw= cosmossdk.io/depinject v1.2.1/go.mod h1:lqQEycz0H2JXqvOgVwTsjEdMI0plswI7p6KX+MVqFOM= cosmossdk.io/errors v1.0.2 h1:wcYiJz08HThbWxd/L4jObeLaLySopyyuUFB5w4AGpCo= @@ -16,10 +16,10 @@ cosmossdk.io/math v1.5.3 h1:WH6tu6Z3AUCeHbeOSHg2mt9rnoiUWVWaQ2t6Gkll96U= cosmossdk.io/math v1.5.3/go.mod h1:uqcZv7vexnhMFJF+6zh9EWdm/+Ylyln34IvPnBauPCQ= cosmossdk.io/schema v1.1.0 h1:mmpuz3dzouCoyjjcMcA/xHBEmMChN+EHh8EHxHRHhzE= cosmossdk.io/schema v1.1.0/go.mod h1:Gb7pqO+tpR+jLW5qDcNOSv0KtppYs7881kfzakguhhI= -cosmossdk.io/store v1.10.0-rc.2 h1:7ze2UoheVTVMK4ElHtoRhYv8nlUImj34e4yp1yy1bgE= -cosmossdk.io/store v1.10.0-rc.2/go.mod h1:3p1IV4EGsULFfeyAcfj7/DBcDsy8d3VlYIEJnhhbP3U= -cosmossdk.io/x/tx v1.2.0-rc.1 h1:AartiA6eiTD9KHmnlj3uG3H8FjyjI0qNkmvmU+p6cJ8= -cosmossdk.io/x/tx v1.2.0-rc.1/go.mod h1:UzpMTUmQEFfz+m0E+lhzFIiEhtZCHjScU/NC652DBHI= +cosmossdk.io/store v1.1.2 h1:3HOZG8+CuThREKv6cn3WSohAc6yccxO3hLzwK6rBC7o= +cosmossdk.io/store v1.1.2/go.mod h1:60rAGzTHevGm592kFhiUVkNC9w7gooSEn5iUBPzHQ6A= +cosmossdk.io/x/tx v0.14.0 h1:hB3O25kIcyDW/7kMTLMaO8Ripj3yqs5imceVd6c/heA= +cosmossdk.io/x/tx v0.14.0/go.mod h1:Tn30rSRA1PRfdGB3Yz55W4Sn6EIutr9xtMKSHij+9PM= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA= filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4= @@ -36,6 +36,7 @@ github.com/DataDog/zstd v1.5.7/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwS github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= +github.com/VividCortex/gohistogram v1.0.0 h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE= github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= @@ -117,12 +118,10 @@ github.com/cockroachdb/redact v1.1.6/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZ github.com/cockroachdb/tokenbucket v0.0.0-20250429170803-42689b6311bb h1:3bCgBvB8PbJVMX1ouCcSIxvsqKPYM7gs72o0zC76n9g= github.com/cockroachdb/tokenbucket v0.0.0-20250429170803-42689b6311bb/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ= github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= -github.com/cometbft/cometbft-db v1.0.4 h1:cezb8yx/ZWcF124wqUtAFjAuDksS1y1yXedvtprUFxs= -github.com/cometbft/cometbft-db v1.0.4/go.mod h1:M+BtHAGU2XLrpUxo3Nn1nOCcnVCiLM9yx5OuT0u5SCA= -github.com/cometbft/cometbft/api v1.1.0-rc1 h1:NdlXfp4wialMwJ+1ds1DBtfysdxErUxg8/AaqgT0ifQ= -github.com/cometbft/cometbft/api v1.1.0-rc1/go.mod h1:Ivh6nSCTJPQOyfQo8dgnyu/T88it092sEqSrZSmTQN8= -github.com/cometbft/cometbft/v2 v2.0.0-rc1 h1:3QyDHTFzH3a1N6c2jt03kFDCxM/hgUvhzDYBVnPVXY8= -github.com/cometbft/cometbft/v2 v2.0.0-rc1/go.mod h1:/ze08eO171CqUqTqAE7FW7ydUJIVkgp6e2svpYvIR3c= +github.com/cometbft/cometbft v0.38.18 h1:1ZHYMdu0S75YxFM13LlPXnOwiIpUW5z9TKMQtTIALpw= +github.com/cometbft/cometbft v0.38.18/go.mod h1:PlOQgf3jQorep+g6oVnJgtP65TJvBJoLiXjGaMdNxBE= +github.com/cometbft/cometbft-db v0.14.1 h1:SxoamPghqICBAIcGpleHbmoPqy+crij/++eZz3DlerQ= +github.com/cometbft/cometbft-db v0.14.1/go.mod h1:KHP1YghilyGV/xjD5DP3+2hyigWx0WTp9X+0Gnx0RxQ= github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= @@ -133,8 +132,8 @@ github.com/cosmos/cosmos-db v1.1.3 h1:7QNT77+vkefostcKkhrzDK9uoIEryzFrU9eoMeaQOP github.com/cosmos/cosmos-db v1.1.3/go.mod h1:kN+wGsnwUJZYn8Sy5Q2O0vCYA99MJllkKASbs6Unb9U= github.com/cosmos/cosmos-proto v1.0.0-beta.5 h1:eNcayDLpip+zVLRLYafhzLvQlSmyab+RC5W7ZfmxJLA= github.com/cosmos/cosmos-proto v1.0.0-beta.5/go.mod h1:hQGLpiIUloJBMdQMMWb/4wRApmI9hjHH05nefC0Ojec= -github.com/cosmos/cosmos-sdk v0.54.0-rc.1 h1:hCsF4kJK/iqNDNIXF+bNP72G+Ik2K77TUluWRmsuGSU= -github.com/cosmos/cosmos-sdk v0.54.0-rc.1/go.mod h1:8jH0Q4+2IhIu3kXsGDtIvUZfmeydcvNJxYlOE80ukz4= +github.com/cosmos/cosmos-sdk v0.53.4 h1:kPF6vY68+/xi1/VebSZGpoxQqA52qkhUzqkrgeBn3Mg= +github.com/cosmos/cosmos-sdk v0.53.4/go.mod h1:7U3+WHZtI44dEOnU46+lDzBb2tFh1QlMvi8Z5JugopI= github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY= github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw= github.com/cosmos/gogogateway v1.2.0 h1:Ae/OivNhp8DqBi/sh2A8a1D0y638GpL3tkmLQAiKxTE= @@ -190,8 +189,6 @@ github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.m github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/ethereum/go-ethereum v1.15.5 h1:Fo2TbBWC61lWVkFw9tsMoHCNX1ndpuaQBRJ8H6xLUPo= -github.com/ethereum/go-ethereum v1.15.5/go.mod h1:1LG2LnMOx2yPRHR/S+xuipXH29vPr6BIH6GElD8N/fo= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM= @@ -222,10 +219,16 @@ github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2 github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o= +github.com/go-kit/kit v0.13.0 h1:OoneCcHKHQ03LfBpoQCUfCluwd2Vt3ohz+kvbJneZAU= +github.com/go-kit/kit v0.13.0/go.mod h1:phqEHMMUbyrCFCTgH48JueqrM3md2HcAZ8N3XE4FKDg= github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= +github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU= +github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= +github.com/go-logfmt/logfmt v0.6.0 h1:wGYYu3uicYdqXVgoYbvnkrPVXkuLM1p1ifugDMEdRi4= +github.com/go-logfmt/logfmt v0.6.0/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= @@ -304,7 +307,6 @@ github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= @@ -362,9 +364,8 @@ github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.1 h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE= github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= -github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= @@ -381,8 +382,6 @@ github.com/hashicorp/yamux v0.1.2 h1:XtB8kyFOyHXYVFnwT5C3+Bdo8gArse7j2AQ0DA0Uey8 github.com/hashicorp/yamux v0.1.2/go.mod h1:C+zze2n6e/7wshOZep2A70/aQU6QBRWJO/G6FT1wIns= github.com/hdevalence/ed25519consensus v0.2.0 h1:37ICyZqdyj0lAZ8P4D1d1id3HqbbG1N3iBb1Tb4rdcU= github.com/hdevalence/ed25519consensus v0.2.0/go.mod h1:w3BHWjwJbFU29IRHL1Iqkw3sus+7FctEyM4RqDxYNzo= -github.com/holiman/uint256 v1.3.2 h1:a9EgMPSC1AAaj1SZL5zIQD3WbwTuHrMGOerLjGmM/TA= -github.com/holiman/uint256 v1.3.2/go.mod h1:EOMSn4q6Nyt9P6efbI3bueV4e1b3dGlUCXeiRV4ng7E= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/huandu/go-assert v1.1.5 h1:fjemmA7sSfYHJD7CUqs9qTwwfdNAx7/j2/ZlHXzNB3c= github.com/huandu/go-assert v1.1.5/go.mod h1:yOLvuqZwmcHIC5rIzrBhT7D3Q9c3GFnd0JrPVhn/06U= @@ -444,10 +443,8 @@ github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw= github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM= github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= -github.com/linxGnu/grocksdb v1.10.1 h1:YX6gUcKvSC3d0s9DaqgbU+CRkZHzlELgHu1Z/kmtslg= -github.com/linxGnu/grocksdb v1.10.1/go.mod h1:C3CNe9UYc9hlEM2pC82AqiGS3LRW537u9LFV4wIZuHk= -github.com/lmittmann/tint v1.0.7 h1:D/0OqWZ0YOGZ6AyC+5Y2kD8PBEzBk6rFHVSfOqCkF9Y= -github.com/lmittmann/tint v1.0.7/go.mod h1:HIS3gSy7qNwGCj+5oRjAutErFBl4BzdQP6cJZ0NfMwE= +github.com/linxGnu/grocksdb v1.9.8 h1:vOIKv9/+HKiqJAElJIEYv3ZLcihRxyP7Suu/Mu8Dxjs= +github.com/linxGnu/grocksdb v1.9.8/go.mod h1:C3CNe9UYc9hlEM2pC82AqiGS3LRW537u9LFV4wIZuHk= github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ= github.com/magiconair/properties v1.8.10 h1:s31yESBquKXCV9a/ScB3ESkOjUYYv+X0rg8SYxI99mE= github.com/magiconair/properties v1.8.10/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= @@ -667,8 +664,6 @@ github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= -github.com/supranational/blst v0.3.14 h1:xNMoHRJOTwMn63ip6qoWJ2Ymgvj7E2b9jY2FAwY+qRo= -github.com/supranational/blst v0.3.14/go.mod h1:jZJtfjgudtNl4en1tzwPIV3KjUnQUvG3/j+w+fVonLw= github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d h1:vfofYNRScrDdvS342BElfbETmL1Aiz3i2t0zfRj16Hs= github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d/go.mod h1:RRCYJbIwD5jmqPI9XoAFR0OcDxqUctll6zUj/+B4S48= github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E= @@ -734,6 +729,10 @@ go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= go.uber.org/zap v1.18.1/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8= go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= +go.yaml.in/yaml/v2 v2.4.2 h1:DzmwEr2rDGHl7lsFgAHxmNz/1NlQ7xLIrlN2h5d1eGI= +go.yaml.in/yaml/v2 v2.4.2/go.mod h1:081UH+NErpNdqlCXm3TtEran0rJZGxAYx9hb/ELlsPU= +go.yaml.in/yaml/v3 v3.0.3 h1:bXOww4E/J3f66rav3pX3m8w6jDE4knZjGOw8b5Y6iNE= +go.yaml.in/yaml/v3 v3.0.3/go.mod h1:tBHosrYAkRZjRAOREWbDnBXUf08JOwYq++0QNwQiWzI= golang.org/x/arch v0.17.0 h1:4O3dfLzd+lQewptAHqjewQZQDyEdejz3VwgeYwkZneU= golang.org/x/arch v0.17.0/go.mod h1:bdwinDaKcfZUGpH09BB7ZmOfhalA8lQdzl62l8gGWsk= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= @@ -999,6 +998,6 @@ nullprogram.com/x/optparse v1.0.0/go.mod h1:KdyPE+Igbe0jQUrVfMqDMeJQIJZEuyV7pjYm pgregory.net/rapid v1.2.0 h1:keKAYRcjm+e1F0oAuU5F5+YPAWcyxNNRK2wud503Gnk= pgregory.net/rapid v1.2.0/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= -sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E= -sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY= +sigs.k8s.io/yaml v1.6.0 h1:G8fkbMSAFqgEFgh4b1wmtzDnioxFCUgTZhlbj5P9QYs= +sigs.k8s.io/yaml v1.6.0/go.mod h1:796bPqUfzR/0jLAl6XjHl3Ck7MiyVv8dbTdyT3/pMf4= sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU= diff --git a/tools/confix/go.mod b/tools/confix/go.mod index d4f7f4e389..0067ec5779 100644 --- a/tools/confix/go.mod +++ b/tools/confix/go.mod @@ -3,7 +3,7 @@ module cosmossdk.io/tools/confix go 1.24 require ( - github.com/cosmos/cosmos-sdk v0.54.0-rc.1 + github.com/cosmos/cosmos-sdk v0.53.4 github.com/creachadair/atomicfile v0.3.8 github.com/creachadair/tomledit v0.0.28 github.com/pelletier/go-toml/v2 v2.2.4 @@ -20,19 +20,20 @@ require ( require ( cosmossdk.io/api v1.0.0-rc.1 // indirect cosmossdk.io/collections v1.3.1 // indirect - cosmossdk.io/core v1.1.0-rc.1 // indirect + cosmossdk.io/core v0.11.3 // indirect cosmossdk.io/depinject v1.2.1 // indirect cosmossdk.io/errors v1.0.2 // indirect cosmossdk.io/log v1.6.1 // indirect cosmossdk.io/math v1.5.3 // indirect cosmossdk.io/schema v1.1.0 // indirect - cosmossdk.io/store v1.10.0-rc.2 // indirect - cosmossdk.io/x/tx v1.2.0-rc.1 // indirect + cosmossdk.io/store v1.1.2 // indirect + cosmossdk.io/x/tx v0.14.0 // indirect filippo.io/edwards25519 v1.1.0 // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect github.com/99designs/keyring v1.2.1 // indirect github.com/DataDog/datadog-go v3.2.0+incompatible // indirect github.com/DataDog/zstd v1.5.7 // indirect + github.com/Microsoft/go-winio v0.6.2 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/bgentry/speakeasy v0.2.0 // indirect github.com/bytedance/sonic v1.14.0 // indirect @@ -46,9 +47,8 @@ require ( github.com/cockroachdb/pebble v1.1.5 // indirect github.com/cockroachdb/redact v1.1.6 // indirect github.com/cockroachdb/tokenbucket v0.0.0-20250429170803-42689b6311bb // indirect - github.com/cometbft/cometbft-db v1.0.4 // indirect - github.com/cometbft/cometbft/api v1.1.0-rc1 // indirect - github.com/cometbft/cometbft/v2 v2.0.0-rc1 // indirect + github.com/cometbft/cometbft v0.38.18 // indirect + github.com/cometbft/cometbft-db v0.14.1 // indirect github.com/cosmos/btcutil v1.0.5 // indirect github.com/cosmos/cosmos-db v1.1.3 // indirect github.com/cosmos/cosmos-proto v1.0.0-beta.5 // indirect @@ -67,11 +67,13 @@ require ( github.com/dustin/go-humanize v1.0.1 // indirect github.com/dvsekhvalnov/jose2go v1.8.0 // indirect github.com/emicklei/dot v1.8.0 // indirect - github.com/ethereum/go-ethereum v1.15.5 // indirect github.com/fatih/color v1.18.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.9.0 // indirect github.com/getsentry/sentry-go v0.35.0 // indirect + github.com/go-kit/kit v0.13.0 // indirect + github.com/go-kit/log v0.2.1 // indirect + github.com/go-logfmt/logfmt v0.6.0 // indirect github.com/go-logr/logr v1.4.3 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/go-viper/mapstructure/v2 v2.4.0 // indirect @@ -84,7 +86,6 @@ require ( github.com/google/flatbuffers v25.2.10+incompatible // indirect github.com/google/go-cmp v0.7.0 // indirect github.com/google/orderedcode v0.0.1 // indirect - github.com/google/uuid v1.6.0 // indirect github.com/gorilla/handlers v1.5.2 // indirect github.com/gorilla/mux v1.8.1 // indirect github.com/gorilla/websocket v1.5.3 // indirect @@ -99,7 +100,6 @@ require ( github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect github.com/hashicorp/yamux v0.1.2 // indirect github.com/hdevalence/ed25519consensus v0.2.0 // indirect - github.com/holiman/uint256 v1.3.2 // indirect github.com/huandu/skiplist v1.2.1 // indirect github.com/iancoleman/strcase v0.3.0 // indirect github.com/improbable-eng/grpc-web v0.15.0 // indirect @@ -110,8 +110,7 @@ require ( github.com/kr/pretty v0.3.1 // indirect github.com/kr/text v0.2.0 // indirect github.com/lib/pq v1.10.9 // indirect - github.com/linxGnu/grocksdb v1.10.1 // indirect - github.com/lmittmann/tint v1.0.7 // indirect + github.com/linxGnu/grocksdb v1.9.8 // indirect github.com/mattn/go-colorable v0.1.14 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/minio/highwayhash v1.0.3 // indirect @@ -119,6 +118,7 @@ require ( github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a // indirect github.com/oklog/run v1.1.0 // indirect + github.com/opencontainers/image-spec v1.1.0-rc5 // indirect github.com/petermattis/goid v0.0.0-20240813172612-4fcff4a6cae7 // indirect github.com/pkg/errors v0.9.1 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect @@ -138,7 +138,6 @@ require ( github.com/spf13/pflag v1.0.7 // indirect github.com/stretchr/testify v1.11.1 // indirect github.com/subosito/gotenv v1.6.0 // indirect - github.com/supranational/blst v0.3.14 // indirect github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect github.com/tendermint/go-amino v0.16.0 // indirect github.com/tidwall/btree v1.7.0 // indirect @@ -152,6 +151,7 @@ require ( go.opentelemetry.io/otel/trace v1.37.0 // indirect go.uber.org/mock v0.6.0 // indirect go.uber.org/multierr v1.11.0 // indirect + go.yaml.in/yaml/v2 v2.4.2 // indirect golang.org/x/arch v0.17.0 // indirect golang.org/x/crypto v0.41.0 // indirect golang.org/x/exp v0.0.0-20250506013437-ce4c2cf36ca6 // indirect @@ -168,5 +168,5 @@ require ( gopkg.in/yaml.v3 v3.0.1 // indirect nhooyr.io/websocket v1.8.6 // indirect pgregory.net/rapid v1.2.0 // indirect - sigs.k8s.io/yaml v1.4.0 // indirect + sigs.k8s.io/yaml v1.6.0 // indirect ) diff --git a/tools/confix/go.sum b/tools/confix/go.sum index ccd6cd3ce4..a54a1b5ce3 100644 --- a/tools/confix/go.sum +++ b/tools/confix/go.sum @@ -4,8 +4,8 @@ cosmossdk.io/api v1.0.0-rc.1 h1:KwZHIMveoeg6YVwvKZxJLp7be5uk6qmnqNAar2tPxVU= cosmossdk.io/api v1.0.0-rc.1/go.mod h1:8YOT+XjVFb9eZJk62YqjFILOm8MlLhbnkC9/jxIYri8= cosmossdk.io/collections v1.3.1 h1:09e+DUId2brWsNOQ4nrk+bprVmMUaDH9xvtZkeqIjVw= cosmossdk.io/collections v1.3.1/go.mod h1:ynvkP0r5ruAjbmedE+vQ07MT6OtJ0ZIDKrtJHK7Q/4c= -cosmossdk.io/core v1.1.0-rc.1 h1:VhF5xd4uJZt/lQzbl8qT1W3Pcrklp4RSnugcWQZyf5M= -cosmossdk.io/core v1.1.0-rc.1/go.mod h1:fKHIWVYfPCC4tto9eoYFZC/yAWFlWw2mz8YgSYvjnUs= +cosmossdk.io/core v0.11.3 h1:mei+MVDJOwIjIniaKelE3jPDqShCc/F4LkNNHh+4yfo= +cosmossdk.io/core v0.11.3/go.mod h1:9rL4RE1uDt5AJ4Tg55sYyHWXA16VmpHgbe0PbJc6N2Y= cosmossdk.io/depinject v1.2.1 h1:eD6FxkIjlVaNZT+dXTQuwQTKZrFZ4UrfCq1RKgzyhMw= cosmossdk.io/depinject v1.2.1/go.mod h1:lqQEycz0H2JXqvOgVwTsjEdMI0plswI7p6KX+MVqFOM= cosmossdk.io/errors v1.0.2 h1:wcYiJz08HThbWxd/L4jObeLaLySopyyuUFB5w4AGpCo= @@ -16,10 +16,10 @@ cosmossdk.io/math v1.5.3 h1:WH6tu6Z3AUCeHbeOSHg2mt9rnoiUWVWaQ2t6Gkll96U= cosmossdk.io/math v1.5.3/go.mod h1:uqcZv7vexnhMFJF+6zh9EWdm/+Ylyln34IvPnBauPCQ= cosmossdk.io/schema v1.1.0 h1:mmpuz3dzouCoyjjcMcA/xHBEmMChN+EHh8EHxHRHhzE= cosmossdk.io/schema v1.1.0/go.mod h1:Gb7pqO+tpR+jLW5qDcNOSv0KtppYs7881kfzakguhhI= -cosmossdk.io/store v1.10.0-rc.2 h1:7ze2UoheVTVMK4ElHtoRhYv8nlUImj34e4yp1yy1bgE= -cosmossdk.io/store v1.10.0-rc.2/go.mod h1:3p1IV4EGsULFfeyAcfj7/DBcDsy8d3VlYIEJnhhbP3U= -cosmossdk.io/x/tx v1.2.0-rc.1 h1:AartiA6eiTD9KHmnlj3uG3H8FjyjI0qNkmvmU+p6cJ8= -cosmossdk.io/x/tx v1.2.0-rc.1/go.mod h1:UzpMTUmQEFfz+m0E+lhzFIiEhtZCHjScU/NC652DBHI= +cosmossdk.io/store v1.1.2 h1:3HOZG8+CuThREKv6cn3WSohAc6yccxO3hLzwK6rBC7o= +cosmossdk.io/store v1.1.2/go.mod h1:60rAGzTHevGm592kFhiUVkNC9w7gooSEn5iUBPzHQ6A= +cosmossdk.io/x/tx v0.14.0 h1:hB3O25kIcyDW/7kMTLMaO8Ripj3yqs5imceVd6c/heA= +cosmossdk.io/x/tx v0.14.0/go.mod h1:Tn30rSRA1PRfdGB3Yz55W4Sn6EIutr9xtMKSHij+9PM= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA= filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4= @@ -42,6 +42,7 @@ github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 h1:TngWCqHvy9oXAN6lEV github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5/go.mod h1:lmUJ/7eu/Q8D7ML55dXQrVaamCz2vxCfdQBasLZfHKk= github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= +github.com/VividCortex/gohistogram v1.0.0 h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE= github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= github.com/adlio/schema v1.3.6 h1:k1/zc2jNfeiZBA5aFTRy37jlBIuCkXCm0XmvpzCKI9I= github.com/adlio/schema v1.3.6/go.mod h1:qkxwLgPBd1FgLRHYVCmQT/rrBr3JH38J9LjmVzWNudg= @@ -130,12 +131,10 @@ github.com/cockroachdb/redact v1.1.6/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZ github.com/cockroachdb/tokenbucket v0.0.0-20250429170803-42689b6311bb h1:3bCgBvB8PbJVMX1ouCcSIxvsqKPYM7gs72o0zC76n9g= github.com/cockroachdb/tokenbucket v0.0.0-20250429170803-42689b6311bb/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ= github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= -github.com/cometbft/cometbft-db v1.0.4 h1:cezb8yx/ZWcF124wqUtAFjAuDksS1y1yXedvtprUFxs= -github.com/cometbft/cometbft-db v1.0.4/go.mod h1:M+BtHAGU2XLrpUxo3Nn1nOCcnVCiLM9yx5OuT0u5SCA= -github.com/cometbft/cometbft/api v1.1.0-rc1 h1:NdlXfp4wialMwJ+1ds1DBtfysdxErUxg8/AaqgT0ifQ= -github.com/cometbft/cometbft/api v1.1.0-rc1/go.mod h1:Ivh6nSCTJPQOyfQo8dgnyu/T88it092sEqSrZSmTQN8= -github.com/cometbft/cometbft/v2 v2.0.0-rc1 h1:3QyDHTFzH3a1N6c2jt03kFDCxM/hgUvhzDYBVnPVXY8= -github.com/cometbft/cometbft/v2 v2.0.0-rc1/go.mod h1:/ze08eO171CqUqTqAE7FW7ydUJIVkgp6e2svpYvIR3c= +github.com/cometbft/cometbft v0.38.18 h1:1ZHYMdu0S75YxFM13LlPXnOwiIpUW5z9TKMQtTIALpw= +github.com/cometbft/cometbft v0.38.18/go.mod h1:PlOQgf3jQorep+g6oVnJgtP65TJvBJoLiXjGaMdNxBE= +github.com/cometbft/cometbft-db v0.14.1 h1:SxoamPghqICBAIcGpleHbmoPqy+crij/++eZz3DlerQ= +github.com/cometbft/cometbft-db v0.14.1/go.mod h1:KHP1YghilyGV/xjD5DP3+2hyigWx0WTp9X+0Gnx0RxQ= github.com/containerd/continuity v0.3.0 h1:nisirsYROK15TAMVukJOUyGJjz4BNQJBVsNvAXZJ/eg= github.com/containerd/continuity v0.3.0/go.mod h1:wJEAIwKOm/pBZuBd0JmeTvnLquTB1Ag8espWhkykbPM= github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= @@ -148,8 +147,8 @@ github.com/cosmos/cosmos-db v1.1.3 h1:7QNT77+vkefostcKkhrzDK9uoIEryzFrU9eoMeaQOP github.com/cosmos/cosmos-db v1.1.3/go.mod h1:kN+wGsnwUJZYn8Sy5Q2O0vCYA99MJllkKASbs6Unb9U= github.com/cosmos/cosmos-proto v1.0.0-beta.5 h1:eNcayDLpip+zVLRLYafhzLvQlSmyab+RC5W7ZfmxJLA= github.com/cosmos/cosmos-proto v1.0.0-beta.5/go.mod h1:hQGLpiIUloJBMdQMMWb/4wRApmI9hjHH05nefC0Ojec= -github.com/cosmos/cosmos-sdk v0.54.0-rc.1 h1:hCsF4kJK/iqNDNIXF+bNP72G+Ik2K77TUluWRmsuGSU= -github.com/cosmos/cosmos-sdk v0.54.0-rc.1/go.mod h1:8jH0Q4+2IhIu3kXsGDtIvUZfmeydcvNJxYlOE80ukz4= +github.com/cosmos/cosmos-sdk v0.53.4 h1:kPF6vY68+/xi1/VebSZGpoxQqA52qkhUzqkrgeBn3Mg= +github.com/cosmos/cosmos-sdk v0.53.4/go.mod h1:7U3+WHZtI44dEOnU46+lDzBb2tFh1QlMvi8Z5JugopI= github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY= github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw= github.com/cosmos/gogogateway v1.2.0 h1:Ae/OivNhp8DqBi/sh2A8a1D0y638GpL3tkmLQAiKxTE= @@ -215,8 +214,6 @@ github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.m github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/ethereum/go-ethereum v1.15.5 h1:Fo2TbBWC61lWVkFw9tsMoHCNX1ndpuaQBRJ8H6xLUPo= -github.com/ethereum/go-ethereum v1.15.5/go.mod h1:1LG2LnMOx2yPRHR/S+xuipXH29vPr6BIH6GElD8N/fo= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM= @@ -247,10 +244,16 @@ github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2 github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o= +github.com/go-kit/kit v0.13.0 h1:OoneCcHKHQ03LfBpoQCUfCluwd2Vt3ohz+kvbJneZAU= +github.com/go-kit/kit v0.13.0/go.mod h1:phqEHMMUbyrCFCTgH48JueqrM3md2HcAZ8N3XE4FKDg= github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= +github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU= +github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= +github.com/go-logfmt/logfmt v0.6.0 h1:wGYYu3uicYdqXVgoYbvnkrPVXkuLM1p1ifugDMEdRi4= +github.com/go-logfmt/logfmt v0.6.0/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= @@ -329,7 +332,6 @@ github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= @@ -387,9 +389,8 @@ github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.1 h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE= github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= -github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= @@ -406,8 +407,6 @@ github.com/hashicorp/yamux v0.1.2 h1:XtB8kyFOyHXYVFnwT5C3+Bdo8gArse7j2AQ0DA0Uey8 github.com/hashicorp/yamux v0.1.2/go.mod h1:C+zze2n6e/7wshOZep2A70/aQU6QBRWJO/G6FT1wIns= github.com/hdevalence/ed25519consensus v0.2.0 h1:37ICyZqdyj0lAZ8P4D1d1id3HqbbG1N3iBb1Tb4rdcU= github.com/hdevalence/ed25519consensus v0.2.0/go.mod h1:w3BHWjwJbFU29IRHL1Iqkw3sus+7FctEyM4RqDxYNzo= -github.com/holiman/uint256 v1.3.2 h1:a9EgMPSC1AAaj1SZL5zIQD3WbwTuHrMGOerLjGmM/TA= -github.com/holiman/uint256 v1.3.2/go.mod h1:EOMSn4q6Nyt9P6efbI3bueV4e1b3dGlUCXeiRV4ng7E= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/huandu/go-assert v1.1.5 h1:fjemmA7sSfYHJD7CUqs9qTwwfdNAx7/j2/ZlHXzNB3c= github.com/huandu/go-assert v1.1.5/go.mod h1:yOLvuqZwmcHIC5rIzrBhT7D3Q9c3GFnd0JrPVhn/06U= @@ -471,10 +470,8 @@ github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw= github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM= github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= -github.com/linxGnu/grocksdb v1.10.1 h1:YX6gUcKvSC3d0s9DaqgbU+CRkZHzlELgHu1Z/kmtslg= -github.com/linxGnu/grocksdb v1.10.1/go.mod h1:C3CNe9UYc9hlEM2pC82AqiGS3LRW537u9LFV4wIZuHk= -github.com/lmittmann/tint v1.0.7 h1:D/0OqWZ0YOGZ6AyC+5Y2kD8PBEzBk6rFHVSfOqCkF9Y= -github.com/lmittmann/tint v1.0.7/go.mod h1:HIS3gSy7qNwGCj+5oRjAutErFBl4BzdQP6cJZ0NfMwE= +github.com/linxGnu/grocksdb v1.9.8 h1:vOIKv9/+HKiqJAElJIEYv3ZLcihRxyP7Suu/Mu8Dxjs= +github.com/linxGnu/grocksdb v1.9.8/go.mod h1:C3CNe9UYc9hlEM2pC82AqiGS3LRW537u9LFV4wIZuHk= github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ= github.com/magiconair/properties v1.8.10 h1:s31yESBquKXCV9a/ScB3ESkOjUYYv+X0rg8SYxI99mE= github.com/magiconair/properties v1.8.10/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= @@ -704,8 +701,6 @@ github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= -github.com/supranational/blst v0.3.14 h1:xNMoHRJOTwMn63ip6qoWJ2Ymgvj7E2b9jY2FAwY+qRo= -github.com/supranational/blst v0.3.14/go.mod h1:jZJtfjgudtNl4en1tzwPIV3KjUnQUvG3/j+w+fVonLw= github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d h1:vfofYNRScrDdvS342BElfbETmL1Aiz3i2t0zfRj16Hs= github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d/go.mod h1:RRCYJbIwD5jmqPI9XoAFR0OcDxqUctll6zUj/+B4S48= github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E= @@ -769,6 +764,10 @@ go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9E go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= go.uber.org/zap v1.18.1/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= +go.yaml.in/yaml/v2 v2.4.2 h1:DzmwEr2rDGHl7lsFgAHxmNz/1NlQ7xLIrlN2h5d1eGI= +go.yaml.in/yaml/v2 v2.4.2/go.mod h1:081UH+NErpNdqlCXm3TtEran0rJZGxAYx9hb/ELlsPU= +go.yaml.in/yaml/v3 v3.0.3 h1:bXOww4E/J3f66rav3pX3m8w6jDE4knZjGOw8b5Y6iNE= +go.yaml.in/yaml/v3 v3.0.3/go.mod h1:tBHosrYAkRZjRAOREWbDnBXUf08JOwYq++0QNwQiWzI= go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8= go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= golang.org/x/arch v0.17.0 h1:4O3dfLzd+lQewptAHqjewQZQDyEdejz3VwgeYwkZneU= @@ -1037,6 +1036,6 @@ nullprogram.com/x/optparse v1.0.0/go.mod h1:KdyPE+Igbe0jQUrVfMqDMeJQIJZEuyV7pjYm pgregory.net/rapid v1.2.0 h1:keKAYRcjm+e1F0oAuU5F5+YPAWcyxNNRK2wud503Gnk= pgregory.net/rapid v1.2.0/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= -sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E= -sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY= +sigs.k8s.io/yaml v1.6.0 h1:G8fkbMSAFqgEFgh4b1wmtzDnioxFCUgTZhlbj5P9QYs= +sigs.k8s.io/yaml v1.6.0/go.mod h1:796bPqUfzR/0jLAl6XjHl3Ck7MiyVv8dbTdyT3/pMf4= sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU= diff --git a/tools/cosmovisor/args.go b/tools/cosmovisor/args.go index 393d4cfaf5..0402dfc5dc 100644 --- a/tools/cosmovisor/args.go +++ b/tools/cosmovisor/args.go @@ -16,9 +16,8 @@ import ( "github.com/spf13/viper" "cosmossdk.io/log" - - "github.com/cosmos/cosmos-sdk/x/upgrade/plan" - upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" + "cosmossdk.io/x/upgrade/plan" + upgradetypes "cosmossdk.io/x/upgrade/types" ) // environment variable names diff --git a/tools/cosmovisor/args_test.go b/tools/cosmovisor/args_test.go index d257beb1e8..b784930ca5 100644 --- a/tools/cosmovisor/args_test.go +++ b/tools/cosmovisor/args_test.go @@ -12,7 +12,7 @@ import ( "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" - "github.com/cosmos/cosmos-sdk/x/upgrade/plan" + "cosmossdk.io/x/upgrade/plan" ) type argsTestSuite struct { diff --git a/tools/cosmovisor/cmd/cosmovisor/add_upgrade.go b/tools/cosmovisor/cmd/cosmovisor/add_upgrade.go index 742b53ca5c..3832efa05e 100644 --- a/tools/cosmovisor/cmd/cosmovisor/add_upgrade.go +++ b/tools/cosmovisor/cmd/cosmovisor/add_upgrade.go @@ -10,8 +10,7 @@ import ( "github.com/spf13/cobra" "cosmossdk.io/tools/cosmovisor" - - upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" + upgradetypes "cosmossdk.io/x/upgrade/types" ) func NewAddUpgradeCmd() *cobra.Command { diff --git a/tools/cosmovisor/cmd/cosmovisor/init.go b/tools/cosmovisor/cmd/cosmovisor/init.go index 15b364ce8d..736ce90572 100644 --- a/tools/cosmovisor/cmd/cosmovisor/init.go +++ b/tools/cosmovisor/cmd/cosmovisor/init.go @@ -11,8 +11,7 @@ import ( "cosmossdk.io/log" "cosmossdk.io/tools/cosmovisor" - - "github.com/cosmos/cosmos-sdk/x/upgrade/plan" + "cosmossdk.io/x/upgrade/plan" ) func NewInitCmd() *cobra.Command { diff --git a/tools/cosmovisor/cmd/cosmovisor/prepare_upgrade.go b/tools/cosmovisor/cmd/cosmovisor/prepare_upgrade.go index b138fb271a..f3a5acc071 100644 --- a/tools/cosmovisor/cmd/cosmovisor/prepare_upgrade.go +++ b/tools/cosmovisor/cmd/cosmovisor/prepare_upgrade.go @@ -13,9 +13,8 @@ import ( "google.golang.org/grpc/credentials/insecure" "cosmossdk.io/tools/cosmovisor" - - "github.com/cosmos/cosmos-sdk/x/upgrade/plan" - upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" + "cosmossdk.io/x/upgrade/plan" + upgradetypes "cosmossdk.io/x/upgrade/types" ) func NewPrepareUpgradeCmd() *cobra.Command { diff --git a/tools/cosmovisor/go.mod b/tools/cosmovisor/go.mod index 921427cf82..3df463ffce 100644 --- a/tools/cosmovisor/go.mod +++ b/tools/cosmovisor/go.mod @@ -1,12 +1,13 @@ module cosmossdk.io/tools/cosmovisor -go 1.24 +go 1.23.2 require ( cosmossdk.io/log v1.6.1 - github.com/cometbft/cometbft-db v1.0.4 - github.com/cometbft/cometbft/v2 v2.0.0-rc1 - github.com/cosmos/cosmos-sdk v0.54.0-rc.1 + cosmossdk.io/x/upgrade v0.2.0 + github.com/cometbft/cometbft v0.38.18 + github.com/cometbft/cometbft-db v0.14.1 + github.com/cosmos/cosmos-sdk v0.53.4 github.com/fsnotify/fsnotify v1.9.0 github.com/otiai10/copy v1.14.1 github.com/pelletier/go-toml/v2 v2.2.4 @@ -25,15 +26,15 @@ require ( cloud.google.com/go/iam v1.5.2 // indirect cloud.google.com/go/monitoring v1.24.2 // indirect cloud.google.com/go/storage v1.50.0 // indirect - cosmossdk.io/api v1.0.0-rc.1 // indirect - cosmossdk.io/collections v1.3.1 // indirect - cosmossdk.io/core v1.1.0-rc.1 // indirect + cosmossdk.io/api v0.9.2 // indirect + cosmossdk.io/collections v1.2.1 // indirect + cosmossdk.io/core v0.11.3 // indirect cosmossdk.io/depinject v1.2.1 // indirect cosmossdk.io/errors v1.0.2 // indirect cosmossdk.io/math v1.5.3 // indirect cosmossdk.io/schema v1.1.0 // indirect - cosmossdk.io/store v1.10.0-rc.2 // indirect - cosmossdk.io/x/tx v1.2.0-rc.1 // indirect + cosmossdk.io/store v1.1.2 // indirect + cosmossdk.io/x/tx v0.14.0 // indirect filippo.io/edwards25519 v1.1.0 // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect github.com/99designs/keyring v1.2.2 // indirect @@ -58,45 +59,46 @@ require ( github.com/cockroachdb/logtags v0.0.0-20241215232642-bb51bb14a506 // indirect github.com/cockroachdb/pebble v1.1.5 // indirect github.com/cockroachdb/redact v1.1.6 // indirect - github.com/cockroachdb/tokenbucket v0.0.0-20250429170803-42689b6311bb // indirect - github.com/cometbft/cometbft/api v1.1.0-rc1 // indirect + github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect github.com/cosmos/btcutil v1.0.5 // indirect - github.com/cosmos/cosmos-db v1.1.3 // indirect + github.com/cosmos/cosmos-db v1.1.1 // indirect github.com/cosmos/cosmos-proto v1.0.0-beta.5 // indirect github.com/cosmos/go-bip39 v1.0.0 // indirect github.com/cosmos/gogogateway v1.2.0 // indirect github.com/cosmos/gogoproto v1.7.0 // indirect - github.com/cosmos/iavl v1.2.6 // indirect + github.com/cosmos/iavl v1.2.2 // indirect github.com/cosmos/ics23/go v0.11.0 // indirect github.com/cosmos/ledger-cosmos-go v0.16.0 // indirect github.com/danieljoos/wincred v1.2.1 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0 // indirect github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect - github.com/dgraph-io/badger/v4 v4.6.0 // indirect - github.com/dgraph-io/ristretto/v2 v2.1.0 // indirect + github.com/dgraph-io/badger/v4 v4.2.0 // indirect + github.com/dgraph-io/ristretto v0.2.0 // indirect github.com/dustin/go-humanize v1.0.1 // indirect github.com/dvsekhvalnov/jose2go v1.7.0 // indirect - github.com/emicklei/dot v1.8.0 // indirect + github.com/emicklei/dot v1.6.2 // indirect github.com/envoyproxy/go-control-plane/envoy v1.32.4 // indirect github.com/envoyproxy/protoc-gen-validate v1.2.1 // indirect - github.com/ethereum/go-ethereum v1.15.5 // indirect github.com/fatih/color v1.18.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/getsentry/sentry-go v0.35.0 // indirect github.com/go-jose/go-jose/v4 v4.1.1 // indirect + github.com/go-kit/kit v0.13.0 // indirect + github.com/go-kit/log v0.2.1 // indirect + github.com/go-logfmt/logfmt v0.6.0 // indirect github.com/go-logr/logr v1.4.3 // indirect github.com/go-logr/stdr v1.2.2 // indirect - github.com/go-viper/mapstructure/v2 v2.4.0 // indirect + github.com/go-viper/mapstructure/v2 v2.3.0 // indirect github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/gogo/googleapis v1.4.1 // indirect github.com/gogo/protobuf v1.3.2 // indirect + github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect github.com/golang/protobuf v1.5.4 // indirect - github.com/golang/snappy v1.0.0 // indirect + github.com/golang/snappy v0.0.4 // indirect github.com/google/btree v1.1.3 // indirect - github.com/google/flatbuffers v25.2.10+incompatible // indirect + github.com/google/flatbuffers v24.3.25+incompatible // indirect github.com/google/go-cmp v0.7.0 // indirect - github.com/google/orderedcode v0.0.1 // indirect github.com/google/s2a-go v0.1.9 // indirect github.com/google/uuid v1.6.0 // indirect github.com/googleapis/enterprise-certificate-proxy v0.3.6 // indirect @@ -112,14 +114,13 @@ require ( github.com/hashicorp/go-hclog v1.6.3 // indirect github.com/hashicorp/go-immutable-radix v1.3.1 // indirect github.com/hashicorp/go-metrics v0.5.4 // indirect - github.com/hashicorp/go-plugin v1.7.0 // indirect + github.com/hashicorp/go-plugin v1.6.3 // indirect github.com/hashicorp/go-safetemp v1.0.0 // indirect github.com/hashicorp/go-version v1.7.0 // indirect github.com/hashicorp/golang-lru v1.0.2 // indirect github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect github.com/hashicorp/yamux v0.1.2 // indirect github.com/hdevalence/ed25519consensus v0.2.0 // indirect - github.com/holiman/uint256 v1.3.2 // indirect github.com/huandu/skiplist v1.2.1 // indirect github.com/iancoleman/strcase v0.3.0 // indirect github.com/improbable-eng/grpc-web v0.15.0 // indirect @@ -130,8 +131,7 @@ require ( github.com/klauspost/cpuid/v2 v2.2.10 // indirect github.com/kr/pretty v0.3.1 // indirect github.com/kr/text v0.2.0 // indirect - github.com/linxGnu/grocksdb v1.10.1 // indirect - github.com/lmittmann/tint v1.0.7 // indirect + github.com/linxGnu/grocksdb v1.9.7 // indirect github.com/mattn/go-colorable v0.1.14 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/mitchellh/go-homedir v1.1.0 // indirect @@ -160,7 +160,6 @@ require ( github.com/spf13/pflag v1.0.7 // indirect github.com/spiffe/go-spiffe/v2 v2.5.0 // indirect github.com/subosito/gotenv v1.6.0 // indirect - github.com/supranational/blst v0.3.14 // indirect github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect github.com/tendermint/go-amino v0.16.0 // indirect github.com/tidwall/btree v1.7.0 // indirect @@ -171,6 +170,7 @@ require ( github.com/zondax/hid v0.9.2 // indirect github.com/zondax/ledger-go v1.0.1 // indirect go.etcd.io/bbolt v1.4.0 // indirect + go.opencensus.io v0.24.0 // indirect go.opentelemetry.io/auto/sdk v1.1.0 // indirect go.opentelemetry.io/contrib/detectors/gcp v1.36.0 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.61.0 // indirect @@ -182,6 +182,7 @@ require ( go.opentelemetry.io/otel/trace v1.37.0 // indirect go.uber.org/multierr v1.11.0 // indirect go.uber.org/zap v1.27.0 // indirect + go.yaml.in/yaml/v2 v2.4.2 // indirect golang.org/x/arch v0.17.0 // indirect golang.org/x/crypto v0.41.0 // indirect golang.org/x/exp v0.0.0-20250506013437-ce4c2cf36ca6 // indirect @@ -201,5 +202,5 @@ require ( gotest.tools/v3 v3.5.2 // indirect nhooyr.io/websocket v1.8.11 // indirect pgregory.net/rapid v1.2.0 // indirect - sigs.k8s.io/yaml v1.4.0 // indirect + sigs.k8s.io/yaml v1.6.0 // indirect ) diff --git a/tools/cosmovisor/go.sum b/tools/cosmovisor/go.sum index 93754233b7..d36df3174b 100644 --- a/tools/cosmovisor/go.sum +++ b/tools/cosmovisor/go.sum @@ -614,12 +614,12 @@ cloud.google.com/go/workflows v1.7.0/go.mod h1:JhSrZuVZWuiDfKEFxU0/F1PQjmpnpcoIS cloud.google.com/go/workflows v1.8.0/go.mod h1:ysGhmEajwZxGn1OhGOGKsTXc5PyxOc0vfKf5Af+to4M= cloud.google.com/go/workflows v1.9.0/go.mod h1:ZGkj1aFIOd9c8Gerkjjq7OW7I5+l6cSvT3ujaO/WwSA= cloud.google.com/go/workflows v1.10.0/go.mod h1:fZ8LmRmZQWacon9UCX1r/g/DfAXx5VcPALq2CxzdePw= -cosmossdk.io/api v1.0.0-rc.1 h1:KwZHIMveoeg6YVwvKZxJLp7be5uk6qmnqNAar2tPxVU= -cosmossdk.io/api v1.0.0-rc.1/go.mod h1:8YOT+XjVFb9eZJk62YqjFILOm8MlLhbnkC9/jxIYri8= -cosmossdk.io/collections v1.3.1 h1:09e+DUId2brWsNOQ4nrk+bprVmMUaDH9xvtZkeqIjVw= -cosmossdk.io/collections v1.3.1/go.mod h1:ynvkP0r5ruAjbmedE+vQ07MT6OtJ0ZIDKrtJHK7Q/4c= -cosmossdk.io/core v1.1.0-rc.1 h1:VhF5xd4uJZt/lQzbl8qT1W3Pcrklp4RSnugcWQZyf5M= -cosmossdk.io/core v1.1.0-rc.1/go.mod h1:fKHIWVYfPCC4tto9eoYFZC/yAWFlWw2mz8YgSYvjnUs= +cosmossdk.io/api v0.9.2 h1:9i9ptOBdmoIEVEVWLtYYHjxZonlF/aOVODLFaxpmNtg= +cosmossdk.io/api v0.9.2/go.mod h1:CWt31nVohvoPMTlPv+mMNCtC0a7BqRdESjCsstHcTkU= +cosmossdk.io/collections v1.2.1 h1:mAlNMs5vJwkda4TA+k5q/43p24RVAQ/qyDrjANu3BXE= +cosmossdk.io/collections v1.2.1/go.mod h1:PSsEJ/fqny0VPsHLFT6gXDj/2C1tBOTS9eByK0+PBFU= +cosmossdk.io/core v0.11.3 h1:mei+MVDJOwIjIniaKelE3jPDqShCc/F4LkNNHh+4yfo= +cosmossdk.io/core v0.11.3/go.mod h1:9rL4RE1uDt5AJ4Tg55sYyHWXA16VmpHgbe0PbJc6N2Y= cosmossdk.io/depinject v1.2.1 h1:eD6FxkIjlVaNZT+dXTQuwQTKZrFZ4UrfCq1RKgzyhMw= cosmossdk.io/depinject v1.2.1/go.mod h1:lqQEycz0H2JXqvOgVwTsjEdMI0plswI7p6KX+MVqFOM= cosmossdk.io/errors v1.0.2 h1:wcYiJz08HThbWxd/L4jObeLaLySopyyuUFB5w4AGpCo= @@ -630,10 +630,12 @@ cosmossdk.io/math v1.5.3 h1:WH6tu6Z3AUCeHbeOSHg2mt9rnoiUWVWaQ2t6Gkll96U= cosmossdk.io/math v1.5.3/go.mod h1:uqcZv7vexnhMFJF+6zh9EWdm/+Ylyln34IvPnBauPCQ= cosmossdk.io/schema v1.1.0 h1:mmpuz3dzouCoyjjcMcA/xHBEmMChN+EHh8EHxHRHhzE= cosmossdk.io/schema v1.1.0/go.mod h1:Gb7pqO+tpR+jLW5qDcNOSv0KtppYs7881kfzakguhhI= -cosmossdk.io/store v1.10.0-rc.2 h1:7ze2UoheVTVMK4ElHtoRhYv8nlUImj34e4yp1yy1bgE= -cosmossdk.io/store v1.10.0-rc.2/go.mod h1:3p1IV4EGsULFfeyAcfj7/DBcDsy8d3VlYIEJnhhbP3U= -cosmossdk.io/x/tx v1.2.0-rc.1 h1:AartiA6eiTD9KHmnlj3uG3H8FjyjI0qNkmvmU+p6cJ8= -cosmossdk.io/x/tx v1.2.0-rc.1/go.mod h1:UzpMTUmQEFfz+m0E+lhzFIiEhtZCHjScU/NC652DBHI= +cosmossdk.io/store v1.1.2 h1:3HOZG8+CuThREKv6cn3WSohAc6yccxO3hLzwK6rBC7o= +cosmossdk.io/store v1.1.2/go.mod h1:60rAGzTHevGm592kFhiUVkNC9w7gooSEn5iUBPzHQ6A= +cosmossdk.io/x/tx v0.14.0 h1:hB3O25kIcyDW/7kMTLMaO8Ripj3yqs5imceVd6c/heA= +cosmossdk.io/x/tx v0.14.0/go.mod h1:Tn30rSRA1PRfdGB3Yz55W4Sn6EIutr9xtMKSHij+9PM= +cosmossdk.io/x/upgrade v0.2.0 h1:ZHy0xny3wBCSLomyhE06+UmQHWO8cYlVYjfFAJxjz5g= +cosmossdk.io/x/upgrade v0.2.0/go.mod h1:DXDtkvi//TrFyHWSOaeCZGBoiGAE6Rs8/0ABt2pcDD0= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA= filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4= @@ -665,6 +667,7 @@ github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= +github.com/VividCortex/gohistogram v1.0.0 h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE= github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c= github.com/ajstarks/deck v0.0.0-20200831202436-30c9fc6549a9/go.mod h1:JynElWSGnm/4RlzPXRlREEwqTHAN3T56Bv2ITsFT3gY= @@ -773,27 +776,25 @@ github.com/cockroachdb/pebble v1.1.5 h1:5AAWCBWbat0uE0blr8qzufZP5tBjkRyy/jWe1QWL github.com/cockroachdb/pebble v1.1.5/go.mod h1:17wO9el1YEigxkP/YtV8NtCivQDgoCyBg5c4VR/eOWo= github.com/cockroachdb/redact v1.1.6 h1:zXJBwDZ84xJNlHl1rMyCojqyIxv+7YUpQiJLQ7n4314= github.com/cockroachdb/redact v1.1.6/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg= -github.com/cockroachdb/tokenbucket v0.0.0-20250429170803-42689b6311bb h1:3bCgBvB8PbJVMX1ouCcSIxvsqKPYM7gs72o0zC76n9g= -github.com/cockroachdb/tokenbucket v0.0.0-20250429170803-42689b6311bb/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ= +github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 h1:zuQyyAKVxetITBuuhv3BI9cMrmStnpT18zmgmTxunpo= +github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ= github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= -github.com/cometbft/cometbft-db v1.0.4 h1:cezb8yx/ZWcF124wqUtAFjAuDksS1y1yXedvtprUFxs= -github.com/cometbft/cometbft-db v1.0.4/go.mod h1:M+BtHAGU2XLrpUxo3Nn1nOCcnVCiLM9yx5OuT0u5SCA= -github.com/cometbft/cometbft/api v1.1.0-rc1 h1:NdlXfp4wialMwJ+1ds1DBtfysdxErUxg8/AaqgT0ifQ= -github.com/cometbft/cometbft/api v1.1.0-rc1/go.mod h1:Ivh6nSCTJPQOyfQo8dgnyu/T88it092sEqSrZSmTQN8= -github.com/cometbft/cometbft/v2 v2.0.0-rc1 h1:3QyDHTFzH3a1N6c2jt03kFDCxM/hgUvhzDYBVnPVXY8= -github.com/cometbft/cometbft/v2 v2.0.0-rc1/go.mod h1:/ze08eO171CqUqTqAE7FW7ydUJIVkgp6e2svpYvIR3c= +github.com/cometbft/cometbft v0.38.18 h1:1ZHYMdu0S75YxFM13LlPXnOwiIpUW5z9TKMQtTIALpw= +github.com/cometbft/cometbft v0.38.18/go.mod h1:PlOQgf3jQorep+g6oVnJgtP65TJvBJoLiXjGaMdNxBE= +github.com/cometbft/cometbft-db v0.14.1 h1:SxoamPghqICBAIcGpleHbmoPqy+crij/++eZz3DlerQ= +github.com/cometbft/cometbft-db v0.14.1/go.mod h1:KHP1YghilyGV/xjD5DP3+2hyigWx0WTp9X+0Gnx0RxQ= github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= github.com/cosmos/btcutil v1.0.5 h1:t+ZFcX77LpKtDBhjucvnOH8C2l2ioGsBNEQ3jef8xFk= github.com/cosmos/btcutil v1.0.5/go.mod h1:IyB7iuqZMJlthe2tkIFL33xPyzbFYP0XVdS8P5lUPis= -github.com/cosmos/cosmos-db v1.1.3 h1:7QNT77+vkefostcKkhrzDK9uoIEryzFrU9eoMeaQOPY= -github.com/cosmos/cosmos-db v1.1.3/go.mod h1:kN+wGsnwUJZYn8Sy5Q2O0vCYA99MJllkKASbs6Unb9U= +github.com/cosmos/cosmos-db v1.1.1 h1:FezFSU37AlBC8S98NlSagL76oqBRWq/prTPvFcEJNCM= +github.com/cosmos/cosmos-db v1.1.1/go.mod h1:AghjcIPqdhSLP/2Z0yha5xPH3nLnskz81pBx3tcVSAw= github.com/cosmos/cosmos-proto v1.0.0-beta.5 h1:eNcayDLpip+zVLRLYafhzLvQlSmyab+RC5W7ZfmxJLA= github.com/cosmos/cosmos-proto v1.0.0-beta.5/go.mod h1:hQGLpiIUloJBMdQMMWb/4wRApmI9hjHH05nefC0Ojec= -github.com/cosmos/cosmos-sdk v0.54.0-rc.1 h1:hCsF4kJK/iqNDNIXF+bNP72G+Ik2K77TUluWRmsuGSU= -github.com/cosmos/cosmos-sdk v0.54.0-rc.1/go.mod h1:8jH0Q4+2IhIu3kXsGDtIvUZfmeydcvNJxYlOE80ukz4= +github.com/cosmos/cosmos-sdk v0.53.4 h1:kPF6vY68+/xi1/VebSZGpoxQqA52qkhUzqkrgeBn3Mg= +github.com/cosmos/cosmos-sdk v0.53.4/go.mod h1:7U3+WHZtI44dEOnU46+lDzBb2tFh1QlMvi8Z5JugopI= github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY= github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw= github.com/cosmos/gogogateway v1.2.0 h1:Ae/OivNhp8DqBi/sh2A8a1D0y638GpL3tkmLQAiKxTE= @@ -801,8 +802,8 @@ github.com/cosmos/gogogateway v1.2.0/go.mod h1:iQpLkGWxYcnCdz5iAdLcRBSw3h7NXeOkZ github.com/cosmos/gogoproto v1.4.2/go.mod h1:cLxOsn1ljAHSV527CHOtaIP91kK6cCrZETRBrkzItWU= github.com/cosmos/gogoproto v1.7.0 h1:79USr0oyXAbxg3rspGh/m4SWNyoz/GLaAh0QlCe2fro= github.com/cosmos/gogoproto v1.7.0/go.mod h1:yWChEv5IUEYURQasfyBW5ffkMHR/90hiHgbNgrtp4j0= -github.com/cosmos/iavl v1.2.6 h1:Hs3LndJbkIB+rEvToKJFXZvKo6Vy0Ex1SJ54hhtioIs= -github.com/cosmos/iavl v1.2.6/go.mod h1:GiM43q0pB+uG53mLxLDzimxM9l/5N9UuSY3/D0huuVw= +github.com/cosmos/iavl v1.2.2 h1:qHhKW3I70w+04g5KdsdVSHRbFLgt3yY3qTMd4Xa4rC8= +github.com/cosmos/iavl v1.2.2/go.mod h1:GiM43q0pB+uG53mLxLDzimxM9l/5N9UuSY3/D0huuVw= github.com/cosmos/ics23/go v0.11.0 h1:jk5skjT0TqX5e5QJbEnwXIS2yI2vnmLOgpQPeM5RtnU= github.com/cosmos/ics23/go v0.11.0/go.mod h1:A8OjxPE67hHST4Icw94hOxxFEJMBG031xIGF/JHNIY0= github.com/cosmos/ledger-cosmos-go v0.16.0 h1:YKlWPG9NnGZIEUb2bEfZ6zhON1CHlNTg0QKRRGcNEd0= @@ -823,10 +824,10 @@ github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0 h1:NMZiJj8QnKe1LgsbDayM4UoHwbvw github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0/go.mod h1:ZXNYxsqcloTdSy/rNShjYzMhyjf0LaoftYK0p+A3h40= github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f h1:U5y3Y5UE0w7amNe7Z5G/twsBW0KEalRQXZzf8ufSh9I= github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f/go.mod h1:xH/i4TFMt8koVQZ6WFms69WAsDWr2XsYL3Hkl7jkoLE= -github.com/dgraph-io/badger/v4 v4.6.0 h1:acOwfOOZ4p1dPRnYzvkVm7rUk2Y21TgPVepCy5dJdFQ= -github.com/dgraph-io/badger/v4 v4.6.0/go.mod h1:KSJ5VTuZNC3Sd+YhvVjk2nYua9UZnnTr/SkXvdtiPgI= -github.com/dgraph-io/ristretto/v2 v2.1.0 h1:59LjpOJLNDULHh8MC4UaegN52lC4JnO2dITsie/Pa8I= -github.com/dgraph-io/ristretto/v2 v2.1.0/go.mod h1:uejeqfYXpUomfse0+lO+13ATz4TypQYLJZzBSAemuB4= +github.com/dgraph-io/badger/v4 v4.2.0 h1:kJrlajbXXL9DFTNuhhu9yCx7JJa4qpYWxtE8BzuWsEs= +github.com/dgraph-io/badger/v4 v4.2.0/go.mod h1:qfCqhPoWDFJRx1gp5QwwyGo8xk1lbHUxvK9nK0OGAak= +github.com/dgraph-io/ristretto v0.2.0 h1:XAfl+7cmoUDWW/2Lx8TGZQjjxIQ2Ley9DSf52dru4WE= +github.com/dgraph-io/ristretto v0.2.0/go.mod h1:8uBHCU/PBV4Ag0CJrP47b9Ofby5dqWNh4FicAdoqFNU= github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 h1:fAjc9m62+UWV/WAFKLNi6ZS0675eEUC9y3AlwSbQu1Y= github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= @@ -841,8 +842,8 @@ github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5m github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= -github.com/emicklei/dot v1.8.0 h1:HnD60yAKFAevNeT+TPYr9pb8VB9bqdeSo0nzwIW6IOI= -github.com/emicklei/dot v1.8.0/go.mod h1:DeV7GvQtIw4h2u73RKBkkFdvVAz0D9fzeJrgPW6gy/s= +github.com/emicklei/dot v1.6.2 h1:08GN+DD79cy/tzN6uLCT84+2Wk9u+wvqP+Hkx/dIR8A= +github.com/emicklei/dot v1.6.2/go.mod h1:DeV7GvQtIw4h2u73RKBkkFdvVAz0D9fzeJrgPW6gy/s= github.com/envoyproxy/go-control-plane v0.6.9/go.mod h1:SBwIajubJHhxtWwsL9s8ss4safvEdbitLhGGK48rN6g= github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= @@ -867,8 +868,6 @@ github.com/envoyproxy/protoc-gen-validate v0.9.1/go.mod h1:OKNgG7TCp5pF4d6XftA0+ github.com/envoyproxy/protoc-gen-validate v0.10.1/go.mod h1:DRjgyB0I43LtJapqN6NiRwroiAU2PaFuvk/vjgh61ss= github.com/envoyproxy/protoc-gen-validate v1.2.1 h1:DEo3O99U8j4hBFwbJfrz9VtgcDfUKS7KJ7spH3d86P8= github.com/envoyproxy/protoc-gen-validate v1.2.1/go.mod h1:d/C80l/jxXLdfEIhX1W2TmLfsJ31lvEjwamM4DxlWXU= -github.com/ethereum/go-ethereum v1.15.5 h1:Fo2TbBWC61lWVkFw9tsMoHCNX1ndpuaQBRJ8H6xLUPo= -github.com/ethereum/go-ethereum v1.15.5/go.mod h1:1LG2LnMOx2yPRHR/S+xuipXH29vPr6BIH6GElD8N/fo= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM= @@ -908,12 +907,18 @@ github.com/go-jose/go-jose/v4 v4.1.1/go.mod h1:BdsZGqgdO3b6tTc6LSE56wcDbMMLuPsw5 github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o= +github.com/go-kit/kit v0.13.0 h1:OoneCcHKHQ03LfBpoQCUfCluwd2Vt3ohz+kvbJneZAU= +github.com/go-kit/kit v0.13.0/go.mod h1:phqEHMMUbyrCFCTgH48JueqrM3md2HcAZ8N3XE4FKDg= github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= +github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU= +github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= github.com/go-latex/latex v0.0.0-20210118124228-b3d85cf34e07/go.mod h1:CO1AlKB2CSIqUrmQPqA0gdRIlnLEY0gK5JGjh37zN5U= github.com/go-latex/latex v0.0.0-20210823091927-c0d11ff05a81/go.mod h1:SX0U8uGpxhq9o2S/CELCSUxEWWAuoCUcVCQWv7G2OCk= github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= +github.com/go-logfmt/logfmt v0.6.0 h1:wGYYu3uicYdqXVgoYbvnkrPVXkuLM1p1ifugDMEdRi4= +github.com/go-logfmt/logfmt v0.6.0/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= @@ -928,8 +933,8 @@ github.com/go-playground/validator/v10 v10.2.0/go.mod h1:uOYAAleCW8F/7oMFd6aG0GO github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= -github.com/go-viper/mapstructure/v2 v2.4.0 h1:EBsztssimR/CONLSZZ04E8qAkxNYq4Qp9LvH92wZUgs= -github.com/go-viper/mapstructure/v2 v2.4.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM= +github.com/go-viper/mapstructure/v2 v2.3.0 h1:27XbWsHIqhbdR5TIC911OfYvgSaW93HM+dX7970Q7jk= +github.com/go-viper/mapstructure/v2 v2.3.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM= github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee/go.mod h1:L0fX3K22YWvt/FAX9NnzrNzcI4wNYi9Yku4O0LKYflo= github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM= @@ -956,6 +961,8 @@ github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4er github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 h1:f+oWsMOmNPc8JmEHVZIycC7hBoQxHH9pNKQORJNozsQ= +github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8/go.mod h1:wcDNUvekVysuuOpQKo3191zZyTpiI6se1N1ULghS0sw= github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= @@ -989,16 +996,15 @@ github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golang/snappy v1.0.0 h1:Oy607GVXHs7RtbggtPBnr2RmDArIsAefDwvrdWvRhGs= -github.com/golang/snappy v1.0.0/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.1.3 h1:CVpQJjYgC4VbzxeGVHfvZrv1ctoYCAI8vbl07Fcxlyg= github.com/google/btree v1.1.3/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4= github.com/google/flatbuffers v2.0.8+incompatible/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8= -github.com/google/flatbuffers v25.2.10+incompatible h1:F3vclr7C3HpB1k9mxCGRMXq6FdUalZ6H/pNX4FP1v0Q= -github.com/google/flatbuffers v25.2.10+incompatible/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8= +github.com/google/flatbuffers v24.3.25+incompatible h1:CX395cjN9Kke9mmalRoL3d81AtFUxJM+yDthflgJGkI= +github.com/google/flatbuffers v24.3.25+incompatible/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= @@ -1119,8 +1125,8 @@ github.com/hashicorp/go-metrics v0.5.4 h1:8mmPiIJkTPPEbAiV97IxdAGNdRdaWwVap1BU6e github.com/hashicorp/go-metrics v0.5.4/go.mod h1:CG5yz4NZ/AI/aQt9Ucm/vdBnbh7fvmv4lxZ350i+QQI= github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= -github.com/hashicorp/go-plugin v1.7.0 h1:YghfQH/0QmPNc/AZMTFE3ac8fipZyZECHdDPshfk+mA= -github.com/hashicorp/go-plugin v1.7.0/go.mod h1:BExt6KEaIYx804z8k4gRzRLEvxKVb+kn0NMcihqOqb8= +github.com/hashicorp/go-plugin v1.6.3 h1:xgHB+ZUSYeuJi96WtxEjzi23uh7YQpznjGh0U0UUrwg= +github.com/hashicorp/go-plugin v1.6.3/go.mod h1:MRobyh+Wc/nYy1V4KAXUiYfzxoYhs7V1mlH1Z7iY2h0= github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs= github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= github.com/hashicorp/go-safetemp v1.0.0 h1:2HR189eFNrjHQyENnQMMpCiBAsRxzbTMIgBhEyExpmo= @@ -1128,9 +1134,8 @@ github.com/hashicorp/go-safetemp v1.0.0/go.mod h1:oaerMy3BhqiTbVye6QuFhFtIceqFoD github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.1 h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE= github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= -github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.7.0 h1:5tqGy27NaOTB8yJKUZELlFAS/LTKJkrmONwQKeRZfjY= @@ -1150,8 +1155,6 @@ github.com/hashicorp/yamux v0.1.2 h1:XtB8kyFOyHXYVFnwT5C3+Bdo8gArse7j2AQ0DA0Uey8 github.com/hashicorp/yamux v0.1.2/go.mod h1:C+zze2n6e/7wshOZep2A70/aQU6QBRWJO/G6FT1wIns= github.com/hdevalence/ed25519consensus v0.2.0 h1:37ICyZqdyj0lAZ8P4D1d1id3HqbbG1N3iBb1Tb4rdcU= github.com/hdevalence/ed25519consensus v0.2.0/go.mod h1:w3BHWjwJbFU29IRHL1Iqkw3sus+7FctEyM4RqDxYNzo= -github.com/holiman/uint256 v1.3.2 h1:a9EgMPSC1AAaj1SZL5zIQD3WbwTuHrMGOerLjGmM/TA= -github.com/holiman/uint256 v1.3.2/go.mod h1:EOMSn4q6Nyt9P6efbI3bueV4e1b3dGlUCXeiRV4ng7E= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/huandu/go-assert v1.1.5 h1:fjemmA7sSfYHJD7CUqs9qTwwfdNAx7/j2/ZlHXzNB3c= github.com/huandu/go-assert v1.1.5/go.mod h1:yOLvuqZwmcHIC5rIzrBhT7D3Q9c3GFnd0JrPVhn/06U= @@ -1227,10 +1230,8 @@ github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw= github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM= github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= -github.com/linxGnu/grocksdb v1.10.1 h1:YX6gUcKvSC3d0s9DaqgbU+CRkZHzlELgHu1Z/kmtslg= -github.com/linxGnu/grocksdb v1.10.1/go.mod h1:C3CNe9UYc9hlEM2pC82AqiGS3LRW537u9LFV4wIZuHk= -github.com/lmittmann/tint v1.0.7 h1:D/0OqWZ0YOGZ6AyC+5Y2kD8PBEzBk6rFHVSfOqCkF9Y= -github.com/lmittmann/tint v1.0.7/go.mod h1:HIS3gSy7qNwGCj+5oRjAutErFBl4BzdQP6cJZ0NfMwE= +github.com/linxGnu/grocksdb v1.9.7 h1:Bp2r1Yti/IXxEobZZnDooXAui/Q+5gVqgQMenLWyDUw= +github.com/linxGnu/grocksdb v1.9.7/go.mod h1:QYiYypR2d4v63Wj1adOOfzglnoII0gLj3PNh4fZkcFA= github.com/lyft/protoc-gen-star v0.6.0/go.mod h1:TGAoBVkt8w7MPG72TrKIu85MIdXwDuzJYeZuUPFPNwA= github.com/lyft/protoc-gen-star v0.6.1/go.mod h1:TGAoBVkt8w7MPG72TrKIu85MIdXwDuzJYeZuUPFPNwA= github.com/lyft/protoc-gen-star/v2 v2.0.1/go.mod h1:RcCdONR2ScXaYnQC5tUzxzlpA3WVYF7/opLeUgcQs/o= @@ -1480,8 +1481,6 @@ github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= -github.com/supranational/blst v0.3.14 h1:xNMoHRJOTwMn63ip6qoWJ2Ymgvj7E2b9jY2FAwY+qRo= -github.com/supranational/blst v0.3.14/go.mod h1:jZJtfjgudtNl4en1tzwPIV3KjUnQUvG3/j+w+fVonLw= github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d h1:vfofYNRScrDdvS342BElfbETmL1Aiz3i2t0zfRj16Hs= github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d/go.mod h1:RRCYJbIwD5jmqPI9XoAFR0OcDxqUctll6zUj/+B4S48= github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E= @@ -1530,6 +1529,7 @@ go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= +go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA= go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A= @@ -1574,6 +1574,10 @@ go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= go.uber.org/zap v1.18.1/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8= go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= +go.yaml.in/yaml/v2 v2.4.2 h1:DzmwEr2rDGHl7lsFgAHxmNz/1NlQ7xLIrlN2h5d1eGI= +go.yaml.in/yaml/v2 v2.4.2/go.mod h1:081UH+NErpNdqlCXm3TtEran0rJZGxAYx9hb/ELlsPU= +go.yaml.in/yaml/v3 v3.0.3 h1:bXOww4E/J3f66rav3pX3m8w6jDE4knZjGOw8b5Y6iNE= +go.yaml.in/yaml/v3 v3.0.3/go.mod h1:tBHosrYAkRZjRAOREWbDnBXUf08JOwYq++0QNwQiWzI= golang.org/x/arch v0.17.0 h1:4O3dfLzd+lQewptAHqjewQZQDyEdejz3VwgeYwkZneU= golang.org/x/arch v0.17.0/go.mod h1:bdwinDaKcfZUGpH09BB7ZmOfhalA8lQdzl62l8gGWsk= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= @@ -2402,6 +2406,6 @@ rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4= rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= -sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E= -sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY= +sigs.k8s.io/yaml v1.6.0 h1:G8fkbMSAFqgEFgh4b1wmtzDnioxFCUgTZhlbj5P9QYs= +sigs.k8s.io/yaml v1.6.0/go.mod h1:796bPqUfzR/0jLAl6XjHl3Ck7MiyVv8dbTdyT3/pMf4= sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU= diff --git a/tools/cosmovisor/process.go b/tools/cosmovisor/process.go index 0a460e6705..6c4b47ff2a 100644 --- a/tools/cosmovisor/process.go +++ b/tools/cosmovisor/process.go @@ -23,10 +23,10 @@ import ( "google.golang.org/grpc/credentials/insecure" "cosmossdk.io/log" + "cosmossdk.io/x/upgrade/plan" + upgradetypes "cosmossdk.io/x/upgrade/types" "github.com/cosmos/cosmos-sdk/client/grpc/cmtservice" - "github.com/cosmos/cosmos-sdk/x/upgrade/plan" - upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" ) type Launcher struct { diff --git a/tools/cosmovisor/process_test.go b/tools/cosmovisor/process_test.go index 0435e17eab..fa12ea051f 100644 --- a/tools/cosmovisor/process_test.go +++ b/tools/cosmovisor/process_test.go @@ -16,8 +16,7 @@ import ( "cosmossdk.io/log" "cosmossdk.io/tools/cosmovisor" - - upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" + upgradetypes "cosmossdk.io/x/upgrade/types" ) var workDir string diff --git a/tools/cosmovisor/scanner.go b/tools/cosmovisor/scanner.go index 0c2f7865c9..ae7aa658d9 100644 --- a/tools/cosmovisor/scanner.go +++ b/tools/cosmovisor/scanner.go @@ -13,9 +13,9 @@ import ( "time" dbm "github.com/cometbft/cometbft-db" - "github.com/cometbft/cometbft/v2/store" + "github.com/cometbft/cometbft/store" - upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" + upgradetypes "cosmossdk.io/x/upgrade/types" ) var errUntestAble = errors.New("untestable") diff --git a/tools/cosmovisor/scanner_test.go b/tools/cosmovisor/scanner_test.go index 36de3b6807..3f110703a0 100644 --- a/tools/cosmovisor/scanner_test.go +++ b/tools/cosmovisor/scanner_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" + upgradetypes "cosmossdk.io/x/upgrade/types" ) func TestParseUpgradeInfoFile(t *testing.T) { diff --git a/tools/cosmovisor/upgrade.go b/tools/cosmovisor/upgrade.go index c2bba046d8..0b41ecdaee 100644 --- a/tools/cosmovisor/upgrade.go +++ b/tools/cosmovisor/upgrade.go @@ -7,9 +7,8 @@ import ( "runtime" "cosmossdk.io/log" - - "github.com/cosmos/cosmos-sdk/x/upgrade/plan" - upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" + "cosmossdk.io/x/upgrade/plan" + upgradetypes "cosmossdk.io/x/upgrade/types" ) // UpgradeBinary will be called after the log message has been parsed and the process has terminated. diff --git a/tools/cosmovisor/upgrade_test.go b/tools/cosmovisor/upgrade_test.go index 8a3953c46f..be79a0170f 100644 --- a/tools/cosmovisor/upgrade_test.go +++ b/tools/cosmovisor/upgrade_test.go @@ -16,8 +16,7 @@ import ( "cosmossdk.io/log" "cosmossdk.io/tools/cosmovisor" - - upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" + upgradetypes "cosmossdk.io/x/upgrade/types" ) type upgradeTestSuite struct { diff --git a/types/abci.go b/types/abci.go index 52c1a70359..b403da6e9a 100644 --- a/types/abci.go +++ b/types/abci.go @@ -1,7 +1,7 @@ package types import ( - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" ) // ABCIHandlers aggregates all ABCI handlers needed for an application. @@ -20,7 +20,7 @@ type ABCIHandlers struct { } // InitChainer initializes application state at genesis -type InitChainer func(ctx Context, req *abci.InitChainRequest) (*abci.InitChainResponse, error) +type InitChainer func(ctx Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error) // PrepareCheckStater runs code during commit after the block has been committed, and the `checkState` // has been branched for the new block. @@ -30,22 +30,22 @@ type PrepareCheckStater func(ctx Context) type Precommiter func(ctx Context) // ProcessProposalHandler defines a function type alias for processing a proposer -type ProcessProposalHandler func(Context, *abci.ProcessProposalRequest) (*abci.ProcessProposalResponse, error) +type ProcessProposalHandler func(Context, *abci.RequestProcessProposal) (*abci.ResponseProcessProposal, error) // PrepareProposalHandler defines a function type alias for preparing a proposal -type PrepareProposalHandler func(Context, *abci.PrepareProposalRequest) (*abci.PrepareProposalResponse, error) +type PrepareProposalHandler func(Context, *abci.RequestPrepareProposal) (*abci.ResponsePrepareProposal, error) // CheckTxHandler defines a function type alias for executing logic before transactions are executed. // `RunTx` is a function type alias for executing logic before transactions are executed. // The passed in runtx does not override antehandlers, the execution mode is not passed into runtx to avoid overriding the execution mode. -type CheckTxHandler func(RunTx, *abci.CheckTxRequest) (*abci.CheckTxResponse, error) +type CheckTxHandler func(RunTx, *abci.RequestCheckTx) (*abci.ResponseCheckTx, error) // ExtendVoteHandler defines a function type alias for extending a pre-commit vote. -type ExtendVoteHandler func(Context, *abci.ExtendVoteRequest) (*abci.ExtendVoteResponse, error) +type ExtendVoteHandler func(Context, *abci.RequestExtendVote) (*abci.ResponseExtendVote, error) // VerifyVoteExtensionHandler defines a function type alias for verifying a // pre-commit vote extension. -type VerifyVoteExtensionHandler func(Context, *abci.VerifyVoteExtensionRequest) (*abci.VerifyVoteExtensionResponse, error) +type VerifyVoteExtensionHandler func(Context, *abci.RequestVerifyVoteExtension) (*abci.ResponseVerifyVoteExtension, error) // PreBlocker runs code before the `BeginBlocker` and defines a function type alias for executing logic right // before FinalizeBlock is called (but after its context has been set up). It is @@ -53,7 +53,7 @@ type VerifyVoteExtensionHandler func(Context, *abci.VerifyVoteExtensionRequest) // persist their results in state. // // Note: returning an error will make FinalizeBlock fail. -type PreBlocker func(Context, *abci.FinalizeBlockRequest) (*ResponsePreBlock, error) +type PreBlocker func(Context, *abci.RequestFinalizeBlock) (*ResponsePreBlock, error) // BeginBlocker defines a function type alias for executing application // business logic before transactions are executed. @@ -95,4 +95,4 @@ func (r ResponsePreBlock) IsConsensusParamsChanged() bool { type RunTx = func(txBytes []byte, tx Tx) (gInfo GasInfo, result *Result, anteEvents []abci.Event, err error) // PeerFilter responds to p2p filtering queries from Tendermint -type PeerFilter func(info string) *abci.QueryResponse +type PeerFilter func(info string) *abci.ResponseQuery diff --git a/types/abci.pb.go b/types/abci.pb.go index b2ba42e643..a583754498 100644 --- a/types/abci.pb.go +++ b/types/abci.pb.go @@ -5,8 +5,8 @@ package types import ( fmt "fmt" - v2 "github.com/cometbft/cometbft/api/cometbft/abci/v2" - v21 "github.com/cometbft/cometbft/api/cometbft/types/v2" + types "github.com/cometbft/cometbft/abci/types" + types1 "github.com/cometbft/cometbft/proto/tendermint/types" _ "github.com/cosmos/cosmos-proto" _ "github.com/cosmos/gogoproto/gogoproto" proto "github.com/cosmos/gogoproto/proto" @@ -63,7 +63,7 @@ type TxResponse struct { // 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. - Events []v2.Event `protobuf:"bytes,13,rep,name=events,proto3" json:"events"` + Events []types.Event `protobuf:"bytes,13,rep,name=events,proto3" json:"events"` } func (m *TxResponse) Reset() { *m = TxResponse{} } @@ -160,7 +160,7 @@ func (m *ABCIMessageLog) GetEvents() StringEvents { return nil } -// StringEvent defines an Event object wrapper where all the attributes +// StringEvent defines en Event object wrapper where all the attributes // contain key/value pairs that are strings instead of raw bytes. type StringEvent struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` @@ -331,7 +331,7 @@ type Result struct { Log string `protobuf:"bytes,2,opt,name=log,proto3" json:"log,omitempty"` // Events contains a slice of Event objects that were emitted during message // or handler execution. - Events []v2.Event `protobuf:"bytes,3,rep,name=events,proto3" json:"events"` + Events []types.Event `protobuf:"bytes,3,rep,name=events,proto3" json:"events"` // msg_responses contains the Msg handler responses type packed in Anys. MsgResponses []*any.Any `protobuf:"bytes,4,rep,name=msg_responses,json=msgResponses,proto3" json:"msg_responses,omitempty"` } @@ -628,7 +628,7 @@ type SearchBlocksResult struct { // Max count blocks per page Limit int64 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` // List of blocks in current page - Blocks []*v21.Block `protobuf:"bytes,6,rep,name=blocks,proto3" json:"blocks,omitempty"` + Blocks []*types1.Block `protobuf:"bytes,6,rep,name=blocks,proto3" json:"blocks,omitempty"` } func (m *SearchBlocksResult) Reset() { *m = SearchBlocksResult{} } @@ -698,7 +698,7 @@ func (m *SearchBlocksResult) GetLimit() int64 { return 0 } -func (m *SearchBlocksResult) GetBlocks() []*v21.Block { +func (m *SearchBlocksResult) GetBlocks() []*types1.Block { if m != nil { return m.Blocks } @@ -724,70 +724,70 @@ func init() { } var fileDescriptor_4e37629bc7eb0df8 = []byte{ - // 1006 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0xbf, 0x6f, 0x1b, 0x37, - 0x14, 0xd6, 0xe9, 0x94, 0x93, 0x45, 0xd9, 0x75, 0xc1, 0x1a, 0xf1, 0x39, 0x48, 0x24, 0x55, 0x49, - 0x01, 0xa1, 0x40, 0x4e, 0x89, 0xd2, 0x04, 0x6d, 0xa6, 0x44, 0xee, 0x8f, 0x18, 0x48, 0x32, 0xd0, - 0x0a, 0x0a, 0x74, 0x11, 0x28, 0x89, 0xa6, 0x0e, 0xd6, 0x1d, 0x05, 0x91, 0xb2, 0xe5, 0xad, 0x63, - 0xc7, 0x4e, 0x9d, 0x3a, 0x74, 0x6d, 0xe7, 0xee, 0x5d, 0x33, 0x7a, 0x4c, 0x8b, 0xc0, 0x4d, 0xed, - 0xad, 0x7f, 0x45, 0xf1, 0x1e, 0x79, 0x92, 0x53, 0x57, 0xee, 0x90, 0x8d, 0xfc, 0xde, 0x23, 0xf9, - 0xbe, 0xef, 0x7d, 0x24, 0xc9, 0xcd, 0xbe, 0xd2, 0x89, 0xd2, 0xcd, 0x1e, 0xd7, 0xa2, 0xc9, 0x7b, - 0xfd, 0xb8, 0x79, 0x70, 0xb7, 0x27, 0x0c, 0xbf, 0x8b, 0x93, 0x68, 0x3c, 0x51, 0x46, 0xd1, 0xd0, - 0x26, 0x45, 0x90, 0x14, 0x21, 0xee, 0x92, 0xae, 0x6d, 0x48, 0x25, 0x15, 0x26, 0x35, 0x61, 0x64, - 0xf3, 0xaf, 0x5d, 0xef, 0xab, 0x44, 0x98, 0xde, 0x9e, 0x71, 0x3b, 0xb6, 0x9a, 0xe6, 0x68, 0x2c, - 0xb4, 0x8b, 0xde, 0x98, 0x47, 0x11, 0x85, 0x70, 0x6f, 0xa4, 0xfa, 0xfb, 0x2e, 0xbc, 0x25, 0x95, - 0x92, 0x23, 0xd1, 0xc4, 0x59, 0x6f, 0xba, 0xd7, 0xe4, 0xe9, 0x51, 0x16, 0xb2, 0x75, 0x74, 0xed, - 0x81, 0xae, 0x28, 0x9c, 0xd4, 0xdf, 0xf8, 0x84, 0x74, 0x66, 0x4c, 0xe8, 0xb1, 0x4a, 0xb5, 0xa0, - 0x57, 0x49, 0x30, 0x14, 0xb1, 0x1c, 0x9a, 0xd0, 0xab, 0x79, 0x0d, 0x9f, 0xb9, 0x19, 0xad, 0x93, - 0xc0, 0xcc, 0x86, 0x5c, 0x0f, 0xc3, 0x7c, 0xcd, 0x6b, 0x94, 0xda, 0xe4, 0xf4, 0xa4, 0x1a, 0x74, - 0x66, 0x4f, 0xb8, 0x1e, 0x32, 0x17, 0xa1, 0xd7, 0x49, 0xa9, 0xaf, 0x06, 0x42, 0x8f, 0x79, 0x5f, - 0x84, 0x3e, 0xa4, 0xb1, 0x05, 0x40, 0x29, 0x29, 0xc0, 0x24, 0x2c, 0xd4, 0xbc, 0xc6, 0x1a, 0xc3, - 0x31, 0x60, 0x03, 0x6e, 0x78, 0x78, 0x05, 0x93, 0x71, 0x4c, 0x37, 0x49, 0x71, 0xc2, 0x0f, 0xbb, - 0x23, 0x25, 0xc3, 0x00, 0xe1, 0x60, 0xc2, 0x0f, 0x9f, 0x2a, 0x49, 0x5f, 0x90, 0xc2, 0x48, 0x49, - 0x1d, 0x16, 0x6b, 0x7e, 0xa3, 0xdc, 0x6a, 0x44, 0xcb, 0xb4, 0x8d, 0x1e, 0xb7, 0xb7, 0x77, 0x9e, - 0x09, 0xad, 0xb9, 0x14, 0x4f, 0x95, 0x6c, 0x6f, 0xbe, 0x3c, 0xa9, 0xe6, 0x7e, 0xf9, 0xb3, 0xba, - 0xfe, 0x36, 0xae, 0x19, 0x6e, 0x07, 0x35, 0xc4, 0xe9, 0x9e, 0x0a, 0x57, 0x6c, 0x0d, 0x30, 0xa6, - 0x37, 0x08, 0x91, 0x5c, 0x77, 0x0f, 0x79, 0x6a, 0xc4, 0x20, 0x2c, 0xa1, 0x12, 0x25, 0xc9, 0xf5, - 0xd7, 0x08, 0xd0, 0x2d, 0xb2, 0x02, 0xe1, 0xa9, 0x16, 0x83, 0x90, 0x60, 0xb0, 0x28, 0xb9, 0x7e, - 0xa1, 0xc5, 0x80, 0xde, 0x22, 0x79, 0x33, 0x0b, 0xcb, 0x35, 0xaf, 0x51, 0x6e, 0x6d, 0x44, 0xb6, - 0x23, 0x51, 0xd6, 0x91, 0xe8, 0x71, 0x7a, 0xc4, 0xf2, 0x66, 0x06, 0x4a, 0x99, 0x38, 0x11, 0xda, - 0xf0, 0x64, 0x1c, 0xae, 0x5a, 0xa5, 0xe6, 0x00, 0x7d, 0x42, 0x02, 0x71, 0x20, 0x52, 0xa3, 0xc3, - 0x35, 0xa4, 0xba, 0x19, 0x65, 0x8d, 0x77, 0x3c, 0x5b, 0xd1, 0x17, 0x10, 0xb7, 0xcc, 0xfe, 0xf8, - 0xf5, 0xf6, 0xba, 0x95, 0xe2, 0xb6, 0x1e, 0xec, 0xd7, 0xee, 0x44, 0x9f, 0xdc, 0x67, 0x6e, 0xfd, - 0xc3, 0xc2, 0x77, 0x3f, 0x55, 0x73, 0xf5, 0x9f, 0x3d, 0xf2, 0xde, 0xdb, 0xdc, 0xe9, 0xc7, 0xa4, - 0x94, 0x68, 0xd9, 0x8d, 0xd3, 0x81, 0x98, 0x61, 0xa7, 0xd7, 0xda, 0x6b, 0x7f, 0x9f, 0x54, 0x17, - 0x20, 0x5b, 0x49, 0xb4, 0xdc, 0x81, 0x11, 0x7d, 0x9f, 0xf8, 0xd0, 0x0c, 0xec, 0x3b, 0x83, 0x21, - 0xdd, 0x9d, 0x17, 0xe8, 0x63, 0x81, 0x1f, 0x2d, 0xef, 0xc5, 0xae, 0x99, 0xc4, 0xa9, 0xb4, 0xe5, - 0x6e, 0xb8, 0x46, 0xac, 0x9e, 0x03, 0xf5, 0xa2, 0xd6, 0x6f, 0x5f, 0xd7, 0xbc, 0xfa, 0x84, 0x94, - 0xcf, 0x45, 0xa1, 0x39, 0xe0, 0x75, 0x2c, 0xb1, 0xc4, 0x70, 0x4c, 0x77, 0x08, 0xe1, 0xc6, 0x4c, - 0xe2, 0xde, 0xd4, 0x08, 0x1d, 0xe6, 0xb1, 0x82, 0x9b, 0x97, 0xb8, 0x21, 0xcb, 0x6d, 0x17, 0xe0, - 0x7c, 0x76, 0x6e, 0xb1, 0x3b, 0xf3, 0x1e, 0x29, 0xcd, 0x93, 0x80, 0xed, 0xbe, 0x38, 0x72, 0x07, - 0xc2, 0x90, 0x6e, 0x90, 0x2b, 0x07, 0x7c, 0x34, 0x15, 0x4e, 0x01, 0x3b, 0xa9, 0x6f, 0x93, 0xe2, - 0x57, 0x5c, 0xef, 0x5c, 0x74, 0x0b, 0xac, 0x2c, 0x2c, 0x73, 0x4b, 0x1e, 0x83, 0x99, 0x5b, 0xea, - 0xbf, 0x79, 0x24, 0x60, 0x42, 0x4f, 0x47, 0x86, 0x5e, 0x75, 0x57, 0x01, 0x96, 0xaf, 0xb6, 0xf3, - 0xa1, 0xe7, 0xae, 0xc3, 0x45, 0xf5, 0xef, 0xff, 0x4b, 0xfd, 0xa5, 0xf6, 0xb0, 0x7c, 0x5d, 0x32, - 0x7d, 0x4e, 0xd6, 0xa0, 0xbb, 0x13, 0x77, 0xd3, 0x75, 0x58, 0xc0, 0xd5, 0xff, 0x69, 0xd2, 0xf6, - 0x07, 0x17, 0x5d, 0xf5, 0x80, 0xad, 0x26, 0x5a, 0x66, 0x0f, 0x45, 0xe6, 0xad, 0x1f, 0x3c, 0x42, - 0x77, 0xe3, 0x64, 0x3a, 0xe2, 0x26, 0x56, 0xe9, 0xfc, 0x19, 0xf9, 0xd2, 0x72, 0xc6, 0x8b, 0xe5, - 0xe1, 0x65, 0xf8, 0x70, 0x79, 0x87, 0x9c, 0x8e, 0xed, 0x15, 0xa8, 0xf7, 0xf8, 0xa4, 0xea, 0xa1, - 0x40, 0x28, 0xed, 0xa7, 0x24, 0x98, 0xa0, 0x3e, 0x28, 0x40, 0xb9, 0x55, 0x5b, 0xbe, 0x8b, 0xd5, - 0x91, 0xb9, 0xfc, 0xfa, 0x23, 0x52, 0x7c, 0xa6, 0xe5, 0xe7, 0x20, 0xe1, 0x16, 0x01, 0x33, 0x77, - 0xcf, 0x19, 0xa9, 0x98, 0x68, 0xd9, 0x01, 0x2f, 0x65, 0x0f, 0x10, 0xec, 0xbe, 0x6a, 0x15, 0x7f, - 0x18, 0x80, 0x29, 0x42, 0xaf, 0xfe, 0xa3, 0x47, 0x4a, 0x9d, 0x59, 0xb6, 0xc9, 0x67, 0xf3, 0xfe, - 0xf8, 0x97, 0xb3, 0x71, 0x0b, 0xce, 0xb5, 0xf0, 0x82, 0xf2, 0xf9, 0x77, 0x54, 0x1e, 0x5d, 0xfb, - 0xda, 0x23, 0xeb, 0xbb, 0x82, 0x4f, 0xfa, 0xc3, 0xce, 0x4c, 0x3b, 0x13, 0x55, 0x49, 0xd9, 0x28, - 0xc3, 0x47, 0xdd, 0xbe, 0x9a, 0xa6, 0xc6, 0x59, 0x91, 0x20, 0xb4, 0x0d, 0x08, 0x78, 0xd9, 0x86, - 0xac, 0x11, 0xed, 0x04, 0x96, 0x8d, 0xb9, 0x14, 0xdd, 0x74, 0x9a, 0xf4, 0xc4, 0x04, 0x9f, 0xee, - 0x02, 0x23, 0x00, 0x3d, 0x47, 0x04, 0x1c, 0x8e, 0x09, 0xb8, 0x13, 0xbe, 0xe0, 0x05, 0x56, 0x02, - 0xa4, 0x03, 0x00, 0xec, 0x3a, 0x8a, 0x93, 0xd8, 0xe0, 0x3b, 0x5e, 0x60, 0x76, 0x42, 0x1f, 0x10, - 0xdf, 0xcc, 0x74, 0x18, 0x20, 0xd9, 0x5b, 0xcb, 0x05, 0x5b, 0xfc, 0x3e, 0x0c, 0x16, 0x38, 0x7a, - 0xbf, 0x83, 0xb1, 0x90, 0x5e, 0x1b, 0xfe, 0xb8, 0x4b, 0x18, 0xfa, 0xcb, 0x19, 0xfa, 0x97, 0x30, - 0xf4, 0xff, 0x87, 0xa1, 0xbf, 0x94, 0xa1, 0x9f, 0x31, 0xbc, 0x43, 0x02, 0xfc, 0x80, 0x33, 0x92, - 0xe1, 0xe2, 0x26, 0xda, 0x7f, 0xfb, 0xa0, 0x15, 0x61, 0xf5, 0xcc, 0xe5, 0x59, 0x6e, 0xed, 0x47, - 0xaf, 0xfe, 0xaa, 0xe4, 0x5e, 0x9e, 0x56, 0xbc, 0xe3, 0xd3, 0x8a, 0xf7, 0xe6, 0xb4, 0xe2, 0x7d, - 0x7f, 0x56, 0xc9, 0x1d, 0x9f, 0x55, 0x72, 0xaf, 0xce, 0x2a, 0xb9, 0x6f, 0xea, 0x32, 0x36, 0xc3, - 0x69, 0x0f, 0xf6, 0x72, 0x5f, 0x75, 0x73, 0xe1, 0x07, 0xfb, 0xf5, 0xf7, 0x02, 0xf4, 0xcc, 0xbd, - 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x91, 0x3c, 0x0b, 0xc9, 0x86, 0x08, 0x00, 0x00, + // 1001 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0x31, 0x6f, 0x1b, 0x37, + 0x14, 0xd6, 0xe9, 0x2e, 0x27, 0x8b, 0x92, 0xea, 0x82, 0x35, 0xec, 0x73, 0x9a, 0x4a, 0xaa, 0x92, + 0x02, 0x42, 0x81, 0x9c, 0x1a, 0x27, 0x0d, 0xda, 0x4c, 0xc9, 0xb9, 0x6d, 0x6a, 0x20, 0xc9, 0x40, + 0x2b, 0x28, 0xd0, 0x45, 0xa0, 0x24, 0x86, 0x3a, 0x58, 0x77, 0x14, 0x8e, 0x94, 0x2d, 0x6f, 0x1d, + 0x3b, 0x76, 0xea, 0xd4, 0xa1, 0x6b, 0x3b, 0x77, 0xee, 0x9c, 0xd1, 0xa3, 0x51, 0x04, 0x4e, 0x6b, + 0x6f, 0xfd, 0x15, 0x05, 0x1f, 0x79, 0x92, 0x52, 0x57, 0xee, 0x90, 0x8d, 0xfc, 0xde, 0x23, 0xf9, + 0xbe, 0xef, 0x7d, 0x24, 0xd1, 0xcd, 0x81, 0x90, 0x89, 0x90, 0x9d, 0x3e, 0x95, 0xac, 0x43, 0xfb, + 0x83, 0xb8, 0x73, 0x78, 0xa7, 0xcf, 0x14, 0xbd, 0x03, 0x93, 0x70, 0x92, 0x09, 0x25, 0x70, 0x60, + 0x92, 0x42, 0x9d, 0x14, 0x02, 0x6e, 0x93, 0xae, 0x6f, 0x70, 0xc1, 0x05, 0x24, 0x75, 0xf4, 0xc8, + 0xe4, 0x5f, 0x7f, 0x5f, 0xb1, 0x74, 0xc8, 0xb2, 0x24, 0x4e, 0x95, 0xd9, 0x53, 0x1d, 0x4f, 0x98, + 0xb4, 0xc1, 0x1b, 0x4b, 0x41, 0xc0, 0x3b, 0xfd, 0xb1, 0x18, 0x1c, 0xd8, 0xe8, 0x36, 0x17, 0x82, + 0x8f, 0x59, 0x07, 0x66, 0xfd, 0xe9, 0x8b, 0x0e, 0x4d, 0x8f, 0xf3, 0x90, 0xa9, 0xa2, 0x67, 0x8e, + 0xb3, 0x25, 0xc1, 0xa4, 0xf5, 0xda, 0x45, 0xa8, 0x3b, 0x23, 0x4c, 0x4e, 0x44, 0x2a, 0x19, 0xde, + 0x44, 0xfe, 0x88, 0xc5, 0x7c, 0xa4, 0x02, 0xa7, 0xe9, 0xb4, 0x5d, 0x62, 0x67, 0xb8, 0x85, 0x7c, + 0x35, 0x1b, 0x51, 0x39, 0x0a, 0x8a, 0x4d, 0xa7, 0x5d, 0x8e, 0xd0, 0xf9, 0x59, 0xc3, 0xef, 0xce, + 0xbe, 0xa6, 0x72, 0x44, 0x6c, 0x04, 0xdf, 0x40, 0xe5, 0x81, 0x18, 0x32, 0x39, 0xa1, 0x03, 0x16, + 0xb8, 0x3a, 0x8d, 0x2c, 0x00, 0x8c, 0x91, 0xa7, 0x27, 0x81, 0xd7, 0x74, 0xda, 0x35, 0x02, 0x63, + 0x8d, 0x0d, 0xa9, 0xa2, 0xc1, 0x35, 0x48, 0x86, 0x31, 0xde, 0x42, 0xa5, 0x8c, 0x1e, 0xf5, 0xc6, + 0x82, 0x07, 0x3e, 0xc0, 0x7e, 0x46, 0x8f, 0x9e, 0x08, 0x8e, 0x9f, 0x23, 0x6f, 0x2c, 0xb8, 0x0c, + 0x4a, 0x4d, 0xb7, 0x5d, 0xd9, 0x69, 0x87, 0xab, 0x94, 0x0d, 0x1f, 0x45, 0xbb, 0x7b, 0x4f, 0x99, + 0x94, 0x94, 0xb3, 0x27, 0x82, 0x47, 0x5b, 0x2f, 0xcf, 0x1a, 0x85, 0x5f, 0x5f, 0x37, 0xd6, 0xdf, + 0xc4, 0x25, 0x81, 0xed, 0x74, 0x0d, 0x71, 0xfa, 0x42, 0x04, 0x6b, 0xa6, 0x06, 0x3d, 0xc6, 0x1f, + 0x20, 0xc4, 0xa9, 0xec, 0x1d, 0xd1, 0x54, 0xb1, 0x61, 0x50, 0x06, 0x25, 0xca, 0x9c, 0xca, 0x6f, + 0x00, 0xc0, 0xdb, 0x68, 0x4d, 0x87, 0xa7, 0x92, 0x0d, 0x03, 0x04, 0xc1, 0x12, 0xa7, 0xf2, 0xb9, + 0x64, 0x43, 0x7c, 0x0b, 0x15, 0xd5, 0x2c, 0xa8, 0x34, 0x9d, 0x76, 0x65, 0x67, 0x23, 0x34, 0x1d, + 0x09, 0xf3, 0x8e, 0x84, 0x8f, 0xd2, 0x63, 0x52, 0x54, 0x33, 0xad, 0x94, 0x8a, 0x13, 0x26, 0x15, + 0x4d, 0x26, 0x41, 0xd5, 0x28, 0x35, 0x07, 0xf0, 0x63, 0xe4, 0xb3, 0x43, 0x96, 0x2a, 0x19, 0xd4, + 0x80, 0xea, 0x66, 0xb8, 0xe8, 0xbb, 0x61, 0xfa, 0xa5, 0x0e, 0x1b, 0x62, 0x7f, 0xfc, 0x76, 0x7b, + 0xdd, 0x28, 0x71, 0x5b, 0x0e, 0x0f, 0x9a, 0x9f, 0x84, 0xf7, 0x3e, 0x25, 0x76, 0xf9, 0x03, 0xef, + 0xfb, 0x9f, 0x1b, 0x85, 0xd6, 0x2f, 0x0e, 0x7a, 0xe7, 0x4d, 0xea, 0xf8, 0x63, 0x54, 0x4e, 0x24, + 0xef, 0xc5, 0xe9, 0x90, 0xcd, 0xa0, 0xd1, 0xb5, 0xa8, 0xf6, 0xf7, 0x59, 0x63, 0x01, 0x92, 0xb5, + 0x44, 0xf2, 0x3d, 0x3d, 0xc2, 0xef, 0x22, 0x57, 0xf7, 0x02, 0xda, 0x4e, 0xf4, 0x10, 0xef, 0xcf, + 0xeb, 0x73, 0xa1, 0xbe, 0x8f, 0x56, 0xb7, 0x62, 0x5f, 0x65, 0x71, 0xca, 0x4d, 0xb9, 0x1b, 0xb6, + 0x0f, 0xd5, 0x25, 0x50, 0x2e, 0x6a, 0xfd, 0xee, 0x55, 0xd3, 0x69, 0x65, 0xa8, 0xb2, 0x14, 0xd5, + 0xbd, 0xd1, 0x3e, 0x87, 0x12, 0xcb, 0x04, 0xc6, 0x78, 0x0f, 0x21, 0xaa, 0x54, 0x16, 0xf7, 0xa7, + 0x8a, 0xc9, 0xa0, 0x08, 0x15, 0xdc, 0xbc, 0xc2, 0x0c, 0x79, 0x6e, 0xe4, 0xe9, 0xf3, 0xc9, 0xd2, + 0x62, 0x7b, 0xe6, 0x5d, 0x54, 0x9e, 0x27, 0x69, 0xb6, 0x07, 0xec, 0xd8, 0x1e, 0xa8, 0x87, 0x78, + 0x03, 0x5d, 0x3b, 0xa4, 0xe3, 0x29, 0xb3, 0x0a, 0x98, 0x49, 0x6b, 0x17, 0x95, 0x1e, 0x53, 0xb9, + 0x77, 0xd9, 0x2c, 0x7a, 0xa5, 0xb7, 0xca, 0x2c, 0x45, 0x08, 0xe6, 0x66, 0x69, 0xfd, 0xee, 0x20, + 0x9f, 0x30, 0x39, 0x1d, 0x2b, 0xbc, 0x69, 0x6f, 0x82, 0x5e, 0x5e, 0x8d, 0x8a, 0x81, 0x63, 0x6f, + 0xc3, 0x65, 0xf5, 0xef, 0xfd, 0x4b, 0xfd, 0x55, 0xee, 0x30, 0x74, 0x6d, 0x2e, 0x7e, 0x86, 0x6a, + 0xba, 0xb9, 0x99, 0xbd, 0xe7, 0x32, 0xf0, 0x60, 0xf1, 0x7f, 0x5a, 0x34, 0x7a, 0xef, 0xb2, 0xa9, + 0xee, 0x93, 0x6a, 0x22, 0x79, 0xfe, 0x4c, 0xe4, 0xd6, 0xfa, 0xd1, 0x41, 0x78, 0x3f, 0x4e, 0xa6, + 0x63, 0xaa, 0x62, 0x91, 0xce, 0x1f, 0x91, 0xaf, 0x0c, 0x65, 0xb8, 0x56, 0x0e, 0x5c, 0x85, 0x0f, + 0x57, 0x37, 0xc8, 0xca, 0x18, 0xad, 0xe9, 0x7a, 0x4f, 0xce, 0x1a, 0x0e, 0xe8, 0x03, 0xca, 0x7e, + 0x86, 0xfc, 0x0c, 0xe4, 0x01, 0xfe, 0x95, 0x9d, 0xe6, 0xea, 0x5d, 0x8c, 0x8c, 0xc4, 0xe6, 0xb7, + 0x1e, 0xa2, 0xd2, 0x53, 0xc9, 0xbf, 0xd0, 0x0a, 0x6e, 0x23, 0xed, 0xe5, 0xde, 0x92, 0x8f, 0x4a, + 0x89, 0xe4, 0x5d, 0x6d, 0xa5, 0xfc, 0xf9, 0xd1, 0xbb, 0x57, 0x8d, 0xe0, 0x0f, 0x7c, 0xed, 0x89, + 0xc0, 0x69, 0xfd, 0xe4, 0xa0, 0x72, 0x77, 0x96, 0x6f, 0xf2, 0xf9, 0xbc, 0x3d, 0xee, 0xd5, 0x6c, + 0xec, 0x82, 0xa5, 0x0e, 0x5e, 0x52, 0xbe, 0xf8, 0x96, 0xca, 0x83, 0x69, 0x5f, 0x39, 0x68, 0x7d, + 0x9f, 0xd1, 0x6c, 0x30, 0xea, 0xce, 0xa4, 0xf5, 0x50, 0x03, 0x55, 0x94, 0x50, 0x74, 0xdc, 0x1b, + 0x88, 0x69, 0xaa, 0xac, 0x13, 0x11, 0x40, 0xbb, 0x1a, 0xd1, 0x56, 0x36, 0x21, 0xe3, 0x43, 0x33, + 0xd1, 0xcb, 0x26, 0x94, 0xb3, 0x5e, 0x3a, 0x4d, 0xfa, 0x2c, 0x83, 0x87, 0xdb, 0x23, 0x48, 0x43, + 0xcf, 0x00, 0xd1, 0x06, 0x87, 0x04, 0xd8, 0x09, 0xde, 0x6f, 0x8f, 0x94, 0x35, 0xd2, 0xd5, 0x80, + 0xde, 0x75, 0x1c, 0x27, 0xb1, 0x82, 0x57, 0xdc, 0x23, 0x66, 0x82, 0xef, 0x23, 0x57, 0xcd, 0x64, + 0xe0, 0x03, 0xd9, 0x5b, 0xab, 0x05, 0x5b, 0xfc, 0x3d, 0x44, 0x2f, 0xb0, 0xf4, 0x4e, 0xb5, 0xb1, + 0x80, 0x5e, 0xa4, 0x7f, 0xb8, 0x2b, 0x18, 0xba, 0xab, 0x19, 0xba, 0x57, 0x30, 0x74, 0xff, 0x87, + 0xa1, 0xbb, 0x92, 0xa1, 0x9b, 0x33, 0xec, 0x20, 0x1f, 0xbe, 0xdf, 0x9c, 0xe4, 0xd6, 0xf2, 0x45, + 0x34, 0xdf, 0x36, 0x14, 0x4f, 0x6c, 0x9a, 0xa1, 0x16, 0x3d, 0x3c, 0xfd, 0xab, 0x5e, 0x78, 0x79, + 0x5e, 0x77, 0x4e, 0xce, 0xeb, 0xce, 0x9f, 0xe7, 0x75, 0xe7, 0x87, 0x8b, 0x7a, 0xe1, 0xe4, 0xa2, + 0x5e, 0x38, 0xbd, 0xa8, 0x17, 0xbe, 0x6d, 0xf1, 0x58, 0x8d, 0xa6, 0xfd, 0x70, 0x20, 0x12, 0xfb, + 0x4f, 0x77, 0x16, 0x76, 0x30, 0x9f, 0x7e, 0xdf, 0x07, 0xcb, 0xdc, 0xfd, 0x27, 0x00, 0x00, 0xff, + 0xff, 0x6c, 0xe4, 0x4d, 0xa7, 0x81, 0x08, 0x00, 0x00, } func (m *TxResponse) Marshal() (dAtA []byte, err error) { @@ -1784,7 +1784,7 @@ func (this *SearchBlocksResult) String() string { } repeatedStringForBlocks := "[]*Block{" for _, f := range this.Blocks { - repeatedStringForBlocks += strings.Replace(fmt.Sprintf("%v", f), "Block", "v21.Block", 1) + "," + repeatedStringForBlocks += strings.Replace(fmt.Sprintf("%v", f), "Block", "types1.Block", 1) + "," } repeatedStringForBlocks += "}" s := strings.Join([]string{`&SearchBlocksResult{`, @@ -2202,7 +2202,7 @@ func (m *TxResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Events = append(m.Events, v2.Event{}) + m.Events = append(m.Events, types.Event{}) if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -2805,7 +2805,7 @@ func (m *Result) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Events = append(m.Events, v2.Event{}) + m.Events = append(m.Events, types.Event{}) if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -3550,7 +3550,7 @@ func (m *SearchBlocksResult) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Blocks = append(m.Blocks, &v21.Block{}) + m.Blocks = append(m.Blocks, &types1.Block{}) if err := m.Blocks[len(m.Blocks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } diff --git a/types/address/hash.go b/types/address/hash.go index 2956cd12cd..cb000e7f63 100644 --- a/types/address/hash.go +++ b/types/address/hash.go @@ -6,7 +6,7 @@ import ( "fmt" "sort" - "github.com/cometbft/cometbft/v2/crypto" + "github.com/cometbft/cometbft/crypto" "cosmossdk.io/errors" diff --git a/types/address/hash_test.go b/types/address/hash_test.go index 664f6a845d..a52cd5d092 100644 --- a/types/address/hash_test.go +++ b/types/address/hash_test.go @@ -5,7 +5,7 @@ import ( "slices" "testing" - "github.com/cometbft/cometbft/v2/crypto/tmhash" + "github.com/cometbft/cometbft/crypto/tmhash" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" ) diff --git a/types/context.go b/types/context.go index f01861dc21..4b5cbdeca5 100644 --- a/types/context.go +++ b/types/context.go @@ -4,8 +4,8 @@ import ( "context" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "cosmossdk.io/core/comet" "cosmossdk.io/core/header" @@ -100,7 +100,7 @@ func (c Context) BlockHeader() cmtproto.Header { return c.header } -// HeaderHash returns a copy of the header hash obtained during abci.BeginBlockRequest +// HeaderHash returns a copy of the header hash obtained during abci.RequestBeginBlock func (c Context) HeaderHash() []byte { hash := make([]byte, len(c.headerHash)) copy(hash, c.headerHash) diff --git a/types/context_test.go b/types/context_test.go index a25d9272d3..975964b39c 100644 --- a/types/context_test.go +++ b/types/context_test.go @@ -5,9 +5,9 @@ import ( "testing" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - abci "github.com/cometbft/cometbft/v2/abci/types" - cmttime "github.com/cometbft/cometbft/v2/types/time" + abci "github.com/cometbft/cometbft/abci/types" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + cmttime "github.com/cometbft/cometbft/types/time" "github.com/stretchr/testify/suite" "go.uber.org/mock/gomock" diff --git a/types/errors/abci.go b/types/errors/abci.go index d7d251a10d..47accd62d8 100644 --- a/types/errors/abci.go +++ b/types/errors/abci.go @@ -1,16 +1,16 @@ package errors import ( - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" errorsmod "cosmossdk.io/errors" ) // ResponseCheckTxWithEvents returns an ABCI ResponseCheckTx object with fields filled in // from the given error, gas values and events. -func ResponseCheckTxWithEvents(err error, gw, gu uint64, events []abci.Event, debug bool) *abci.CheckTxResponse { +func ResponseCheckTxWithEvents(err error, gw, gu uint64, events []abci.Event, debug bool) *abci.ResponseCheckTx { space, code, log := errorsmod.ABCIInfo(err, debug) - return &abci.CheckTxResponse{ + return &abci.ResponseCheckTx{ Codespace: space, Code: code, Log: log, @@ -36,9 +36,9 @@ func ResponseExecTxResultWithEvents(err error, gw, gu uint64, events []abci.Even // QueryResult returns a ResponseQuery from an error. It will try to parse ABCI // info from the error. -func QueryResult(err error, debug bool) *abci.QueryResponse { +func QueryResult(err error, debug bool) *abci.ResponseQuery { space, code, log := errorsmod.ABCIInfo(err, debug) - return &abci.QueryResponse{ + return &abci.ResponseQuery{ Codespace: space, Code: code, Log: log, diff --git a/types/events.go b/types/events.go index 9f7a4977a3..9178ea1c71 100644 --- a/types/events.go +++ b/types/events.go @@ -8,7 +8,7 @@ import ( "slices" "strings" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "github.com/cosmos/gogoproto/jsonpb" proto "github.com/cosmos/gogoproto/proto" diff --git a/types/events_test.go b/types/events_test.go index bf192caa1e..0b6b365d86 100644 --- a/types/events_test.go +++ b/types/events_test.go @@ -5,7 +5,7 @@ import ( "reflect" "testing" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "github.com/stretchr/testify/suite" "cosmossdk.io/math" diff --git a/types/mempool/mempool_test.go b/types/mempool/mempool_test.go index c84abcfa38..d84baaebaa 100644 --- a/types/mempool/mempool_test.go +++ b/types/mempool/mempool_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" protov2 "google.golang.org/protobuf/proto" diff --git a/types/mempool/priority_nonce_test.go b/types/mempool/priority_nonce_test.go index ee3fa0ab57..fc515e99cf 100644 --- a/types/mempool/priority_nonce_test.go +++ b/types/mempool/priority_nonce_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/require" "cosmossdk.io/log" diff --git a/types/mempool/sender_nonce_property_test.go b/types/mempool/sender_nonce_property_test.go index 0bb52c8dd4..58994d48e1 100644 --- a/types/mempool/sender_nonce_property_test.go +++ b/types/mempool/sender_nonce_property_test.go @@ -3,7 +3,7 @@ package mempool_test import ( "sort" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/require" "pgregory.net/rapid" diff --git a/types/mempool/sender_nonce_test.go b/types/mempool/sender_nonce_test.go index c997af5368..573c89cfb3 100644 --- a/types/mempool/sender_nonce_test.go +++ b/types/mempool/sender_nonce_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/require" "cosmossdk.io/log" diff --git a/types/module/core_module.go b/types/module/core_module.go index 8f252e38c1..c02943e99c 100644 --- a/types/module/core_module.go +++ b/types/module/core_module.go @@ -3,7 +3,7 @@ package module import ( "encoding/json" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "github.com/grpc-ecosystem/grpc-gateway/runtime" "github.com/spf13/cobra" diff --git a/types/module/module.go b/types/module/module.go index bc38d793dd..7d49b53374 100644 --- a/types/module/module.go +++ b/types/module/module.go @@ -36,7 +36,7 @@ import ( "slices" "sort" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "github.com/grpc-ecosystem/grpc-gateway/runtime" "github.com/spf13/cobra" @@ -479,7 +479,7 @@ func (m *Manager) RegisterServices(cfg Configurator) error { // InitGenesis performs init genesis functionality for modules. Exactly one // module must return a non-empty validator set update to correctly initialize // the chain. -func (m *Manager) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, genesisData map[string]json.RawMessage) (*abci.InitChainResponse, error) { +func (m *Manager) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, genesisData map[string]json.RawMessage) (*abci.ResponseInitChain, error) { var validatorUpdates []abci.ValidatorUpdate ctx.Logger().Info("initializing blockchain state from genesis.json") for _, moduleName := range m.OrderInitGenesis { @@ -494,12 +494,12 @@ func (m *Manager) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, genesisData // core API genesis source, err := genesis.SourceFromRawJSON(genesisData[moduleName]) if err != nil { - return &abci.InitChainResponse{}, err + return &abci.ResponseInitChain{}, err } err = module.InitGenesis(ctx, source) if err != nil { - return &abci.InitChainResponse{}, err + return &abci.ResponseInitChain{}, err } } else if module, ok := mod.(HasGenesis); ok { ctx.Logger().Debug("running initialization for module", "module", moduleName) @@ -512,7 +512,7 @@ func (m *Manager) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, genesisData // only one module will update the validator set if len(moduleValUpdates) > 0 { if len(validatorUpdates) > 0 { - return &abci.InitChainResponse{}, errors.New("validator InitGenesis updates already set by a previous module") + return &abci.ResponseInitChain{}, errors.New("validator InitGenesis updates already set by a previous module") } validatorUpdates = moduleValUpdates } @@ -521,10 +521,10 @@ func (m *Manager) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, genesisData // a chain must initialize with a non-empty validator set if len(validatorUpdates) == 0 { - return &abci.InitChainResponse{}, fmt.Errorf("validator set is empty after InitGenesis, please ensure at least one validator is initialized with a delegation greater than or equal to the DefaultPowerReduction (%d)", sdk.DefaultPowerReduction) + return &abci.ResponseInitChain{}, fmt.Errorf("validator set is empty after InitGenesis, please ensure at least one validator is initialized with a delegation greater than or equal to the DefaultPowerReduction (%d)", sdk.DefaultPowerReduction) } - return &abci.InitChainResponse{ + return &abci.ResponseInitChain{ Validators: validatorUpdates, }, nil } @@ -813,7 +813,7 @@ func (m *Manager) EndBlock(ctx sdk.Context) (sdk.EndBlock, error) { } for _, updates := range moduleValUpdates { - validatorUpdates = append(validatorUpdates, abci.ValidatorUpdate{PubKeyBytes: updates.PubKeyBytes, PubKeyType: updates.PubKeyType, Power: updates.Power}) + validatorUpdates = append(validatorUpdates, abci.ValidatorUpdate{PubKey: updates.PubKey, Power: updates.Power}) } } } else { diff --git a/types/module/module_test.go b/types/module/module_test.go index 63a3a7cafd..026ab38c8d 100644 --- a/types/module/module_test.go +++ b/types/module/module_test.go @@ -7,8 +7,8 @@ import ( "io" "testing" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/spf13/cobra" "github.com/stretchr/testify/require" "go.uber.org/mock/gomock" diff --git a/types/query/pagination_test.go b/types/query/pagination_test.go index 812ed3f62a..1e06f1629b 100644 --- a/types/query/pagination_test.go +++ b/types/query/pagination_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/suite" "cosmossdk.io/depinject" diff --git a/types/result.go b/types/result.go index 6fa111bec3..ea3d491025 100644 --- a/types/result.go +++ b/types/result.go @@ -5,9 +5,9 @@ import ( "encoding/json" "strings" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - abci "github.com/cometbft/cometbft/v2/abci/types" - coretypes "github.com/cometbft/cometbft/v2/rpc/core/types" + abci "github.com/cometbft/cometbft/abci/types" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + coretypes "github.com/cometbft/cometbft/rpc/core/types" "github.com/cosmos/gogoproto/proto" "github.com/cosmos/cosmos-sdk/codec" diff --git a/types/result_test.go b/types/result_test.go index 13a32f3d8d..5911bda5b9 100644 --- a/types/result_test.go +++ b/types/result_test.go @@ -7,11 +7,11 @@ import ( "testing" "time" - cmtt "github.com/cometbft/cometbft/api/cometbft/types/v2" - abci "github.com/cometbft/cometbft/v2/abci/types" - coretypes "github.com/cometbft/cometbft/v2/rpc/core/types" - cmt "github.com/cometbft/cometbft/v2/types" - "github.com/golang/protobuf/proto" //nolint:staticcheck // keeping deprecated import + abci "github.com/cometbft/cometbft/abci/types" + cmtt "github.com/cometbft/cometbft/proto/tendermint/types" + coretypes "github.com/cometbft/cometbft/rpc/core/types" + cmt "github.com/cometbft/cometbft/types" + "github.com/golang/protobuf/proto" //nolint:staticcheck // grpc-gateway uses deprecated golang/protobuf "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" diff --git a/types/tx/service.pb.go b/types/tx/service.pb.go index f1792da131..30e7b8b907 100644 --- a/types/tx/service.pb.go +++ b/types/tx/service.pb.go @@ -6,7 +6,7 @@ package tx import ( context "context" fmt "fmt" - v2 "github.com/cometbft/cometbft/api/cometbft/types/v2" + types1 "github.com/cometbft/cometbft/proto/tendermint/types" _ "github.com/cosmos/cosmos-proto" types "github.com/cosmos/cosmos-sdk/types" query "github.com/cosmos/cosmos-sdk/types/query" @@ -658,9 +658,9 @@ func (m *GetBlockWithTxsRequest) GetPagination() *query.PageRequest { // method. type GetBlockWithTxsResponse struct { // txs are the transactions in the block. - Txs []*Tx `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"` - BlockId *v2.BlockID `protobuf:"bytes,2,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` - Block *v2.Block `protobuf:"bytes,3,opt,name=block,proto3" json:"block,omitempty"` + Txs []*Tx `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"` + BlockId *types1.BlockID `protobuf:"bytes,2,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` + Block *types1.Block `protobuf:"bytes,3,opt,name=block,proto3" json:"block,omitempty"` // pagination defines a pagination for the response. Pagination *query.PageResponse `protobuf:"bytes,4,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -705,14 +705,14 @@ func (m *GetBlockWithTxsResponse) GetTxs() []*Tx { return nil } -func (m *GetBlockWithTxsResponse) GetBlockId() *v2.BlockID { +func (m *GetBlockWithTxsResponse) GetBlockId() *types1.BlockID { if m != nil { return m.BlockId } return nil } -func (m *GetBlockWithTxsResponse) GetBlock() *v2.Block { +func (m *GetBlockWithTxsResponse) GetBlock() *types1.Block { if m != nil { return m.Block } @@ -1124,90 +1124,89 @@ func init() { func init() { proto.RegisterFile("cosmos/tx/v1beta1/service.proto", fileDescriptor_e0b00a618705eca7) } var fileDescriptor_e0b00a618705eca7 = []byte{ - // 1313 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x97, 0xcf, 0x8f, 0xd3, 0x46, - 0x14, 0xc7, 0xd7, 0xde, 0x5f, 0xd9, 0x97, 0x5d, 0x36, 0xcc, 0x06, 0x08, 0x01, 0xb2, 0xc1, 0xb0, - 0x6c, 0x58, 0x09, 0x1b, 0x02, 0x2b, 0x2a, 0xd4, 0xaa, 0x8a, 0x93, 0xb0, 0x5d, 0x28, 0x04, 0x39, - 0x5b, 0x55, 0x54, 0x95, 0x22, 0x27, 0x19, 0x12, 0x97, 0xc4, 0x0e, 0xf1, 0xec, 0xca, 0x11, 0x45, - 0xad, 0x7a, 0x6a, 0xab, 0x56, 0xad, 0xd4, 0xbf, 0xa0, 0xf7, 0x1e, 0xf9, 0x23, 0x2a, 0x4e, 0x88, - 0x5e, 0xaa, 0x9e, 0x2a, 0xe8, 0xa9, 0x7f, 0x45, 0xe5, 0x99, 0x71, 0x62, 0x27, 0x36, 0xcb, 0xa6, - 0xb7, 0x19, 0xcf, 0x9b, 0xf7, 0x3e, 0xf3, 0x9d, 0x99, 0xf7, 0xc6, 0xb0, 0xde, 0xb0, 0xec, 0xae, - 0x65, 0x2b, 0xc4, 0x51, 0x0e, 0xae, 0xd5, 0x31, 0xd1, 0xaf, 0x29, 0x36, 0xee, 0x1f, 0x18, 0x0d, - 0x2c, 0xf7, 0xfa, 0x16, 0xb1, 0xd0, 0x71, 0x66, 0x20, 0x13, 0x47, 0xe6, 0x06, 0xe9, 0xb3, 0x2d, - 0xcb, 0x6a, 0x75, 0xb0, 0xa2, 0xf7, 0x0c, 0x45, 0x37, 0x4d, 0x8b, 0xe8, 0xc4, 0xb0, 0x4c, 0x9b, - 0x4d, 0x48, 0x5f, 0xe0, 0x1e, 0xeb, 0xba, 0x8d, 0x15, 0xbd, 0xde, 0x30, 0x86, 0x8e, 0xdd, 0x0e, - 0x37, 0x4a, 0x4f, 0x86, 0x25, 0x0e, 0x1f, 0xdb, 0xf2, 0x3b, 0x78, 0xb2, 0x8f, 0xfb, 0x83, 0xa1, - 0x4d, 0x4f, 0x6f, 0x19, 0x26, 0x8d, 0xc6, 0x6d, 0xcf, 0x35, 0xac, 0x2e, 0x26, 0xf5, 0x47, 0x44, - 0x21, 0x83, 0x1e, 0xb6, 0x95, 0x83, 0xbc, 0x52, 0xef, 0x58, 0x8d, 0xc7, 0xd1, 0xc3, 0xb4, 0xc1, - 0x87, 0x4f, 0xb3, 0x48, 0x35, 0xda, 0x53, 0xf8, 0x42, 0x69, 0x47, 0xfa, 0x56, 0x04, 0xb4, 0x83, - 0xc9, 0x9e, 0x63, 0x97, 0x0f, 0xb0, 0x49, 0x34, 0xfc, 0x64, 0x1f, 0xdb, 0x04, 0xa5, 0x61, 0x01, - 0xbb, 0x7d, 0x3b, 0x25, 0x64, 0x67, 0x73, 0x4b, 0xaa, 0x98, 0x12, 0x34, 0xfe, 0x05, 0xdd, 0x01, - 0x18, 0xf1, 0xa5, 0xc4, 0xac, 0x90, 0x8b, 0xe7, 0x2f, 0xc9, 0xdc, 0xab, 0xbb, 0x18, 0x99, 0x2e, - 0xc6, 0x93, 0x51, 0x7e, 0xa0, 0xb7, 0x30, 0xf7, 0x4b, 0xfd, 0xf8, 0x66, 0xa3, 0x6d, 0x88, 0x59, - 0xfd, 0x26, 0xee, 0xd7, 0xea, 0x83, 0xd4, 0x6c, 0x56, 0xc8, 0x1d, 0xcb, 0xa7, 0xe5, 0x89, 0x8d, - 0x90, 0x2b, 0xae, 0x89, 0x3a, 0xd0, 0x16, 0x2d, 0xd6, 0x40, 0x08, 0xe6, 0x7a, 0x7a, 0x0b, 0xa7, - 0xe6, 0xb2, 0x42, 0x6e, 0x4e, 0xa3, 0x6d, 0x94, 0x84, 0xf9, 0x8e, 0xd1, 0x35, 0x48, 0x6a, 0x9e, - 0x7e, 0x64, 0x1d, 0x74, 0x19, 0xe6, 0x29, 0x4d, 0x6a, 0x21, 0x2b, 0xe4, 0x96, 0xd4, 0xb5, 0xbf, - 0x9e, 0x5f, 0x59, 0x65, 0x01, 0xae, 0xd8, 0xcd, 0xc7, 0xd9, 0xab, 0xf2, 0xf6, 0x55, 0x8d, 0x59, - 0x48, 0xff, 0x0a, 0xb0, 0x16, 0x90, 0xc2, 0xee, 0x59, 0xa6, 0x8d, 0xd1, 0x26, 0xcc, 0x12, 0x87, - 0x09, 0x11, 0xcf, 0x9f, 0x08, 0xc1, 0xdb, 0x73, 0x34, 0xd7, 0x02, 0xed, 0xc0, 0x32, 0x71, 0x6a, - 0x7d, 0x3e, 0xcf, 0x4e, 0x89, 0x74, 0xc6, 0xc5, 0x80, 0x34, 0xf4, 0x6c, 0xf8, 0x26, 0x72, 0x63, - 0x2d, 0x4e, 0x86, 0x6d, 0x1b, 0xdd, 0x0d, 0x28, 0x3c, 0x4b, 0x15, 0xde, 0x3c, 0x54, 0x61, 0x36, - 0x7b, 0x42, 0xe2, 0x24, 0xcc, 0x13, 0x8b, 0xe8, 0x1d, 0x2e, 0x16, 0xeb, 0x48, 0x18, 0x90, 0xda, - 0xb7, 0xf4, 0x66, 0x43, 0xb7, 0x89, 0x8b, 0xc1, 0xb6, 0xfd, 0x34, 0xc4, 0x88, 0x53, 0xab, 0x0f, - 0x08, 0x76, 0xd7, 0x2b, 0xe4, 0x96, 0xb5, 0x45, 0xe2, 0xa8, 0x6e, 0x17, 0xdd, 0x80, 0xb9, 0xae, - 0xd5, 0xc4, 0x74, 0xbf, 0x8f, 0xe5, 0xb3, 0x21, 0x32, 0x0c, 0xfd, 0xdd, 0xb3, 0x9a, 0x58, 0xa3, - 0xd6, 0xd2, 0xe7, 0xb0, 0x16, 0x08, 0xc3, 0x25, 0x2d, 0x43, 0xdc, 0xa7, 0x14, 0x0d, 0xf5, 0xae, - 0x42, 0xc1, 0x48, 0x28, 0xa9, 0x03, 0xab, 0x55, 0xa3, 0xbb, 0xdf, 0xd1, 0x89, 0x77, 0xc0, 0xd0, - 0x65, 0x10, 0x89, 0xc3, 0x1d, 0x86, 0xef, 0x15, 0x15, 0x48, 0x24, 0x0e, 0x92, 0x7d, 0x8b, 0x75, - 0x57, 0xb5, 0x1c, 0x72, 0x3a, 0x6e, 0x5c, 0x1f, 0x2a, 0x20, 0x7d, 0x2f, 0x40, 0x62, 0x14, 0x8e, - 0xaf, 0xe4, 0x7d, 0x88, 0xb5, 0x74, 0xbb, 0x66, 0x98, 0x8f, 0x2c, 0x1e, 0xf5, 0x7c, 0xf4, 0x32, - 0x76, 0x74, 0x7b, 0xd7, 0x7c, 0x64, 0x69, 0x8b, 0x2d, 0xd6, 0x40, 0xef, 0xc1, 0x42, 0x1f, 0xdb, - 0xfb, 0x1d, 0xc2, 0xaf, 0x51, 0x36, 0x7a, 0xae, 0x46, 0xed, 0x34, 0x6e, 0x2f, 0x49, 0xb0, 0x4c, - 0xcf, 0xaa, 0xb7, 0x6e, 0x04, 0x73, 0x6d, 0xdd, 0x6e, 0x53, 0x86, 0x25, 0x8d, 0xb6, 0xa5, 0x67, - 0xb0, 0xc2, 0x6d, 0x38, 0xec, 0xc6, 0xa1, 0xe2, 0x50, 0x61, 0xc6, 0x76, 0x47, 0x9c, 0x72, 0x77, - 0x7e, 0x12, 0xe0, 0xe4, 0x0e, 0x26, 0xaa, 0x9b, 0xa7, 0x3e, 0x35, 0x48, 0x7b, 0xcf, 0xb1, 0x3d, - 0xda, 0x93, 0xb0, 0xd0, 0xc6, 0x46, 0xab, 0x4d, 0x28, 0xcc, 0xac, 0xc6, 0x7b, 0xe8, 0xf6, 0xf4, - 0xa9, 0xc5, 0x7f, 0xe6, 0x6f, 0x9d, 0x78, 0xf5, 0xfc, 0xca, 0xf1, 0xe0, 0x46, 0x6e, 0xcb, 0x79, - 0xe9, 0x3b, 0x11, 0x4e, 0x4d, 0x10, 0x1d, 0xf5, 0x96, 0x6f, 0x43, 0x8c, 0xa6, 0xde, 0x9a, 0xd1, - 0xe4, 0x84, 0x6e, 0xca, 0x62, 0xe9, 0x57, 0x66, 0x59, 0xf7, 0x20, 0x2f, 0xd3, 0x18, 0xbb, 0x25, - 0x6d, 0x91, 0xda, 0xee, 0x36, 0x91, 0x0c, 0xf3, 0xb4, 0xc9, 0xaf, 0x73, 0x2a, 0x6a, 0x8e, 0xc6, - 0xcc, 0xd0, 0x4e, 0x40, 0x8a, 0xb9, 0x23, 0xe5, 0x80, 0x77, 0xd1, 0xa2, 0x00, 0xab, 0x7b, 0x4e, - 0x09, 0x37, 0xdc, 0xbb, 0x7a, 0xe8, 0xed, 0xbf, 0xb5, 0xf6, 0x6a, 0xe2, 0x66, 0xdc, 0x94, 0xee, - 0x43, 0x62, 0xe4, 0xe2, 0x48, 0x47, 0x2c, 0xdc, 0xdf, 0x3d, 0x17, 0xa9, 0x6c, 0xfa, 0x91, 0xfe, - 0x8f, 0x3b, 0xd5, 0xc5, 0xf3, 0xdc, 0x71, 0xbc, 0xa3, 0x2e, 0xf1, 0x0e, 0x24, 0x3d, 0x1f, 0x85, - 0xae, 0x61, 0x5a, 0x1e, 0xd7, 0x39, 0x00, 0xdd, 0xed, 0xd7, 0xbe, 0xb0, 0x2d, 0x93, 0x5f, 0xba, - 0x25, 0xfa, 0xe5, 0x8e, 0x6d, 0x99, 0xe1, 0xbe, 0x2a, 0x70, 0x62, 0xcc, 0x17, 0x87, 0x3a, 0x0f, - 0xcb, 0xcc, 0x59, 0xdd, 0x30, 0xf5, 0xfe, 0x80, 0x83, 0xc5, 0xe9, 0x37, 0x95, 0x7e, 0x8a, 0xd2, - 0x3f, 0xe9, 0xe9, 0x1f, 0x80, 0x9b, 0xd6, 0xdf, 0x5d, 0x17, 0x30, 0xe0, 0x8f, 0x03, 0x4e, 0xb1, - 0xda, 0xad, 0x8f, 0x60, 0x91, 0x97, 0x6d, 0x94, 0x82, 0x64, 0x45, 0x2b, 0x95, 0xb5, 0x9a, 0xfa, - 0xb0, 0xf6, 0xc9, 0xfd, 0xea, 0x83, 0x72, 0x71, 0xf7, 0xf6, 0x6e, 0xb9, 0x94, 0x98, 0x41, 0x09, - 0x58, 0x1e, 0x8e, 0x14, 0xaa, 0xc5, 0x84, 0x80, 0x8e, 0xc3, 0xca, 0xf0, 0x4b, 0xa9, 0x5c, 0x2d, - 0x26, 0xc4, 0xad, 0xaf, 0x05, 0x58, 0x09, 0xd4, 0x16, 0x94, 0x81, 0xb4, 0xaa, 0x55, 0x0a, 0xa5, - 0x62, 0xa1, 0xba, 0x57, 0xbb, 0x57, 0x29, 0x95, 0xc7, 0xdc, 0x9e, 0x85, 0xe4, 0xd8, 0xb8, 0xfa, - 0x71, 0xa5, 0x78, 0x37, 0x21, 0xa4, 0xc5, 0x98, 0x80, 0x4e, 0xc1, 0xda, 0xd8, 0x68, 0xf5, 0xe1, - 0xfd, 0x62, 0x42, 0x74, 0x39, 0xc7, 0x06, 0x0a, 0x74, 0x64, 0x36, 0xff, 0x23, 0xc0, 0x62, 0x95, - 0x3d, 0x17, 0xd1, 0x53, 0x88, 0x79, 0x55, 0x00, 0x49, 0x21, 0x47, 0x72, 0xac, 0x22, 0xa5, 0x2f, - 0xbc, 0xd5, 0x86, 0xe7, 0xca, 0x4b, 0xdf, 0xfc, 0xf1, 0xcf, 0x2f, 0x62, 0xf6, 0x96, 0xb0, 0x25, - 0x9d, 0x51, 0x42, 0x9e, 0xaa, 0x5e, 0xc0, 0x27, 0x30, 0x4f, 0x53, 0x3a, 0x5a, 0x0f, 0xf1, 0xea, - 0x2f, 0x08, 0xe9, 0x6c, 0xb4, 0x01, 0x8f, 0xb9, 0x41, 0x63, 0xae, 0xa3, 0x73, 0x4a, 0xd8, 0x23, - 0xd5, 0x56, 0x9e, 0xba, 0x45, 0xe4, 0x19, 0xfa, 0x0a, 0xe2, 0xbe, 0x12, 0x8e, 0x36, 0xde, 0x56, - 0xf9, 0x47, 0xe1, 0x2f, 0x1d, 0x66, 0xc6, 0x21, 0xce, 0x53, 0x88, 0x33, 0xee, 0xc2, 0x4f, 0x86, - 0x73, 0xa0, 0x2f, 0x21, 0xee, 0x7b, 0x96, 0x85, 0x02, 0x4c, 0xbe, 0x60, 0x43, 0x01, 0x42, 0x5e, - 0x77, 0x52, 0x86, 0x02, 0xa4, 0x50, 0x54, 0xf4, 0xdf, 0x04, 0x58, 0x1d, 0xab, 0x19, 0xe8, 0x72, - 0xb8, 0xef, 0x90, 0x4a, 0x97, 0xde, 0x7a, 0x17, 0x53, 0x8e, 0xa2, 0xbe, 0x08, 0xcb, 0xd4, 0x94, - 0x6f, 0x13, 0x6d, 0x44, 0xec, 0x12, 0xad, 0x16, 0xca, 0x53, 0x56, 0x40, 0x9f, 0xa1, 0x1f, 0x04, - 0x88, 0x79, 0x97, 0x38, 0xf4, 0x78, 0x8e, 0x25, 0xfd, 0xd0, 0xe3, 0x39, 0x9e, 0xd5, 0xa5, 0x9b, - 0x2f, 0x26, 0x6f, 0x38, 0xe5, 0xca, 0xb8, 0x1b, 0x77, 0x3a, 0x04, 0xad, 0xc9, 0x08, 0x18, 0x0e, - 0x4b, 0x7a, 0x11, 0x38, 0x81, 0x84, 0x1f, 0x81, 0x13, 0xcc, 0xe2, 0x53, 0xe0, 0x60, 0x46, 0xf0, - 0xab, 0x00, 0x2b, 0x81, 0x1c, 0x8c, 0x36, 0xdf, 0x12, 0xcf, 0x9f, 0x54, 0xd3, 0xb9, 0xc3, 0x0d, - 0x39, 0xdd, 0x07, 0x51, 0x74, 0x17, 0x5d, 0xba, 0xf5, 0x48, 0x3a, 0x85, 0x66, 0x54, 0xce, 0xe8, - 0x4b, 0xc3, 0x11, 0x8c, 0x93, 0x89, 0x3f, 0x82, 0x31, 0x24, 0xa3, 0x4f, 0xc1, 0xc8, 0x36, 0x94, - 0x31, 0xaa, 0x1f, 0xfe, 0xfe, 0x3a, 0x23, 0xbc, 0x7c, 0x9d, 0x11, 0xfe, 0x7e, 0x9d, 0x11, 0x7e, - 0x7e, 0x93, 0x99, 0x79, 0xf9, 0x26, 0x33, 0xf3, 0xe7, 0x9b, 0xcc, 0xcc, 0x67, 0x1b, 0x2d, 0x83, - 0xb4, 0xf7, 0xeb, 0xee, 0xeb, 0xc6, 0x73, 0x32, 0x0a, 0xc3, 0xff, 0x4e, 0x89, 0x53, 0x5f, 0xa0, - 0x7f, 0x9f, 0xd7, 0xff, 0x0b, 0x00, 0x00, 0xff, 0xff, 0xa1, 0xa0, 0x7a, 0xec, 0x97, 0x0f, 0x00, - 0x00, + // 1310 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x97, 0x51, 0x6f, 0xd3, 0x56, + 0x14, 0xc7, 0x6b, 0x37, 0x69, 0xd2, 0x93, 0x94, 0x86, 0xdb, 0x00, 0x69, 0x80, 0x34, 0x18, 0x4a, + 0x43, 0xa5, 0xda, 0x10, 0x40, 0x4c, 0x68, 0xd3, 0x14, 0x27, 0xa1, 0x2b, 0x0c, 0x82, 0x9c, 0x4e, + 0x13, 0xd3, 0xa4, 0xc8, 0x49, 0x2e, 0x89, 0x47, 0x62, 0x87, 0xf8, 0x16, 0x39, 0x62, 0x68, 0xd3, + 0x5e, 0x36, 0x4d, 0x9b, 0x36, 0x69, 0x9f, 0x60, 0xef, 0x7b, 0xe4, 0x43, 0x4c, 0x3c, 0x21, 0xf6, + 0x32, 0xed, 0x69, 0x82, 0x3d, 0xed, 0x53, 0x4c, 0xbe, 0xbe, 0x4e, 0xec, 0xc4, 0xa6, 0x34, 0x7b, + 0x89, 0x7c, 0x7d, 0xcf, 0x3d, 0xe7, 0x77, 0xfe, 0xf7, 0xde, 0x73, 0x1c, 0xd8, 0x68, 0x19, 0x66, + 0xdf, 0x30, 0x25, 0x62, 0x49, 0x4f, 0xae, 0x34, 0x31, 0x51, 0xaf, 0x48, 0x26, 0x1e, 0x3e, 0xd1, + 0x5a, 0x58, 0x1c, 0x0c, 0x0d, 0x62, 0xa0, 0xe3, 0x8e, 0x81, 0x48, 0x2c, 0x91, 0x19, 0x64, 0xcf, + 0x74, 0x0c, 0xa3, 0xd3, 0xc3, 0x92, 0x3a, 0xd0, 0x24, 0x55, 0xd7, 0x0d, 0xa2, 0x12, 0xcd, 0xd0, + 0x4d, 0x67, 0x41, 0xf6, 0x3c, 0xf3, 0xd8, 0x54, 0x4d, 0x2c, 0xa9, 0xcd, 0x96, 0x36, 0x76, 0x6c, + 0x0f, 0x98, 0x51, 0x76, 0x36, 0x2c, 0xb1, 0xd8, 0xdc, 0xb6, 0xd7, 0xc1, 0xe3, 0x03, 0x3c, 0x1c, + 0x8d, 0x6d, 0x06, 0x6a, 0x47, 0xd3, 0x69, 0x34, 0x66, 0x7b, 0x86, 0x60, 0xbd, 0x8d, 0x87, 0x7d, + 0x4d, 0x27, 0x12, 0x19, 0x0d, 0xb0, 0x29, 0x35, 0x7b, 0x46, 0xeb, 0x51, 0xe8, 0x2c, 0xfd, 0x65, + 0xb3, 0xeb, 0x4e, 0x9c, 0x06, 0x1d, 0x49, 0x2c, 0x4d, 0x3a, 0x10, 0xbe, 0xe3, 0x01, 0xed, 0x62, + 0xb2, 0x6f, 0x99, 0xd5, 0x27, 0x58, 0x27, 0x0a, 0x7e, 0x7c, 0x80, 0x4d, 0x82, 0xb2, 0xb0, 0x84, + 0xed, 0xb1, 0x99, 0xe1, 0xf2, 0x8b, 0x85, 0x65, 0x99, 0xcf, 0x70, 0x0a, 0x7b, 0x83, 0x6e, 0x03, + 0x4c, 0xe8, 0x32, 0x7c, 0x9e, 0x2b, 0x24, 0x8a, 0x17, 0x45, 0xe6, 0xd5, 0x4e, 0x45, 0xa4, 0xa9, + 0xb8, 0x22, 0x8a, 0xf7, 0xd5, 0x0e, 0x66, 0x7e, 0xa9, 0x1f, 0xcf, 0x6a, 0x74, 0x1d, 0xe2, 0xc6, + 0xb0, 0x8d, 0x87, 0x8d, 0xe6, 0x28, 0xb3, 0x98, 0xe7, 0x0a, 0xc7, 0x8a, 0x59, 0x71, 0x66, 0x1b, + 0xc4, 0x9a, 0x6d, 0x22, 0x8f, 0x94, 0x98, 0xe1, 0x3c, 0x20, 0x04, 0x91, 0x81, 0xda, 0xc1, 0x99, + 0x48, 0x9e, 0x2b, 0x44, 0x14, 0xfa, 0x8c, 0xd2, 0x10, 0xed, 0x69, 0x7d, 0x8d, 0x64, 0xa2, 0xf4, + 0xa5, 0x33, 0x40, 0x97, 0x20, 0x4a, 0x69, 0x32, 0x4b, 0x79, 0xae, 0xb0, 0x2c, 0xaf, 0xfd, 0xf5, + 0x7c, 0x67, 0xd5, 0x09, 0xb0, 0x63, 0xb6, 0x1f, 0xe5, 0x2f, 0x8b, 0xd7, 0x2f, 0x2b, 0x8e, 0x85, + 0xf0, 0x2f, 0x07, 0x6b, 0x3e, 0x29, 0xcc, 0x81, 0xa1, 0x9b, 0x18, 0x6d, 0xc1, 0x22, 0xb1, 0x1c, + 0x21, 0x12, 0xc5, 0x13, 0x01, 0x78, 0xfb, 0x96, 0x62, 0x5b, 0xa0, 0x5d, 0x48, 0x12, 0xab, 0x31, + 0x64, 0xeb, 0xcc, 0x0c, 0x4f, 0x57, 0x5c, 0xf0, 0x49, 0x43, 0x4f, 0x86, 0x67, 0x21, 0x33, 0x56, + 0x12, 0x64, 0xfc, 0x6c, 0xa2, 0x3b, 0x3e, 0x85, 0x17, 0xa9, 0xc2, 0x5b, 0x87, 0x2a, 0xec, 0xac, + 0x9e, 0x91, 0x38, 0x0d, 0x51, 0x62, 0x10, 0xb5, 0xc7, 0xc4, 0x72, 0x06, 0x02, 0x06, 0x24, 0x0f, + 0x0d, 0xb5, 0xdd, 0x52, 0x4d, 0x62, 0x63, 0x38, 0xdb, 0xbe, 0x0e, 0x71, 0x62, 0x35, 0x9a, 0x23, + 0x82, 0xed, 0x7c, 0xb9, 0x42, 0x52, 0x89, 0x11, 0x4b, 0xb6, 0x87, 0xe8, 0x1a, 0x44, 0xfa, 0x46, + 0x1b, 0xd3, 0xfd, 0x3e, 0x56, 0xcc, 0x07, 0xc8, 0x30, 0xf6, 0x77, 0xd7, 0x68, 0x63, 0x85, 0x5a, + 0x0b, 0x9f, 0xc3, 0x9a, 0x2f, 0x0c, 0x93, 0xb4, 0x0a, 0x09, 0x8f, 0x52, 0x34, 0xd4, 0xbb, 0x0a, + 0x05, 0x13, 0xa1, 0x84, 0x1e, 0xac, 0xd6, 0xb5, 0xfe, 0x41, 0x4f, 0x25, 0xee, 0x01, 0x43, 0x97, + 0x80, 0x27, 0x16, 0x73, 0x18, 0xbc, 0x57, 0x54, 0x20, 0x9e, 0x58, 0x48, 0xf4, 0x24, 0x6b, 0x67, + 0x95, 0x0c, 0x38, 0x1d, 0xd7, 0xae, 0x8e, 0x15, 0x10, 0xbe, 0xe7, 0x20, 0x35, 0x09, 0xc7, 0x32, + 0x79, 0x1f, 0xe2, 0x1d, 0xd5, 0x6c, 0x68, 0xfa, 0x43, 0x83, 0x45, 0x3d, 0x17, 0x9e, 0xc6, 0xae, + 0x6a, 0xee, 0xe9, 0x0f, 0x0d, 0x25, 0xd6, 0x71, 0x1e, 0xd0, 0x7b, 0xb0, 0x34, 0xc4, 0xe6, 0x41, + 0x8f, 0xb0, 0x6b, 0x94, 0x0f, 0x5f, 0xab, 0x50, 0x3b, 0x85, 0xd9, 0x0b, 0x02, 0x24, 0xe9, 0x59, + 0x75, 0xf3, 0x46, 0x10, 0xe9, 0xaa, 0x66, 0x97, 0x32, 0x2c, 0x2b, 0xf4, 0x59, 0x78, 0x06, 0x2b, + 0xcc, 0x86, 0xc1, 0x6e, 0x1e, 0x2a, 0x0e, 0x15, 0x66, 0x6a, 0x77, 0xf8, 0x39, 0x77, 0xe7, 0x27, + 0x0e, 0x4e, 0xee, 0x62, 0x22, 0xdb, 0x65, 0xea, 0x53, 0x8d, 0x74, 0xf7, 0x2d, 0xd3, 0xa5, 0x3d, + 0x09, 0x4b, 0x5d, 0xac, 0x75, 0xba, 0x84, 0xc2, 0x2c, 0x2a, 0x6c, 0x84, 0x6e, 0xcd, 0x5f, 0x5a, + 0xbc, 0x67, 0xfe, 0xe6, 0x89, 0x57, 0xcf, 0x77, 0x8e, 0xfb, 0x37, 0xf2, 0xba, 0x58, 0x14, 0xbe, + 0xe5, 0xe1, 0xd4, 0x0c, 0xd1, 0x51, 0x6f, 0xf9, 0x35, 0x88, 0xd3, 0xca, 0xdb, 0xd0, 0xda, 0x8c, + 0x70, 0x5d, 0x9c, 0x54, 0x5f, 0xd1, 0xa9, 0xbb, 0x34, 0xc4, 0x5e, 0x45, 0x89, 0x51, 0xd3, 0xbd, + 0x36, 0xda, 0x81, 0x28, 0x7d, 0x64, 0xb7, 0xf9, 0x54, 0xc8, 0x12, 0xc5, 0xb1, 0x42, 0xbb, 0x3e, + 0x21, 0x22, 0x47, 0xaa, 0x00, 0xef, 0xa2, 0x44, 0x09, 0x56, 0xf7, 0xad, 0x0a, 0x6e, 0xd9, 0x37, + 0xf5, 0xd0, 0xbb, 0x7f, 0x73, 0xed, 0xd5, 0xcc, 0xbd, 0xb8, 0x21, 0xdc, 0x83, 0xd4, 0xc4, 0xc5, + 0x91, 0x0e, 0x58, 0xb0, 0xbf, 0xbb, 0x36, 0x52, 0x55, 0xf7, 0x22, 0xfd, 0x1f, 0x77, 0xb2, 0x8d, + 0xe7, 0xba, 0x63, 0x78, 0x47, 0x4d, 0xf1, 0x36, 0xa4, 0x5d, 0x1f, 0xa5, 0xbe, 0xa6, 0x1b, 0x2e, + 0xd7, 0x59, 0x00, 0xd5, 0x1e, 0x37, 0xbe, 0x30, 0x0d, 0x9d, 0x5d, 0xb9, 0x65, 0xfa, 0xe6, 0xb6, + 0x69, 0xe8, 0xc1, 0xbe, 0x6a, 0x70, 0x62, 0xca, 0x17, 0x83, 0x3a, 0x07, 0x49, 0xc7, 0x59, 0x53, + 0xd3, 0xd5, 0xe1, 0x88, 0x81, 0x25, 0xe8, 0x3b, 0x99, 0xbe, 0x0a, 0xd3, 0x3f, 0xed, 0xea, 0xef, + 0x83, 0x9b, 0xd7, 0xdf, 0x1d, 0x1b, 0xd0, 0xe7, 0x8f, 0x01, 0xce, 0x91, 0xed, 0xf6, 0x47, 0x10, + 0x63, 0x4d, 0x1b, 0x65, 0x20, 0x5d, 0x53, 0x2a, 0x55, 0xa5, 0x21, 0x3f, 0x68, 0x7c, 0x72, 0xaf, + 0x7e, 0xbf, 0x5a, 0xde, 0xbb, 0xb5, 0x57, 0xad, 0xa4, 0x16, 0x50, 0x0a, 0x92, 0xe3, 0x99, 0x52, + 0xbd, 0x9c, 0xe2, 0xd0, 0x71, 0x58, 0x19, 0xbf, 0xa9, 0x54, 0xeb, 0xe5, 0x14, 0xbf, 0xfd, 0x35, + 0x07, 0x2b, 0xbe, 0xce, 0x82, 0x72, 0x90, 0x95, 0x95, 0x5a, 0xa9, 0x52, 0x2e, 0xd5, 0xf7, 0x1b, + 0x77, 0x6b, 0x95, 0xea, 0x94, 0xdb, 0x33, 0x90, 0x9e, 0x9a, 0x97, 0x3f, 0xae, 0x95, 0xef, 0xa4, + 0xb8, 0x2c, 0x1f, 0xe7, 0xd0, 0x29, 0x58, 0x9b, 0x9a, 0xad, 0x3f, 0xb8, 0x57, 0x4e, 0xf1, 0x36, + 0xe7, 0xd4, 0x44, 0x89, 0xce, 0x2c, 0x16, 0x7f, 0x04, 0x88, 0xd5, 0x9d, 0x4f, 0x45, 0xf4, 0x14, + 0xe2, 0x6e, 0x0f, 0x40, 0x42, 0xc0, 0x91, 0x9c, 0xea, 0x47, 0xd9, 0xf3, 0x6f, 0xb5, 0x61, 0x95, + 0xf2, 0xe2, 0x37, 0x7f, 0xfc, 0xf3, 0x0b, 0x9f, 0xbf, 0xc9, 0x6d, 0x0b, 0xa7, 0xa5, 0x80, 0xcf, + 0x54, 0x37, 0xe0, 0x63, 0x88, 0xd2, 0x82, 0x8e, 0x36, 0x02, 0xbc, 0x7a, 0xdb, 0x41, 0x36, 0x1f, + 0x6e, 0xc0, 0x62, 0x6e, 0xd2, 0x98, 0x1b, 0xe8, 0xac, 0x14, 0xf4, 0x81, 0x6a, 0x4a, 0x4f, 0xed, + 0x16, 0xf2, 0x0c, 0x7d, 0x05, 0x09, 0x4f, 0x03, 0x47, 0x9b, 0x6f, 0xeb, 0xfb, 0x93, 0xf0, 0x17, + 0x0f, 0x33, 0x63, 0x10, 0xe7, 0x28, 0xc4, 0x69, 0x3b, 0xf1, 0x93, 0xc1, 0x1c, 0xe8, 0x4b, 0x48, + 0x78, 0x3e, 0xca, 0x02, 0x01, 0x66, 0xbf, 0x5f, 0x03, 0x01, 0x02, 0xbe, 0xed, 0x84, 0x1c, 0x05, + 0xc8, 0xa0, 0xb0, 0xe8, 0xbf, 0x71, 0xb0, 0x3a, 0xd5, 0x31, 0xd0, 0xa5, 0x60, 0xdf, 0x01, 0x7d, + 0x2e, 0xbb, 0xfd, 0x2e, 0xa6, 0x0c, 0x45, 0x7e, 0x11, 0x54, 0xa9, 0x29, 0xdf, 0x16, 0xda, 0x0c, + 0xd9, 0x25, 0xda, 0x2d, 0xa4, 0xa7, 0x4e, 0xfb, 0x7c, 0x86, 0x7e, 0xe0, 0x20, 0xee, 0x5e, 0xe2, + 0xc0, 0xe3, 0x39, 0x55, 0xf4, 0x03, 0x8f, 0xe7, 0x74, 0x55, 0x17, 0x6e, 0xbc, 0x98, 0xbd, 0xe1, + 0x94, 0x2b, 0x67, 0x6f, 0xdc, 0x7a, 0x00, 0x5a, 0xdb, 0x21, 0x70, 0x70, 0x9c, 0xa2, 0x17, 0x82, + 0xe3, 0x2b, 0xf8, 0x21, 0x38, 0xfe, 0x2a, 0x3e, 0x07, 0x0e, 0x76, 0x08, 0x7e, 0xe5, 0x60, 0xc5, + 0x57, 0x83, 0xd1, 0xd6, 0x5b, 0xe2, 0x79, 0x8b, 0x6a, 0xb6, 0x70, 0xb8, 0x21, 0xa3, 0xfb, 0x20, + 0x8c, 0xee, 0x82, 0x4d, 0xb7, 0x11, 0x4a, 0x27, 0xd1, 0x8a, 0xca, 0x18, 0x3d, 0x65, 0x38, 0x84, + 0x71, 0xb6, 0xf0, 0x87, 0x30, 0x06, 0x54, 0xf4, 0x39, 0x18, 0x9d, 0x0d, 0x75, 0x18, 0xe5, 0x0f, + 0x7f, 0x7f, 0x9d, 0xe3, 0x5e, 0xbe, 0xce, 0x71, 0x7f, 0xbf, 0xce, 0x71, 0x3f, 0xbf, 0xc9, 0x2d, + 0xbc, 0x7c, 0x93, 0x5b, 0xf8, 0xf3, 0x4d, 0x6e, 0xe1, 0xb3, 0xcd, 0x8e, 0x46, 0xba, 0x07, 0x4d, + 0xb1, 0x65, 0xf4, 0x5d, 0x27, 0x93, 0x30, 0xee, 0x1f, 0x53, 0xab, 0xb9, 0x44, 0xff, 0x7b, 0x5e, + 0xfd, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x02, 0x7f, 0xb9, 0x08, 0x93, 0x0f, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -3860,7 +3859,7 @@ func (m *GetBlockWithTxsResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.BlockId == nil { - m.BlockId = &v2.BlockID{} + m.BlockId = &types1.BlockID{} } if err := m.BlockId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -3896,7 +3895,7 @@ func (m *GetBlockWithTxsResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Block == nil { - m.Block = &v2.Block{} + m.Block = &types1.Block{} } if err := m.Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err diff --git a/x/auth/ante/feegrant_test.go b/x/auth/ante/feegrant_test.go index 20acda00e7..5a1c60cba2 100644 --- a/x/auth/ante/feegrant_test.go +++ b/x/auth/ante/feegrant_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "github.com/cometbft/cometbft/v2/crypto" + "github.com/cometbft/cometbft/crypto" "github.com/stretchr/testify/require" "go.uber.org/mock/gomock" diff --git a/x/auth/ante/setup_test.go b/x/auth/ante/setup_test.go index c8345eeeb9..c9fa03b461 100644 --- a/x/auth/ante/setup_test.go +++ b/x/auth/ante/setup_test.go @@ -3,7 +3,7 @@ package ante_test import ( "testing" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/require" storetypes "cosmossdk.io/store/types" diff --git a/x/auth/ante/sigverify_benchmark_test.go b/x/auth/ante/sigverify_benchmark_test.go index ed877e20f8..6c3cd513d5 100644 --- a/x/auth/ante/sigverify_benchmark_test.go +++ b/x/auth/ante/sigverify_benchmark_test.go @@ -3,7 +3,7 @@ package ante_test import ( "testing" - cmtcrypto "github.com/cometbft/cometbft/v2/crypto" + cmtcrypto "github.com/cometbft/cometbft/crypto" "github.com/stretchr/testify/require" "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" diff --git a/x/auth/ante/testutil_test.go b/x/auth/ante/testutil_test.go index ef260a101e..b0dfbfae47 100644 --- a/x/auth/ante/testutil_test.go +++ b/x/auth/ante/testutil_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "github.com/stretchr/testify/require" "go.uber.org/mock/gomock" @@ -93,7 +93,7 @@ func setupSuite(t *testing.T, isCheckTx, enableUnorderedTxs bool) *AnteTestSuite suite.clientCtx = client.Context{}. WithTxConfig(suite.encCfg.TxConfig). - WithClient(clitestutil.NewMockCometRPC(abci.QueryResponse{})) + WithClient(clitestutil.NewMockCometRPC(abci.ResponseQuery{})) anteHandler, err := ante.NewAnteHandler( ante.HandlerOptions{ diff --git a/x/auth/keeper/keeper_test.go b/x/auth/keeper/keeper_test.go index 89fcd8c72b..803ab90948 100644 --- a/x/auth/keeper/keeper_test.go +++ b/x/auth/keeper/keeper_test.go @@ -3,8 +3,8 @@ package keeper_test import ( "testing" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - cmttime "github.com/cometbft/cometbft/v2/types/time" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + cmttime "github.com/cometbft/cometbft/types/time" gogotypes "github.com/cosmos/gogoproto/types" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" diff --git a/x/auth/migrations/v2/store.go b/x/auth/migrations/v2/store.go index 5153d65a22..3e1826bb2b 100644 --- a/x/auth/migrations/v2/store.go +++ b/x/auth/migrations/v2/store.go @@ -21,7 +21,7 @@ import ( "errors" "fmt" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "github.com/cosmos/gogoproto/grpc" "github.com/cosmos/gogoproto/proto" "google.golang.org/grpc/codes" @@ -143,7 +143,7 @@ func getDelegatorDelegationsSum(ctx sdk.Context, address string, queryServer grp if err != nil { return nil, fmt.Errorf("cannot marshal staking type query request, %w", err) } - req := abci.QueryRequest{ + req := abci.RequestQuery{ Data: b, Path: delegatorDelegationPath, } @@ -187,7 +187,7 @@ func getDelegatorUnbondingDelegationsSum(ctx sdk.Context, address, bondDenom str if err != nil { return nil, fmt.Errorf("cannot marshal staking type query request, %w", err) } - req := abci.QueryRequest{ + req := abci.RequestQuery{ Data: b, Path: delegatorUnbondingDelegationsPath, } @@ -234,7 +234,7 @@ func getBalance(ctx sdk.Context, address string, queryServer grpc.Server) (sdk.C return nil, fmt.Errorf("cannot marshal bank type query request, %w", err) } - req := abci.QueryRequest{ + req := abci.RequestQuery{ Data: b, Path: balancesPath, } @@ -265,7 +265,7 @@ func getBondDenom(ctx sdk.Context, queryServer grpc.Server) (string, error) { if err != nil { return "", fmt.Errorf("cannot marshal staking params query request, %w", err) } - req := abci.QueryRequest{ + req := abci.RequestQuery{ Data: b, Path: stakingParamsPath, } diff --git a/x/auth/migrations/v2/store_test.go b/x/auth/migrations/v2/store_test.go index 3021553273..e1b3ae8b39 100644 --- a/x/auth/migrations/v2/store_test.go +++ b/x/auth/migrations/v2/store_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/require" "cosmossdk.io/depinject" diff --git a/x/auth/migrations/v3/store_test.go b/x/auth/migrations/v3/store_test.go index bd3d21cbf1..32bfb82f18 100644 --- a/x/auth/migrations/v3/store_test.go +++ b/x/auth/migrations/v3/store_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/require" "cosmossdk.io/collections" diff --git a/x/auth/simulation/proposals_test.go b/x/auth/simulation/proposals_test.go index 339c937511..580be215b4 100644 --- a/x/auth/simulation/proposals_test.go +++ b/x/auth/simulation/proposals_test.go @@ -4,7 +4,7 @@ import ( "math/rand" "testing" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "gotest.tools/v3/assert" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/auth/tx/adapter.go b/x/auth/tx/adapter.go index ef5bb1b314..685e6eb9b7 100644 --- a/x/auth/tx/adapter.go +++ b/x/auth/tx/adapter.go @@ -57,14 +57,8 @@ func (w *wrapper) GetSigningTxData() txsigning.TxData { txSignerInfos := make([]*txv1beta1.SignerInfo, len(authInfo.SignerInfos)) for i, signerInfo := range authInfo.SignerInfos { - modeInfo := &txv1beta1.ModeInfo{} adaptModeInfo(signerInfo.ModeInfo, modeInfo) - - if signerInfo.PublicKey == nil { - panic("signerInfo.PublicKey cannot be nil") - } - txSignerInfo := &txv1beta1.SignerInfo{ PublicKey: &anypb.Any{ TypeUrl: signerInfo.PublicKey.TypeUrl, diff --git a/x/auth/tx/query.go b/x/auth/tx/query.go index e66f2e1e62..bcd63f168b 100644 --- a/x/auth/tx/query.go +++ b/x/auth/tx/query.go @@ -6,7 +6,7 @@ import ( "fmt" "time" - coretypes "github.com/cometbft/cometbft/v2/rpc/core/types" + coretypes "github.com/cometbft/cometbft/rpc/core/types" "github.com/cosmos/cosmos-sdk/client" codectypes "github.com/cosmos/cosmos-sdk/codec/types" diff --git a/x/auth/types/account.go b/x/auth/types/account.go index c4b3f89845..b47186680a 100644 --- a/x/auth/types/account.go +++ b/x/auth/types/account.go @@ -8,7 +8,7 @@ import ( "slices" "strings" - "github.com/cometbft/cometbft/v2/crypto" + "github.com/cometbft/cometbft/crypto" codectypes "github.com/cosmos/cosmos-sdk/codec/types" cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" diff --git a/x/auth/vesting/client/cli/tx_test.go b/x/auth/vesting/client/cli/tx_test.go index a0b834b877..00119f5d7f 100644 --- a/x/auth/vesting/client/cli/tx_test.go +++ b/x/auth/vesting/client/cli/tx_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - rpcclientmock "github.com/cometbft/cometbft/v2/rpc/client/mock" + rpcclientmock "github.com/cometbft/cometbft/rpc/client/mock" "github.com/stretchr/testify/suite" sdkmath "cosmossdk.io/math" diff --git a/x/auth/vesting/module.go b/x/auth/vesting/module.go index 1a4bf42e68..eaa0254297 100644 --- a/x/auth/vesting/module.go +++ b/x/auth/vesting/module.go @@ -3,7 +3,7 @@ package vesting import ( "encoding/json" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" gwruntime "github.com/grpc-ecosystem/grpc-gateway/runtime" "github.com/spf13/cobra" "google.golang.org/grpc" diff --git a/x/auth/vesting/msg_server_test.go b/x/auth/vesting/msg_server_test.go index ac6e70655d..b54a738603 100644 --- a/x/auth/vesting/msg_server_test.go +++ b/x/auth/vesting/msg_server_test.go @@ -4,8 +4,8 @@ import ( "testing" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - cmttime "github.com/cometbft/cometbft/v2/types/time" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + cmttime "github.com/cometbft/cometbft/types/time" "github.com/stretchr/testify/suite" "go.uber.org/mock/gomock" diff --git a/x/auth/vesting/types/vesting_account_test.go b/x/auth/vesting/types/vesting_account_test.go index 51a48e0e00..82ee27e4f2 100644 --- a/x/auth/vesting/types/vesting_account_test.go +++ b/x/auth/vesting/types/vesting_account_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - tmtime "github.com/cometbft/cometbft/v2/types/time" + tmtime "github.com/cometbft/cometbft/types/time" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" diff --git a/x/authz/client/cli/tx_test.go b/x/authz/client/cli/tx_test.go index 8f2f83f0a5..d538783663 100644 --- a/x/authz/client/cli/tx_test.go +++ b/x/authz/client/cli/tx_test.go @@ -6,8 +6,8 @@ import ( "testing" "time" - abci "github.com/cometbft/cometbft/v2/abci/types" - rpcclientmock "github.com/cometbft/cometbft/v2/rpc/client/mock" + abci "github.com/cometbft/cometbft/abci/types" + rpcclientmock "github.com/cometbft/cometbft/rpc/client/mock" "github.com/cosmos/gogoproto/proto" "github.com/stretchr/testify/suite" @@ -74,7 +74,7 @@ func (s *CLITestSuite) SetupSuite() { ctxGen := func() client.Context { bz, _ := s.encCfg.Codec.Marshal(&sdk.TxResponse{}) - c := clitestutil.NewMockCometRPC(abci.QueryResponse{ + c := clitestutil.NewMockCometRPC(abci.ResponseQuery{ Value: bz, }) return s.baseCtx.WithClient(c) diff --git a/x/authz/keeper/genesis_test.go b/x/authz/keeper/genesis_test.go index 4e880252b1..e5488efb8d 100644 --- a/x/authz/keeper/genesis_test.go +++ b/x/authz/keeper/genesis_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/suite" "go.uber.org/mock/gomock" diff --git a/x/authz/keeper/keeper.go b/x/authz/keeper/keeper.go index fc5215ed97..cf806b0abe 100644 --- a/x/authz/keeper/keeper.go +++ b/x/authz/keeper/keeper.go @@ -8,7 +8,7 @@ import ( "strconv" "time" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "github.com/cosmos/gogoproto/proto" corestoretypes "cosmossdk.io/core/store" diff --git a/x/authz/keeper/keeper_test.go b/x/authz/keeper/keeper_test.go index a3663f3b6e..233c3c7ea4 100644 --- a/x/authz/keeper/keeper_test.go +++ b/x/authz/keeper/keeper_test.go @@ -4,8 +4,8 @@ import ( "testing" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - cmttime "github.com/cometbft/cometbft/v2/types/time" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + cmttime "github.com/cometbft/cometbft/types/time" "github.com/stretchr/testify/suite" "go.uber.org/mock/gomock" diff --git a/x/authz/module/abci_test.go b/x/authz/module/abci_test.go index 130551eeb8..95b24b92ff 100644 --- a/x/authz/module/abci_test.go +++ b/x/authz/module/abci_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - types "github.com/cometbft/cometbft/api/cometbft/types/v2" + "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/require" "go.uber.org/mock/gomock" diff --git a/x/authz/simulation/operations_test.go b/x/authz/simulation/operations_test.go index 4de178f9cc..01364fc8de 100644 --- a/x/authz/simulation/operations_test.go +++ b/x/authz/simulation/operations_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "github.com/cosmos/gogoproto/proto" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" @@ -123,7 +123,7 @@ func (suite *SimTestSuite) TestSimulateGrant() { blockTime := time.Now().UTC() ctx := suite.ctx.WithBlockTime(blockTime) - _, err := suite.app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err := suite.app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: suite.app.LastBlockHeight() + 1, Hash: suite.app.LastCommitID().Hash, }) @@ -152,7 +152,7 @@ func (suite *SimTestSuite) TestSimulateRevoke() { r := rand.New(s) accounts := suite.getTestingAccounts(r, 3) - _, err := suite.app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err := suite.app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: suite.app.LastBlockHeight() + 1, Hash: suite.app.LastCommitID().Hash, }) @@ -190,7 +190,7 @@ func (suite *SimTestSuite) TestSimulateExec() { r := rand.New(s) accounts := suite.getTestingAccounts(r, 3) - _, err := suite.app.FinalizeBlock(&abci.FinalizeBlockRequest{Height: suite.app.LastBlockHeight() + 1, Hash: suite.app.LastCommitID().Hash}) + _, err := suite.app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: suite.app.LastBlockHeight() + 1, Hash: suite.app.LastCommitID().Hash}) suite.Require().NoError(err) initAmt := sdk.TokensFromConsensusPower(200000, sdk.DefaultPowerReduction) diff --git a/x/bank/app_test.go b/x/bank/app_test.go index 3fec0c7f11..8883fde6f0 100644 --- a/x/bank/app_test.go +++ b/x/bank/app_test.go @@ -3,8 +3,8 @@ package bank_test import ( "testing" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" @@ -157,7 +157,7 @@ func TestSendNotEnoughBalance(t *testing.T) { ctx := baseApp.NewContext(false) require.NoError(t, testutil.FundAccount(ctx, s.BankKeeper, addr1, sdk.NewCoins(sdk.NewInt64Coin("foocoin", 67)))) - _, err := baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{Height: baseApp.LastBlockHeight() + 1}) + _, err := baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{Height: baseApp.LastBlockHeight() + 1}) require.NoError(t, err) _, err = baseApp.Commit() require.NoError(t, err) @@ -196,7 +196,7 @@ func TestMsgMultiSendWithAccounts(t *testing.T) { ctx := baseApp.NewContext(false) require.NoError(t, testutil.FundAccount(ctx, s.BankKeeper, addr1, sdk.NewCoins(sdk.NewInt64Coin("foocoin", 67)))) - _, err := baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{Height: baseApp.LastBlockHeight() + 1}) + _, err := baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{Height: baseApp.LastBlockHeight() + 1}) require.NoError(t, err) _, err = baseApp.Commit() require.NoError(t, err) @@ -280,7 +280,7 @@ func TestMsgMultiSendMultipleOut(t *testing.T) { require.NoError(t, testutil.FundAccount(ctx, s.BankKeeper, addr1, sdk.NewCoins(sdk.NewInt64Coin("foocoin", 42)))) require.NoError(t, testutil.FundAccount(ctx, s.BankKeeper, addr2, sdk.NewCoins(sdk.NewInt64Coin("foocoin", 42)))) - _, err := baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{Height: baseApp.LastBlockHeight() + 1}) + _, err := baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{Height: baseApp.LastBlockHeight() + 1}) require.NoError(t, err) _, err = baseApp.Commit() require.NoError(t, err) @@ -325,7 +325,7 @@ func TestMsgMultiSendDependent(t *testing.T) { ctx := baseApp.NewContext(false) require.NoError(t, testutil.FundAccount(ctx, s.BankKeeper, addr1, sdk.NewCoins(sdk.NewInt64Coin("foocoin", 42)))) - _, err = baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{Height: baseApp.LastBlockHeight() + 1}) + _, err = baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{Height: baseApp.LastBlockHeight() + 1}) require.NoError(t, err) _, err = baseApp.Commit() require.NoError(t, err) diff --git a/x/bank/bench_test.go b/x/bank/bench_test.go index 47bda11eeb..908ffa91f1 100644 --- a/x/bank/bench_test.go +++ b/x/bank/bench_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "github.com/stretchr/testify/require" "github.com/cosmos/cosmos-sdk/client" @@ -72,7 +72,7 @@ func BenchmarkOneBankSendTxPerBlock(b *testing.B) { baseApp := s.App.BaseApp ctx := baseApp.NewContext(false) - _, err := baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{Height: 1}) + _, err := baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{Height: 1}) require.NoError(b, err) require.NoError(b, testutil.FundAccount(ctx, s.BankKeeper, addr1, sdk.NewCoins(sdk.NewInt64Coin("foocoin", 100000000000)))) @@ -102,7 +102,7 @@ func BenchmarkOneBankSendTxPerBlock(b *testing.B) { require.NoError(b, err) _, err = baseApp.FinalizeBlock( - &abci.FinalizeBlockRequest{ + &abci.RequestFinalizeBlock{ Height: height, Txs: [][]byte{bz}, }, @@ -130,7 +130,7 @@ func BenchmarkOneBankMultiSendTxPerBlock(b *testing.B) { baseApp := s.App.BaseApp ctx := baseApp.NewContext(false) - _, err := baseApp.FinalizeBlock(&abci.FinalizeBlockRequest{Height: 1}) + _, err := baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{Height: 1}) require.NoError(b, err) require.NoError(b, testutil.FundAccount(ctx, s.BankKeeper, addr1, sdk.NewCoins(sdk.NewInt64Coin("foocoin", 100000000000)))) @@ -160,7 +160,7 @@ func BenchmarkOneBankMultiSendTxPerBlock(b *testing.B) { require.NoError(b, err) _, err = baseApp.FinalizeBlock( - &abci.FinalizeBlockRequest{ + &abci.RequestFinalizeBlock{ Height: height, Txs: [][]byte{bz}, }, diff --git a/x/bank/client/cli/tx_test.go b/x/bank/client/cli/tx_test.go index db46e80a6a..834c4185b6 100644 --- a/x/bank/client/cli/tx_test.go +++ b/x/bank/client/cli/tx_test.go @@ -6,7 +6,7 @@ import ( "io" "testing" - rpcclientmock "github.com/cometbft/cometbft/v2/rpc/client/mock" + rpcclientmock "github.com/cometbft/cometbft/rpc/client/mock" "github.com/stretchr/testify/suite" sdkmath "cosmossdk.io/math" diff --git a/x/bank/keeper/collections_test.go b/x/bank/keeper/collections_test.go index 78bc9682f9..97b5e3e8bc 100644 --- a/x/bank/keeper/collections_test.go +++ b/x/bank/keeper/collections_test.go @@ -3,8 +3,8 @@ package keeper_test import ( "testing" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - cmttime "github.com/cometbft/cometbft/v2/types/time" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + cmttime "github.com/cometbft/cometbft/types/time" "github.com/stretchr/testify/require" "go.uber.org/mock/gomock" diff --git a/x/bank/keeper/keeper_test.go b/x/bank/keeper/keeper_test.go index 4d877a9e77..e6f8b65a2b 100644 --- a/x/bank/keeper/keeper_test.go +++ b/x/bank/keeper/keeper_test.go @@ -12,9 +12,9 @@ import ( "testing" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - abci "github.com/cometbft/cometbft/v2/abci/types" - cmttime "github.com/cometbft/cometbft/v2/types/time" + abci "github.com/cometbft/cometbft/abci/types" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + cmttime "github.com/cometbft/cometbft/types/time" "github.com/stretchr/testify/suite" "go.uber.org/mock/gomock" diff --git a/x/bank/simulation/operations_test.go b/x/bank/simulation/operations_test.go index 8963050e8d..c531561b84 100644 --- a/x/bank/simulation/operations_test.go +++ b/x/bank/simulation/operations_test.go @@ -4,7 +4,7 @@ import ( "math/rand" "testing" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "github.com/cosmos/gogoproto/proto" "github.com/stretchr/testify/suite" @@ -106,7 +106,7 @@ func (suite *SimTestSuite) TestSimulateMsgSend() { r := rand.New(s) accounts := suite.getTestingAccounts(r, 3) - _, err := suite.app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err := suite.app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: suite.app.LastBlockHeight() + 1, Hash: suite.app.LastCommitID().Hash, }) @@ -136,7 +136,7 @@ func (suite *SimTestSuite) TestSimulateMsgMultiSend() { r := rand.New(s) accounts := suite.getTestingAccounts(r, 3) - _, err := suite.app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err := suite.app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: suite.app.LastBlockHeight() + 1, Hash: suite.app.LastCommitID().Hash, }) @@ -172,7 +172,7 @@ func (suite *SimTestSuite) TestSimulateModuleAccountMsgSend() { r := rand.New(s) accounts := suite.getTestingAccounts(r, accCount) - _, err := suite.app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err := suite.app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: suite.app.LastBlockHeight() + 1, Hash: suite.app.LastCommitID().Hash, }) @@ -206,7 +206,7 @@ func (suite *SimTestSuite) TestSimulateMsgMultiSendToModuleAccount() { r := rand.New(s) accounts := suite.getTestingAccounts(r, accCount) - _, err := suite.app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err := suite.app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: suite.app.LastBlockHeight() + 1, Hash: suite.app.LastCommitID().Hash, }) diff --git a/x/bank/simulation/proposals_test.go b/x/bank/simulation/proposals_test.go index 9c21427692..0dcc42b02c 100644 --- a/x/bank/simulation/proposals_test.go +++ b/x/bank/simulation/proposals_test.go @@ -4,7 +4,7 @@ import ( "math/rand" "testing" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "gotest.tools/v3/assert" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/consensus/exported/exported.go b/x/consensus/exported/exported.go index 7a898e8e4e..6c2135f712 100644 --- a/x/consensus/exported/exported.go +++ b/x/consensus/exported/exported.go @@ -3,7 +3,7 @@ package exported import ( "context" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/consensus/keeper/keeper.go b/x/consensus/keeper/keeper.go index 0f7f1a845c..b239a9ee5e 100644 --- a/x/consensus/keeper/keeper.go +++ b/x/consensus/keeper/keeper.go @@ -3,8 +3,8 @@ package keeper import ( "context" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - cmttypes "github.com/cometbft/cometbft/v2/types" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + cmttypes "github.com/cometbft/cometbft/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" diff --git a/x/consensus/keeper/keeper_test.go b/x/consensus/keeper/keeper_test.go index 6ff65a83a0..da2bd0b1bd 100644 --- a/x/consensus/keeper/keeper_test.go +++ b/x/consensus/keeper/keeper_test.go @@ -2,11 +2,9 @@ package keeper_test import ( "testing" - "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - cmttypes "github.com/cometbft/cometbft/v2/types" - gogotypes "github.com/cosmos/gogoproto/types" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + cmttypes "github.com/cometbft/cometbft/types" "github.com/stretchr/testify/suite" storetypes "cosmossdk.io/store/types" @@ -29,12 +27,7 @@ type KeeperTestSuite struct { queryClient types.QueryClient } -func getDuration(d time.Duration) *time.Duration { - dur := d - return &dur -} - -func (s *KeeperTestSuite) SetupTest(enabledFeatures bool) { +func (s *KeeperTestSuite) SetupTest() { key := storetypes.NewKVStoreKey(consensusparamkeeper.StoreKey) testCtx := testutil.DefaultContextWithDB(s.T(), key, storetypes.NewTransientStoreKey("transient_test")) header := cmtproto.Header{Height: 5} @@ -51,12 +44,7 @@ func (s *KeeperTestSuite) SetupTest(enabledFeatures bool) { queryHelper := baseapp.NewQueryServerTestHelper(ctx, encCfg.InterfaceRegistry) types.RegisterQueryServer(queryHelper, keeper) s.queryClient = types.NewQueryClient(queryHelper) - params := cmttypes.DefaultConsensusParams() - if enabledFeatures { - params.Feature.VoteExtensionsEnableHeight = 5 - params.Feature.PbtsEnableHeight = 5 - } - err := s.consensusParamsKeeper.ParamsStore.Set(ctx, params.ToProto()) + err := s.consensusParamsKeeper.ParamsStore.Set(ctx, cmttypes.DefaultConsensusParams().ToProto()) s.Require().NoError(err) } @@ -73,10 +61,6 @@ func (s *KeeperTestSuite) TestGRPCQueryConsensusParams() { modifiedConsensusParams.Evidence.MaxAgeNumBlocks++ modifiedConsensusParams.Evidence.MaxBytes++ modifiedConsensusParams.Validator.PubKeyTypes = []string{cmttypes.ABCIPubKeyTypeSecp256k1} - *modifiedConsensusParams.Synchrony.MessageDelay += time.Second - *modifiedConsensusParams.Synchrony.Precision += 100 * time.Millisecond - modifiedConsensusParams.Feature.VoteExtensionsEnableHeight.Value = 200 - modifiedConsensusParams.Feature.PbtsEnableHeight.Value = 100 testCases := []struct { msg string @@ -94,8 +78,6 @@ func (s *KeeperTestSuite) TestGRPCQueryConsensusParams() { Block: modifiedConsensusParams.Block, Validator: modifiedConsensusParams.Validator, Evidence: modifiedConsensusParams.Evidence, - Synchrony: modifiedConsensusParams.Synchrony, - Feature: modifiedConsensusParams.Feature, } _, err := s.consensusParamsKeeper.UpdateParams(s.ctx, input) s.Require().NoError(err) @@ -106,14 +88,15 @@ func (s *KeeperTestSuite) TestGRPCQueryConsensusParams() { Validator: modifiedConsensusParams.Validator, Evidence: modifiedConsensusParams.Evidence, Version: modifiedConsensusParams.Version, - Synchrony: modifiedConsensusParams.Synchrony, - Feature: modifiedConsensusParams.Feature, + Abci: &cmtproto.ABCIParams{ + VoteExtensionsEnableHeight: 0, + }, }, }, true, }, { - "success with (deprecated) ABCI", + "success with abci", types.QueryParamsRequest{}, func() { input := &types.MsgUpdateParams{ @@ -121,8 +104,7 @@ func (s *KeeperTestSuite) TestGRPCQueryConsensusParams() { Block: modifiedConsensusParams.Block, Validator: modifiedConsensusParams.Validator, Evidence: modifiedConsensusParams.Evidence, - Synchrony: modifiedConsensusParams.Synchrony, - Abci: &cmtproto.ABCIParams{ //nolint: staticcheck // testing backwards compatibility + Abci: &cmtproto.ABCIParams{ VoteExtensionsEnableHeight: 1234, }, } @@ -135,10 +117,8 @@ func (s *KeeperTestSuite) TestGRPCQueryConsensusParams() { Validator: modifiedConsensusParams.Validator, Evidence: modifiedConsensusParams.Evidence, Version: modifiedConsensusParams.Version, - Synchrony: modifiedConsensusParams.Synchrony, - Feature: &cmtproto.FeatureParams{ - VoteExtensionsEnableHeight: &gogotypes.Int64Value{Value: 1234}, - PbtsEnableHeight: &gogotypes.Int64Value{Value: 0}, + Abci: &cmtproto.ABCIParams{ + VoteExtensionsEnableHeight: 1234, }, }, }, @@ -148,7 +128,7 @@ func (s *KeeperTestSuite) TestGRPCQueryConsensusParams() { for _, tc := range testCases { s.Run(tc.msg, func() { - s.SetupTest(false) // reset + s.SetupTest() // reset tc.malleate() res, err := s.consensusParamsKeeper.Params(s.ctx, &tc.req) @@ -168,11 +148,10 @@ func (s *KeeperTestSuite) TestGRPCQueryConsensusParams() { func (s *KeeperTestSuite) TestUpdateParams() { defaultConsensusParams := cmttypes.DefaultConsensusParams().ToProto() testCases := []struct { - name string - enabledFeatures bool - input *types.MsgUpdateParams - expErr bool - expErrMsg string + name string + input *types.MsgUpdateParams + expErr bool + expErrMsg string }{ { name: "valid params", @@ -182,6 +161,8 @@ func (s *KeeperTestSuite) TestUpdateParams() { Validator: defaultConsensusParams.Validator, Evidence: defaultConsensusParams.Evidence, }, + expErr: false, + expErrMsg: "", }, { name: "invalid params", @@ -239,299 +220,80 @@ func (s *KeeperTestSuite) TestUpdateParams() { expErrMsg: "all parameters must be present", }, { - name: "valid Feature update - vote extensions", + name: "valid ABCI update", input: &types.MsgUpdateParams{ Authority: s.consensusParamsKeeper.GetAuthority(), Block: defaultConsensusParams.Block, Validator: defaultConsensusParams.Validator, Evidence: defaultConsensusParams.Evidence, - Feature: &cmtproto.FeatureParams{ - VoteExtensionsEnableHeight: &gogotypes.Int64Value{Value: 300}, + Abci: &cmtproto.ABCIParams{ + VoteExtensionsEnableHeight: 1235, }, }, + expErr: false, + expErrMsg: "", }, { - name: "valid Feature update - pbts", + name: "noop ABCI update", input: &types.MsgUpdateParams{ Authority: s.consensusParamsKeeper.GetAuthority(), Block: defaultConsensusParams.Block, Validator: defaultConsensusParams.Validator, Evidence: defaultConsensusParams.Evidence, - Feature: &cmtproto.FeatureParams{ - PbtsEnableHeight: &gogotypes.Int64Value{Value: 150}, + Abci: &cmtproto.ABCIParams{ + VoteExtensionsEnableHeight: 1235, }, }, + expErr: false, + expErrMsg: "", }, { - name: "valid Feature update - vote extensions + pbts", + name: "valid ABCI clear", input: &types.MsgUpdateParams{ Authority: s.consensusParamsKeeper.GetAuthority(), Block: defaultConsensusParams.Block, Validator: defaultConsensusParams.Validator, Evidence: defaultConsensusParams.Evidence, - Feature: &cmtproto.FeatureParams{ - VoteExtensionsEnableHeight: &gogotypes.Int64Value{Value: 120}, - PbtsEnableHeight: &gogotypes.Int64Value{Value: 110}, + Abci: &cmtproto.ABCIParams{ + VoteExtensionsEnableHeight: 0, }, }, + expErr: false, + expErrMsg: "", }, { - name: "valid noop Feature update - vote extensions + pbts (enabled feature)", - enabledFeatures: true, + name: "invalid ABCI update - current height", input: &types.MsgUpdateParams{ Authority: s.consensusParamsKeeper.GetAuthority(), Block: defaultConsensusParams.Block, Validator: defaultConsensusParams.Validator, Evidence: defaultConsensusParams.Evidence, - Feature: &cmtproto.FeatureParams{ - VoteExtensionsEnableHeight: &gogotypes.Int64Value{Value: 5}, - PbtsEnableHeight: &gogotypes.Int64Value{Value: 5}, - }, - }, - }, - { - name: "valid (deprecated) ABCI update", - input: &types.MsgUpdateParams{ - Authority: s.consensusParamsKeeper.GetAuthority(), - Block: defaultConsensusParams.Block, - Validator: defaultConsensusParams.Validator, - Evidence: defaultConsensusParams.Evidence, - Abci: &cmtproto.ABCIParams{ //nolint: staticcheck // testing backwards compatibility - VoteExtensionsEnableHeight: 90, - }, - }, - }, - { - name: "invalid Feature + (deprecated) ABCI vote extensions update", - input: &types.MsgUpdateParams{ - Authority: s.consensusParamsKeeper.GetAuthority(), - Block: defaultConsensusParams.Block, - Validator: defaultConsensusParams.Validator, - Evidence: defaultConsensusParams.Evidence, - Abci: &cmtproto.ABCIParams{ //nolint: staticcheck // testing backwards compatibility - VoteExtensionsEnableHeight: 3000, - }, - Feature: &cmtproto.FeatureParams{ - VoteExtensionsEnableHeight: &gogotypes.Int64Value{Value: 3000}, + Abci: &cmtproto.ABCIParams{ + VoteExtensionsEnableHeight: 5, }, }, expErr: true, - expErrMsg: "abci in sections Feature and (deprecated) ABCI cannot be used simultaneously", + expErrMsg: "vote extensions cannot be updated to a past or current height", }, { - name: "invalid vote extensions update - current height", + name: "invalid ABCI update - past height", input: &types.MsgUpdateParams{ Authority: s.consensusParamsKeeper.GetAuthority(), Block: defaultConsensusParams.Block, Validator: defaultConsensusParams.Validator, Evidence: defaultConsensusParams.Evidence, - Feature: &cmtproto.FeatureParams{ - VoteExtensionsEnableHeight: &gogotypes.Int64Value{Value: 5}, + Abci: &cmtproto.ABCIParams{ + VoteExtensionsEnableHeight: 4, }, }, expErr: true, - expErrMsg: "xtensions cannot be updated to a past or current height", - }, - { - name: "invalid pbts update - current height", - input: &types.MsgUpdateParams{ - Authority: s.consensusParamsKeeper.GetAuthority(), - Block: defaultConsensusParams.Block, - Validator: defaultConsensusParams.Validator, - Evidence: defaultConsensusParams.Evidence, - Feature: &cmtproto.FeatureParams{ - PbtsEnableHeight: &gogotypes.Int64Value{Value: 5}, - }, - }, - expErr: true, - expErrMsg: "PBTS cannot be updated to a past or current height", - }, - { - name: "invalid vote extensions update - past height", - input: &types.MsgUpdateParams{ - Authority: s.consensusParamsKeeper.GetAuthority(), - Block: defaultConsensusParams.Block, - Validator: defaultConsensusParams.Validator, - Evidence: defaultConsensusParams.Evidence, - Feature: &cmtproto.FeatureParams{ - VoteExtensionsEnableHeight: &gogotypes.Int64Value{Value: 4}, - }, - }, - expErr: true, - expErrMsg: "xtensions cannot be updated to a past or current height", - }, - { - name: "invalid pbts update - past height", - input: &types.MsgUpdateParams{ - Authority: s.consensusParamsKeeper.GetAuthority(), - Block: defaultConsensusParams.Block, - Validator: defaultConsensusParams.Validator, - Evidence: defaultConsensusParams.Evidence, - Feature: &cmtproto.FeatureParams{ - PbtsEnableHeight: &gogotypes.Int64Value{Value: 5}, - }, - }, - expErr: true, - expErrMsg: "PBTS cannot be updated to a past or current height", - }, - { - name: "invalid vote extensions update - negative height", - input: &types.MsgUpdateParams{ - Authority: s.consensusParamsKeeper.GetAuthority(), - Block: defaultConsensusParams.Block, - Validator: defaultConsensusParams.Validator, - Evidence: defaultConsensusParams.Evidence, - Feature: &cmtproto.FeatureParams{ - VoteExtensionsEnableHeight: &gogotypes.Int64Value{Value: -1}, - }, - }, - expErr: true, - expErrMsg: "Feature.VoteExtensionsEnabledHeight cannot be negative", - }, - { - name: "invalid pbts update - negative height", - input: &types.MsgUpdateParams{ - Authority: s.consensusParamsKeeper.GetAuthority(), - Block: defaultConsensusParams.Block, - Validator: defaultConsensusParams.Validator, - Evidence: defaultConsensusParams.Evidence, - Feature: &cmtproto.FeatureParams{ - PbtsEnableHeight: &gogotypes.Int64Value{Value: -1}, - }, - }, - expErr: true, - expErrMsg: "Feature.PbtsEnableHeight cannot be negative", - }, - { - name: "invalid vote extensions update - enabled feature", - enabledFeatures: true, - input: &types.MsgUpdateParams{ - Authority: s.consensusParamsKeeper.GetAuthority(), - Block: defaultConsensusParams.Block, - Validator: defaultConsensusParams.Validator, - Evidence: defaultConsensusParams.Evidence, - Feature: &cmtproto.FeatureParams{ - VoteExtensionsEnableHeight: &gogotypes.Int64Value{Value: 25}, - }, - }, - expErr: true, - expErrMsg: "xtensions cannot be modified once enabledenabled", - }, - { - name: "invalid pbts update - enabled feature", - enabledFeatures: true, - input: &types.MsgUpdateParams{ - Authority: s.consensusParamsKeeper.GetAuthority(), - Block: defaultConsensusParams.Block, - Validator: defaultConsensusParams.Validator, - Evidence: defaultConsensusParams.Evidence, - Feature: &cmtproto.FeatureParams{ - PbtsEnableHeight: &gogotypes.Int64Value{Value: 35}, - }, - }, - expErr: true, - expErrMsg: "PBTS cannot be modified once enabled", - }, - { - name: "valid Synchrony update - precision", - input: &types.MsgUpdateParams{ - Authority: s.consensusParamsKeeper.GetAuthority(), - Block: defaultConsensusParams.Block, - Validator: defaultConsensusParams.Validator, - Evidence: defaultConsensusParams.Evidence, - Synchrony: &cmtproto.SynchronyParams{ - Precision: getDuration(3 * time.Second), - }, - }, - }, - { - name: "valid Synchrony update - delay", - input: &types.MsgUpdateParams{ - Authority: s.consensusParamsKeeper.GetAuthority(), - Block: defaultConsensusParams.Block, - Validator: defaultConsensusParams.Validator, - Evidence: defaultConsensusParams.Evidence, - Synchrony: &cmtproto.SynchronyParams{ - MessageDelay: getDuration(10 * time.Second), - }, - }, - }, - { - name: "valid Synchrony update - precision + delay", - input: &types.MsgUpdateParams{ - Authority: s.consensusParamsKeeper.GetAuthority(), - Block: defaultConsensusParams.Block, - Validator: defaultConsensusParams.Validator, - Evidence: defaultConsensusParams.Evidence, - Synchrony: &cmtproto.SynchronyParams{ - Precision: getDuration(4 * time.Second), - MessageDelay: getDuration(11 * time.Second), - }, - }, - }, - { - name: "valid Synchrony update - 0 precision", - input: &types.MsgUpdateParams{ - Authority: s.consensusParamsKeeper.GetAuthority(), - Block: defaultConsensusParams.Block, - Validator: defaultConsensusParams.Validator, - Evidence: defaultConsensusParams.Evidence, - Synchrony: &cmtproto.SynchronyParams{ - Precision: getDuration(0), - }, - }, - }, - { - name: "valid Synchrony update - 0 delay", - input: &types.MsgUpdateParams{ - Authority: s.consensusParamsKeeper.GetAuthority(), - Block: defaultConsensusParams.Block, - Validator: defaultConsensusParams.Validator, - Evidence: defaultConsensusParams.Evidence, - Synchrony: &cmtproto.SynchronyParams{ - MessageDelay: getDuration(0), - }, - }, - }, - { - name: "invalid Synchrony update - 0 precision with PBTS set", - input: &types.MsgUpdateParams{ - Authority: s.consensusParamsKeeper.GetAuthority(), - Block: defaultConsensusParams.Block, - Validator: defaultConsensusParams.Validator, - Evidence: defaultConsensusParams.Evidence, - Feature: &cmtproto.FeatureParams{ - PbtsEnableHeight: &gogotypes.Int64Value{Value: 20}, - }, - Synchrony: &cmtproto.SynchronyParams{ - Precision: getDuration(0), - }, - }, - expErr: true, - expErrMsg: "synchrony.Precision must be greater than 0", - }, - { - name: "invalid Synchrony update - 0 delay with PBTS set", - input: &types.MsgUpdateParams{ - Authority: s.consensusParamsKeeper.GetAuthority(), - Block: defaultConsensusParams.Block, - Validator: defaultConsensusParams.Validator, - Evidence: defaultConsensusParams.Evidence, - Feature: &cmtproto.FeatureParams{ - PbtsEnableHeight: &gogotypes.Int64Value{Value: 20}, - }, - Synchrony: &cmtproto.SynchronyParams{ - MessageDelay: getDuration(0), - }, - }, - expErr: true, - expErrMsg: "synchrony.MessageDelay must be greater than 0", + expErrMsg: "vote extensions cannot be updated to a past or current height", }, } for _, tc := range testCases { s.Run(tc.name, func() { - s.SetupTest(tc.enabledFeatures) + s.SetupTest() _, err := s.consensusParamsKeeper.UpdateParams(s.ctx, tc.input) if tc.expErr { s.Require().Error(err) @@ -542,33 +304,12 @@ func (s *KeeperTestSuite) TestUpdateParams() { res, err := s.consensusParamsKeeper.Params(s.ctx, &types.QueryParamsRequest{}) s.Require().NoError(err) + if tc.input.Abci != nil { + s.Require().Equal(tc.input.Abci, res.Params.Abci) + } s.Require().Equal(tc.input.Block, res.Params.Block) s.Require().Equal(tc.input.Evidence, res.Params.Evidence) s.Require().Equal(tc.input.Validator, res.Params.Validator) - if tc.input.Abci != nil { - s.Require().Equal(tc.input.Abci.VoteExtensionsEnableHeight, - res.Params.Feature.VoteExtensionsEnableHeight.GetValue()) - } - if tc.input.Feature != nil { - if tc.input.Feature.VoteExtensionsEnableHeight != nil { - s.Require().Equal(tc.input.Feature.VoteExtensionsEnableHeight.GetValue(), - res.Params.Feature.VoteExtensionsEnableHeight.GetValue()) - } - if tc.input.Feature.PbtsEnableHeight != nil { - s.Require().Equal(tc.input.Feature.PbtsEnableHeight.GetValue(), - res.Params.Feature.PbtsEnableHeight.GetValue()) - } - } - if tc.input.Synchrony != nil { - if tc.input.Synchrony.MessageDelay != nil { - s.Require().Equal(tc.input.Synchrony.MessageDelay, - res.Params.Synchrony.MessageDelay) - } - if tc.input.Synchrony.Precision != nil { - s.Require().Equal(tc.input.Synchrony.Precision, - res.Params.Synchrony.Precision) - } - } } }) } diff --git a/x/consensus/types/msgs.go b/x/consensus/types/msgs.go index 3e05e6fc34..b62c0052f7 100644 --- a/x/consensus/types/msgs.go +++ b/x/consensus/types/msgs.go @@ -3,23 +3,19 @@ package types import ( "errors" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - cmttypes "github.com/cometbft/cometbft/v2/types" - "github.com/cosmos/gogoproto/types" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + cmttypes "github.com/cometbft/cometbft/types" + + sdk "github.com/cosmos/cosmos-sdk/types" ) -// ToProtoConsensusParams converts MsgUpdateParams to cmtproto.ConsensusParams. -// It returns an error if any required parameters are missing or if there's a conflict -// between ABCI and Feature parameters. +var _ sdk.Msg = &MsgUpdateParams{} + func (msg MsgUpdateParams) ToProtoConsensusParams() (cmtproto.ConsensusParams, error) { if msg.Evidence == nil || msg.Block == nil || msg.Validator == nil { return cmtproto.ConsensusParams{}, errors.New("all parameters must be present") } - if msg.Abci != nil && msg.Feature != nil && msg.Feature.VoteExtensionsEnableHeight != nil { - return cmtproto.ConsensusParams{}, errors.New("abci in sections Feature and (deprecated) ABCI cannot be used simultaneously") - } - cp := cmtproto.ConsensusParams{ Block: &cmtproto.BlockParams{ MaxBytes: msg.Block.MaxBytes, @@ -33,18 +29,12 @@ func (msg MsgUpdateParams) ToProtoConsensusParams() (cmtproto.ConsensusParams, e Validator: &cmtproto.ValidatorParams{ PubKeyTypes: msg.Validator.PubKeyTypes, }, - Version: cmttypes.DefaultConsensusParams().ToProto().Version, // Version is stored in x/upgrade - Feature: msg.Feature, - Synchrony: msg.Synchrony, + Version: cmttypes.DefaultConsensusParams().ToProto().Version, // Version is stored in x/upgrade } if msg.Abci != nil { - if cp.Feature == nil { - cp.Feature = &cmtproto.FeatureParams{} - } - - cp.Feature.VoteExtensionsEnableHeight = &types.Int64Value{ - Value: msg.Abci.VoteExtensionsEnableHeight, + cp.Abci = &cmtproto.ABCIParams{ + VoteExtensionsEnableHeight: msg.Abci.VoteExtensionsEnableHeight, } } diff --git a/x/consensus/types/query.pb.go b/x/consensus/types/query.pb.go index 159d6830db..13820b126c 100644 --- a/x/consensus/types/query.pb.go +++ b/x/consensus/types/query.pb.go @@ -6,7 +6,7 @@ package types import ( context "context" fmt "fmt" - v2 "github.com/cometbft/cometbft/api/cometbft/types/v2" + types "github.com/cometbft/cometbft/proto/tendermint/types" _ "github.com/cosmos/cosmos-proto" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" @@ -72,7 +72,7 @@ type QueryParamsResponse struct { // 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. - Params *v2.ConsensusParams `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` + Params *types.ConsensusParams `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` } func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } @@ -108,7 +108,7 @@ func (m *QueryParamsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo -func (m *QueryParamsResponse) GetParams() *v2.ConsensusParams { +func (m *QueryParamsResponse) GetParams() *types.ConsensusParams { if m != nil { return m.Params } @@ -123,27 +123,26 @@ func init() { func init() { proto.RegisterFile("cosmos/consensus/v1/query.proto", fileDescriptor_bf54d1e5df04cee9) } var fileDescriptor_bf54d1e5df04cee9 = []byte{ - // 305 bytes of a gzipped FileDescriptorProto + // 303 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4f, 0xce, 0x2f, 0xce, 0xcd, 0x2f, 0xd6, 0x4f, 0xce, 0xcf, 0x2b, 0x4e, 0xcd, 0x2b, 0x2e, 0x2d, 0xd6, 0x2f, 0x33, 0xd4, 0x2f, 0x2c, 0x4d, 0x2d, 0xaa, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x86, 0x28, 0xd0, 0x83, 0x2b, 0xd0, 0x2b, 0x33, 0x94, 0x92, 0x49, 0xcf, 0xcf, 0x4f, 0xcf, 0x49, 0xd5, 0x4f, 0x2c, 0xc8, 0xd4, 0x4f, 0xcc, 0xcb, 0xcb, 0x2f, 0x49, 0x2c, 0xc9, 0xcc, 0xcf, 0x2b, 0x86, 0x68, 0x91, - 0x92, 0x4b, 0xce, 0xcf, 0x4d, 0x2d, 0x49, 0x4a, 0x2b, 0xd1, 0x2f, 0xa9, 0x2c, 0x48, 0x2d, 0xd6, - 0x2f, 0x33, 0xd2, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x85, 0xc9, 0x4b, 0x42, 0x8c, 0x8c, 0x07, 0xf3, - 0xf4, 0xa1, 0xe6, 0x83, 0x39, 0x4a, 0x22, 0x5c, 0x42, 0x81, 0x20, 0xcb, 0x03, 0xc0, 0xea, 0x83, - 0x52, 0x0b, 0x4b, 0x53, 0x8b, 0x4b, 0x94, 0x02, 0xb9, 0x84, 0x51, 0x44, 0x8b, 0x0b, 0x40, 0x8e, - 0x11, 0xb2, 0xe2, 0x62, 0x83, 0x98, 0x2b, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x6d, 0xa4, 0xa4, 0x07, - 0xb3, 0x58, 0x0f, 0x6c, 0xb1, 0x5e, 0x99, 0x91, 0x9e, 0x33, 0xcc, 0xd9, 0x50, 0xbd, 0x50, 0x1d, - 0x46, 0x73, 0x19, 0xb9, 0x58, 0xc1, 0x66, 0x0a, 0x4d, 0x66, 0xe4, 0x62, 0x83, 0x48, 0x0a, 0xa9, - 0xeb, 0x61, 0xf1, 0xac, 0x1e, 0xa6, 0x83, 0xa4, 0x34, 0x08, 0x2b, 0x84, 0xb8, 0x51, 0xc9, 0xec, - 0xd4, 0x16, 0x5d, 0x7e, 0x88, 0x62, 0xdd, 0xe2, 0x94, 0x6c, 0x05, 0x03, 0x3d, 0x13, 0xf3, 0xa6, - 0xcb, 0x4f, 0x26, 0x33, 0xc9, 0x0a, 0x49, 0xeb, 0x63, 0x0b, 0x7b, 0x88, 0xfb, 0x9c, 0x3c, 0x4e, - 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, - 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0x4a, 0x2f, 0x3d, 0xb3, 0x24, 0xa3, 0x34, - 0x09, 0xe4, 0x57, 0x84, 0x01, 0x30, 0xf3, 0xf5, 0x2b, 0x90, 0x4c, 0x03, 0x07, 0x42, 0x12, 0x1b, - 0x38, 0x64, 0x8d, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0xef, 0xc3, 0x08, 0x4d, 0xea, 0x01, 0x00, - 0x00, + 0x92, 0x2d, 0x49, 0xcd, 0x4b, 0x49, 0x2d, 0xca, 0xcd, 0xcc, 0x2b, 0xd1, 0x2f, 0xa9, 0x2c, 0x48, + 0x2d, 0xd6, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x85, 0x49, 0x4b, 0x42, 0x4c, 0x8c, 0x07, 0xf3, 0xf4, + 0xa1, 0xc6, 0x83, 0x39, 0x4a, 0x22, 0x5c, 0x42, 0x81, 0x20, 0xbb, 0x03, 0xc0, 0xea, 0x83, 0x52, + 0x0b, 0x4b, 0x53, 0x8b, 0x4b, 0x94, 0x02, 0xb8, 0x84, 0x51, 0x44, 0x8b, 0x0b, 0x40, 0x6e, 0x11, + 0xb2, 0xe4, 0x62, 0x83, 0x98, 0x2b, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x6d, 0xa4, 0xa8, 0x87, 0xb0, + 0x57, 0x0f, 0x6c, 0xaf, 0x9e, 0x33, 0xcc, 0xd1, 0x50, 0xad, 0x50, 0x0d, 0x46, 0x73, 0x19, 0xb9, + 0x58, 0xc1, 0x46, 0x0a, 0x4d, 0x66, 0xe4, 0x62, 0x83, 0x48, 0x0a, 0xa9, 0xeb, 0x61, 0xf1, 0xaa, + 0x1e, 0xa6, 0x7b, 0xa4, 0x34, 0x08, 0x2b, 0x84, 0x38, 0x51, 0xc9, 0xec, 0xd4, 0x16, 0x5d, 0x7e, + 0x88, 0x62, 0xdd, 0xe2, 0x94, 0x6c, 0x05, 0x03, 0x3d, 0x13, 0xf3, 0xa6, 0xcb, 0x4f, 0x26, 0x33, + 0xc9, 0x0a, 0x49, 0xeb, 0x63, 0x0b, 0x79, 0x88, 0xfb, 0x9c, 0x3c, 0x4e, 0x3c, 0x92, 0x63, 0xbc, + 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, + 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0x4a, 0x2f, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, + 0x17, 0x61, 0x00, 0xcc, 0x7c, 0xfd, 0x0a, 0x24, 0xd3, 0xc0, 0x21, 0x90, 0xc4, 0x06, 0x0e, 0x58, + 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x4e, 0x4b, 0x2b, 0x44, 0xe8, 0x01, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -435,7 +434,7 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Params == nil { - m.Params = &v2.ConsensusParams{} + m.Params = &types.ConsensusParams{} } if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err diff --git a/x/consensus/types/tx.pb.go b/x/consensus/types/tx.pb.go index d4894184e7..e1c0c7092b 100644 --- a/x/consensus/types/tx.pb.go +++ b/x/consensus/types/tx.pb.go @@ -6,7 +6,7 @@ package types import ( context "context" fmt "fmt" - v2 "github.com/cometbft/cometbft/api/cometbft/types/v2" + types "github.com/cometbft/cometbft/proto/tendermint/types" _ "github.com/cosmos/cosmos-proto" _ "github.com/cosmos/cosmos-sdk/types/msgservice" _ "github.com/cosmos/cosmos-sdk/types/tx/amino" @@ -37,15 +37,13 @@ type MsgUpdateParams struct { Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the x/consensus parameters to update. // VersionsParams is not included in this Msg because it is tracked - // separately in x/upgrade. + // separarately in x/upgrade. // // NOTE: All parameters must be supplied. - Block *v2.BlockParams `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"` - Evidence *v2.EvidenceParams `protobuf:"bytes,3,opt,name=evidence,proto3" json:"evidence,omitempty"` - Validator *v2.ValidatorParams `protobuf:"bytes,4,opt,name=validator,proto3" json:"validator,omitempty"` - Abci *v2.ABCIParams `protobuf:"bytes,5,opt,name=abci,proto3" json:"abci,omitempty"` // Deprecated: Do not use. - Synchrony *v2.SynchronyParams `protobuf:"bytes,6,opt,name=synchrony,proto3" json:"synchrony,omitempty"` - Feature *v2.FeatureParams `protobuf:"bytes,7,opt,name=feature,proto3" json:"feature,omitempty"` + Block *types.BlockParams `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"` + Evidence *types.EvidenceParams `protobuf:"bytes,3,opt,name=evidence,proto3" json:"evidence,omitempty"` + Validator *types.ValidatorParams `protobuf:"bytes,4,opt,name=validator,proto3" json:"validator,omitempty"` + Abci *types.ABCIParams `protobuf:"bytes,5,opt,name=abci,proto3" json:"abci,omitempty"` } func (m *MsgUpdateParams) Reset() { *m = MsgUpdateParams{} } @@ -88,49 +86,34 @@ func (m *MsgUpdateParams) GetAuthority() string { return "" } -func (m *MsgUpdateParams) GetBlock() *v2.BlockParams { +func (m *MsgUpdateParams) GetBlock() *types.BlockParams { if m != nil { return m.Block } return nil } -func (m *MsgUpdateParams) GetEvidence() *v2.EvidenceParams { +func (m *MsgUpdateParams) GetEvidence() *types.EvidenceParams { if m != nil { return m.Evidence } return nil } -func (m *MsgUpdateParams) GetValidator() *v2.ValidatorParams { +func (m *MsgUpdateParams) GetValidator() *types.ValidatorParams { if m != nil { return m.Validator } return nil } -// Deprecated: Do not use. -func (m *MsgUpdateParams) GetAbci() *v2.ABCIParams { +func (m *MsgUpdateParams) GetAbci() *types.ABCIParams { if m != nil { return m.Abci } return nil } -func (m *MsgUpdateParams) GetSynchrony() *v2.SynchronyParams { - if m != nil { - return m.Synchrony - } - return nil -} - -func (m *MsgUpdateParams) GetFeature() *v2.FeatureParams { - if m != nil { - return m.Feature - } - return nil -} - // MsgUpdateParamsResponse defines the response structure for executing a // MsgUpdateParams message. type MsgUpdateParamsResponse struct { @@ -177,39 +160,35 @@ func init() { func init() { proto.RegisterFile("cosmos/consensus/v1/tx.proto", fileDescriptor_2135c60575ab504d) } var fileDescriptor_2135c60575ab504d = []byte{ - // 502 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x41, 0x6b, 0x13, 0x41, - 0x1c, 0xc5, 0xbb, 0x36, 0x69, 0xcd, 0x28, 0x14, 0x37, 0x4a, 0xa7, 0x41, 0x97, 0x18, 0x44, 0x4a, - 0x30, 0x33, 0x6d, 0x8c, 0x8a, 0x82, 0x60, 0x57, 0x94, 0x7a, 0x28, 0xca, 0x96, 0x7a, 0xf0, 0x22, - 0xb3, 0xbb, 0xd3, 0xcd, 0xd2, 0xee, 0xce, 0xb2, 0x33, 0x59, 0x9b, 0x9b, 0x08, 0x5e, 0x3c, 0xf9, - 0x45, 0x84, 0x1c, 0xfa, 0x21, 0xc4, 0x53, 0xf1, 0x24, 0x9e, 0x24, 0x39, 0xe4, 0x6b, 0x48, 0x66, - 0x66, 0xb3, 0x1a, 0x57, 0xf1, 0x12, 0xc8, 0xbe, 0xf7, 0x7b, 0x6f, 0xe7, 0xbf, 0xff, 0x01, 0x57, - 0x3d, 0xc6, 0x23, 0xc6, 0xb1, 0xc7, 0x62, 0x4e, 0x63, 0x3e, 0xe0, 0x38, 0xdb, 0xc6, 0xe2, 0x04, - 0x25, 0x29, 0x13, 0xcc, 0xac, 0x2b, 0x15, 0xcd, 0x55, 0x94, 0x6d, 0x37, 0x2e, 0x91, 0x28, 0x8c, - 0x19, 0x96, 0xbf, 0xca, 0xd7, 0xd8, 0x50, 0xbe, 0xd7, 0xf2, 0x1f, 0xd6, 0x90, 0x92, 0xd6, 0x75, - 0x41, 0xc4, 0x83, 0x59, 0x74, 0xc4, 0x03, 0x2d, 0x58, 0x1e, 0x8b, 0xa8, 0x70, 0x0f, 0x05, 0x16, - 0xc3, 0x84, 0x72, 0x9c, 0x75, 0x71, 0x42, 0x52, 0x12, 0x69, 0xb0, 0xf5, 0xa9, 0x02, 0xd6, 0xf6, - 0x78, 0x70, 0x90, 0xf8, 0x44, 0xd0, 0x17, 0x52, 0x31, 0xef, 0x82, 0x1a, 0x19, 0x88, 0x3e, 0x4b, - 0x43, 0x31, 0x84, 0x46, 0xd3, 0xd8, 0xac, 0xd9, 0xf0, 0xeb, 0x69, 0xe7, 0xb2, 0x6e, 0xdc, 0xf1, - 0xfd, 0x94, 0x72, 0xbe, 0x2f, 0xd2, 0x30, 0x0e, 0x9c, 0xc2, 0x6a, 0xf6, 0x40, 0xd5, 0x3d, 0x66, - 0xde, 0x11, 0x3c, 0xd7, 0x34, 0x36, 0x2f, 0x74, 0x2d, 0x94, 0x77, 0x23, 0xd9, 0x8d, 0xb2, 0x2e, - 0xb2, 0x67, 0xba, 0xaa, 0x71, 0x94, 0xd9, 0x7c, 0x08, 0xce, 0xd3, 0x2c, 0xf4, 0x69, 0xec, 0x51, - 0xb8, 0x2c, 0xc1, 0xeb, 0x25, 0xe0, 0x13, 0x6d, 0xd1, 0xec, 0x1c, 0x31, 0x1f, 0x81, 0x5a, 0x46, - 0x8e, 0x43, 0x9f, 0x08, 0x96, 0xc2, 0x8a, 0xe4, 0x5b, 0x25, 0xfc, 0xcb, 0xdc, 0xa3, 0x03, 0x0a, - 0xc8, 0xdc, 0x05, 0x15, 0xe2, 0x7a, 0x21, 0xac, 0x4a, 0xf8, 0x5a, 0x09, 0xbc, 0x63, 0x3f, 0x7e, - 0xa6, 0x38, 0xfb, 0xca, 0xf7, 0xd3, 0xce, 0x9a, 0x1a, 0x44, 0x87, 0xfb, 0x47, 0xcd, 0x2d, 0x74, - 0x67, 0x0b, 0x1a, 0x8e, 0x4c, 0x30, 0x0f, 0x40, 0x8d, 0x0f, 0x63, 0xaf, 0x9f, 0xb2, 0x78, 0x08, - 0x57, 0xfe, 0xfa, 0x2e, 0xfb, 0xb9, 0x47, 0x67, 0xd6, 0xff, 0xcc, 0xec, 0x39, 0x45, 0x92, 0xf9, - 0x1c, 0xac, 0x1e, 0x52, 0x22, 0x06, 0x29, 0x85, 0xab, 0x32, 0xb4, 0x59, 0x12, 0xfa, 0x54, 0x39, - 0xfe, 0x15, 0x99, 0xa7, 0x3c, 0xb8, 0xff, 0x6e, 0x3a, 0x6a, 0x17, 0x1f, 0xee, 0xc3, 0x74, 0xd4, - 0xbe, 0x59, 0x98, 0xf1, 0xc9, 0x2f, 0x7b, 0xba, 0xb0, 0x1b, 0xad, 0x0d, 0xb0, 0xbe, 0xf0, 0xc8, - 0xa1, 0x3c, 0x99, 0xd9, 0xbb, 0xef, 0x0d, 0xb0, 0xbc, 0xc7, 0x03, 0xf3, 0x0d, 0xb8, 0xf8, 0xdb, - 0x3a, 0xdd, 0x40, 0x25, 0xfb, 0x8d, 0x16, 0x52, 0x1a, 0xb7, 0xfe, 0xc7, 0x95, 0x77, 0xb5, 0xea, - 0x5f, 0x16, 0xcf, 0xd7, 0xbb, 0xd7, 0xa8, 0xbe, 0x9d, 0x8e, 0xda, 0x86, 0xbd, 0xfb, 0x79, 0x6c, - 0x19, 0x67, 0x63, 0xcb, 0xf8, 0x31, 0xb6, 0x8c, 0x8f, 0x13, 0x6b, 0xe9, 0x6c, 0x62, 0x2d, 0x7d, - 0x9b, 0x58, 0x4b, 0xaf, 0x50, 0x10, 0x8a, 0xfe, 0xc0, 0x9d, 0x4d, 0x0f, 0xcf, 0x6f, 0x64, 0xe9, - 0xb1, 0xe5, 0x58, 0xdd, 0x15, 0x79, 0x47, 0x6e, 0xff, 0x0c, 0x00, 0x00, 0xff, 0xff, 0xa7, 0xd8, - 0x92, 0xdc, 0xbf, 0x03, 0x00, 0x00, + // 445 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x49, 0xce, 0x2f, 0xce, + 0xcd, 0x2f, 0xd6, 0x4f, 0xce, 0xcf, 0x2b, 0x4e, 0xcd, 0x2b, 0x2e, 0x2d, 0xd6, 0x2f, 0x33, 0xd4, + 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x86, 0xc8, 0xea, 0xc1, 0x65, 0xf5, + 0xca, 0x0c, 0xa5, 0x04, 0x13, 0x73, 0x33, 0xf3, 0xf2, 0xf5, 0xc1, 0x24, 0x44, 0x9d, 0x94, 0x24, + 0x44, 0x5d, 0x3c, 0x98, 0xa7, 0x0f, 0xd5, 0x04, 0x91, 0x12, 0x87, 0x5a, 0x90, 0x5b, 0x9c, 0x0e, + 0x32, 0x3a, 0xb7, 0x38, 0x1d, 0x2a, 0x21, 0x5b, 0x92, 0x9a, 0x97, 0x92, 0x5a, 0x94, 0x9b, 0x99, + 0x57, 0xa2, 0x5f, 0x52, 0x59, 0x90, 0x5a, 0xac, 0x5f, 0x90, 0x58, 0x94, 0x98, 0x0b, 0xd5, 0xa7, + 0xf4, 0x9f, 0x89, 0x8b, 0xdf, 0xb7, 0x38, 0x3d, 0xb4, 0x20, 0x25, 0xb1, 0x24, 0x35, 0x00, 0x2c, + 0x23, 0x64, 0xc6, 0xc5, 0x99, 0x58, 0x5a, 0x92, 0x91, 0x5f, 0x94, 0x59, 0x52, 0x29, 0xc1, 0xa8, + 0xc0, 0xa8, 0xc1, 0xe9, 0x24, 0x71, 0x69, 0x8b, 0xae, 0x08, 0xd4, 0x42, 0xc7, 0x94, 0x94, 0xa2, + 0xd4, 0xe2, 0xe2, 0xe0, 0x92, 0xa2, 0xcc, 0xbc, 0xf4, 0x20, 0x84, 0x52, 0x21, 0x63, 0x2e, 0xd6, + 0xa4, 0x9c, 0xfc, 0xe4, 0x6c, 0x09, 0x26, 0x05, 0x46, 0x0d, 0x6e, 0x23, 0x59, 0x3d, 0x84, 0xd5, + 0x7a, 0x60, 0xab, 0xf5, 0x9c, 0x40, 0xd2, 0x10, 0x5b, 0x82, 0x20, 0x6a, 0x85, 0x6c, 0xb8, 0x38, + 0x52, 0xcb, 0x32, 0x53, 0x52, 0xf3, 0x92, 0x53, 0x25, 0x98, 0xc1, 0xfa, 0x14, 0x30, 0xf5, 0xb9, + 0x42, 0x55, 0x40, 0xb5, 0xc2, 0x75, 0x08, 0xd9, 0x73, 0x71, 0x96, 0x25, 0xe6, 0x64, 0xa6, 0x24, + 0x96, 0xe4, 0x17, 0x49, 0xb0, 0x80, 0xb5, 0x2b, 0x62, 0x6a, 0x0f, 0x83, 0x29, 0x81, 0xea, 0x47, + 0xe8, 0x11, 0x72, 0xe5, 0x62, 0x49, 0x4c, 0x4a, 0xce, 0x94, 0x60, 0x05, 0xeb, 0x95, 0xc1, 0xd4, + 0xeb, 0xe8, 0xe4, 0xec, 0x09, 0xd1, 0xe6, 0x24, 0x7c, 0x6b, 0x8b, 0x2e, 0x3f, 0x24, 0x10, 0x74, + 0x8b, 0x53, 0xb2, 0x15, 0x0c, 0xf4, 0x4c, 0x0d, 0x82, 0xc0, 0xda, 0xad, 0x2c, 0x9b, 0x9e, 0x6f, + 0xd0, 0x42, 0x04, 0x45, 0xd7, 0xf3, 0x0d, 0x5a, 0x6a, 0x08, 0x95, 0xfa, 0x15, 0x48, 0x11, 0x8f, + 0x16, 0xda, 0x4a, 0x92, 0x5c, 0xe2, 0x68, 0x42, 0x41, 0xa9, 0xc5, 0x05, 0x20, 0xe5, 0x46, 0xad, + 0x8c, 0x5c, 0xcc, 0xbe, 0xc5, 0xe9, 0x42, 0xe5, 0x5c, 0x3c, 0x28, 0x11, 0xa4, 0xa2, 0x87, 0x25, + 0xc1, 0xe8, 0xa1, 0x99, 0x22, 0xa5, 0x43, 0x8c, 0x2a, 0x98, 0x5d, 0x4a, 0xc2, 0xa7, 0xd0, 0x3d, + 0x67, 0x62, 0x2e, 0xc5, 0xda, 0xf0, 0x7c, 0x83, 0x16, 0xa3, 0x93, 0xc7, 0x89, 0x47, 0x72, 0x8c, + 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x38, 0xe1, 0xb1, 0x1c, 0xc3, 0x85, 0xc7, 0x72, + 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0xe9, 0xa5, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, + 0xe7, 0xea, 0xc3, 0x93, 0x38, 0x56, 0x6f, 0x83, 0x43, 0x33, 0x89, 0x0d, 0x9c, 0xea, 0x8c, 0x01, + 0x01, 0x00, 0x00, 0xff, 0xff, 0x4e, 0x9f, 0x28, 0xdd, 0x10, 0x03, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -317,30 +296,6 @@ func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.Feature != nil { - { - size, err := m.Feature.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - if m.Synchrony != nil { - { - size, err := m.Synchrony.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } if m.Abci != nil { { size, err := m.Abci.MarshalToSizedBuffer(dAtA[:i]) @@ -459,14 +414,6 @@ func (m *MsgUpdateParams) Size() (n int) { l = m.Abci.Size() n += 1 + l + sovTx(uint64(l)) } - if m.Synchrony != nil { - l = m.Synchrony.Size() - n += 1 + l + sovTx(uint64(l)) - } - if m.Feature != nil { - l = m.Feature.Size() - n += 1 + l + sovTx(uint64(l)) - } return n } @@ -576,7 +523,7 @@ func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Block == nil { - m.Block = &v2.BlockParams{} + m.Block = &types.BlockParams{} } if err := m.Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -612,7 +559,7 @@ func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Evidence == nil { - m.Evidence = &v2.EvidenceParams{} + m.Evidence = &types.EvidenceParams{} } if err := m.Evidence.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -648,7 +595,7 @@ func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Validator == nil { - m.Validator = &v2.ValidatorParams{} + m.Validator = &types.ValidatorParams{} } if err := m.Validator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -684,84 +631,12 @@ func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Abci == nil { - m.Abci = &v2.ABCIParams{} + m.Abci = &types.ABCIParams{} } if err := m.Abci.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Synchrony", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Synchrony == nil { - m.Synchrony = &v2.SynchronyParams{} - } - if err := m.Synchrony.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Feature", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Feature == nil { - m.Feature = &v2.FeatureParams{} - } - if err := m.Feature.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) diff --git a/x/distribution/client/cli/tx_test.go b/x/distribution/client/cli/tx_test.go index df70d647b2..a50f45c246 100644 --- a/x/distribution/client/cli/tx_test.go +++ b/x/distribution/client/cli/tx_test.go @@ -6,8 +6,8 @@ import ( "io" "testing" - abci "github.com/cometbft/cometbft/v2/abci/types" - rpcclientmock "github.com/cometbft/cometbft/v2/rpc/client/mock" + abci "github.com/cometbft/cometbft/abci/types" + rpcclientmock "github.com/cometbft/cometbft/rpc/client/mock" "github.com/cosmos/gogoproto/proto" "github.com/stretchr/testify/suite" @@ -57,7 +57,7 @@ func (s *CLITestSuite) SetupSuite() { ctxGen := func() client.Context { bz, _ := s.encCfg.Codec.Marshal(&sdk.TxResponse{}) - c := clitestutil.NewMockCometRPC(abci.QueryResponse{ + c := clitestutil.NewMockCometRPC(abci.ResponseQuery{ Value: bz, }) return s.baseCtx.WithClient(c) diff --git a/x/distribution/keeper/abci_test.go b/x/distribution/keeper/abci_test.go index e0e3e816b4..7fd82eaef1 100644 --- a/x/distribution/keeper/abci_test.go +++ b/x/distribution/keeper/abci_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/require" "go.uber.org/mock/gomock" diff --git a/x/distribution/keeper/allocation.go b/x/distribution/keeper/allocation.go index 4dd4122210..5af17ba3b8 100644 --- a/x/distribution/keeper/allocation.go +++ b/x/distribution/keeper/allocation.go @@ -3,7 +3,7 @@ package keeper import ( "context" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "cosmossdk.io/math" diff --git a/x/distribution/keeper/allocation_test.go b/x/distribution/keeper/allocation_test.go index a94ff14cb9..1246d57b2a 100644 --- a/x/distribution/keeper/allocation_test.go +++ b/x/distribution/keeper/allocation_test.go @@ -4,8 +4,8 @@ import ( "testing" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/require" "go.uber.org/mock/gomock" diff --git a/x/distribution/keeper/delegation_test.go b/x/distribution/keeper/delegation_test.go index 0cb16b065b..dc6f94f832 100644 --- a/x/distribution/keeper/delegation_test.go +++ b/x/distribution/keeper/delegation_test.go @@ -3,7 +3,7 @@ package keeper_test import ( "testing" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/require" "go.uber.org/mock/gomock" diff --git a/x/distribution/keeper/keeper_test.go b/x/distribution/keeper/keeper_test.go index 442bbb03ab..1abbef8740 100644 --- a/x/distribution/keeper/keeper_test.go +++ b/x/distribution/keeper/keeper_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/require" "go.uber.org/mock/gomock" diff --git a/x/distribution/simulation/operations_test.go b/x/distribution/simulation/operations_test.go index 4a5faae00b..f1717d80ae 100644 --- a/x/distribution/simulation/operations_test.go +++ b/x/distribution/simulation/operations_test.go @@ -4,7 +4,7 @@ import ( "math/rand" "testing" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "github.com/cosmos/gogoproto/proto" "github.com/stretchr/testify/suite" @@ -74,7 +74,7 @@ func (suite *SimTestSuite) TestSimulateMsgSetWithdrawAddress() { r := rand.New(s) accounts := suite.getTestingAccounts(r, 3) - _, err := suite.app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err := suite.app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: suite.app.LastBlockHeight() + 1, Hash: suite.app.LastCommitID().Hash, }) @@ -120,7 +120,7 @@ func (suite *SimTestSuite) TestSimulateMsgWithdrawDelegatorReward() { suite.setupValidatorRewards(valBz) - _, err = suite.app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = suite.app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: suite.app.LastBlockHeight() + 1, Hash: suite.app.LastCommitID().Hash, }) @@ -187,7 +187,7 @@ func (suite *SimTestSuite) testSimulateMsgWithdrawValidatorCommission(tokenName suite.Require().NoError(suite.distrKeeper.SetValidatorAccumulatedCommission(suite.ctx, val0, types.ValidatorAccumulatedCommission{Commission: valCommission})) suite.Require().NoError(suite.distrKeeper.SetValidatorAccumulatedCommission(suite.ctx, genVal0, types.ValidatorAccumulatedCommission{Commission: valCommission})) - _, err = suite.app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = suite.app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: suite.app.LastBlockHeight() + 1, Hash: suite.app.LastCommitID().Hash, }) @@ -219,7 +219,7 @@ func (suite *SimTestSuite) TestSimulateMsgFundCommunityPool() { r := rand.New(s) accounts := suite.getTestingAccounts(r, 3) - _, err := suite.app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err := suite.app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: suite.app.LastBlockHeight() + 1, Hash: suite.app.LastCommitID().Hash, }) diff --git a/x/distribution/simulation/proposals_test.go b/x/distribution/simulation/proposals_test.go index 78af70cf6d..99d0b91389 100644 --- a/x/distribution/simulation/proposals_test.go +++ b/x/distribution/simulation/proposals_test.go @@ -4,7 +4,7 @@ import ( "math/rand" "testing" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "gotest.tools/v3/assert" sdkmath "cosmossdk.io/math" diff --git a/x/evidence/genesis_test.go b/x/evidence/genesis_test.go index 49128dcb4b..1a09b5e554 100644 --- a/x/evidence/genesis_test.go +++ b/x/evidence/genesis_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" diff --git a/x/evidence/keeper/keeper_test.go b/x/evidence/keeper/keeper_test.go index ee6e4cb7ed..d3fb8e0afe 100644 --- a/x/evidence/keeper/keeper_test.go +++ b/x/evidence/keeper/keeper_test.go @@ -6,7 +6,7 @@ import ( "fmt" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/suite" "go.uber.org/mock/gomock" diff --git a/x/evidence/types/evidence.go b/x/evidence/types/evidence.go index d2e3941d90..33658335f8 100644 --- a/x/evidence/types/evidence.go +++ b/x/evidence/types/evidence.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - "github.com/cometbft/cometbft/v2/crypto/tmhash" + "github.com/cometbft/cometbft/crypto/tmhash" "cosmossdk.io/core/address" "cosmossdk.io/core/comet" diff --git a/x/evidence/types/evidence.pb.go b/x/evidence/types/evidence.pb.go index 8e58f47420..a79aa730b2 100644 --- a/x/evidence/types/evidence.pb.go +++ b/x/evidence/types/evidence.pb.go @@ -84,30 +84,30 @@ func init() { } var fileDescriptor_dd143e71a177f0dd = []byte{ - // 360 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x51, 0xcd, 0x4e, 0xc2, 0x40, - 0x18, 0xec, 0x0a, 0x92, 0x58, 0x35, 0x91, 0x86, 0x68, 0xe5, 0xd0, 0x12, 0x63, 0x0c, 0x21, 0xa1, - 0x1b, 0x34, 0x5e, 0x4c, 0x3c, 0x48, 0xc2, 0x0b, 0x80, 0x27, 0x2f, 0xa4, 0x3f, 0x6b, 0xd9, 0x68, - 0xfb, 0xd5, 0xee, 0x16, 0xf5, 0x0d, 0x8c, 0x27, 0x1e, 0x81, 0x23, 0x47, 0x0e, 0x3e, 0x04, 0x47, - 0xe2, 0xc9, 0x93, 0x9a, 0x72, 0x80, 0xc7, 0x30, 0x74, 0x17, 0xe4, 0xd2, 0x7c, 0x33, 0x9d, 0x6f, - 0x66, 0x77, 0x56, 0x3d, 0x73, 0x81, 0x05, 0xc0, 0x30, 0xe9, 0x53, 0x8f, 0x84, 0x2e, 0xc1, 0xfd, - 0x86, 0x43, 0xb8, 0xdd, 0x58, 0x13, 0x56, 0x14, 0x03, 0x07, 0xed, 0x48, 0xe8, 0xac, 0x35, 0x2d, - 0x75, 0xe5, 0xa2, 0x1d, 0xd0, 0x10, 0x70, 0xf6, 0x15, 0xda, 0x72, 0xc9, 0x07, 0x1f, 0xb2, 0x11, - 0x2f, 0x27, 0xc9, 0x9a, 0x3e, 0x80, 0xff, 0x48, 0x70, 0x86, 0x9c, 0xe4, 0x1e, 0x73, 0x1a, 0x10, - 0xc6, 0xed, 0x20, 0x92, 0x82, 0x63, 0x11, 0xd1, 0x15, 0x9b, 0x32, 0x2f, 0x03, 0x27, 0x0b, 0xa4, - 0xee, 0xb5, 0x9e, 0x12, 0xda, 0x07, 0xd7, 0xe6, 0x14, 0x42, 0xed, 0x50, 0x2d, 0xf4, 0x08, 0xf5, - 0x7b, 0x5c, 0x47, 0x15, 0x54, 0xcd, 0xb5, 0x25, 0xd2, 0xae, 0xd5, 0xfc, 0xd2, 0x56, 0xdf, 0xaa, - 0xa0, 0xea, 0xee, 0x79, 0xd9, 0x12, 0x99, 0xd6, 0x2a, 0xd3, 0xba, 0x5d, 0x65, 0x36, 0xf7, 0x27, - 0xdf, 0xa6, 0x32, 0xf8, 0x31, 0xd1, 0x68, 0x3e, 0xae, 0xa1, 0x76, 0xb6, 0xa6, 0x95, 0xd4, 0xed, - 0x08, 0x9e, 0x49, 0xac, 0xe7, 0x32, 0x57, 0x01, 0xb4, 0x96, 0x5a, 0x74, 0x21, 0x64, 0x24, 0x64, - 0x09, 0xeb, 0xda, 0x9e, 0x17, 0x13, 0xc6, 0xf4, 0x7c, 0x05, 0x55, 0x77, 0x9a, 0xfa, 0xe7, 0x47, - 0xbd, 0x24, 0x8f, 0x7a, 0x23, 0xfe, 0x74, 0x78, 0x4c, 0x43, 0xbf, 0x7d, 0xb0, 0x5e, 0x91, 0xfc, - 0xd5, 0xe9, 0xdb, 0xd0, 0x54, 0x16, 0x43, 0x53, 0x79, 0x9f, 0x8f, 0x6b, 0xb2, 0xcf, 0x3a, 0xf3, - 0x1e, 0xf0, 0xe6, 0xcd, 0x9a, 0x9d, 0x51, 0x6a, 0xa0, 0x49, 0x6a, 0xa0, 0x69, 0x6a, 0xa0, 0xdf, - 0xd4, 0x40, 0x83, 0x99, 0xa1, 0x4c, 0x67, 0x86, 0xf2, 0x35, 0x33, 0x94, 0xbb, 0x4b, 0x9f, 0xf2, - 0x5e, 0xe2, 0x58, 0x2e, 0x04, 0xb2, 0x21, 0xbc, 0x61, 0xe4, 0x42, 0xc8, 0x63, 0xea, 0xe0, 0x97, - 0xff, 0xe7, 0xe4, 0xaf, 0x11, 0x61, 0x4e, 0x21, 0x2b, 0xe0, 0xe2, 0x2f, 0x00, 0x00, 0xff, 0xff, - 0xdf, 0xa2, 0x04, 0x55, 0xee, 0x01, 0x00, 0x00, + // 356 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4b, 0xce, 0x2f, 0xce, + 0xcd, 0x2f, 0xd6, 0x4f, 0x2d, 0xcb, 0x4c, 0x49, 0xcd, 0x4b, 0x4e, 0xd5, 0x2f, 0x33, 0x4c, 0x4a, + 0x2d, 0x49, 0x34, 0x84, 0x0b, 0xe8, 0x15, 0x14, 0xe5, 0x97, 0xe4, 0x0b, 0x89, 0x43, 0xd4, 0xe9, + 0xc1, 0x85, 0xa1, 0xea, 0xa4, 0x04, 0x13, 0x73, 0x33, 0xf3, 0xf2, 0xf5, 0xc1, 0x24, 0x44, 0xad, + 0x94, 0x48, 0x7a, 0x7e, 0x7a, 0x3e, 0x98, 0xa9, 0x0f, 0x62, 0x41, 0x45, 0xe5, 0xd3, 0xf3, 0xf3, + 0xd3, 0x73, 0x52, 0xf5, 0xc1, 0xbc, 0xa4, 0xd2, 0x34, 0xfd, 0x92, 0xcc, 0xdc, 0xd4, 0xe2, 0x92, + 0xc4, 0xdc, 0x02, 0xa8, 0x02, 0x49, 0x88, 0x15, 0xf1, 0x10, 0x9d, 0x50, 0xfb, 0xc0, 0x1c, 0xa5, + 0x17, 0x8c, 0x5c, 0x3c, 0xae, 0x85, 0xa5, 0x99, 0x65, 0xf9, 0xc9, 0x89, 0x25, 0x99, 0xf9, 0x79, + 0x42, 0x62, 0x5c, 0x6c, 0x19, 0xa9, 0x99, 0xe9, 0x19, 0x25, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0xcc, + 0x41, 0x50, 0x9e, 0x90, 0x2d, 0x17, 0x0b, 0xc8, 0x58, 0x09, 0x26, 0x05, 0x46, 0x0d, 0x6e, 0x23, + 0x29, 0x3d, 0x88, 0x9d, 0x7a, 0x30, 0x3b, 0xf5, 0x42, 0x60, 0x76, 0x3a, 0xf1, 0x9e, 0xb8, 0x27, + 0xcf, 0x30, 0xe1, 0xbe, 0x3c, 0xe3, 0x8a, 0xe7, 0x1b, 0xb4, 0x18, 0x83, 0xc0, 0xda, 0x84, 0x44, + 0xb8, 0x58, 0x0b, 0xf2, 0xcb, 0x53, 0x8b, 0x24, 0x98, 0xc1, 0xa6, 0x42, 0x38, 0x42, 0xae, 0x5c, + 0x82, 0xc9, 0xf9, 0x79, 0xc5, 0xa9, 0x79, 0xc5, 0xa5, 0xc5, 0xf1, 0x89, 0x29, 0x29, 0x45, 0xa9, + 0xc5, 0xc5, 0x12, 0x2c, 0x0a, 0x8c, 0x1a, 0x9c, 0x4e, 0x12, 0x97, 0xb6, 0xe8, 0x8a, 0x40, 0x9d, + 0xea, 0x08, 0x91, 0x09, 0x2e, 0x29, 0xca, 0xcc, 0x4b, 0x0f, 0x12, 0x80, 0x6b, 0x81, 0x8a, 0x5b, + 0xa9, 0x74, 0x2c, 0x90, 0x67, 0x78, 0xb1, 0x40, 0x9e, 0xa1, 0xeb, 0xf9, 0x06, 0x2d, 0x68, 0x78, + 0xea, 0x16, 0xa7, 0x64, 0xeb, 0x23, 0xfb, 0xcc, 0xc9, 0x7b, 0xc5, 0x23, 0x39, 0xc6, 0x13, 0x8f, + 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, 0x39, 0x86, 0x0b, + 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x88, 0xd2, 0x4d, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, + 0x4b, 0xce, 0xcf, 0x85, 0x86, 0x90, 0x3e, 0x92, 0x41, 0x15, 0x88, 0x68, 0x2c, 0xa9, 0x2c, 0x48, + 0x2d, 0x4e, 0x62, 0x03, 0x7b, 0xdc, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x73, 0xbd, 0x43, 0x8e, + 0xe6, 0x01, 0x00, 0x00, } func (m *Equivocation) Marshal() (dAtA []byte, err error) { diff --git a/x/evidence/types/genesis.pb.go b/x/evidence/types/genesis.pb.go index 8392e4af6f..fa521f6892 100644 --- a/x/evidence/types/genesis.pb.go +++ b/x/evidence/types/genesis.pb.go @@ -78,7 +78,7 @@ func init() { } var fileDescriptor_c610c52c26e0e202 = []byte{ - // 203 bytes of a gzipped FileDescriptorProto + // 195 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4d, 0xce, 0x2f, 0xce, 0xcd, 0x2f, 0xd6, 0x4f, 0x2d, 0xcb, 0x4c, 0x49, 0xcd, 0x4b, 0x4e, 0xd5, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0x34, 0xd4, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, @@ -86,12 +86,12 @@ var fileDescriptor_c610c52c26e0e202 = []byte{ 0x4f, 0xcf, 0x49, 0xd5, 0x07, 0x2b, 0x4b, 0x2a, 0x4d, 0xd3, 0x4f, 0xcc, 0xab, 0x84, 0xe8, 0x51, 0x72, 0xe0, 0xe2, 0x71, 0x87, 0x18, 0x12, 0x5c, 0x92, 0x58, 0x92, 0x2a, 0x64, 0xc0, 0xc5, 0x01, 0xd3, 0x2e, 0xc1, 0xa8, 0xc0, 0xac, 0xc1, 0x6d, 0x24, 0xa2, 0x07, 0xd1, 0xad, 0x07, 0xd3, 0xad, - 0xe7, 0x98, 0x57, 0x19, 0x04, 0x57, 0xe5, 0xe4, 0x7f, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, + 0xe7, 0x98, 0x57, 0x19, 0x04, 0x57, 0xe5, 0xe4, 0x7e, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, - 0x72, 0x0c, 0x51, 0xa6, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x50, - 0x1f, 0x40, 0x28, 0xdd, 0xe2, 0x94, 0x6c, 0xfd, 0xe4, 0xfc, 0xbc, 0x92, 0xa2, 0xcc, 0x24, 0xfd, - 0x0a, 0x84, 0xb7, 0x4a, 0x2a, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0x16, 0x19, 0x03, 0x02, 0x00, - 0x00, 0xff, 0xff, 0x08, 0x24, 0xec, 0xcf, 0xf6, 0x00, 0x00, 0x00, + 0x72, 0x0c, 0x51, 0xba, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x50, + 0x1f, 0x40, 0x28, 0xdd, 0xe2, 0x94, 0x6c, 0xfd, 0x0a, 0x84, 0x77, 0x4a, 0x2a, 0x0b, 0x52, 0x8b, + 0x93, 0xd8, 0xc0, 0x16, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x9c, 0x4b, 0xa9, 0xfe, 0xee, + 0x00, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/evidence/types/query.pb.go b/x/evidence/types/query.pb.go index 5aeb0d667b..c5237b4c8f 100644 --- a/x/evidence/types/query.pb.go +++ b/x/evidence/types/query.pb.go @@ -249,37 +249,36 @@ func init() { } var fileDescriptor_07043de1a84d215a = []byte{ - // 468 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0x4d, 0x6b, 0x13, 0x41, - 0x18, 0xc7, 0x33, 0xeb, 0x0b, 0x75, 0x5a, 0x11, 0xc6, 0x4a, 0xe3, 0x22, 0x4b, 0xdc, 0x82, 0x89, - 0x85, 0xcc, 0x6c, 0xaa, 0xe2, 0xb9, 0x01, 0xdf, 0x4e, 0xea, 0x1e, 0xbd, 0x94, 0xd9, 0xed, 0xb8, - 0xbb, 0x98, 0xce, 0x6c, 0x33, 0xb3, 0xc5, 0x20, 0x5e, 0xfc, 0x04, 0x82, 0x78, 0x12, 0xbf, 0x85, - 0x5f, 0x41, 0xf0, 0x58, 0xf0, 0x22, 0x9e, 0x24, 0xf1, 0x83, 0x48, 0xe6, 0x25, 0x89, 0x4d, 0x62, - 0xec, 0x71, 0x66, 0x9e, 0xff, 0xff, 0xff, 0x9b, 0xe7, 0x79, 0xe0, 0x76, 0x2a, 0xe4, 0xa1, 0x90, - 0x84, 0x1d, 0x17, 0x07, 0x8c, 0xa7, 0x8c, 0x1c, 0x77, 0x12, 0xa6, 0x68, 0x87, 0x1c, 0x55, 0xac, - 0x3f, 0xc0, 0x65, 0x5f, 0x28, 0x81, 0xb6, 0x4c, 0x11, 0x76, 0x45, 0xd8, 0x16, 0xf9, 0x3b, 0x56, - 0x9d, 0x50, 0xc9, 0x8c, 0x62, 0xa2, 0x2f, 0x69, 0x56, 0x70, 0xaa, 0x0a, 0xc1, 0x8d, 0x89, 0x7f, - 0x3d, 0x13, 0x22, 0xeb, 0x31, 0xa2, 0x4f, 0x49, 0xf5, 0x92, 0x50, 0x6e, 0xfd, 0xfd, 0x1b, 0xf6, - 0x89, 0x96, 0x05, 0xa1, 0x9c, 0x0b, 0xa5, 0x75, 0xd2, 0x09, 0x4d, 0xc8, 0xbe, 0x3e, 0x11, 0x8b, - 0xa2, 0x0f, 0x61, 0x0e, 0x37, 0x9f, 0x8f, 0x53, 0x1f, 0x58, 0xb0, 0x98, 0x1d, 0x55, 0x4c, 0x2a, - 0xd4, 0x84, 0x97, 0x1d, 0xeb, 0x7e, 0x4e, 0x65, 0x5e, 0x07, 0x0d, 0xd0, 0xda, 0xe8, 0x7a, 0x75, - 0x10, 0x6f, 0xb8, 0x87, 0xc7, 0x54, 0xe6, 0xa8, 0x09, 0xcf, 0xeb, 0x77, 0xaf, 0x01, 0x5a, 0x97, - 0xba, 0x57, 0x7f, 0x7e, 0x69, 0x5f, 0x31, 0x01, 0x6d, 0x79, 0xf0, 0xaa, 0x11, 0xe1, 0xbb, 0xf7, - 0x63, 0x5d, 0x10, 0x3e, 0x81, 0xd7, 0x4e, 0x25, 0xc9, 0x52, 0x70, 0xc9, 0x50, 0x04, 0xd7, 0x9c, - 0xa3, 0x4e, 0x59, 0xdf, 0xdd, 0xc4, 0xe6, 0x3b, 0xd8, 0xfd, 0x14, 0xef, 0xf1, 0x41, 0x3c, 0xa9, - 0x0a, 0x29, 0xdc, 0xd2, 0x56, 0x7b, 0xbd, 0xde, 0x69, 0xee, 0x87, 0x10, 0x4e, 0xfb, 0x66, 0xed, - 0x6e, 0x61, 0xfb, 0xe5, 0x71, 0x93, 0xb1, 0x19, 0x8b, 0x6d, 0x32, 0x7e, 0x46, 0x33, 0xa7, 0x8d, - 0x67, 0x94, 0xe1, 0x47, 0x00, 0xeb, 0xf3, 0x19, 0x0b, 0x89, 0xcf, 0xad, 0x26, 0x46, 0x8f, 0xfe, - 0xc2, 0xf2, 0x34, 0x56, 0x73, 0x25, 0x96, 0x89, 0x9b, 0xe5, 0xda, 0xfd, 0xea, 0xc1, 0x0b, 0x9a, - 0x0b, 0x7d, 0x02, 0x70, 0xcd, 0x91, 0xa1, 0x36, 0x5e, 0xb2, 0x60, 0x78, 0xd1, 0x74, 0x7d, 0xfc, - 0xbf, 0xe5, 0x86, 0x20, 0x8c, 0xde, 0x7d, 0xff, 0xfd, 0xc1, 0xdb, 0x41, 0x2d, 0xb2, 0x6c, 0xd9, - 0x27, 0x17, 0x6f, 0xc6, 0xc3, 0x7e, 0x8b, 0x3e, 0x03, 0xb8, 0x3e, 0xd3, 0x3a, 0x14, 0xfd, 0x3b, - 0x71, 0x7e, 0x92, 0x7e, 0xe7, 0x0c, 0x0a, 0x8b, 0x79, 0x5b, 0x63, 0x6e, 0xa3, 0x9b, 0x2b, 0x31, - 0xbb, 0x4f, 0xbf, 0x0d, 0x03, 0x70, 0x32, 0x0c, 0xc0, 0xaf, 0x61, 0x00, 0xde, 0x8f, 0x82, 0xda, - 0xc9, 0x28, 0xa8, 0xfd, 0x18, 0x05, 0xb5, 0x17, 0xf7, 0xb2, 0x42, 0xe5, 0x55, 0x82, 0x53, 0x71, - 0xe8, 0x6c, 0xa6, 0x0b, 0x4d, 0x52, 0xc1, 0x55, 0xbf, 0x48, 0xc8, 0xeb, 0xa9, 0xb7, 0x1a, 0x94, - 0x4c, 0x26, 0x17, 0xf5, 0xe4, 0xef, 0xfc, 0x09, 0x00, 0x00, 0xff, 0xff, 0xa8, 0xf8, 0x5e, 0x91, - 0x0f, 0x04, 0x00, 0x00, + // 461 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0x4d, 0x8b, 0x13, 0x31, + 0x18, 0xc7, 0x9b, 0xf1, 0x85, 0x35, 0xbb, 0x22, 0xc4, 0x95, 0xad, 0x83, 0x0c, 0x75, 0x16, 0x6c, + 0x5d, 0x98, 0x64, 0xba, 0x0a, 0x9e, 0xb7, 0xa0, 0xab, 0x37, 0x9d, 0xa3, 0x97, 0x25, 0xd3, 0x8d, + 0x33, 0x83, 0x6d, 0x32, 0x6d, 0x66, 0x8a, 0x45, 0xbc, 0xf8, 0x09, 0x04, 0xf1, 0x24, 0x7e, 0x0b, + 0xbf, 0x82, 0xe0, 0xb1, 0xe0, 0x45, 0x3c, 0x49, 0xeb, 0x07, 0x91, 0xe6, 0xa5, 0xad, 0x7d, 0xb1, + 0x7a, 0x4c, 0xf2, 0xfc, 0xff, 0xff, 0x5f, 0x9e, 0xe7, 0x81, 0x87, 0x6d, 0x21, 0xbb, 0x42, 0x12, + 0x36, 0xc8, 0xce, 0x19, 0x6f, 0x33, 0x32, 0x68, 0xc6, 0xac, 0xa0, 0x4d, 0xd2, 0x2b, 0x59, 0x7f, + 0x88, 0xf3, 0xbe, 0x28, 0x04, 0x3a, 0xd0, 0x45, 0xd8, 0x16, 0x61, 0x53, 0xe4, 0x1e, 0x19, 0x75, + 0x4c, 0x25, 0xd3, 0x8a, 0x99, 0x3e, 0xa7, 0x49, 0xc6, 0x69, 0x91, 0x09, 0xae, 0x4d, 0xdc, 0x9b, + 0x89, 0x10, 0x49, 0x87, 0x11, 0x75, 0x8a, 0xcb, 0x17, 0x84, 0x72, 0xe3, 0xef, 0xde, 0x32, 0x4f, + 0x34, 0xcf, 0x08, 0xe5, 0x5c, 0x14, 0x4a, 0x27, 0xad, 0x50, 0x87, 0x9c, 0xa9, 0x13, 0x31, 0x28, + 0xea, 0xe0, 0xa7, 0x70, 0xff, 0xd9, 0x34, 0xf5, 0xa1, 0x01, 0x8b, 0x58, 0xaf, 0x64, 0xb2, 0x40, + 0x75, 0x78, 0xd5, 0xb2, 0x9e, 0xa5, 0x54, 0xa6, 0x55, 0x50, 0x03, 0x8d, 0xbd, 0x96, 0x53, 0x05, + 0xd1, 0x9e, 0x7d, 0x78, 0x4c, 0x65, 0x8a, 0xea, 0xf0, 0xa2, 0x7a, 0x77, 0x6a, 0xa0, 0x71, 0xa5, + 0x75, 0xfd, 0xc7, 0xe7, 0xe0, 0x9a, 0x0e, 0x08, 0xe4, 0xf9, 0xcb, 0x5a, 0x88, 0xef, 0x3f, 0x88, + 0x54, 0x81, 0xff, 0x04, 0xde, 0x58, 0x4a, 0x92, 0xb9, 0xe0, 0x92, 0xa1, 0x10, 0xee, 0x58, 0x47, + 0x95, 0xb2, 0x7b, 0xbc, 0x8f, 0xf5, 0x77, 0xb0, 0xfd, 0x29, 0x3e, 0xe1, 0xc3, 0x68, 0x56, 0xe5, + 0x53, 0x78, 0xa0, 0xac, 0x4e, 0x3a, 0x9d, 0x65, 0xee, 0x47, 0x10, 0xce, 0xfb, 0x66, 0xec, 0xee, + 0x60, 0xf3, 0xe5, 0x69, 0x93, 0xb1, 0x1e, 0x8b, 0x69, 0x32, 0x7e, 0x4a, 0x13, 0xab, 0x8d, 0x16, + 0x94, 0xfe, 0x07, 0x00, 0xab, 0xab, 0x19, 0x6b, 0x89, 0x2f, 0x6c, 0x27, 0x46, 0xa7, 0x7f, 0x60, + 0x39, 0x0a, 0xab, 0xbe, 0x15, 0x4b, 0xc7, 0x2d, 0x72, 0x1d, 0x7f, 0x71, 0xe0, 0x25, 0xc5, 0x85, + 0x3e, 0x02, 0xb8, 0x63, 0xc9, 0x50, 0x80, 0x37, 0x2c, 0x18, 0x5e, 0x37, 0x5d, 0x17, 0xff, 0x6b, + 0xb9, 0x26, 0xf0, 0xc3, 0xb7, 0xdf, 0x7e, 0xbd, 0x77, 0x8e, 0x50, 0x83, 0x6c, 0x5a, 0xf6, 0xd9, + 0xc5, 0xeb, 0xe9, 0xb0, 0xdf, 0xa0, 0x4f, 0x00, 0xee, 0x2e, 0xb4, 0x0e, 0x85, 0x7f, 0x4f, 0x5c, + 0x9d, 0xa4, 0xdb, 0xfc, 0x0f, 0x85, 0xc1, 0xbc, 0xab, 0x30, 0x0f, 0xd1, 0xed, 0xad, 0x98, 0xad, + 0xd3, 0xaf, 0x63, 0x0f, 0x8c, 0xc6, 0x1e, 0xf8, 0x39, 0xf6, 0xc0, 0xbb, 0x89, 0x57, 0x19, 0x4d, + 0xbc, 0xca, 0xf7, 0x89, 0x57, 0x79, 0x1e, 0x24, 0x59, 0x91, 0x96, 0x31, 0x6e, 0x8b, 0xae, 0xb5, + 0x99, 0x2f, 0x34, 0x79, 0x35, 0xf7, 0x2c, 0x86, 0x39, 0x93, 0xf1, 0x65, 0x35, 0xf1, 0x7b, 0xbf, + 0x03, 0x00, 0x00, 0xff, 0xff, 0xea, 0x6b, 0xf3, 0x30, 0x07, 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/x/evidence/types/tx.pb.go b/x/evidence/types/tx.pb.go index 3e74ba8683..f89c04e302 100644 --- a/x/evidence/types/tx.pb.go +++ b/x/evidence/types/tx.pb.go @@ -129,7 +129,7 @@ func init() { func init() { proto.RegisterFile("cosmos/evidence/v1beta1/tx.proto", fileDescriptor_3e3242cb23c956e0) } var fileDescriptor_3e3242cb23c956e0 = []byte{ - // 398 bytes of a gzipped FileDescriptorProto + // 390 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x48, 0xce, 0x2f, 0xce, 0xcd, 0x2f, 0xd6, 0x4f, 0x2d, 0xcb, 0x4c, 0x49, 0xcd, 0x4b, 0x4e, 0xd5, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0x34, 0xd4, 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x87, 0xa8, @@ -149,12 +149,12 @@ var fileDescriptor_3e3242cb23c956e0 = []byte{ 0x8b, 0x0b, 0xf2, 0xf3, 0x8a, 0x53, 0x85, 0x84, 0xb8, 0x58, 0x32, 0x12, 0x8b, 0x33, 0x24, 0x58, 0x14, 0x18, 0x35, 0x78, 0x82, 0xc0, 0x6c, 0xa3, 0x3a, 0x2e, 0x66, 0xdf, 0xe2, 0x74, 0xa1, 0x02, 0x2e, 0x3e, 0xb4, 0x20, 0xd1, 0xd2, 0xc3, 0xe5, 0x5e, 0x0c, 0x0b, 0xa4, 0x8c, 0x88, 0x57, 0x0b, - 0x73, 0x8c, 0x14, 0x6b, 0xc3, 0xf3, 0x0d, 0x5a, 0x8c, 0x4e, 0xc1, 0x2b, 0x1e, 0xc9, 0x31, 0x9e, + 0x73, 0x8c, 0x14, 0x6b, 0xc3, 0xf3, 0x0d, 0x5a, 0x8c, 0x4e, 0xde, 0x2b, 0x1e, 0xc9, 0x31, 0x9e, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, - 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x69, 0x7a, 0x66, 0x49, 0x46, 0x69, - 0x92, 0x5e, 0x72, 0x7e, 0x2e, 0x34, 0xca, 0xf5, 0x91, 0xbc, 0x9f, 0x9c, 0x9f, 0x57, 0x52, 0x94, - 0x99, 0xa4, 0x5f, 0x81, 0x48, 0x80, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c, 0xe0, 0xc0, 0x37, - 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0xcc, 0xa1, 0x11, 0xc7, 0xa0, 0x02, 0x00, 0x00, + 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x6e, 0x7a, 0x66, 0x49, 0x46, 0x69, + 0x92, 0x5e, 0x72, 0x7e, 0x2e, 0x34, 0xca, 0xf5, 0x91, 0xbc, 0x5f, 0x81, 0x48, 0x78, 0x25, 0x95, + 0x05, 0xa9, 0xc5, 0x49, 0x6c, 0xe0, 0x40, 0x37, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x53, 0x46, + 0x2d, 0x75, 0x98, 0x02, 0x00, 0x00, } func (this *MsgSubmitEvidenceResponse) Equal(that interface{}) bool { diff --git a/x/feegrant/basic_fee_test.go b/x/feegrant/basic_fee_test.go index 2876a5bc0f..0691aadea8 100644 --- a/x/feegrant/basic_fee_test.go +++ b/x/feegrant/basic_fee_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/x/feegrant/client/cli/tx_test.go b/x/feegrant/client/cli/tx_test.go index 05ed867f6f..109199c96d 100644 --- a/x/feegrant/client/cli/tx_test.go +++ b/x/feegrant/client/cli/tx_test.go @@ -7,8 +7,8 @@ import ( "testing" "time" - abci "github.com/cometbft/cometbft/v2/abci/types" - rpcclientmock "github.com/cometbft/cometbft/v2/rpc/client/mock" + abci "github.com/cometbft/cometbft/abci/types" + rpcclientmock "github.com/cometbft/cometbft/rpc/client/mock" "github.com/cosmos/gogoproto/proto" "github.com/stretchr/testify/suite" @@ -74,7 +74,7 @@ func (s *CLITestSuite) SetupSuite() { ctxGen := func() client.Context { bz, _ := s.encCfg.Codec.Marshal(&sdk.TxResponse{}) - c := clitestutil.NewMockCometRPC(abci.QueryResponse{ + c := clitestutil.NewMockCometRPC(abci.ResponseQuery{ Value: bz, }) diff --git a/x/feegrant/filtered_fee_test.go b/x/feegrant/filtered_fee_test.go index aa034c7a16..2f7aae3201 100644 --- a/x/feegrant/filtered_fee_test.go +++ b/x/feegrant/filtered_fee_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - ocproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + ocproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/x/feegrant/grant_test.go b/x/feegrant/grant_test.go index 05c9eb97ed..780a3ce431 100644 --- a/x/feegrant/grant_test.go +++ b/x/feegrant/grant_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/require" storetypes "cosmossdk.io/store/types" diff --git a/x/feegrant/periodic_fee_test.go b/x/feegrant/periodic_fee_test.go index 1133d6f07d..247816386a 100644 --- a/x/feegrant/periodic_fee_test.go +++ b/x/feegrant/periodic_fee_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/x/feegrant/simulation/operations_test.go b/x/feegrant/simulation/operations_test.go index 8daccaaa52..22b1a83c50 100644 --- a/x/feegrant/simulation/operations_test.go +++ b/x/feegrant/simulation/operations_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/cosmos/gogoproto/proto" "github.com/stretchr/testify/suite" @@ -152,7 +152,7 @@ func (suite *SimTestSuite) TestSimulateMsgGrantAllowance() { accounts := suite.getTestingAccounts(r, 3) // new block - _, err := app.FinalizeBlock(&abci.FinalizeBlockRequest{Height: app.LastBlockHeight() + 1}) + _, err := app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: app.LastBlockHeight() + 1}) require.NoError(err) // execute operation @@ -178,7 +178,7 @@ func (suite *SimTestSuite) TestSimulateMsgRevokeAllowance() { accounts := suite.getTestingAccounts(r, 3) // begin a new block - _, err := app.FinalizeBlock(&abci.FinalizeBlockRequest{Height: suite.app.LastBlockHeight() + 1, Hash: suite.app.LastCommitID().Hash}) + _, err := app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: suite.app.LastBlockHeight() + 1, Hash: suite.app.LastCommitID().Hash}) suite.Require().NoError(err) feeAmt := sdk.TokensFromConsensusPower(200000, sdk.DefaultPowerReduction) diff --git a/x/genutil/README.md b/x/genutil/README.md index 34bc79d5c0..45cb45355b 100644 --- a/x/genutil/README.md +++ b/x/genutil/README.md @@ -16,7 +16,7 @@ The `genutil` package contains a variety of genesis utility functionalities for ## Genesis Genutil contains the data structure that defines an application genesis. -An application genesis consists of a consensus genesis (g.e. CometBFT genesis) and application related genesis data. +An application genesis consist of a consensus genesis (g.e. CometBFT genesis) and application related genesis data. ```go reference https://github.com/cosmos/cosmos-sdk/blob/v0.50.0-rc.0/x/genutil/types/genesis.go#L24-L34 diff --git a/x/genutil/client/cli/collect.go b/x/genutil/client/cli/collect.go index 680583c7c8..5502445960 100644 --- a/x/genutil/client/cli/collect.go +++ b/x/genutil/client/cli/collect.go @@ -10,7 +10,6 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" "github.com/cosmos/cosmos-sdk/runtime" "github.com/cosmos/cosmos-sdk/server" "github.com/cosmos/cosmos-sdk/x/genutil" @@ -31,14 +30,9 @@ func CollectGenTxsCmd(genBalIterator types.GenesisBalancesIterator, defaultNodeH clientCtx := client.GetClientContextFromCmd(cmd) cdc := clientCtx.Codec - consensusKey, err := cmd.Flags().GetString(FlagConsensusKeyAlgo) - if err != nil { - return errors.Wrap(err, "Failed to get consensus key algo") - } - config.SetRoot(clientCtx.HomeDir) - nodeID, valPubKey, err := genutil.InitializeNodeValidatorFilesWithKeyType(config, consensusKey) + nodeID, valPubKey, err := genutil.InitializeNodeValidatorFiles(config) if err != nil { return errors.Wrap(err, "failed to initialize node validator files") } @@ -70,6 +64,6 @@ func CollectGenTxsCmd(genBalIterator types.GenesisBalancesIterator, defaultNodeH cmd.Flags().String(flags.FlagHome, defaultNodeHome, "The application home directory") cmd.Flags().String(flagGenTxDir, "", "override default \"gentx\" directory from which collect and execute genesis transactions; default [--home]/config/gentx/") - cmd.Flags().String(FlagConsensusKeyAlgo, ed25519.KeyType, "Algorithm to use for the consensus key (ed25519, bls12381)") + return cmd } diff --git a/x/genutil/client/cli/gentx.go b/x/genutil/client/cli/gentx.go index 70069115c4..7c5ee6f7f9 100644 --- a/x/genutil/client/cli/gentx.go +++ b/x/genutil/client/cli/gentx.go @@ -18,7 +18,6 @@ import ( "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" "github.com/cosmos/cosmos-sdk/crypto/keyring" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" "github.com/cosmos/cosmos-sdk/server" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" @@ -30,7 +29,7 @@ import ( ) // GenTxCmd builds the application's gentx command. -func GenTxCmd(mbm module.BasicManager, txEncCfg client.TxEncodingConfig, genBalIterator types.GenesisBalancesIterator, defaultNodeHome string, valAddressCodec address.Codec) *cobra.Command { +func GenTxCmd(mbm module.BasicManager, txEncCfg client.TxEncodingConfig, genBalIterator types.GenesisBalancesIterator, defaultNodeHome string, valAdddressCodec address.Codec) *cobra.Command { ipDefault, _ := server.ExternalIP() fsCreateValidator, defaultsDesc := cli.CreateValidatorMsgFlagSet(ipDefault) @@ -66,12 +65,7 @@ $ %s gentx my-key-name 1000000stake --home=/path/to/home/dir --keyring-backend=o config := serverCtx.Config config.SetRoot(clientCtx.HomeDir) - consensusKey, err := cmd.Flags().GetString(FlagConsensusKeyAlgo) - if err != nil { - return errors.Wrap(err, "Failed to get consensus key algo") - } - - nodeID, valPubKey, err := genutil.InitializeNodeValidatorFilesWithKeyType(serverCtx.Config, consensusKey) + nodeID, valPubKey, err := genutil.InitializeNodeValidatorFiles(serverCtx.Config) if err != nil { return errors.Wrap(err, "failed to initialize node validator files") } @@ -160,7 +154,7 @@ $ %s gentx my-key-name 1000000stake --home=/path/to/home/dir --keyring-backend=o createValCfg.Amount = amount // create a 'create-validator' message - txBldr, msg, err := cli.BuildCreateValidatorMsg(clientCtx, createValCfg, txFactory, true, valAddressCodec) + txBldr, msg, err := cli.BuildCreateValidatorMsg(clientCtx, createValCfg, txFactory, true, valAdddressCodec) if err != nil { return errors.Wrap(err, "failed to build create-validator message") } @@ -220,7 +214,6 @@ $ %s gentx my-key-name 1000000stake --home=/path/to/home/dir --keyring-backend=o cmd.Flags().String(flags.FlagHome, defaultNodeHome, "The application home directory") cmd.Flags().String(flags.FlagOutputDocument, "", "Write the genesis transaction JSON document to the given file instead of the default location") - cmd.Flags().String(FlagConsensusKeyAlgo, ed25519.KeyType, "algorithm to use for the consensus signing key: ed25519 | bls12_381") cmd.Flags().AddFlagSet(fsCreateValidator) flags.AddTxFlagsToCmd(cmd) _ = cmd.Flags().MarkHidden(flags.FlagOutput) // signing makes sense to output only json diff --git a/x/genutil/client/cli/gentx_test.go b/x/genutil/client/cli/gentx_test.go index f3d228c7bf..8e10caa594 100644 --- a/x/genutil/client/cli/gentx_test.go +++ b/x/genutil/client/cli/gentx_test.go @@ -7,8 +7,8 @@ import ( "path/filepath" "testing" - abci "github.com/cometbft/cometbft/v2/abci/types" - rpcclientmock "github.com/cometbft/cometbft/v2/rpc/client/mock" + abci "github.com/cometbft/cometbft/abci/types" + rpcclientmock "github.com/cometbft/cometbft/rpc/client/mock" "github.com/stretchr/testify/suite" sdkmath "cosmossdk.io/math" @@ -55,7 +55,7 @@ func (s *CLITestSuite) SetupSuite() { ctxGen := func() client.Context { bz, _ := s.encCfg.Codec.Marshal(&sdk.TxResponse{}) - c := clitestutil.NewMockCometRPC(abci.QueryResponse{ + c := clitestutil.NewMockCometRPC(abci.ResponseQuery{ Value: bz, }) return s.baseCtx.WithClient(c) diff --git a/x/genutil/client/cli/init.go b/x/genutil/client/cli/init.go index 4f7d540f9f..d1d67c913a 100644 --- a/x/genutil/client/cli/init.go +++ b/x/genutil/client/cli/init.go @@ -8,8 +8,8 @@ import ( "os" "path/filepath" - cfg "github.com/cometbft/cometbft/v2/config" - cmttypes "github.com/cometbft/cometbft/v2/types" + cfg "github.com/cometbft/cometbft/config" + cmttypes "github.com/cometbft/cometbft/types" "github.com/cosmos/go-bip39" "github.com/spf13/cobra" @@ -118,12 +118,7 @@ func InitCmd(mbm module.BasicManager, defaultNodeHome string) *cobra.Command { initHeight = 1 } - consensusKey, err := cmd.Flags().GetString(FlagConsensusKeyAlgo) - if err != nil { - return errorsmod.Wrap(err, "Failed to get consensus key algo") - } - - nodeID, _, err := genutil.InitializeNodeValidatorFilesFromMnemonicWithKeyType(config, mnemonic, consensusKey) + nodeID, _, err := genutil.InitializeNodeValidatorFilesFromMnemonic(config, mnemonic) if err != nil { return err } @@ -173,6 +168,11 @@ func InitCmd(mbm module.BasicManager, defaultNodeHome string) *cobra.Command { Params: cmttypes.DefaultConsensusParams(), } + consensusKey, err := cmd.Flags().GetString(FlagConsensusKeyAlgo) + if err != nil { + return errorsmod.Wrap(err, "Failed to get consensus key algo") + } + appGenesis.Consensus.Params.Validator.PubKeyTypes = []string{consensusKey} if err = genutil.ExportGenesisFile(appGenesis, genFile); err != nil { diff --git a/x/genutil/client/cli/init_test.go b/x/genutil/client/cli/init_test.go index 8bef6c16b0..77b220cfa4 100644 --- a/x/genutil/client/cli/init_test.go +++ b/x/genutil/client/cli/init_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - abci_server "github.com/cometbft/cometbft/v2/abci/server" + abci_server "github.com/cometbft/cometbft/abci/server" "github.com/spf13/viper" "github.com/stretchr/testify/require" @@ -237,7 +237,7 @@ func TestInitNodeValidatorFiles(t *testing.T) { cfg, err := genutiltest.CreateDefaultCometConfig(home) require.NoError(t, err) - nodeID, valPubKey, err := genutil.InitializeNodeValidatorFilesWithKeyType(cfg, "ed25519") + nodeID, valPubKey, err := genutil.InitializeNodeValidatorFiles(cfg) require.NoError(t, err) require.NotEqual(t, "", nodeID) diff --git a/x/genutil/client/testutil/helpers.go b/x/genutil/client/testutil/helpers.go index 2e54f261e5..7a3fdc424c 100644 --- a/x/genutil/client/testutil/helpers.go +++ b/x/genutil/client/testutil/helpers.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - cmtcfg "github.com/cometbft/cometbft/v2/config" + cmtcfg "github.com/cometbft/cometbft/config" "github.com/spf13/viper" "cosmossdk.io/log" diff --git a/x/genutil/collect.go b/x/genutil/collect.go index d73442ff09..422a278b5a 100644 --- a/x/genutil/collect.go +++ b/x/genutil/collect.go @@ -10,7 +10,7 @@ import ( "sort" "strings" - cfg "github.com/cometbft/cometbft/v2/config" + cfg "github.com/cometbft/cometbft/config" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" diff --git a/x/genutil/genesis.go b/x/genutil/genesis.go index 4748eda6c7..0f8f7d4867 100644 --- a/x/genutil/genesis.go +++ b/x/genutil/genesis.go @@ -1,7 +1,7 @@ package genutil import ( - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "cosmossdk.io/core/genesis" diff --git a/x/genutil/gentx.go b/x/genutil/gentx.go index 49477705d2..6b969145fb 100644 --- a/x/genutil/gentx.go +++ b/x/genutil/gentx.go @@ -5,7 +5,7 @@ import ( "fmt" "strings" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "cosmossdk.io/core/genesis" diff --git a/x/genutil/module.go b/x/genutil/module.go index 80a32270b7..5d3337ba24 100644 --- a/x/genutil/module.go +++ b/x/genutil/module.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" gwruntime "github.com/grpc-ecosystem/grpc-gateway/runtime" modulev1 "cosmossdk.io/api/cosmos/genutil/module/v1" diff --git a/x/genutil/testutil/expected_keepers_mocks.go b/x/genutil/testutil/expected_keepers_mocks.go index e5fcf82809..52ba5af193 100644 --- a/x/genutil/testutil/expected_keepers_mocks.go +++ b/x/genutil/testutil/expected_keepers_mocks.go @@ -14,7 +14,7 @@ import ( json "encoding/json" reflect "reflect" - types "github.com/cometbft/cometbft/v2/abci/types" + types "github.com/cometbft/cometbft/abci/types" codec "github.com/cosmos/cosmos-sdk/codec" types0 "github.com/cosmos/cosmos-sdk/types" exported "github.com/cosmos/cosmos-sdk/x/bank/exported" diff --git a/x/genutil/types/chain_id.go b/x/genutil/types/chain_id.go index 92f1a02cba..1d991a9f14 100644 --- a/x/genutil/types/chain_id.go +++ b/x/genutil/types/chain_id.go @@ -7,7 +7,7 @@ import ( "io" "strings" - "github.com/cometbft/cometbft/v2/types" + "github.com/cometbft/cometbft/types" ) const ChainIDFieldName = "chain_id" diff --git a/x/genutil/types/expected_keepers.go b/x/genutil/types/expected_keepers.go index cdaa514da0..95f7d09b34 100644 --- a/x/genutil/types/expected_keepers.go +++ b/x/genutil/types/expected_keepers.go @@ -4,7 +4,7 @@ import ( "context" "encoding/json" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/genutil/types/genesis.go b/x/genutil/types/genesis.go index ad11b6cabe..3c322fa086 100644 --- a/x/genutil/types/genesis.go +++ b/x/genutil/types/genesis.go @@ -11,10 +11,10 @@ import ( "path/filepath" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - cmtjson "github.com/cometbft/cometbft/v2/libs/json" - cmttypes "github.com/cometbft/cometbft/v2/types" - cmttime "github.com/cometbft/cometbft/v2/types/time" + cmtjson "github.com/cometbft/cometbft/libs/json" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + cmttypes "github.com/cometbft/cometbft/types" + cmttime "github.com/cometbft/cometbft/types/time" "github.com/cosmos/cosmos-sdk/version" ) diff --git a/x/genutil/types/genesis_test.go b/x/genutil/types/genesis_test.go index 7bfe868983..c5c729380f 100644 --- a/x/genutil/types/genesis_test.go +++ b/x/genutil/types/genesis_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - cmttypes "github.com/cometbft/cometbft/v2/types" + cmttypes "github.com/cometbft/cometbft/types" "gotest.tools/v3/assert" "gotest.tools/v3/golden" diff --git a/x/genutil/types/testdata/app_genesis.json b/x/genutil/types/testdata/app_genesis.json index 7822079ac6..c6a64b0ac9 100644 --- a/x/genutil/types/testdata/app_genesis.json +++ b/x/genutil/types/testdata/app_genesis.json @@ -1 +1 @@ -{"app_name":"\u003cappd\u003e","app_version":"","genesis_time":"2023-02-20T11:08:30.588307671Z","chain_id":"demo","initial_height":48,"app_hash":"","app_state":{"auth":{"accounts":[{"@type":"/cosmos.auth.v1beta1.BaseAccount","account_number":"1","address":"cosmos1qmkksxlxqdslq6kkca25m4jn344nx29lytq8f9","pub_key":null,"sequence":"0"},{"@type":"/cosmos.auth.v1beta1.BaseAccount","account_number":"8","address":"cosmos1pnt5523etwtzv6mj7haryfw6w8h5tkcuhd99m8","pub_key":null,"sequence":"0"},{"@type":"/cosmos.auth.v1beta1.ModuleAccount","base_account":{"account_number":"4","address":"cosmos1fl48vsnmsdzcv85q5d2q4z5ajdha8yu34mf0eh","pub_key":null,"sequence":"0"},"name":"bonded_tokens_pool","permissions":["burner","staking"]},{"@type":"/cosmos.auth.v1beta1.ModuleAccount","base_account":{"account_number":"5","address":"cosmos1tygms3xhhs3yv487phx3dw4a95jn7t7lpm470r","pub_key":null,"sequence":"0"},"name":"not_bonded_tokens_pool","permissions":["burner","staking"]},{"@type":"/cosmos.auth.v1beta1.ModuleAccount","base_account":{"account_number":"6","address":"cosmos10d07y265gmmuvt4z0w9aw880jnsr700j6zn9kn","pub_key":null,"sequence":"0"},"name":"gov","permissions":["burner"]},{"@type":"/cosmos.auth.v1beta1.ModuleAccount","base_account":{"account_number":"3","address":"cosmos1jv65s3grqf6v6jl3dp4t6c9t9rk99cd88lyufl","pub_key":null,"sequence":"0"},"name":"distribution","permissions":[]},{"@type":"/cosmos.auth.v1beta1.BaseAccount","account_number":"0","address":"cosmos15jenkldw6348lpgdev3vjzw90zzknxa9a3vg0j","pub_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"A3uyZdXedyvYx9VCL6xRjkxtcFpgxjhXFIz9b2mWz+aV"},"sequence":"4"},{"@type":"/cosmos.auth.v1beta1.ModuleAccount","base_account":{"account_number":"7","address":"cosmos1m3h30wlvsf8llruxtpukdvsy0km2kum8g38c8q","pub_key":null,"sequence":"0"},"name":"mint","permissions":["minter"]},{"@type":"/cosmos.auth.v1beta1.ModuleAccount","base_account":{"account_number":"2","address":"cosmos17xpfvakm2amg962yls6f84z3kell8c5lserqta","pub_key":null,"sequence":"0"},"name":"fee_collector","permissions":[]}],"params":{"max_memo_characters":"256","sig_verify_cost_ed25519":"590","sig_verify_cost_secp256k1":"1000","tx_sig_limit":"7","tx_size_cost_per_byte":"10"}},"authz":{"authorization":[]},"bank":{"balances":[{"address":"cosmos1qmkksxlxqdslq6kkca25m4jn344nx29lytq8f9","coins":[{"amount":"5000000000","denom":"stake"}]},{"address":"cosmos1pnt5523etwtzv6mj7haryfw6w8h5tkcuhd99m8","coins":[{"amount":"1000","denom":"stake"}]},{"address":"cosmos1fl48vsnmsdzcv85q5d2q4z5ajdha8yu34mf0eh","coins":[{"amount":"1000000","denom":"stake"}]},{"address":"cosmos10d07y265gmmuvt4z0w9aw880jnsr700j6zn9kn","coins":[{"amount":"10010000","denom":"stake"}]},{"address":"cosmos1jv65s3grqf6v6jl3dp4t6c9t9rk99cd88lyufl","coins":[{"amount":"9635","denom":"stake"}]},{"address":"cosmos15jenkldw6348lpgdev3vjzw90zzknxa9a3vg0j","coins":[{"amount":"4988989000","denom":"stake"}]}],"denom_metadata":[],"params":{"default_send_enabled":true,"send_enabled":[]},"send_enabled":[],"supply":[{"amount":"10000009635","denom":"stake"}]},"consensus":null,"distribution":{"delegator_starting_infos":[{"delegator_address":"cosmos15jenkldw6348lpgdev3vjzw90zzknxa9a3vg0j","starting_info":{"height":"0","previous_period":"1","stake":"1000000.000000000000000000"},"validator_address":"cosmosvaloper15jenkldw6348lpgdev3vjzw90zzknxa9c9carp"}],"delegator_withdraw_infos":[],"fee_pool":{"community_pool":[{"amount":"192.700000000000000000","denom":"stake"}]},"outstanding_rewards":[{"outstanding_rewards":[{"amount":"9442.300000000000000000","denom":"stake"}],"validator_address":"cosmosvaloper15jenkldw6348lpgdev3vjzw90zzknxa9c9carp"}],"params":{"base_proposer_reward":"0.000000000000000000","bonus_proposer_reward":"0.000000000000000000","community_tax":"0.020000000000000000","withdraw_addr_enabled":true},"previous_proposer":"cosmosvalcons16vm0nx49eam4q0xasdnwdzsdl6ymgyjt757sgr","validator_accumulated_commissions":[{"accumulated":{"commission":[{"amount":"944.230000000000000000","denom":"stake"}]},"validator_address":"cosmosvaloper15jenkldw6348lpgdev3vjzw90zzknxa9c9carp"}],"validator_current_rewards":[{"rewards":{"period":"2","rewards":[{"amount":"8498.070000000000000000","denom":"stake"}]},"validator_address":"cosmosvaloper15jenkldw6348lpgdev3vjzw90zzknxa9c9carp"}],"validator_historical_rewards":[{"period":"1","rewards":{"cumulative_reward_ratio":[],"reference_count":2},"validator_address":"cosmosvaloper15jenkldw6348lpgdev3vjzw90zzknxa9c9carp"}],"validator_slash_events":[]},"evidence":{"evidence":[]},"feegrant":{"allowances":[]},"genutil":{"gen_txs":[]},"gov":{"deposit_params":null,"deposits":[{"amount":[{"amount":"10010000","denom":"stake"}],"depositor":"cosmos15jenkldw6348lpgdev3vjzw90zzknxa9a3vg0j","proposal_id":"1"}],"params":{"expedited_min_deposit":[{"amount":"50000000","denom":"stake"}],"expedited_threshold":"0.667000000000000000","expedited_voting_period":"86400s","max_deposit_period":"172800s","min_deposit":[{"amount":"10000000","denom":"stake"}],"min_initial_deposit_ratio":"0.000000000000000000","proposal_cancel_dest":"","proposal_cancel_ratio":"0.500000000000000000","quorum":"0.334000000000000000","threshold":"0.500000000000000000","veto_threshold":"0.334000000000000000","voting_period":"172800s"},"proposals":[{"deposit_end_time":"2023-02-22T11:11:52.776167376Z","expedited":false,"final_tally_result":{"abstain_count":"0","no_count":"0","no_with_veto_count":"0","yes_count":"0"},"id":"1","messages":[{"@type":"/cosmos.distribution.v1beta1.MsgCommunityPoolSpend","amount":[],"authority":"cosmos10d07y265gmmuvt4z0w9aw880jnsr700j6zn9kn","recipient":"cosmos1pnt5523etwtzv6mj7haryfw6w8h5tkcuhd99m8"}],"metadata":"ipfs://CID","proposer":"cosmos15jenkldw6348lpgdev3vjzw90zzknxa9a3vg0j","status":"PROPOSAL_STATUS_VOTING_PERIOD","submit_time":"2023-02-20T11:11:52.776167376Z","summary":"test proposal","title":"test proposal","total_deposit":[{"amount":"10010000","denom":"stake"}],"voting_end_time":"2023-02-22T11:12:07.801161984Z","voting_start_time":"2023-02-20T11:12:07.801161984Z"}],"starting_proposal_id":"2","tally_params":null,"votes":[],"voting_params":null},"group":{"group_members":[],"group_policies":[],"group_policy_seq":"0","group_seq":"0","groups":[],"proposal_seq":"0","proposals":[],"votes":[]},"mint":{"minter":{"annual_provisions":"1300010905.175073197786747950","inflation":"0.130000967926594565"},"params":{"blocks_per_year":"6311520","goal_bonded":"0.670000000000000000","inflation_max":"0.200000000000000000","inflation_min":"0.070000000000000000","inflation_rate_change":"0.130000000000000000","mint_denom":"stake"}},"nft":{"classes":[],"entries":[]},"params":null,"slashing":{"missed_blocks":[{"address":"cosmosvalcons16vm0nx49eam4q0xasdnwdzsdl6ymgyjt757sgr","missed_blocks":[]}],"params":{"downtime_jail_duration":"600s","min_signed_per_window":"0.500000000000000000","signed_blocks_window":"100","slash_fraction_double_sign":"0.050000000000000000","slash_fraction_downtime":"0.010000000000000000"},"signing_infos":[{"address":"cosmosvalcons16vm0nx49eam4q0xasdnwdzsdl6ymgyjt757sgr","validator_signing_info":{"address":"cosmosvalcons16vm0nx49eam4q0xasdnwdzsdl6ymgyjt757sgr","index_offset":"46","jailed_until":"1970-01-01T00:00:00Z","missed_blocks_counter":"0","start_height":"0","tombstoned":false}}]},"staking":{"delegations":[{"delegator_address":"cosmos15jenkldw6348lpgdev3vjzw90zzknxa9a3vg0j","shares":"1000000.000000000000000000","validator_address":"cosmosvaloper15jenkldw6348lpgdev3vjzw90zzknxa9c9carp"}],"exported":true,"last_total_power":"1","last_validator_powers":[{"address":"cosmosvaloper15jenkldw6348lpgdev3vjzw90zzknxa9c9carp","power":"1"}],"params":{"bond_denom":"stake","historical_entries":10000,"max_entries":7,"max_validators":100,"min_commission_rate":"0.000000000000000000","unbonding_time":"1814400s"},"redelegations":[],"unbonding_delegations":[],"validators":[{"commission":{"commission_rates":{"max_change_rate":"0.010000000000000000","max_rate":"0.200000000000000000","rate":"0.100000000000000000"},"update_time":"2023-02-20T11:08:30.588307671Z"},"consensus_pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"tMZonPQYoooG/xbFVhHg95pTLxx7aO43/qgHFxDagWM="},"delegator_shares":"1000000.000000000000000000","description":{"details":"","identity":"","moniker":"test","security_contact":"","website":""},"jailed":false,"min_self_delegation":"1","operator_address":"cosmosvaloper15jenkldw6348lpgdev3vjzw90zzknxa9c9carp","status":"BOND_STATUS_BONDED","tokens":"1000000","unbonding_height":"0","unbonding_ids":[],"unbonding_on_hold_ref_count":"0","unbonding_time":"1970-01-01T00:00:00Z"}]},"upgrade":{},"vesting":{}},"consensus":{"validators":[{"address":"D336F99AA5CF77503CDD8366E68A0DFE89B4124B","pub_key":{"type":"tendermint/PubKeyEd25519","value":"tMZonPQYoooG/xbFVhHg95pTLxx7aO43/qgHFxDagWM="},"power":"1","name":"test"}],"params":{"block":{"max_bytes":"22020096","max_gas":"-1"},"evidence":{"max_age_num_blocks":"100000","max_age_duration":"172800000000000","max_bytes":"1048576"},"validator":{"pub_key_types":["ed25519"]},"version":{"app":"0"},"synchrony":{"precision":"0","message_delay":"0"},"feature":{"vote_extensions_enable_height":"0","pbts_enable_height":"0"}}}} \ No newline at end of file +{"app_name":"\u003cappd\u003e","app_version":"","genesis_time":"2023-02-20T11:08:30.588307671Z","chain_id":"demo","initial_height":48,"app_hash":"","app_state":{"auth":{"accounts":[{"@type":"/cosmos.auth.v1beta1.BaseAccount","account_number":"1","address":"cosmos1qmkksxlxqdslq6kkca25m4jn344nx29lytq8f9","pub_key":null,"sequence":"0"},{"@type":"/cosmos.auth.v1beta1.BaseAccount","account_number":"8","address":"cosmos1pnt5523etwtzv6mj7haryfw6w8h5tkcuhd99m8","pub_key":null,"sequence":"0"},{"@type":"/cosmos.auth.v1beta1.ModuleAccount","base_account":{"account_number":"4","address":"cosmos1fl48vsnmsdzcv85q5d2q4z5ajdha8yu34mf0eh","pub_key":null,"sequence":"0"},"name":"bonded_tokens_pool","permissions":["burner","staking"]},{"@type":"/cosmos.auth.v1beta1.ModuleAccount","base_account":{"account_number":"5","address":"cosmos1tygms3xhhs3yv487phx3dw4a95jn7t7lpm470r","pub_key":null,"sequence":"0"},"name":"not_bonded_tokens_pool","permissions":["burner","staking"]},{"@type":"/cosmos.auth.v1beta1.ModuleAccount","base_account":{"account_number":"6","address":"cosmos10d07y265gmmuvt4z0w9aw880jnsr700j6zn9kn","pub_key":null,"sequence":"0"},"name":"gov","permissions":["burner"]},{"@type":"/cosmos.auth.v1beta1.ModuleAccount","base_account":{"account_number":"3","address":"cosmos1jv65s3grqf6v6jl3dp4t6c9t9rk99cd88lyufl","pub_key":null,"sequence":"0"},"name":"distribution","permissions":[]},{"@type":"/cosmos.auth.v1beta1.BaseAccount","account_number":"0","address":"cosmos15jenkldw6348lpgdev3vjzw90zzknxa9a3vg0j","pub_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"A3uyZdXedyvYx9VCL6xRjkxtcFpgxjhXFIz9b2mWz+aV"},"sequence":"4"},{"@type":"/cosmos.auth.v1beta1.ModuleAccount","base_account":{"account_number":"7","address":"cosmos1m3h30wlvsf8llruxtpukdvsy0km2kum8g38c8q","pub_key":null,"sequence":"0"},"name":"mint","permissions":["minter"]},{"@type":"/cosmos.auth.v1beta1.ModuleAccount","base_account":{"account_number":"2","address":"cosmos17xpfvakm2amg962yls6f84z3kell8c5lserqta","pub_key":null,"sequence":"0"},"name":"fee_collector","permissions":[]}],"params":{"max_memo_characters":"256","sig_verify_cost_ed25519":"590","sig_verify_cost_secp256k1":"1000","tx_sig_limit":"7","tx_size_cost_per_byte":"10"}},"authz":{"authorization":[]},"bank":{"balances":[{"address":"cosmos1qmkksxlxqdslq6kkca25m4jn344nx29lytq8f9","coins":[{"amount":"5000000000","denom":"stake"}]},{"address":"cosmos1pnt5523etwtzv6mj7haryfw6w8h5tkcuhd99m8","coins":[{"amount":"1000","denom":"stake"}]},{"address":"cosmos1fl48vsnmsdzcv85q5d2q4z5ajdha8yu34mf0eh","coins":[{"amount":"1000000","denom":"stake"}]},{"address":"cosmos10d07y265gmmuvt4z0w9aw880jnsr700j6zn9kn","coins":[{"amount":"10010000","denom":"stake"}]},{"address":"cosmos1jv65s3grqf6v6jl3dp4t6c9t9rk99cd88lyufl","coins":[{"amount":"9635","denom":"stake"}]},{"address":"cosmos15jenkldw6348lpgdev3vjzw90zzknxa9a3vg0j","coins":[{"amount":"4988989000","denom":"stake"}]}],"denom_metadata":[],"params":{"default_send_enabled":true,"send_enabled":[]},"send_enabled":[],"supply":[{"amount":"10000009635","denom":"stake"}]},"consensus":null,"distribution":{"delegator_starting_infos":[{"delegator_address":"cosmos15jenkldw6348lpgdev3vjzw90zzknxa9a3vg0j","starting_info":{"height":"0","previous_period":"1","stake":"1000000.000000000000000000"},"validator_address":"cosmosvaloper15jenkldw6348lpgdev3vjzw90zzknxa9c9carp"}],"delegator_withdraw_infos":[],"fee_pool":{"community_pool":[{"amount":"192.700000000000000000","denom":"stake"}]},"outstanding_rewards":[{"outstanding_rewards":[{"amount":"9442.300000000000000000","denom":"stake"}],"validator_address":"cosmosvaloper15jenkldw6348lpgdev3vjzw90zzknxa9c9carp"}],"params":{"base_proposer_reward":"0.000000000000000000","bonus_proposer_reward":"0.000000000000000000","community_tax":"0.020000000000000000","withdraw_addr_enabled":true},"previous_proposer":"cosmosvalcons16vm0nx49eam4q0xasdnwdzsdl6ymgyjt757sgr","validator_accumulated_commissions":[{"accumulated":{"commission":[{"amount":"944.230000000000000000","denom":"stake"}]},"validator_address":"cosmosvaloper15jenkldw6348lpgdev3vjzw90zzknxa9c9carp"}],"validator_current_rewards":[{"rewards":{"period":"2","rewards":[{"amount":"8498.070000000000000000","denom":"stake"}]},"validator_address":"cosmosvaloper15jenkldw6348lpgdev3vjzw90zzknxa9c9carp"}],"validator_historical_rewards":[{"period":"1","rewards":{"cumulative_reward_ratio":[],"reference_count":2},"validator_address":"cosmosvaloper15jenkldw6348lpgdev3vjzw90zzknxa9c9carp"}],"validator_slash_events":[]},"evidence":{"evidence":[]},"feegrant":{"allowances":[]},"genutil":{"gen_txs":[]},"gov":{"deposit_params":null,"deposits":[{"amount":[{"amount":"10010000","denom":"stake"}],"depositor":"cosmos15jenkldw6348lpgdev3vjzw90zzknxa9a3vg0j","proposal_id":"1"}],"params":{"expedited_min_deposit":[{"amount":"50000000","denom":"stake"}],"expedited_threshold":"0.667000000000000000","expedited_voting_period":"86400s","max_deposit_period":"172800s","min_deposit":[{"amount":"10000000","denom":"stake"}],"min_initial_deposit_ratio":"0.000000000000000000","proposal_cancel_dest":"","proposal_cancel_ratio":"0.500000000000000000","quorum":"0.334000000000000000","threshold":"0.500000000000000000","veto_threshold":"0.334000000000000000","voting_period":"172800s"},"proposals":[{"deposit_end_time":"2023-02-22T11:11:52.776167376Z","expedited":false,"final_tally_result":{"abstain_count":"0","no_count":"0","no_with_veto_count":"0","yes_count":"0"},"id":"1","messages":[{"@type":"/cosmos.distribution.v1beta1.MsgCommunityPoolSpend","amount":[],"authority":"cosmos10d07y265gmmuvt4z0w9aw880jnsr700j6zn9kn","recipient":"cosmos1pnt5523etwtzv6mj7haryfw6w8h5tkcuhd99m8"}],"metadata":"ipfs://CID","proposer":"cosmos15jenkldw6348lpgdev3vjzw90zzknxa9a3vg0j","status":"PROPOSAL_STATUS_VOTING_PERIOD","submit_time":"2023-02-20T11:11:52.776167376Z","summary":"test proposal","title":"test proposal","total_deposit":[{"amount":"10010000","denom":"stake"}],"voting_end_time":"2023-02-22T11:12:07.801161984Z","voting_start_time":"2023-02-20T11:12:07.801161984Z"}],"starting_proposal_id":"2","tally_params":null,"votes":[],"voting_params":null},"group":{"group_members":[],"group_policies":[],"group_policy_seq":"0","group_seq":"0","groups":[],"proposal_seq":"0","proposals":[],"votes":[]},"mint":{"minter":{"annual_provisions":"1300010905.175073197786747950","inflation":"0.130000967926594565"},"params":{"blocks_per_year":"6311520","goal_bonded":"0.670000000000000000","inflation_max":"0.200000000000000000","inflation_min":"0.070000000000000000","inflation_rate_change":"0.130000000000000000","mint_denom":"stake"}},"nft":{"classes":[],"entries":[]},"params":null,"slashing":{"missed_blocks":[{"address":"cosmosvalcons16vm0nx49eam4q0xasdnwdzsdl6ymgyjt757sgr","missed_blocks":[]}],"params":{"downtime_jail_duration":"600s","min_signed_per_window":"0.500000000000000000","signed_blocks_window":"100","slash_fraction_double_sign":"0.050000000000000000","slash_fraction_downtime":"0.010000000000000000"},"signing_infos":[{"address":"cosmosvalcons16vm0nx49eam4q0xasdnwdzsdl6ymgyjt757sgr","validator_signing_info":{"address":"cosmosvalcons16vm0nx49eam4q0xasdnwdzsdl6ymgyjt757sgr","index_offset":"46","jailed_until":"1970-01-01T00:00:00Z","missed_blocks_counter":"0","start_height":"0","tombstoned":false}}]},"staking":{"delegations":[{"delegator_address":"cosmos15jenkldw6348lpgdev3vjzw90zzknxa9a3vg0j","shares":"1000000.000000000000000000","validator_address":"cosmosvaloper15jenkldw6348lpgdev3vjzw90zzknxa9c9carp"}],"exported":true,"last_total_power":"1","last_validator_powers":[{"address":"cosmosvaloper15jenkldw6348lpgdev3vjzw90zzknxa9c9carp","power":"1"}],"params":{"bond_denom":"stake","historical_entries":10000,"max_entries":7,"max_validators":100,"min_commission_rate":"0.000000000000000000","unbonding_time":"1814400s"},"redelegations":[],"unbonding_delegations":[],"validators":[{"commission":{"commission_rates":{"max_change_rate":"0.010000000000000000","max_rate":"0.200000000000000000","rate":"0.100000000000000000"},"update_time":"2023-02-20T11:08:30.588307671Z"},"consensus_pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"tMZonPQYoooG/xbFVhHg95pTLxx7aO43/qgHFxDagWM="},"delegator_shares":"1000000.000000000000000000","description":{"details":"","identity":"","moniker":"test","security_contact":"","website":""},"jailed":false,"min_self_delegation":"1","operator_address":"cosmosvaloper15jenkldw6348lpgdev3vjzw90zzknxa9c9carp","status":"BOND_STATUS_BONDED","tokens":"1000000","unbonding_height":"0","unbonding_ids":[],"unbonding_on_hold_ref_count":"0","unbonding_time":"1970-01-01T00:00:00Z"}]},"upgrade":{},"vesting":{}},"consensus":{"validators":[{"address":"D336F99AA5CF77503CDD8366E68A0DFE89B4124B","pub_key":{"type":"tendermint/PubKeyEd25519","value":"tMZonPQYoooG/xbFVhHg95pTLxx7aO43/qgHFxDagWM="},"power":"1","name":"test"}],"params":{"block":{"max_bytes":"22020096","max_gas":"-1"},"evidence":{"max_age_num_blocks":"100000","max_age_duration":"172800000000000","max_bytes":"1048576"},"validator":{"pub_key_types":["ed25519"]},"version":{"app":"0"},"abci":{"vote_extensions_enable_height":"0"}}}} \ No newline at end of file diff --git a/x/genutil/utils.go b/x/genutil/utils.go index d5aa272d0d..880aa7bdc1 100644 --- a/x/genutil/utils.go +++ b/x/genutil/utils.go @@ -2,23 +2,19 @@ package genutil import ( "encoding/json" - "errors" "fmt" "os" "path/filepath" "time" - cfg "github.com/cometbft/cometbft/v2/config" - cmtcrypto "github.com/cometbft/cometbft/v2/crypto" - cmtbls12381 "github.com/cometbft/cometbft/v2/crypto/bls12381" - tmed25519 "github.com/cometbft/cometbft/v2/crypto/ed25519" - "github.com/cometbft/cometbft/v2/p2p" - "github.com/cometbft/cometbft/v2/privval" - cmttypes "github.com/cometbft/cometbft/v2/types" + cfg "github.com/cometbft/cometbft/config" + tmed25519 "github.com/cometbft/cometbft/crypto/ed25519" + "github.com/cometbft/cometbft/p2p" + "github.com/cometbft/cometbft/privval" + cmttypes "github.com/cometbft/cometbft/types" "github.com/cosmos/go-bip39" cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" "github.com/cosmos/cosmos-sdk/x/genutil/types" ) @@ -47,23 +43,23 @@ func ExportGenesisFileWithTime(genFile, chainID string, validators []cmttypes.Ge return appGenesis.SaveAs(genFile) } -// InitializeNodeValidatorFiles creates private validator and p2p configuration files. Key type is ed25519. +// InitializeNodeValidatorFiles creates private validator and p2p configuration files. func InitializeNodeValidatorFiles(config *cfg.Config) (nodeID string, valPubKey cryptotypes.PubKey, err error) { - return InitializeNodeValidatorFilesWithKeyType(config, ed25519.KeyType) + return InitializeNodeValidatorFilesFromMnemonic(config, "") } // InitializeNodeValidatorFilesFromMnemonic creates private validator and p2p configuration files using the given mnemonic. -// If no valid mnemonic is given, a random one will be used instead. Key type is ed25519. +// If no valid mnemonic is given, a random one will be used instead. func InitializeNodeValidatorFilesFromMnemonic(config *cfg.Config, mnemonic string) (nodeID string, valPubKey cryptotypes.PubKey, err error) { if len(mnemonic) > 0 && !bip39.IsMnemonicValid(mnemonic) { - return "", nil, errors.New("invalid mnemonic") + return "", nil, fmt.Errorf("invalid mnemonic") } nodeKey, err := p2p.LoadOrGenNodeKey(config.NodeKeyFile()) if err != nil { return "", nil, err } - nodeID = nodeKey.ID() + nodeID = string(nodeKey.ID()) pvKeyFile := config.PrivValidatorKeyFile() if err := os.MkdirAll(filepath.Dir(pvKeyFile), 0o777); err != nil { @@ -76,13 +72,8 @@ func InitializeNodeValidatorFilesFromMnemonic(config *cfg.Config, mnemonic strin } var filePV *privval.FilePV - if len(mnemonic) == 0 { - // CometBFT uses the ed25519 key generator as default if the given generator function is nil. - filePV, err = privval.LoadOrGenFilePV(pvKeyFile, pvStateFile, nil) - if err != nil { - return "", nil, err - } + filePV = privval.LoadOrGenFilePV(pvKeyFile, pvStateFile) } else { privKey := tmed25519.GenPrivKeyFromSecret([]byte(mnemonic)) filePV = privval.NewFilePV(privKey, pvKeyFile, pvStateFile) @@ -101,80 +92,3 @@ func InitializeNodeValidatorFilesFromMnemonic(config *cfg.Config, mnemonic strin return nodeID, valPubKey, nil } - -func InitializeNodeValidatorFilesWithKeyType(config *cfg.Config, keyType string) (nodeID string, valPubKey cryptotypes.PubKey, err error) { - return InitializeNodeValidatorFilesFromMnemonicWithKeyType(config, "", keyType) -} - -func InitializeNodeValidatorFilesFromMnemonicWithKeyType(config *cfg.Config, mnemonic, keyType string) (nodeID string, valPubKey cryptotypes.PubKey, err error) { - if len(mnemonic) > 0 && !bip39.IsMnemonicValid(mnemonic) { - return "", nil, errors.New("invalid mnemonic") - } - nodeKey, err := p2p.LoadOrGenNodeKey(config.NodeKeyFile()) - if err != nil { - return "", nil, err - } - - nodeID = nodeKey.ID() - - pvKeyFile := config.PrivValidatorKeyFile() - if err := os.MkdirAll(filepath.Dir(pvKeyFile), 0o777); err != nil { - return "", nil, fmt.Errorf("could not create directory %q: %w", filepath.Dir(pvKeyFile), err) - } - - pvStateFile := config.PrivValidatorStateFile() - if err := os.MkdirAll(filepath.Dir(pvStateFile), 0o777); err != nil { - return "", nil, fmt.Errorf("could not create directory %q: %w", filepath.Dir(pvStateFile), err) - } - - var ( - filePV *privval.FilePV - privKey cmtcrypto.PrivKey - keyGenF func() (cmtcrypto.PrivKey, error) - ) - - if len(mnemonic) == 0 { - - switch keyType { - case "ed25519": - keyGenF = nil - // filePV = loadOrGenFilePV(tmed25519.GenPrivKey(), pvKeyFile, pvStateFile) - case "bls12_381": - keyGenF = func() (cmtcrypto.PrivKey, error) { - return cmtbls12381.GenPrivKey() - } - default: - keyGenF = nil - } - - // CometBFT uses the ed25519 key generator as default if the given generator function is nil. - filePV, err = privval.LoadOrGenFilePV(pvKeyFile, pvStateFile, keyGenF) - if err != nil { - return "", nil, err - } - } else { - switch keyType { - case "ed25519": - privKey = tmed25519.GenPrivKeyFromSecret([]byte(mnemonic)) - case "bls12_381": - // TODO: need to add support for getting from mnemonic in Comet. - return "", nil, errors.New("BLS key type does not support mnemonic") - default: - privKey = tmed25519.GenPrivKeyFromSecret([]byte(mnemonic)) - } - filePV = privval.NewFilePV(privKey, pvKeyFile, pvStateFile) - filePV.Save() - } - - tmValPubKey, err := filePV.GetPubKey() - if err != nil { - return "", nil, err - } - - valPubKey, err = cryptocodec.FromCmtPubKeyInterface(tmValPubKey) - if err != nil { - return "", nil, err - } - - return nodeID, valPubKey, nil -} diff --git a/x/genutil/utils_test.go b/x/genutil/utils_test.go index be8e8372a2..da960dcd90 100644 --- a/x/genutil/utils_test.go +++ b/x/genutil/utils_test.go @@ -7,9 +7,9 @@ import ( "testing" "time" - "github.com/cometbft/cometbft/v2/config" - tmed25519 "github.com/cometbft/cometbft/v2/crypto/ed25519" - "github.com/cometbft/cometbft/v2/privval" + "github.com/cometbft/cometbft/config" + tmed25519 "github.com/cometbft/cometbft/crypto/ed25519" + "github.com/cometbft/cometbft/privval" "github.com/stretchr/testify/require" ) @@ -69,103 +69,3 @@ func TestInitializeNodeValidatorFilesFromMnemonic(t *testing.T) { }) } } - -func TestInitializeNodeValidatorFilesFromMnemonicWithED25519(t *testing.T) { - t.Parallel() - - cfg := config.TestConfig() - cfg.RootDir = t.TempDir() - require.NoError(t, os.MkdirAll(filepath.Join(cfg.RootDir, "config"), 0o755)) - - tests := []struct { - name string - mnemonic string - expError bool - }{ - { - name: "invalid mnemonic returns error", - mnemonic: "side video kiss hotel essence", - expError: true, - }, - { - name: "empty mnemonic does not return error", - mnemonic: "", - expError: false, - }, - { - name: "valid mnemonic does not return error", - mnemonic: "side video kiss hotel essence door angle student degree during vague adjust submit trick globe muscle frozen vacuum artwork million shield bind useful wave", - expError: false, - }, - } - - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - _, _, err := InitializeNodeValidatorFilesFromMnemonicWithKeyType(cfg, tt.mnemonic, "ed25519") - - if tt.expError { - require.Error(t, err) - } else { - require.NoError(t, err) - - if tt.mnemonic != "" { - actualPVFile := privval.LoadFilePV(cfg.PrivValidatorKeyFile(), cfg.PrivValidatorStateFile()) - expectedPrivateKey := tmed25519.GenPrivKeyFromSecret([]byte(tt.mnemonic)) - expectedFile := privval.NewFilePV(expectedPrivateKey, cfg.PrivValidatorKeyFile(), cfg.PrivValidatorStateFile()) - require.Equal(t, expectedFile, actualPVFile) - } - } - }) - } -} - -// func TestInitializeNodeValidatorFilesFromMnemonicWithBLS(t *testing.T) { -// t.Parallel() - -// cfg := config.TestConfig() -// cfg.RootDir = t.TempDir() -// require.NoError(t, os.MkdirAll(filepath.Join(cfg.RootDir, "config"), 0o755)) - -// tests := []struct { -// name string -// mnemonic string -// expError bool -// }{ -// { -// name: "invalid mnemonic returns error", -// mnemonic: "side video kiss hotel essence", -// expError: true, -// }, -// { -// name: "empty mnemonic does not return error", -// mnemonic: "", -// expError: false, -// }, -// { -// name: "valid mnemonic returns error (BLS does not support mnemonic)", -// mnemonic: "side video kiss hotel essence door angle student degree during vague adjust submit trick globe muscle frozen vacuum artwork million shield bind useful wave", -// expError: true, -// }, -// } - -// for _, tt := range tests { -// t.Run(tt.name, func(t *testing.T) { -// _, _, err := InitializeNodeValidatorFilesFromMnemonicWithKeyType(cfg, tt.mnemonic, "bls12_381") - -// if tt.expError { -// require.Error(t, err) -// } else { -// require.NoError(t, err) - -// if tt.mnemonic == "" { -// actualPVFile := privval.LoadFilePV(cfg.PrivValidatorKeyFile(), cfg.PrivValidatorStateFile()) -// privKeyBytes := actualPVFile.Key.PrivKey.Bytes() -// fmt.Println(privKeyBytes) -// pk, err := cmtbls12381.NewPrivateKeyFromBytes(privKeyBytes) -// require.Nil(t, err) -// require.NotNil(t, pk) -// } -// } -// }) -// } -// } diff --git a/x/gov/abci_test.go b/x/gov/abci_test.go index e0f266ea04..afebc3f342 100644 --- a/x/gov/abci_test.go +++ b/x/gov/abci_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "github.com/stretchr/testify/require" "cosmossdk.io/collections" @@ -87,7 +87,7 @@ func TestTickExpiredDepositPeriod(t *testing.T) { ctx := app.NewContext(false) addrs := simtestutil.AddTestAddrs(suite.BankKeeper, suite.StakingKeeper, ctx, 10, valTokens) - _, err := app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err := app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: app.LastBlockHeight() + 1, Hash: app.LastCommitID().Hash, }) @@ -139,7 +139,7 @@ func TestTickMultipleExpiredDepositPeriod(t *testing.T) { ctx := app.NewContext(false) addrs := simtestutil.AddTestAddrs(suite.BankKeeper, suite.StakingKeeper, ctx, 10, valTokens) - _, err := app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err := app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: app.LastBlockHeight() + 1, Hash: app.LastCommitID().Hash, }) @@ -211,7 +211,7 @@ func TestTickPassedDepositPeriod(t *testing.T) { ctx := app.NewContext(false) addrs := simtestutil.AddTestAddrs(suite.BankKeeper, suite.StakingKeeper, ctx, 10, valTokens) - _, err := app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err := app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: app.LastBlockHeight() + 1, Hash: app.LastCommitID().Hash, }) @@ -277,7 +277,7 @@ func TestTickPassedVotingPeriod(t *testing.T) { SortAddresses(addrs) - _, err := app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err := app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: app.LastBlockHeight() + 1, Hash: app.LastCommitID().Hash, }) @@ -372,7 +372,7 @@ func TestProposalPassedEndblocker(t *testing.T) { govMsgSvr := keeper.NewMsgServerImpl(suite.GovKeeper) stakingMsgSvr := stakingkeeper.NewMsgServerImpl(suite.StakingKeeper) - _, err := app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err := app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: app.LastBlockHeight() + 1, Hash: app.LastCommitID().Hash, }) @@ -433,7 +433,7 @@ func TestEndBlockerProposalHandlerFailed(t *testing.T) { stakingMsgSvr := stakingkeeper.NewMsgServerImpl(suite.StakingKeeper) - _, err := app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err := app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: app.LastBlockHeight() + 1, Hash: app.LastCommitID().Hash, }) @@ -519,7 +519,7 @@ func TestExpeditedProposal_PassAndConversionToRegular(t *testing.T) { govMsgSvr := keeper.NewMsgServerImpl(suite.GovKeeper) stakingMsgSvr := stakingkeeper.NewMsgServerImpl(suite.StakingKeeper) - _, err = app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: app.LastBlockHeight() + 1, Hash: app.LastCommitID().Hash, }) diff --git a/x/gov/client/cli/tx_test.go b/x/gov/client/cli/tx_test.go index ea01a11332..1fa3790b82 100644 --- a/x/gov/client/cli/tx_test.go +++ b/x/gov/client/cli/tx_test.go @@ -6,8 +6,8 @@ import ( "io" "testing" - abci "github.com/cometbft/cometbft/v2/abci/types" - rpcclientmock "github.com/cometbft/cometbft/v2/rpc/client/mock" + abci "github.com/cometbft/cometbft/abci/types" + rpcclientmock "github.com/cometbft/cometbft/rpc/client/mock" "github.com/stretchr/testify/suite" sdkmath "cosmossdk.io/math" @@ -55,7 +55,7 @@ func (s *CLITestSuite) SetupSuite() { ctxGen := func() client.Context { bz, _ := s.encCfg.Codec.Marshal(&sdk.TxResponse{}) - c := clitestutil.NewMockCometRPC(abci.QueryResponse{ + c := clitestutil.NewMockCometRPC(abci.ResponseQuery{ Value: bz, }) return s.baseCtx.WithClient(c) diff --git a/x/gov/client/utils/query_test.go b/x/gov/client/utils/query_test.go index f20399d73b..994c363983 100644 --- a/x/gov/client/utils/query_test.go +++ b/x/gov/client/utils/query_test.go @@ -4,9 +4,9 @@ import ( "context" "testing" - "github.com/cometbft/cometbft/v2/rpc/client/mock" - coretypes "github.com/cometbft/cometbft/v2/rpc/core/types" - cmttypes "github.com/cometbft/cometbft/v2/types" + "github.com/cometbft/cometbft/rpc/client/mock" + coretypes "github.com/cometbft/cometbft/rpc/core/types" + cmttypes "github.com/cometbft/cometbft/types" "github.com/stretchr/testify/require" sdkmath "cosmossdk.io/math" diff --git a/x/gov/keeper/common_test.go b/x/gov/keeper/common_test.go index 5035da0af1..886887bb62 100644 --- a/x/gov/keeper/common_test.go +++ b/x/gov/keeper/common_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - cmttime "github.com/cometbft/cometbft/v2/types/time" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + cmttime "github.com/cometbft/cometbft/types/time" "github.com/stretchr/testify/require" "go.uber.org/mock/gomock" diff --git a/x/gov/simulation/operations_test.go b/x/gov/simulation/operations_test.go index a2510ae034..7f9c441c43 100644 --- a/x/gov/simulation/operations_test.go +++ b/x/gov/simulation/operations_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "github.com/cosmos/gogoproto/proto" "github.com/stretchr/testify/require" @@ -146,7 +146,7 @@ func TestSimulateMsgSubmitProposal(t *testing.T) { r := rand.New(s) accounts := getTestingAccounts(t, r, suite.AccountKeeper, suite.BankKeeper, suite.StakingKeeper, ctx, 3) - _, err := app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err := app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: app.LastBlockHeight() + 1, Hash: app.LastCommitID().Hash, }) @@ -178,7 +178,7 @@ func TestSimulateMsgSubmitLegacyProposal(t *testing.T) { r := rand.New(s) accounts := getTestingAccounts(t, r, suite.AccountKeeper, suite.BankKeeper, suite.StakingKeeper, ctx, 3) - _, err := app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err := app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: app.LastBlockHeight() + 1, Hash: app.LastCommitID().Hash, }) @@ -236,7 +236,7 @@ func TestSimulateMsgCancelProposal(t *testing.T) { require.NoError(t, suite.GovKeeper.SetProposal(ctx, proposal)) - _, err = app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: app.LastBlockHeight() + 1, Hash: app.LastCommitID().Hash, }) @@ -284,7 +284,7 @@ func TestSimulateMsgDeposit(t *testing.T) { require.NoError(t, suite.GovKeeper.SetProposal(ctx, proposal)) - _, err = app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: app.LastBlockHeight() + 1, Hash: app.LastCommitID().Hash, }) @@ -333,7 +333,7 @@ func TestSimulateMsgVote(t *testing.T) { require.NoError(t, suite.GovKeeper.ActivateVotingPeriod(ctx, proposal)) - _, err = app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: app.LastBlockHeight() + 1, Hash: app.LastCommitID().Hash, }) @@ -380,7 +380,7 @@ func TestSimulateMsgVoteWeighted(t *testing.T) { require.NoError(t, suite.GovKeeper.ActivateVotingPeriod(ctx, proposal)) - _, err = app.FinalizeBlock(&abci.FinalizeBlockRequest{ + _, err = app.FinalizeBlock(&abci.RequestFinalizeBlock{ Height: app.LastBlockHeight() + 1, Hash: app.LastCommitID().Hash, }) diff --git a/x/gov/simulation/proposals_test.go b/x/gov/simulation/proposals_test.go index bc7740f7d6..066d24a905 100644 --- a/x/gov/simulation/proposals_test.go +++ b/x/gov/simulation/proposals_test.go @@ -4,7 +4,7 @@ import ( "math/rand" "testing" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "gotest.tools/v3/assert" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/mint/simulation/proposals_test.go b/x/mint/simulation/proposals_test.go index 92eb7f3c41..83bda1f0de 100644 --- a/x/mint/simulation/proposals_test.go +++ b/x/mint/simulation/proposals_test.go @@ -4,7 +4,7 @@ import ( "math/rand" "testing" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "gotest.tools/v3/assert" sdkmath "cosmossdk.io/math" diff --git a/x/params/simulation/operations_test.go b/x/params/simulation/operations_test.go index f312020806..a23e42bf70 100644 --- a/x/params/simulation/operations_test.go +++ b/x/params/simulation/operations_test.go @@ -5,7 +5,7 @@ import ( "math/rand" "testing" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/require" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/params/simulation/proposals_test.go b/x/params/simulation/proposals_test.go index b5de335875..aa80a6f007 100644 --- a/x/params/simulation/proposals_test.go +++ b/x/params/simulation/proposals_test.go @@ -4,7 +4,7 @@ import ( "math/rand" "testing" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/require" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/params/types/consensus_params_legacy.go b/x/params/types/consensus_params_legacy.go index 26ca722716..2ea43d366f 100644 --- a/x/params/types/consensus_params_legacy.go +++ b/x/params/types/consensus_params_legacy.go @@ -1,7 +1,7 @@ package types import ( - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/cosmos/cosmos-sdk/baseapp" ) diff --git a/x/params/types/subspace_test.go b/x/params/types/subspace_test.go index 6a20803ce5..5f0d24d65a 100644 --- a/x/params/types/subspace_test.go +++ b/x/params/types/subspace_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" dbm "github.com/cosmos/cosmos-db" "github.com/stretchr/testify/suite" diff --git a/x/simulation/mock_cometbft.go b/x/simulation/mock_cometbft.go index de0811f597..dbcf245432 100644 --- a/x/simulation/mock_cometbft.go +++ b/x/simulation/mock_cometbft.go @@ -7,9 +7,9 @@ import ( "testing" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - abci "github.com/cometbft/cometbft/v2/abci/types" - "github.com/cometbft/cometbft/v2/crypto/tmhash" + abci "github.com/cometbft/cometbft/abci/types" + cryptoenc "github.com/cometbft/cometbft/crypto/encoding" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" ) type mockValidator struct { @@ -19,7 +19,7 @@ type mockValidator struct { func (mv mockValidator) String() string { return fmt.Sprintf("mockValidator{%s power:%v state:%v}", - string(mv.val.PubKeyBytes), + mv.val.PubKey.String(), mv.val.Power, mv.livenessState) } @@ -31,7 +31,7 @@ func newMockValidators(r *rand.Rand, abciVals []abci.ValidatorUpdate, params Par validators := make(mockValidators) for _, validator := range abciVals { - str := fmt.Sprintf("%X", validator.PubKeyBytes) + str := fmt.Sprintf("%X", validator.PubKey.GetEd25519()) liveliness := GetMemberOfInitialState(r, params.InitialLivenessWeightings()) validators[str] = mockValidator{ @@ -68,8 +68,12 @@ func (vals mockValidators) randomProposer(r *rand.Rand) []byte { key := keys[r.Intn(len(keys))] proposer := vals[key].val + pk, err := cryptoenc.PubKeyFromProto(proposer.PubKey) + if err != nil { + panic(err) + } - return tmhash.SumTruncated(proposer.PubKeyBytes) + return pk.Address() } // updateValidators mimics CometBFT's update logic. @@ -84,7 +88,7 @@ func updateValidators( tb.Helper() for _, update := range updates { - str := fmt.Sprintf("%X", update.PubKeyBytes) + str := fmt.Sprintf("%X", update.PubKey.GetEd25519()) if update.Power == 0 { if _, ok := current[str]; !ok { @@ -121,9 +125,9 @@ func RandomRequestFinalizeBlock( blockHeight int64, time time.Time, proposer []byte, -) *abci.FinalizeBlockRequest { +) *abci.RequestFinalizeBlock { if len(validators) == 0 { - return &abci.FinalizeBlockRequest{ + return &abci.RequestFinalizeBlock{ Height: blockHeight, Time: time, ProposerAddress: proposer, @@ -157,9 +161,14 @@ func RandomRequestFinalizeBlock( commitStatus = cmtproto.BlockIDFlagAbsent } + pubkey, err := cryptoenc.PubKeyFromProto(mVal.val.PubKey) + if err != nil { + panic(err) + } + voteInfos[i] = abci.VoteInfo{ Validator: abci.Validator{ - Address: tmhash.SumTruncated(mVal.val.PubKeyBytes), + Address: pubkey.Address(), Power: mVal.val.Power, }, BlockIdFlag: commitStatus, @@ -168,7 +177,7 @@ func RandomRequestFinalizeBlock( // return if no past times if len(pastTimes) == 0 { - return &abci.FinalizeBlockRequest{ + return &abci.RequestFinalizeBlock{ Height: blockHeight, Time: time, ProposerAddress: proposer, @@ -201,7 +210,7 @@ func RandomRequestFinalizeBlock( evidence = append(evidence, abci.Misbehavior{ - Type: abci.MISBEHAVIOR_TYPE_DUPLICATE_VOTE, + Type: abci.MisbehaviorType_DUPLICATE_VOTE, Validator: validator, Height: height, Time: misbehaviorTime, @@ -212,7 +221,7 @@ func RandomRequestFinalizeBlock( event("begin_block", "evidence", "ok") } - return &abci.FinalizeBlockRequest{ + return &abci.RequestFinalizeBlock{ Height: blockHeight, Time: time, ProposerAddress: proposer, diff --git a/x/simulation/params.go b/x/simulation/params.go index f218975824..b3fe58bdd7 100644 --- a/x/simulation/params.go +++ b/x/simulation/params.go @@ -4,8 +4,8 @@ import ( "encoding/json" "math/rand" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - "github.com/cometbft/cometbft/v2/types" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + "github.com/cometbft/cometbft/types" "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/types/simulation" diff --git a/x/simulation/params_test.go b/x/simulation/params_test.go index 9f2f61c938..c3ea94896f 100644 --- a/x/simulation/params_test.go +++ b/x/simulation/params_test.go @@ -5,7 +5,7 @@ import ( "math/rand" "testing" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/require" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/simulation/simulate.go b/x/simulation/simulate.go index 200240b7a5..5ee761630f 100644 --- a/x/simulation/simulate.go +++ b/x/simulation/simulate.go @@ -10,8 +10,8 @@ import ( "testing" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "cosmossdk.io/core/header" "cosmossdk.io/log" @@ -40,7 +40,7 @@ func initChain( } appState, accounts, chainID, genesisTimestamp := appStateFn(r, accounts, config) consensusParams := randomConsensusParams(r, appState, cdc, blockMaxGas) - req := abci.InitChainRequest{ + req := abci.RequestInitChain{ AppStateBytes: appState, ChainId: chainID, ConsensusParams: consensusParams, diff --git a/x/slashing/abci_test.go b/x/slashing/abci_test.go index 197e5aa3c0..be31c5e758 100644 --- a/x/slashing/abci_test.go +++ b/x/slashing/abci_test.go @@ -4,8 +4,8 @@ import ( "testing" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/require" "cosmossdk.io/depinject" diff --git a/x/slashing/app_test.go b/x/slashing/app_test.go index 8567625720..06679bc420 100644 --- a/x/slashing/app_test.go +++ b/x/slashing/app_test.go @@ -4,8 +4,8 @@ import ( "errors" "testing" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/require" "cosmossdk.io/depinject" @@ -91,7 +91,7 @@ func TestSlashingMsgs(t *testing.T) { require.NoError(t, err) require.True(t, sdk.Coins{genCoin.Sub(bondCoin)}.Equal(bankKeeper.GetAllBalances(ctxCheck, addr1))) - _, err = app.FinalizeBlock(&abci.FinalizeBlockRequest{Height: app.LastBlockHeight() + 1}) + _, err = app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: app.LastBlockHeight() + 1}) require.NoError(t, err) ctxCheck = baseApp.NewContext(true) diff --git a/x/slashing/keeper/hooks.go b/x/slashing/keeper/hooks.go index 42b87aa320..80c78d42c2 100644 --- a/x/slashing/keeper/hooks.go +++ b/x/slashing/keeper/hooks.go @@ -4,7 +4,7 @@ import ( "context" "time" - "github.com/cometbft/cometbft/v2/crypto" + "github.com/cometbft/cometbft/crypto" sdkmath "cosmossdk.io/math" diff --git a/x/slashing/keeper/keeper_test.go b/x/slashing/keeper/keeper_test.go index 65e0fff91e..af01a4d802 100644 --- a/x/slashing/keeper/keeper_test.go +++ b/x/slashing/keeper/keeper_test.go @@ -3,8 +3,8 @@ package keeper_test import ( "testing" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - cmttime "github.com/cometbft/cometbft/v2/types/time" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + cmttime "github.com/cometbft/cometbft/types/time" "github.com/stretchr/testify/suite" "go.uber.org/mock/gomock" diff --git a/x/slashing/simulation/operations_test.go b/x/slashing/simulation/operations_test.go index 95f8e2817e..51dd960a26 100644 --- a/x/slashing/simulation/operations_test.go +++ b/x/slashing/simulation/operations_test.go @@ -6,8 +6,8 @@ import ( "testing" "time" - abci "github.com/cometbft/cometbft/v2/abci/types" - cmttypes "github.com/cometbft/cometbft/v2/types" + abci "github.com/cometbft/cometbft/abci/types" + cmttypes "github.com/cometbft/cometbft/types" "github.com/cosmos/gogoproto/proto" "github.com/stretchr/testify/suite" @@ -181,7 +181,7 @@ func (suite *SimTestSuite) TestSimulateMsgUnjail() { suite.Require().NoError(suite.distrKeeper.SetDelegatorStartingInfo(ctx, val0AccAddress, val0AccAddress.Bytes(), distrtypes.NewDelegatorStartingInfo(2, math.LegacyOneDec(), 200))) // begin a new block - _, err = suite.app.FinalizeBlock(&abci.FinalizeBlockRequest{Height: suite.app.LastBlockHeight() + 1, Hash: suite.app.LastCommitID().Hash, Time: blockTime}) + _, err = suite.app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: suite.app.LastBlockHeight() + 1, Hash: suite.app.LastCommitID().Hash, Time: blockTime}) suite.Require().NoError(err) // execute operation diff --git a/x/slashing/simulation/proposals_test.go b/x/slashing/simulation/proposals_test.go index 0d378ca109..67f0051619 100644 --- a/x/slashing/simulation/proposals_test.go +++ b/x/slashing/simulation/proposals_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "gotest.tools/v3/assert" sdkmath "cosmossdk.io/math" diff --git a/x/staking/app_test.go b/x/staking/app_test.go index 4da2a91dbf..bf2f956ce4 100644 --- a/x/staking/app_test.go +++ b/x/staking/app_test.go @@ -3,8 +3,8 @@ package staking_test import ( "testing" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/require" "cosmossdk.io/depinject" @@ -79,7 +79,7 @@ func TestStakingMsgs(t *testing.T) { require.NoError(t, err) require.True(t, sdk.Coins{genCoin.Sub(bondCoin)}.Equal(bankKeeper.GetAllBalances(ctxCheck, addr1))) - _, err = app.FinalizeBlock(&abci.FinalizeBlockRequest{Height: app.LastBlockHeight() + 1}) + _, err = app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: app.LastBlockHeight() + 1}) require.NoError(t, err) ctxCheck = app.NewContext(true) validator, err := stakingKeeper.GetValidator(ctxCheck, sdk.ValAddress(addr1)) @@ -89,7 +89,7 @@ func TestStakingMsgs(t *testing.T) { require.Equal(t, types.Bonded, validator.Status) require.True(math.IntEq(t, bondTokens, validator.BondedTokens())) - _, err = app.FinalizeBlock(&abci.FinalizeBlockRequest{Height: app.LastBlockHeight() + 1}) + _, err = app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: app.LastBlockHeight() + 1}) require.NoError(t, err) // edit the validator diff --git a/x/staking/client/cli/tx_test.go b/x/staking/client/cli/tx_test.go index fb477ee8f8..cc85971e60 100644 --- a/x/staking/client/cli/tx_test.go +++ b/x/staking/client/cli/tx_test.go @@ -5,8 +5,8 @@ import ( "io" "testing" - abci "github.com/cometbft/cometbft/v2/abci/types" - rpcclientmock "github.com/cometbft/cometbft/v2/rpc/client/mock" + abci "github.com/cometbft/cometbft/abci/types" + rpcclientmock "github.com/cometbft/cometbft/rpc/client/mock" "github.com/spf13/pflag" "github.com/stretchr/testify/suite" @@ -53,7 +53,7 @@ func (s *CLITestSuite) SetupSuite() { ctxGen := func() client.Context { bz, _ := s.encCfg.Codec.Marshal(&sdk.TxResponse{}) - c := clitestutil.NewMockCometRPC(abci.QueryResponse{ + c := clitestutil.NewMockCometRPC(abci.ResponseQuery{ Value: bz, }) return s.baseCtx.WithClient(c) diff --git a/x/staking/genesis.go b/x/staking/genesis.go index f579671654..ed8a5505d4 100644 --- a/x/staking/genesis.go +++ b/x/staking/genesis.go @@ -3,7 +3,7 @@ package staking import ( "fmt" - cmttypes "github.com/cometbft/cometbft/v2/types" + cmttypes "github.com/cometbft/cometbft/types" cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/staking/keeper/abci.go b/x/staking/keeper/abci.go index 1683855196..8131fa6dd1 100644 --- a/x/staking/keeper/abci.go +++ b/x/staking/keeper/abci.go @@ -3,7 +3,7 @@ package keeper import ( "context" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "github.com/cosmos/cosmos-sdk/telemetry" "github.com/cosmos/cosmos-sdk/x/staking/types" diff --git a/x/staking/keeper/genesis.go b/x/staking/keeper/genesis.go index 86c6643c54..3f476986e4 100644 --- a/x/staking/keeper/genesis.go +++ b/x/staking/keeper/genesis.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "cosmossdk.io/math" diff --git a/x/staking/keeper/historical_info_test.go b/x/staking/keeper/historical_info_test.go index 362fe3ca87..cb3b932bea 100644 --- a/x/staking/keeper/historical_info_test.go +++ b/x/staking/keeper/historical_info_test.go @@ -1,7 +1,7 @@ package keeper_test import ( - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "cosmossdk.io/math" diff --git a/x/staking/keeper/keeper.go b/x/staking/keeper/keeper.go index 25b8054401..45948f7222 100644 --- a/x/staking/keeper/keeper.go +++ b/x/staking/keeper/keeper.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" addresscodec "cosmossdk.io/core/address" storetypes "cosmossdk.io/core/store" diff --git a/x/staking/keeper/keeper_test.go b/x/staking/keeper/keeper_test.go index 956358dc8c..ac1b5fc9e6 100644 --- a/x/staking/keeper/keeper_test.go +++ b/x/staking/keeper/keeper_test.go @@ -3,8 +3,8 @@ package keeper_test import ( "testing" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - cmttime "github.com/cometbft/cometbft/v2/types/time" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + cmttime "github.com/cometbft/cometbft/types/time" "github.com/stretchr/testify/suite" "go.uber.org/mock/gomock" diff --git a/x/staking/keeper/val_state_change.go b/x/staking/keeper/val_state_change.go index 12d1ec1e65..7761d80a2e 100644 --- a/x/staking/keeper/val_state_change.go +++ b/x/staking/keeper/val_state_change.go @@ -7,7 +7,7 @@ import ( "fmt" "sort" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" gogotypes "github.com/cosmos/gogoproto/types" "cosmossdk.io/core/address" diff --git a/x/staking/keeper/validator.go b/x/staking/keeper/validator.go index f534159bbc..04f5fe3b0d 100644 --- a/x/staking/keeper/validator.go +++ b/x/staking/keeper/validator.go @@ -7,7 +7,7 @@ import ( "fmt" "time" - cmtprotocrypto "github.com/cometbft/cometbft/api/cometbft/crypto/v1" + cmtprotocrypto "github.com/cometbft/cometbft/proto/tendermint/crypto" gogotypes "github.com/cosmos/gogoproto/types" corestore "cosmossdk.io/core/store" diff --git a/x/staking/keeper/validator_test.go b/x/staking/keeper/validator_test.go index 688d5f52f0..b3c48e7593 100644 --- a/x/staking/keeper/validator_test.go +++ b/x/staking/keeper/validator_test.go @@ -3,7 +3,7 @@ package keeper_test import ( "time" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "go.uber.org/mock/gomock" "cosmossdk.io/math" diff --git a/x/staking/keeper_bench_test.go b/x/staking/keeper_bench_test.go index 5ef18c1e24..f7283f566b 100644 --- a/x/staking/keeper_bench_test.go +++ b/x/staking/keeper_bench_test.go @@ -4,8 +4,8 @@ import ( "math/rand" "testing" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" - cmttime "github.com/cometbft/cometbft/v2/types/time" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + cmttime "github.com/cometbft/cometbft/types/time" "github.com/stretchr/testify/require" "go.uber.org/mock/gomock" diff --git a/x/staking/migrations/v5/migrations_test.go b/x/staking/migrations/v5/migrations_test.go index dc79b089cb..6d00e80687 100644 --- a/x/staking/migrations/v5/migrations_test.go +++ b/x/staking/migrations/v5/migrations_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/x/staking/module.go b/x/staking/module.go index 11590a601b..427ff607af 100644 --- a/x/staking/module.go +++ b/x/staking/module.go @@ -8,7 +8,7 @@ import ( "slices" "sort" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" gwruntime "github.com/grpc-ecosystem/grpc-gateway/runtime" "github.com/spf13/cobra" diff --git a/x/staking/simulation/operations_test.go b/x/staking/simulation/operations_test.go index b470c855af..86d5ff3805 100644 --- a/x/staking/simulation/operations_test.go +++ b/x/staking/simulation/operations_test.go @@ -6,8 +6,8 @@ import ( "testing" "time" - abci "github.com/cometbft/cometbft/v2/abci/types" - cmttypes "github.com/cometbft/cometbft/v2/types" + abci "github.com/cometbft/cometbft/abci/types" + cmttypes "github.com/cometbft/cometbft/types" "github.com/cosmos/gogoproto/proto" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" @@ -163,7 +163,7 @@ func (s *SimTestSuite) TestWeightedOperations() { // Abnormal scenarios, where the message are created by an errors are not tested here. func (s *SimTestSuite) TestSimulateMsgCreateValidator() { require := s.Require() - _, err := s.app.FinalizeBlock(&abci.FinalizeBlockRequest{Height: s.app.LastBlockHeight() + 1, Hash: s.app.LastCommitID().Hash}) + _, err := s.app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: s.app.LastBlockHeight() + 1, Hash: s.app.LastCommitID().Hash}) require.NoError(err) // execute operation @@ -210,7 +210,7 @@ func (s *SimTestSuite) TestSimulateMsgCancelUnbondingDelegation() { require.NoError(s.stakingKeeper.SetUnbondingDelegation(ctx, udb)) s.setupValidatorRewards(ctx, val0bz) - _, err = s.app.FinalizeBlock(&abci.FinalizeBlockRequest{Height: s.app.LastBlockHeight() + 1, Hash: s.app.LastCommitID().Hash, Time: blockTime}) + _, err = s.app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: s.app.LastBlockHeight() + 1, Hash: s.app.LastCommitID().Hash, Time: blockTime}) require.NoError(err) // execute operation @@ -239,7 +239,7 @@ func (s *SimTestSuite) TestSimulateMsgEditValidator() { // setup accounts[0] as validator _ = s.getTestingValidator0(ctx) - _, err := s.app.FinalizeBlock(&abci.FinalizeBlockRequest{Height: s.app.LastBlockHeight() + 1, Hash: s.app.LastCommitID().Hash, Time: blockTime}) + _, err := s.app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: s.app.LastBlockHeight() + 1, Hash: s.app.LastCommitID().Hash, Time: blockTime}) require.NoError(err) // execute operation @@ -301,7 +301,7 @@ func (s *SimTestSuite) TestSimulateMsgUndelegate() { s.setupValidatorRewards(ctx, val0bz) - _, err = s.app.FinalizeBlock(&abci.FinalizeBlockRequest{Height: s.app.LastBlockHeight() + 1, Hash: s.app.LastCommitID().Hash, Time: blockTime}) + _, err = s.app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: s.app.LastBlockHeight() + 1, Hash: s.app.LastCommitID().Hash, Time: blockTime}) require.NoError(err) // execute operation @@ -348,7 +348,7 @@ func (s *SimTestSuite) TestSimulateMsgBeginRedelegate() { s.setupValidatorRewards(ctx, val0bz) s.setupValidatorRewards(ctx, val1bz) - _, err = s.app.FinalizeBlock(&abci.FinalizeBlockRequest{Height: s.app.LastBlockHeight() + 1, Hash: s.app.LastCommitID().Hash, Time: blockTime}) + _, err = s.app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: s.app.LastBlockHeight() + 1, Hash: s.app.LastCommitID().Hash, Time: blockTime}) require.NoError(err) // execute operation diff --git a/x/staking/simulation/proposals_test.go b/x/staking/simulation/proposals_test.go index 3c88ab269d..040151747d 100644 --- a/x/staking/simulation/proposals_test.go +++ b/x/staking/simulation/proposals_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "gotest.tools/v3/assert" sdkmath "cosmossdk.io/math" diff --git a/x/staking/testutil/cmt.go b/x/staking/testutil/cmt.go index 212d3d6650..6c3ca753da 100644 --- a/x/staking/testutil/cmt.go +++ b/x/staking/testutil/cmt.go @@ -1,8 +1,8 @@ package testutil import ( - cmtcrypto "github.com/cometbft/cometbft/v2/crypto" - cmttypes "github.com/cometbft/cometbft/v2/types" + cmtcrypto "github.com/cometbft/cometbft/crypto" + cmttypes "github.com/cometbft/cometbft/types" "cosmossdk.io/math" diff --git a/x/staking/testutil/expected_keepers_mocks.go b/x/staking/testutil/expected_keepers_mocks.go index 84738ae83d..ed96ef7ca8 100644 --- a/x/staking/testutil/expected_keepers_mocks.go +++ b/x/staking/testutil/expected_keepers_mocks.go @@ -15,7 +15,7 @@ import ( address "cosmossdk.io/core/address" math "cosmossdk.io/math" - v1 "github.com/cometbft/cometbft/api/cometbft/crypto/v1" + crypto "github.com/cometbft/cometbft/proto/tendermint/crypto" types "github.com/cosmos/cosmos-sdk/types" types0 "github.com/cosmos/cosmos-sdk/x/staking/types" gomock "go.uber.org/mock/gomock" @@ -315,10 +315,10 @@ func (mr *MockValidatorSetMockRecorder) Delegation(arg0, arg1, arg2 any) *gomock } // GetPubKeyByConsAddr mocks base method. -func (m *MockValidatorSet) GetPubKeyByConsAddr(arg0 context.Context, arg1 types.ConsAddress) (v1.PublicKey, error) { +func (m *MockValidatorSet) GetPubKeyByConsAddr(arg0 context.Context, arg1 types.ConsAddress) (crypto.PublicKey, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPubKeyByConsAddr", arg0, arg1) - ret0, _ := ret[0].(v1.PublicKey) + ret0, _ := ret[0].(crypto.PublicKey) ret1, _ := ret[1].(error) return ret0, ret1 } diff --git a/x/staking/types/expected_keepers.go b/x/staking/types/expected_keepers.go index 01c62a7831..96f816a5ac 100644 --- a/x/staking/types/expected_keepers.go +++ b/x/staking/types/expected_keepers.go @@ -3,7 +3,7 @@ package types import ( context "context" - cmtprotocrypto "github.com/cometbft/cometbft/api/cometbft/crypto/v1" + cmtprotocrypto "github.com/cometbft/cometbft/proto/tendermint/crypto" "cosmossdk.io/core/address" "cosmossdk.io/math" diff --git a/x/staking/types/exported.go b/x/staking/types/exported.go index aef4225fdb..2cdf70629e 100644 --- a/x/staking/types/exported.go +++ b/x/staking/types/exported.go @@ -1,7 +1,7 @@ package types import ( - cmtprotocrypto "github.com/cometbft/cometbft/api/cometbft/crypto/v1" + cmtprotocrypto "github.com/cometbft/cometbft/proto/tendermint/crypto" "cosmossdk.io/math" diff --git a/x/staking/types/historical_info.go b/x/staking/types/historical_info.go index 380831e9fa..4002b0487b 100644 --- a/x/staking/types/historical_info.go +++ b/x/staking/types/historical_info.go @@ -3,7 +3,7 @@ package types import ( "sort" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/cosmos/gogoproto/proto" "cosmossdk.io/core/address" diff --git a/x/staking/types/historical_info_test.go b/x/staking/types/historical_info_test.go index 6430194386..188eadde71 100644 --- a/x/staking/types/historical_info_test.go +++ b/x/staking/types/historical_info_test.go @@ -5,7 +5,7 @@ import ( "sort" "testing" - cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/require" "github.com/cosmos/cosmos-sdk/codec" diff --git a/x/staking/types/staking.pb.go b/x/staking/types/staking.pb.go index e27dddc0eb..31254a76f6 100644 --- a/x/staking/types/staking.pb.go +++ b/x/staking/types/staking.pb.go @@ -8,10 +8,10 @@ import ( compress_gzip "compress/gzip" cosmossdk_io_math "cosmossdk.io/math" fmt "fmt" - v21 "github.com/cometbft/cometbft/api/cometbft/abci/v2" - v2 "github.com/cometbft/cometbft/api/cometbft/types/v2" + types2 "github.com/cometbft/cometbft/abci/types" + types "github.com/cometbft/cometbft/proto/tendermint/types" _ "github.com/cosmos/cosmos-proto" - types "github.com/cosmos/cosmos-sdk/types" + types1 "github.com/cosmos/cosmos-sdk/types" _ "github.com/cosmos/cosmos-sdk/types/tx/amino" _ "github.com/cosmos/gogoproto/gogoproto" github_com_cosmos_gogoproto_proto "github.com/cosmos/gogoproto/proto" @@ -76,7 +76,7 @@ func (BondStatus) EnumDescriptor() ([]byte, []int) { return fileDescriptor_64c30c6cf92913c9, []int{0} } -// Infraction indicates the infraction a validator committed. +// Infraction indicates the infraction a validator commited. type Infraction int32 const ( @@ -113,8 +113,8 @@ func (Infraction) EnumDescriptor() ([]byte, []int) { // recent HistoricalInfo // (`n` is set by the staking module's `historical_entries` parameter). type HistoricalInfo struct { - Header v2.Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header"` - Valset []Validator `protobuf:"bytes,2,rep,name=valset,proto3" json:"valset"` + Header types.Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header"` + Valset []Validator `protobuf:"bytes,2,rep,name=valset,proto3" json:"valset"` } func (m *HistoricalInfo) Reset() { *m = HistoricalInfo{} } @@ -150,11 +150,11 @@ func (m *HistoricalInfo) XXX_DiscardUnknown() { var xxx_messageInfo_HistoricalInfo proto.InternalMessageInfo -func (m *HistoricalInfo) GetHeader() v2.Header { +func (m *HistoricalInfo) GetHeader() types.Header { if m != nil { return m.Header } - return v2.Header{} + return types.Header{} } func (m *HistoricalInfo) GetValset() []Validator { @@ -371,7 +371,7 @@ type Validator struct { MinSelfDelegation cosmossdk_io_math.Int `protobuf:"bytes,11,opt,name=min_self_delegation,json=minSelfDelegation,proto3,customtype=cosmossdk.io/math.Int" json:"min_self_delegation"` // strictly positive if this validator's unbonding has been stopped by external modules UnbondingOnHoldRefCount int64 `protobuf:"varint,12,opt,name=unbonding_on_hold_ref_count,json=unbondingOnHoldRefCount,proto3" json:"unbonding_on_hold_ref_count,omitempty"` - // list of unbonding ids, each uniquely identifying an unbonding of this validator + // list of unbonding ids, each uniquely identifing an unbonding of this validator UnbondingIds []uint64 `protobuf:"varint,13,rep,packed,name=unbonding_ids,json=unbondingIds,proto3" json:"unbonding_ids,omitempty"` } @@ -1003,8 +1003,8 @@ func (m *Params) GetBondDenom() string { // DelegationResponse is equivalent to Delegation except that it contains a // balance in addition to shares which is more suitable for client responses. type DelegationResponse struct { - Delegation Delegation `protobuf:"bytes,1,opt,name=delegation,proto3" json:"delegation"` - Balance types.Coin `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance"` + Delegation Delegation `protobuf:"bytes,1,opt,name=delegation,proto3" json:"delegation"` + Balance types1.Coin `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance"` } func (m *DelegationResponse) Reset() { *m = DelegationResponse{} } @@ -1047,11 +1047,11 @@ func (m *DelegationResponse) GetDelegation() Delegation { return Delegation{} } -func (m *DelegationResponse) GetBalance() types.Coin { +func (m *DelegationResponse) GetBalance() types1.Coin { if m != nil { return m.Balance } - return types.Coin{} + return types1.Coin{} } // RedelegationEntryResponse is equivalent to a RedelegationEntry except that it @@ -1200,7 +1200,7 @@ var xxx_messageInfo_Pool proto.InternalMessageInfo // ValidatorUpdates defines an array of abci.ValidatorUpdate objects. // TODO: explore moving this to proto/cosmos/base to separate modules from tendermint dependence type ValidatorUpdates struct { - Updates []v21.ValidatorUpdate `protobuf:"bytes,1,rep,name=updates,proto3" json:"updates"` + Updates []types2.ValidatorUpdate `protobuf:"bytes,1,rep,name=updates,proto3" json:"updates"` } func (m *ValidatorUpdates) Reset() { *m = ValidatorUpdates{} } @@ -1236,7 +1236,7 @@ func (m *ValidatorUpdates) XXX_DiscardUnknown() { var xxx_messageInfo_ValidatorUpdates proto.InternalMessageInfo -func (m *ValidatorUpdates) GetUpdates() []v21.ValidatorUpdate { +func (m *ValidatorUpdates) GetUpdates() []types2.ValidatorUpdate { if m != nil { return m.Updates } @@ -1274,128 +1274,127 @@ func init() { } var fileDescriptor_64c30c6cf92913c9 = []byte{ - // 1928 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x58, 0x4f, 0x6c, 0x23, 0x57, - 0x19, 0xcf, 0xc4, 0xa9, 0x93, 0x7c, 0x4e, 0x62, 0xe7, 0x6d, 0x76, 0xd7, 0xeb, 0x65, 0x63, 0xaf, - 0xbb, 0xd0, 0x74, 0x69, 0xec, 0x6e, 0x40, 0x7b, 0x88, 0xaa, 0xa2, 0x38, 0x76, 0xba, 0x2e, 0x6d, - 0x12, 0xc6, 0x49, 0x80, 0x0a, 0x18, 0x3d, 0xcf, 0x3c, 0x3b, 0x43, 0xec, 0x19, 0x33, 0xef, 0x39, - 0xc4, 0x77, 0x0e, 0x55, 0x10, 0x52, 0x0f, 0x08, 0x21, 0x41, 0xc4, 0x4a, 0x5c, 0xca, 0xad, 0x87, - 0x15, 0x77, 0x6e, 0x05, 0x09, 0x69, 0xb5, 0x27, 0x54, 0x89, 0x80, 0x76, 0x0f, 0xad, 0xe0, 0x82, - 0x38, 0x71, 0x44, 0xef, 0xcf, 0xfc, 0xb1, 0x1d, 0x6f, 0x36, 0xdb, 0x0a, 0x55, 0xf4, 0x32, 0x9a, - 0xf7, 0xde, 0xf7, 0xfd, 0xde, 0xfb, 0x7e, 0xdf, 0x9f, 0xf7, 0x07, 0x6e, 0x99, 0x2e, 0x6d, 0xbb, - 0xb4, 0x48, 0x19, 0x3e, 0xb0, 0x9d, 0x66, 0xf1, 0xf0, 0x4e, 0x9d, 0x30, 0x7c, 0xc7, 0x6f, 0x17, - 0x3a, 0x9e, 0xcb, 0x5c, 0x74, 0x45, 0x4a, 0x15, 0xfc, 0x5e, 0x25, 0x95, 0x59, 0x68, 0xba, 0x4d, - 0x57, 0x88, 0x14, 0xf9, 0x9f, 0x94, 0xce, 0x5c, 0x6b, 0xba, 0x6e, 0xb3, 0x45, 0x8a, 0xa2, 0x55, - 0xef, 0x36, 0x8a, 0xd8, 0xe9, 0xa9, 0xa1, 0xc5, 0xc1, 0x21, 0xab, 0xeb, 0x61, 0x66, 0xbb, 0x8e, - 0x1a, 0xcf, 0x0e, 0x8e, 0x33, 0xbb, 0x4d, 0x28, 0xc3, 0xed, 0x8e, 0x8f, 0x2d, 0x57, 0x62, 0xc8, - 0x49, 0xd5, 0xb2, 0x14, 0xb6, 0x32, 0xa5, 0x8e, 0x29, 0x09, 0xec, 0x30, 0x5d, 0xdb, 0xc7, 0x9e, - 0xc7, 0x6d, 0xdb, 0x71, 0x8b, 0xe2, 0xab, 0xba, 0x6e, 0x98, 0x6e, 0x9b, 0xb0, 0x7a, 0x83, 0x15, - 0x59, 0xaf, 0x43, 0x68, 0xf1, 0x70, 0x45, 0xfe, 0xa8, 0xe1, 0x2f, 0x05, 0xc3, 0xb8, 0x6e, 0xda, - 0x03, 0xa3, 0xf9, 0x9f, 0x6b, 0x30, 0x77, 0xcf, 0xa6, 0xcc, 0xf5, 0x6c, 0x13, 0xb7, 0xaa, 0x4e, - 0xc3, 0x45, 0xaf, 0x41, 0x7c, 0x9f, 0x60, 0x8b, 0x78, 0x69, 0x2d, 0xa7, 0x2d, 0x25, 0x56, 0xae, - 0x15, 0x7c, 0x84, 0x82, 0xd4, 0x3c, 0x5c, 0x29, 0xdc, 0x13, 0x02, 0xa5, 0xe9, 0x0f, 0x4f, 0xb3, - 0x63, 0xef, 0x7f, 0xfc, 0xc1, 0x6d, 0x4d, 0x57, 0x3a, 0xa8, 0x0c, 0xf1, 0x43, 0xdc, 0xa2, 0x84, - 0xa5, 0xc7, 0x73, 0xb1, 0xa5, 0xc4, 0xca, 0xcd, 0xc2, 0xd9, 0xb4, 0x17, 0xf6, 0x70, 0xcb, 0xb6, - 0x30, 0x73, 0xfb, 0x51, 0xa4, 0x6e, 0xfe, 0x17, 0xe3, 0x90, 0x5c, 0x77, 0xdb, 0x6d, 0x9b, 0x52, - 0xdb, 0x75, 0x74, 0xcc, 0x08, 0x45, 0x6f, 0xc2, 0x84, 0x87, 0x19, 0x11, 0xab, 0x9a, 0x2e, 0xdd, - 0xe5, 0x4a, 0x1f, 0x9d, 0x66, 0xaf, 0x4b, 0x78, 0x6a, 0x1d, 0x14, 0x6c, 0xb7, 0xd8, 0xc6, 0x6c, - 0xbf, 0xf0, 0x16, 0x69, 0x62, 0xb3, 0x57, 0x26, 0xe6, 0xa3, 0x07, 0xcb, 0xa0, 0x66, 0x2f, 0x13, - 0x53, 0xce, 0x20, 0x30, 0xd0, 0xb7, 0x60, 0xaa, 0x8d, 0x8f, 0x0c, 0x81, 0x37, 0xfe, 0xa9, 0xf0, - 0x26, 0xdb, 0xf8, 0x88, 0xaf, 0x0f, 0xfd, 0x00, 0x92, 0x1c, 0xd2, 0xdc, 0xc7, 0x4e, 0x93, 0x48, - 0xe4, 0xd8, 0xa7, 0x42, 0x9e, 0x6d, 0xe3, 0xa3, 0x75, 0x81, 0xc6, 0xf1, 0x57, 0x27, 0x3e, 0xb9, - 0x9f, 0xd5, 0xf2, 0x7f, 0xd0, 0x00, 0x42, 0x62, 0x10, 0x86, 0x94, 0x19, 0xb4, 0xc4, 0xa4, 0x54, - 0x79, 0xed, 0xa5, 0x51, 0xbc, 0x0f, 0xd0, 0x5a, 0x9a, 0xe5, 0xcb, 0x7b, 0x78, 0x9a, 0xd5, 0xe4, - 0xac, 0x49, 0x73, 0x88, 0xf6, 0x44, 0xb7, 0x63, 0x61, 0x46, 0x0c, 0x1e, 0xc6, 0x82, 0xad, 0xc4, - 0x4a, 0xa6, 0x20, 0x63, 0xbc, 0xe0, 0xc7, 0x78, 0x61, 0xc7, 0x8f, 0x71, 0x09, 0xf8, 0xde, 0xdf, - 0x7c, 0x40, 0x90, 0xda, 0x7c, 0x5c, 0xd9, 0xf0, 0xbe, 0x06, 0x89, 0x32, 0xa1, 0xa6, 0x67, 0x77, - 0x78, 0xd6, 0xa0, 0x34, 0x4c, 0xb6, 0x5d, 0xc7, 0x3e, 0x50, 0x11, 0x37, 0xad, 0xfb, 0x4d, 0x94, - 0x81, 0x29, 0xdb, 0x22, 0x0e, 0xb3, 0x59, 0x4f, 0xba, 0x49, 0x0f, 0xda, 0x5c, 0xeb, 0xc7, 0xa4, - 0x4e, 0x6d, 0x9f, 0x67, 0xdd, 0x6f, 0xa2, 0x97, 0x21, 0x45, 0x89, 0xd9, 0xf5, 0x6c, 0xd6, 0x33, - 0x4c, 0xd7, 0x61, 0xd8, 0x64, 0xe9, 0x09, 0x21, 0x92, 0xf4, 0xfb, 0xd7, 0x65, 0x37, 0x07, 0xb1, - 0x08, 0xc3, 0x76, 0x8b, 0xa6, 0x5f, 0x90, 0x20, 0xaa, 0xa9, 0x96, 0x7a, 0x32, 0x09, 0xd3, 0x41, - 0xa0, 0xa2, 0x75, 0x48, 0xb9, 0x1d, 0xe2, 0xf1, 0x7f, 0x03, 0x5b, 0x96, 0x47, 0x28, 0x55, 0xd1, - 0x98, 0x7e, 0xf4, 0x60, 0x79, 0x41, 0x11, 0xbe, 0x26, 0x47, 0x6a, 0xcc, 0xb3, 0x9d, 0xa6, 0x9e, - 0xf4, 0x35, 0x54, 0x37, 0xfa, 0x2e, 0x77, 0x99, 0x43, 0x89, 0x43, 0xbb, 0xd4, 0xe8, 0x74, 0xeb, - 0x07, 0xa4, 0xa7, 0x48, 0x5d, 0x18, 0x22, 0x75, 0xcd, 0xe9, 0x95, 0xd2, 0x7f, 0x0a, 0xa1, 0x4d, - 0xaf, 0xd7, 0x61, 0x6e, 0x61, 0xbb, 0x5b, 0xff, 0x26, 0xe9, 0x71, 0x57, 0x29, 0x9c, 0x6d, 0x01, - 0x83, 0xae, 0x40, 0xfc, 0x87, 0xd8, 0x6e, 0x11, 0x4b, 0x30, 0x32, 0xa5, 0xab, 0x16, 0x5a, 0x85, - 0x38, 0x65, 0x98, 0x75, 0xa9, 0xa0, 0x61, 0x6e, 0x25, 0x3f, 0x2a, 0x36, 0x4a, 0xae, 0x63, 0xd5, - 0x84, 0xa4, 0xae, 0x34, 0xd0, 0x3a, 0xc4, 0x99, 0x7b, 0x40, 0x1c, 0x45, 0x50, 0xe9, 0xab, 0x2a, - 0x9a, 0x2f, 0x0f, 0x47, 0x73, 0xd5, 0x61, 0x91, 0x38, 0xae, 0x3a, 0x4c, 0x57, 0xaa, 0xe8, 0x7b, - 0x90, 0xb2, 0x48, 0x8b, 0x34, 0x05, 0x73, 0x74, 0x1f, 0x7b, 0x84, 0xa6, 0xe3, 0x02, 0xee, 0xce, - 0x85, 0x93, 0x43, 0x4f, 0x06, 0x50, 0x35, 0x81, 0x84, 0xb6, 0x21, 0x61, 0x85, 0xe1, 0x94, 0x9e, - 0x14, 0x64, 0xbe, 0x38, 0xca, 0xc6, 0x48, 0xe4, 0x45, 0x2b, 0x4f, 0x14, 0x82, 0x47, 0x50, 0xd7, - 0xa9, 0xbb, 0x8e, 0x65, 0x3b, 0x4d, 0x63, 0x9f, 0xd8, 0xcd, 0x7d, 0x96, 0x9e, 0xca, 0x69, 0x4b, - 0x31, 0x3d, 0x19, 0xf4, 0xdf, 0x13, 0xdd, 0x68, 0x1b, 0xe6, 0x42, 0x51, 0x91, 0x21, 0xd3, 0x17, - 0xcd, 0x90, 0xd9, 0x00, 0x80, 0x8b, 0xa0, 0xb7, 0x01, 0xc2, 0x1c, 0x4c, 0x83, 0x40, 0xcb, 0x9f, - 0x9f, 0xcd, 0x51, 0x63, 0x22, 0x00, 0xc8, 0x81, 0x4b, 0x6d, 0xdb, 0x31, 0x28, 0x69, 0x35, 0x0c, - 0xc5, 0x1c, 0xc7, 0x4d, 0x08, 0xfa, 0x5f, 0xbf, 0x80, 0x37, 0x3f, 0x7a, 0xb0, 0x9c, 0x94, 0xad, - 0x65, 0x6a, 0x1d, 0xe4, 0x5e, 0x2d, 0x7c, 0xfd, 0xae, 0x3e, 0xdf, 0xb6, 0x9d, 0x1a, 0x69, 0x35, - 0xca, 0x01, 0x30, 0x7a, 0x0d, 0xae, 0x87, 0x84, 0xb8, 0x8e, 0xb1, 0xef, 0xb6, 0x2c, 0xc3, 0x23, - 0x0d, 0xc3, 0x74, 0xbb, 0x0e, 0x4b, 0xcf, 0x08, 0x1a, 0xaf, 0x06, 0x22, 0x5b, 0xce, 0x3d, 0xb7, - 0x65, 0xe9, 0xa4, 0xb1, 0xce, 0x87, 0xd1, 0x8b, 0x10, 0xb2, 0x61, 0xd8, 0x16, 0x4d, 0xcf, 0xe6, - 0x62, 0x4b, 0x13, 0xfa, 0x4c, 0xd0, 0x59, 0xb5, 0xe8, 0xea, 0xd4, 0xbb, 0xf7, 0xb3, 0x63, 0x9f, - 0xdc, 0xcf, 0x8e, 0xe5, 0x37, 0x60, 0x66, 0x0f, 0xb7, 0x54, 0x6a, 0x11, 0x8a, 0xee, 0xc2, 0x34, - 0xf6, 0x1b, 0x69, 0x2d, 0x17, 0x7b, 0x6a, 0x6a, 0x86, 0xa2, 0xf9, 0xdf, 0x69, 0x10, 0x2f, 0xef, - 0x6d, 0x63, 0xdb, 0x43, 0x15, 0x98, 0x0f, 0x63, 0xf5, 0x59, 0xb3, 0x3c, 0x0c, 0x6f, 0x3f, 0xcd, - 0x37, 0x61, 0xfe, 0xd0, 0x2f, 0x1c, 0x01, 0x8c, 0xdc, 0x6a, 0x6e, 0x3e, 0x7a, 0xb0, 0x7c, 0x43, - 0xc1, 0x04, 0xc5, 0x65, 0x00, 0xef, 0x70, 0xa0, 0x3f, 0x62, 0xf3, 0x9b, 0x30, 0x29, 0x97, 0x4a, - 0xd1, 0x37, 0xe0, 0x85, 0x0e, 0xff, 0x11, 0xa6, 0x26, 0x56, 0x16, 0x47, 0xc6, 0xbc, 0x90, 0x8f, - 0x46, 0x88, 0xd4, 0xcb, 0xff, 0x74, 0x1c, 0xa0, 0xbc, 0xb7, 0xb7, 0xe3, 0xd9, 0x9d, 0x16, 0x61, - 0x9f, 0x95, 0xed, 0xbb, 0x70, 0x39, 0xb4, 0x9d, 0x7a, 0xe6, 0xc5, 0xed, 0xbf, 0x14, 0xe8, 0xd7, - 0x3c, 0xf3, 0x4c, 0x58, 0x8b, 0xb2, 0x00, 0x36, 0x76, 0x71, 0xd8, 0x32, 0x65, 0xc3, 0xcc, 0x7e, - 0x07, 0x12, 0x21, 0x19, 0x14, 0x55, 0x61, 0x8a, 0xa9, 0x7f, 0x45, 0x70, 0x7e, 0x34, 0xc1, 0xbe, - 0x5a, 0x94, 0xe4, 0x40, 0x3d, 0xff, 0x1f, 0x0d, 0x20, 0x92, 0x23, 0x9f, 0xcf, 0x18, 0x43, 0x55, - 0x88, 0xab, 0xe2, 0x1c, 0x7b, 0xde, 0xe2, 0xac, 0x00, 0x22, 0xa4, 0xfe, 0x6c, 0x1c, 0x2e, 0xed, - 0xfa, 0xd9, 0xfb, 0xf9, 0xe7, 0x60, 0x17, 0x26, 0x89, 0xc3, 0x3c, 0x5b, 0x90, 0xc0, 0x7d, 0xfe, - 0xea, 0x28, 0x9f, 0x9f, 0x61, 0x54, 0xc5, 0x61, 0x5e, 0x2f, 0x1a, 0x01, 0x3e, 0x56, 0x84, 0x8f, - 0x5f, 0xc5, 0x20, 0x3d, 0x4a, 0x15, 0xbd, 0x04, 0x49, 0xd3, 0x23, 0xa2, 0xc3, 0xdf, 0x77, 0x34, - 0x51, 0x30, 0xe7, 0xfc, 0x6e, 0xb5, 0xed, 0xe8, 0xc0, 0x0f, 0x6a, 0x3c, 0xb8, 0xb8, 0xe8, 0xf3, - 0x9d, 0xcc, 0xe6, 0x42, 0x04, 0xb1, 0xf1, 0xec, 0x40, 0xd2, 0x76, 0x6c, 0x66, 0xe3, 0x96, 0x51, - 0xc7, 0x2d, 0xec, 0x98, 0xfe, 0x09, 0xf6, 0x42, 0x7b, 0xfe, 0x9c, 0xc2, 0x28, 0x49, 0x08, 0x54, - 0x81, 0x49, 0x1f, 0x6d, 0xe2, 0xe2, 0x68, 0xbe, 0x2e, 0xba, 0x09, 0x33, 0xd1, 0x8d, 0x41, 0x9c, - 0x46, 0x26, 0xf4, 0x44, 0x64, 0x5f, 0x38, 0x6f, 0xe7, 0x89, 0x3f, 0x75, 0xe7, 0x51, 0x07, 0xbe, - 0xdf, 0xc4, 0x60, 0x5e, 0x27, 0xd6, 0xff, 0xbf, 0x5b, 0xb6, 0x01, 0x64, 0xaa, 0xf2, 0x4a, 0xaa, - 0x3c, 0xf3, 0x1c, 0xf9, 0x3e, 0x2d, 0x41, 0xca, 0x94, 0xfd, 0xaf, 0x3c, 0xf4, 0xd7, 0x71, 0x98, - 0x89, 0x7a, 0xe8, 0x0b, 0xb9, 0x69, 0xa1, 0xcd, 0xb0, 0x4c, 0x4d, 0x88, 0x32, 0xf5, 0xf2, 0xa8, - 0x32, 0x35, 0x14, 0xcd, 0xe7, 0xd4, 0xa7, 0x5f, 0xc7, 0x20, 0xbe, 0x8d, 0x3d, 0xdc, 0xa6, 0x68, - 0x6b, 0xe8, 0x6c, 0xeb, 0xbf, 0x08, 0x0c, 0x06, 0x73, 0x59, 0xbd, 0x80, 0xc8, 0x58, 0xfe, 0xe5, - 0xa8, 0xa3, 0xed, 0x97, 0x61, 0x8e, 0xdf, 0x91, 0x03, 0x83, 0x24, 0xb9, 0xb3, 0xe2, 0xaa, 0x1b, - 0x58, 0x4f, 0x51, 0x16, 0x12, 0x5c, 0x2c, 0xac, 0xc3, 0x5c, 0x06, 0xda, 0xf8, 0xa8, 0x22, 0x7b, - 0xd0, 0x32, 0xa0, 0xfd, 0xe0, 0xd1, 0xc2, 0x08, 0x89, 0xe0, 0x72, 0xf3, 0xe1, 0x88, 0x2f, 0x7e, - 0x03, 0x80, 0xaf, 0xc2, 0xb0, 0x88, 0xe3, 0xb6, 0xd5, 0x45, 0x6f, 0x9a, 0xf7, 0x94, 0x79, 0x07, - 0xfa, 0x89, 0x26, 0x8f, 0xc8, 0x03, 0x37, 0x69, 0x75, 0x43, 0xd9, 0x79, 0x86, 0xa4, 0xf8, 0xf7, - 0x69, 0x36, 0xd3, 0xc3, 0xed, 0xd6, 0x6a, 0xfe, 0x0c, 0x9c, 0xfc, 0x59, 0x97, 0x7b, 0x7e, 0x70, - 0xee, 0xbf, 0x89, 0xaf, 0xde, 0xe2, 0xe1, 0x7d, 0xfc, 0xf1, 0x07, 0xb7, 0xaf, 0x87, 0xa7, 0xec, - 0xe2, 0x51, 0xf0, 0xa8, 0x25, 0x7d, 0xc2, 0x4f, 0xaa, 0x28, 0xdc, 0x35, 0x74, 0x42, 0x3b, 0xfc, - 0x12, 0xc8, 0x2f, 0x0d, 0x91, 0xc3, 0xbd, 0xf6, 0xf4, 0x4b, 0x43, 0xa8, 0xdf, 0x77, 0x69, 0x88, - 0xe4, 0xd4, 0xeb, 0x61, 0xd1, 0x1e, 0x0f, 0x1e, 0x81, 0x04, 0x56, 0x1d, 0x53, 0x12, 0xb9, 0x7d, - 0xd8, 0x7d, 0x10, 0xbe, 0x92, 0x48, 0xd5, 0xb1, 0xfc, 0x9f, 0x35, 0xb8, 0x36, 0x14, 0x7e, 0xc1, - 0x92, 0x4d, 0x40, 0x5e, 0x64, 0x50, 0xb8, 0xb1, 0xa7, 0x96, 0xfe, 0x7c, 0xd1, 0x3c, 0xef, 0x0d, - 0x55, 0xee, 0xcf, 0x66, 0xf7, 0x51, 0xa5, 0xe7, 0x8f, 0x1a, 0x2c, 0x44, 0x17, 0x10, 0x98, 0x52, - 0x83, 0x99, 0xe8, 0xd4, 0xca, 0x88, 0x5b, 0xcf, 0x62, 0x44, 0x74, 0xfd, 0x7d, 0x20, 0x68, 0x2f, - 0x4c, 0x71, 0xf9, 0x94, 0x76, 0xe7, 0x99, 0x49, 0xf1, 0x17, 0x76, 0x66, 0xaa, 0x4b, 0xdf, 0xfc, - 0x53, 0x83, 0x89, 0x6d, 0xd7, 0x6d, 0xa1, 0x1f, 0xc1, 0xbc, 0xe3, 0x32, 0x83, 0xa7, 0x03, 0xb1, - 0x0c, 0x75, 0xd7, 0x97, 0xe5, 0xb3, 0xf2, 0x54, 0xae, 0xfe, 0x71, 0x9a, 0x1d, 0xd6, 0xec, 0x27, - 0x50, 0x3d, 0x29, 0x39, 0x2e, 0x2b, 0x09, 0xa1, 0x1d, 0xf9, 0x1c, 0xd0, 0x80, 0xd9, 0xfe, 0xe9, - 0x64, 0x89, 0x5d, 0x3b, 0x6f, 0xba, 0xd9, 0x73, 0xa7, 0x9a, 0xa9, 0x47, 0xe6, 0x59, 0x9d, 0xe2, - 0x5e, 0xfb, 0x17, 0xf7, 0xdc, 0x3b, 0x90, 0x0a, 0xea, 0xcb, 0xae, 0x78, 0x8f, 0xa2, 0x68, 0x03, - 0x26, 0xe5, 0xd3, 0x94, 0x7f, 0xba, 0xbf, 0x19, 0x3e, 0x74, 0xe2, 0xba, 0x69, 0x17, 0x0e, 0x57, - 0x0a, 0x03, 0x4a, 0x7d, 0x7c, 0x2a, 0xe5, 0xdb, 0xbf, 0xd7, 0x00, 0xc2, 0x87, 0x13, 0xf4, 0x0a, - 0x5c, 0x2d, 0x6d, 0x6d, 0x96, 0x8d, 0xda, 0xce, 0xda, 0xce, 0x6e, 0xcd, 0xd8, 0xdd, 0xac, 0x6d, - 0x57, 0xd6, 0xab, 0x1b, 0xd5, 0x4a, 0x39, 0x35, 0x96, 0x49, 0x1e, 0x9f, 0xe4, 0x12, 0xbb, 0x0e, - 0xed, 0x10, 0xd3, 0x6e, 0xd8, 0xc4, 0x42, 0x5f, 0x81, 0x85, 0x7e, 0x69, 0xde, 0xaa, 0x94, 0x53, - 0x5a, 0x66, 0xe6, 0xf8, 0x24, 0x37, 0x25, 0x0f, 0x8a, 0xc4, 0x42, 0x4b, 0x70, 0x79, 0x58, 0xae, - 0xba, 0xf9, 0x46, 0x6a, 0x3c, 0x33, 0x7b, 0x7c, 0x92, 0x9b, 0x0e, 0x4e, 0x94, 0x28, 0x0f, 0x28, - 0x2a, 0xa9, 0xf0, 0x62, 0x19, 0x38, 0x3e, 0xc9, 0xc5, 0xa5, 0x1b, 0x32, 0x13, 0xef, 0xfe, 0x76, - 0x71, 0xec, 0xf6, 0xf7, 0x01, 0xaa, 0x4e, 0xc3, 0xc3, 0xa6, 0x08, 0xb7, 0x0c, 0x5c, 0xa9, 0x6e, - 0x6e, 0xe8, 0x6b, 0xeb, 0x3b, 0xd5, 0xad, 0xcd, 0xfe, 0x65, 0x0f, 0x8c, 0x95, 0xb7, 0x76, 0x4b, - 0x6f, 0x55, 0x8c, 0x5a, 0xf5, 0x8d, 0xcd, 0x94, 0x86, 0xae, 0xc2, 0xa5, 0xbe, 0xb1, 0x6f, 0x6f, - 0xee, 0x54, 0xdf, 0xae, 0xa4, 0xc6, 0x4b, 0x1b, 0x1f, 0x3e, 0x5e, 0xd4, 0x1e, 0x3e, 0x5e, 0xd4, - 0xfe, 0xfe, 0x78, 0x51, 0x7b, 0xef, 0xc9, 0xe2, 0xd8, 0xc3, 0x27, 0x8b, 0x63, 0x7f, 0x79, 0xb2, - 0x38, 0xf6, 0xce, 0x2b, 0x4d, 0x9b, 0xed, 0x77, 0xeb, 0x9c, 0x6e, 0xf5, 0xfa, 0x5d, 0x3c, 0xb3, - 0xe4, 0x89, 0xe7, 0xe6, 0x7a, 0x5c, 0xec, 0x32, 0x5f, 0xfb, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, - 0x16, 0x93, 0xee, 0x56, 0xe6, 0x17, 0x00, 0x00, + // 1920 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x58, 0x4f, 0x6c, 0x63, 0x47, + 0x19, 0xcf, 0x8b, 0x53, 0x27, 0xf9, 0x9c, 0xc4, 0xce, 0x6c, 0x76, 0xd7, 0xeb, 0xa5, 0xb1, 0xd7, + 0x5d, 0x68, 0xba, 0x34, 0x76, 0x37, 0xa0, 0x3d, 0x04, 0x54, 0x14, 0xc7, 0xde, 0xae, 0x4b, 0x9b, + 0x04, 0x3b, 0x09, 0x14, 0x01, 0x4f, 0xe3, 0xf7, 0x26, 0xce, 0x23, 0x7e, 0xf3, 0xcc, 0x9b, 0xf1, + 0x12, 0xdf, 0x39, 0x54, 0x41, 0x48, 0x95, 0x90, 0x10, 0x12, 0x44, 0xac, 0xc4, 0xa5, 0xdc, 0x7a, + 0x58, 0x71, 0xe7, 0x56, 0x90, 0x90, 0x56, 0x7b, 0x42, 0x95, 0x08, 0x68, 0xf7, 0xd0, 0x0a, 0x2e, + 0x88, 0x13, 0x47, 0x34, 0x7f, 0xde, 0x1f, 0xc7, 0xc9, 0x66, 0xb3, 0xad, 0xd0, 0x8a, 0x5e, 0x9e, + 0xde, 0xcc, 0x7c, 0xdf, 0x6f, 0xe6, 0xfb, 0x7d, 0x7f, 0xe6, 0x0f, 0x5c, 0xb7, 0x3c, 0xe6, 0x7a, + 0xac, 0xcc, 0x38, 0xde, 0x73, 0x68, 0xbb, 0x7c, 0xf7, 0x66, 0x8b, 0x70, 0x7c, 0x33, 0x68, 0x97, + 0xba, 0xbe, 0xc7, 0x3d, 0x74, 0x49, 0x49, 0x95, 0x82, 0x5e, 0x2d, 0x95, 0x9b, 0x6b, 0x7b, 0x6d, + 0x4f, 0x8a, 0x94, 0xc5, 0x9f, 0x92, 0xce, 0x5d, 0x69, 0x7b, 0x5e, 0xbb, 0x43, 0xca, 0xb2, 0xd5, + 0xea, 0xed, 0x94, 0x31, 0xed, 0xeb, 0xa1, 0xf9, 0xe3, 0x43, 0x76, 0xcf, 0xc7, 0xdc, 0xf1, 0xa8, + 0x1e, 0xcf, 0x1f, 0x1f, 0xe7, 0x8e, 0x4b, 0x18, 0xc7, 0x6e, 0x37, 0xc0, 0x56, 0x2b, 0x31, 0xd5, + 0xa4, 0x7a, 0x59, 0x1a, 0x5b, 0x9b, 0xd2, 0xc2, 0x8c, 0x84, 0x76, 0x58, 0x9e, 0x13, 0x60, 0xcf, + 0x62, 0xd7, 0xa1, 0x5e, 0x59, 0x7e, 0x75, 0xd7, 0x17, 0x38, 0xa1, 0x36, 0xf1, 0x5d, 0x87, 0xf2, + 0x32, 0xef, 0x77, 0x09, 0x53, 0x5f, 0x3d, 0x7a, 0x35, 0x36, 0x8a, 0x5b, 0x96, 0x13, 0x1f, 0x2c, + 0xfe, 0xdc, 0x80, 0x99, 0x3b, 0x0e, 0xe3, 0x9e, 0xef, 0x58, 0xb8, 0x53, 0xa7, 0x3b, 0x1e, 0xfa, + 0x1a, 0x24, 0x77, 0x09, 0xb6, 0x89, 0x9f, 0x35, 0x0a, 0xc6, 0x42, 0x6a, 0x29, 0x5b, 0x8a, 0x00, + 0x4a, 0x4a, 0xf7, 0x8e, 0x1c, 0xaf, 0x4c, 0x7e, 0x78, 0x94, 0x1f, 0x79, 0xff, 0xe3, 0x0f, 0x6e, + 0x18, 0x0d, 0xad, 0x82, 0xaa, 0x90, 0xbc, 0x8b, 0x3b, 0x8c, 0xf0, 0xec, 0x68, 0x21, 0xb1, 0x90, + 0x5a, 0xba, 0x56, 0x3a, 0x99, 0xf3, 0xd2, 0x36, 0xee, 0x38, 0x36, 0xe6, 0xde, 0x20, 0x8a, 0xd2, + 0x2d, 0xfe, 0x62, 0x14, 0xd2, 0xab, 0x9e, 0xeb, 0x3a, 0x8c, 0x39, 0x1e, 0x6d, 0x60, 0x4e, 0x18, + 0x7a, 0x13, 0xc6, 0x7c, 0xcc, 0x89, 0x5c, 0xd4, 0x64, 0xe5, 0x96, 0x50, 0xfa, 0xe8, 0x28, 0x7f, + 0x55, 0xc1, 0x33, 0x7b, 0xaf, 0xe4, 0x78, 0x65, 0x17, 0xf3, 0xdd, 0xd2, 0x5b, 0xa4, 0x8d, 0xad, + 0x7e, 0x95, 0x58, 0x0f, 0xef, 0x2f, 0x82, 0x9e, 0xbd, 0x4a, 0x2c, 0x35, 0x83, 0xc4, 0x40, 0xdf, + 0x82, 0x09, 0x17, 0xef, 0x9b, 0x12, 0x6f, 0xf4, 0x53, 0xe1, 0x8d, 0xbb, 0x78, 0x5f, 0xac, 0x0f, + 0xfd, 0x00, 0xd2, 0x02, 0xd2, 0xda, 0xc5, 0xb4, 0x4d, 0x14, 0x72, 0xe2, 0x53, 0x21, 0x4f, 0xbb, + 0x78, 0x7f, 0x55, 0xa2, 0x09, 0xfc, 0xe5, 0xb1, 0x4f, 0xee, 0xe5, 0x8d, 0xe2, 0x1f, 0x0c, 0x80, + 0x88, 0x18, 0x84, 0x21, 0x63, 0x85, 0x2d, 0x39, 0x29, 0xd3, 0x4e, 0x7b, 0xf9, 0x34, 0xde, 0x8f, + 0xd1, 0x5a, 0x99, 0x16, 0xcb, 0x7b, 0x70, 0x94, 0x37, 0xd4, 0xac, 0x69, 0x6b, 0x88, 0xf6, 0x54, + 0xaf, 0x6b, 0x63, 0x4e, 0x4c, 0x11, 0xc3, 0x92, 0xad, 0xd4, 0x52, 0xae, 0xa4, 0x02, 0xbc, 0x14, + 0x04, 0x78, 0x69, 0x33, 0x08, 0x70, 0x05, 0xf8, 0xde, 0xdf, 0x02, 0x40, 0x50, 0xda, 0x62, 0x5c, + 0xdb, 0xf0, 0xbe, 0x01, 0xa9, 0x2a, 0x61, 0x96, 0xef, 0x74, 0x45, 0xca, 0xa0, 0x2c, 0x8c, 0xbb, + 0x1e, 0x75, 0xf6, 0x74, 0xc0, 0x4d, 0x36, 0x82, 0x26, 0xca, 0xc1, 0x84, 0x63, 0x13, 0xca, 0x1d, + 0xde, 0x57, 0x6e, 0x6a, 0x84, 0x6d, 0xa1, 0xf5, 0x63, 0xd2, 0x62, 0x4e, 0xc0, 0x73, 0x23, 0x68, + 0xa2, 0x57, 0x20, 0xc3, 0x88, 0xd5, 0xf3, 0x1d, 0xde, 0x37, 0x2d, 0x8f, 0x72, 0x6c, 0xf1, 0xec, + 0x98, 0x14, 0x49, 0x07, 0xfd, 0xab, 0xaa, 0x5b, 0x80, 0xd8, 0x84, 0x63, 0xa7, 0xc3, 0xb2, 0x2f, + 0x28, 0x10, 0xdd, 0xd4, 0x4b, 0x3d, 0x1c, 0x87, 0xc9, 0x30, 0x50, 0xd1, 0x2a, 0x64, 0xbc, 0x2e, + 0xf1, 0xc5, 0xbf, 0x89, 0x6d, 0xdb, 0x27, 0x8c, 0xe9, 0x68, 0xcc, 0x3e, 0xbc, 0xbf, 0x38, 0xa7, + 0x09, 0x5f, 0x51, 0x23, 0x4d, 0xee, 0x3b, 0xb4, 0xdd, 0x48, 0x07, 0x1a, 0xba, 0x1b, 0xbd, 0x23, + 0x5c, 0x46, 0x19, 0xa1, 0xac, 0xc7, 0xcc, 0x6e, 0xaf, 0xb5, 0x47, 0xfa, 0x9a, 0xd4, 0xb9, 0x21, + 0x52, 0x57, 0x68, 0xbf, 0x92, 0xfd, 0x53, 0x04, 0x6d, 0xf9, 0xfd, 0x2e, 0xf7, 0x4a, 0x1b, 0xbd, + 0xd6, 0x37, 0x49, 0x5f, 0xb8, 0x4a, 0xe3, 0x6c, 0x48, 0x18, 0x74, 0x09, 0x92, 0x3f, 0xc4, 0x4e, + 0x87, 0xd8, 0x92, 0x91, 0x89, 0x86, 0x6e, 0xa1, 0x65, 0x48, 0x32, 0x8e, 0x79, 0x8f, 0x49, 0x1a, + 0x66, 0x96, 0x8a, 0xa7, 0xc5, 0x46, 0xc5, 0xa3, 0x76, 0x53, 0x4a, 0x36, 0xb4, 0x06, 0x5a, 0x85, + 0x24, 0xf7, 0xf6, 0x08, 0xd5, 0x04, 0x55, 0xbe, 0xac, 0xa3, 0xf9, 0xe2, 0x70, 0x34, 0xd7, 0x29, + 0x8f, 0xc5, 0x71, 0x9d, 0xf2, 0x86, 0x56, 0x45, 0xdf, 0x83, 0x8c, 0x4d, 0x3a, 0xa4, 0x2d, 0x99, + 0x63, 0xbb, 0xd8, 0x27, 0x2c, 0x9b, 0x94, 0x70, 0x37, 0xcf, 0x9d, 0x1c, 0x8d, 0x74, 0x08, 0xd5, + 0x94, 0x48, 0x68, 0x03, 0x52, 0x76, 0x14, 0x4e, 0xd9, 0x71, 0x49, 0xe6, 0x4b, 0xa7, 0xd9, 0x18, + 0x8b, 0xbc, 0x78, 0xe5, 0x89, 0x43, 0x88, 0x08, 0xea, 0xd1, 0x96, 0x47, 0x6d, 0x87, 0xb6, 0xcd, + 0x5d, 0xe2, 0xb4, 0x77, 0x79, 0x76, 0xa2, 0x60, 0x2c, 0x24, 0x1a, 0xe9, 0xb0, 0xff, 0x8e, 0xec, + 0x46, 0x1b, 0x30, 0x13, 0x89, 0xca, 0x0c, 0x99, 0x3c, 0x6f, 0x86, 0x4c, 0x87, 0x00, 0x42, 0x04, + 0xbd, 0x0d, 0x10, 0xe5, 0x60, 0x16, 0x24, 0x5a, 0xf1, 0xec, 0x6c, 0x8e, 0x1b, 0x13, 0x03, 0x40, + 0x14, 0x2e, 0xb8, 0x0e, 0x35, 0x19, 0xe9, 0xec, 0x98, 0x9a, 0x39, 0x81, 0x9b, 0x92, 0xf4, 0xbf, + 0x7e, 0x0e, 0x6f, 0x7e, 0x74, 0x7f, 0x31, 0xad, 0x5a, 0x8b, 0xcc, 0xde, 0x2b, 0xbc, 0x56, 0xfa, + 0xea, 0xad, 0xc6, 0xac, 0xeb, 0xd0, 0x26, 0xe9, 0xec, 0x54, 0x43, 0x60, 0xf4, 0x75, 0xb8, 0x1a, + 0x11, 0xe2, 0x51, 0x73, 0xd7, 0xeb, 0xd8, 0xa6, 0x4f, 0x76, 0x4c, 0xcb, 0xeb, 0x51, 0x9e, 0x9d, + 0x92, 0x34, 0x5e, 0x0e, 0x45, 0xd6, 0xe9, 0x1d, 0xaf, 0x63, 0x37, 0xc8, 0xce, 0xaa, 0x18, 0x46, + 0x2f, 0x41, 0xc4, 0x86, 0xe9, 0xd8, 0x2c, 0x3b, 0x5d, 0x48, 0x2c, 0x8c, 0x35, 0xa6, 0xc2, 0xce, + 0xba, 0xcd, 0x96, 0x27, 0xde, 0xbd, 0x97, 0x1f, 0xf9, 0xe4, 0x5e, 0x7e, 0xa4, 0x78, 0x1b, 0xa6, + 0xb6, 0x71, 0x47, 0xa7, 0x16, 0x61, 0xe8, 0x16, 0x4c, 0xe2, 0xa0, 0x91, 0x35, 0x0a, 0x89, 0x27, + 0xa6, 0x66, 0x24, 0x5a, 0xfc, 0x9d, 0x01, 0xc9, 0xea, 0xf6, 0x06, 0x76, 0x7c, 0x54, 0x83, 0xd9, + 0x28, 0x56, 0x9f, 0x36, 0xcb, 0xa3, 0xf0, 0x0e, 0xd2, 0x7c, 0x0d, 0x66, 0xef, 0x06, 0x85, 0x23, + 0x84, 0x51, 0x5b, 0xcd, 0xb5, 0x87, 0xf7, 0x17, 0x5f, 0xd4, 0x30, 0x61, 0x71, 0x39, 0x86, 0x77, + 0xf7, 0x58, 0x7f, 0xcc, 0xe6, 0x37, 0x61, 0x5c, 0x2d, 0x95, 0xa1, 0x6f, 0xc0, 0x0b, 0x5d, 0xf1, + 0x23, 0x4d, 0x4d, 0x2d, 0xcd, 0x9f, 0x1a, 0xf3, 0x52, 0x3e, 0x1e, 0x21, 0x4a, 0xaf, 0xf8, 0xd3, + 0x51, 0x80, 0xea, 0xf6, 0xf6, 0xa6, 0xef, 0x74, 0x3b, 0x84, 0x7f, 0x56, 0xb6, 0x6f, 0xc1, 0xc5, + 0xc8, 0x76, 0xe6, 0x5b, 0xe7, 0xb7, 0xff, 0x42, 0xa8, 0xdf, 0xf4, 0xad, 0x13, 0x61, 0x6d, 0xc6, + 0x43, 0xd8, 0xc4, 0xf9, 0x61, 0xab, 0x8c, 0x0f, 0x33, 0xfb, 0x1d, 0x48, 0x45, 0x64, 0x30, 0x54, + 0x87, 0x09, 0xae, 0xff, 0x35, 0xc1, 0xc5, 0xd3, 0x09, 0x0e, 0xd4, 0xe2, 0x24, 0x87, 0xea, 0xc5, + 0xff, 0x18, 0x00, 0xb1, 0x1c, 0x79, 0x3e, 0x63, 0x0c, 0xd5, 0x21, 0xa9, 0x8b, 0x73, 0xe2, 0x59, + 0x8b, 0xb3, 0x06, 0x88, 0x91, 0xfa, 0xb3, 0x51, 0xb8, 0xb0, 0x15, 0x64, 0xef, 0xf3, 0xcf, 0xc1, + 0x16, 0x8c, 0x13, 0xca, 0x7d, 0x47, 0x92, 0x20, 0x7c, 0xfe, 0xda, 0x69, 0x3e, 0x3f, 0xc1, 0xa8, + 0x1a, 0xe5, 0x7e, 0x3f, 0x1e, 0x01, 0x01, 0x56, 0x8c, 0x8f, 0x5f, 0x25, 0x20, 0x7b, 0x9a, 0x2a, + 0x7a, 0x19, 0xd2, 0x96, 0x4f, 0x64, 0x47, 0xb0, 0xef, 0x18, 0xb2, 0x60, 0xce, 0x04, 0xdd, 0x7a, + 0xdb, 0x69, 0x80, 0x38, 0xa8, 0x89, 0xe0, 0x12, 0xa2, 0xcf, 0x76, 0x32, 0x9b, 0x89, 0x10, 0xe4, + 0xc6, 0xb3, 0x09, 0x69, 0x87, 0x3a, 0xdc, 0xc1, 0x1d, 0xb3, 0x85, 0x3b, 0x98, 0x5a, 0xc1, 0x09, + 0xf6, 0x5c, 0x7b, 0xfe, 0x8c, 0xc6, 0xa8, 0x28, 0x08, 0x54, 0x83, 0xf1, 0x00, 0x6d, 0xec, 0xfc, + 0x68, 0x81, 0x2e, 0xba, 0x06, 0x53, 0xf1, 0x8d, 0x41, 0x9e, 0x46, 0xc6, 0x1a, 0xa9, 0xd8, 0xbe, + 0x70, 0xd6, 0xce, 0x93, 0x7c, 0xe2, 0xce, 0xa3, 0x0f, 0x7c, 0xbf, 0x49, 0xc0, 0x6c, 0x83, 0xd8, + 0xff, 0xff, 0x6e, 0xd9, 0x00, 0x50, 0xa9, 0x2a, 0x2a, 0xa9, 0xf6, 0xcc, 0x33, 0xe4, 0xfb, 0xa4, + 0x02, 0xa9, 0x32, 0xfe, 0xbf, 0xf2, 0xd0, 0x5f, 0x47, 0x61, 0x2a, 0xee, 0xa1, 0xcf, 0xe5, 0xa6, + 0x85, 0xd6, 0xa2, 0x32, 0x35, 0x26, 0xcb, 0xd4, 0x2b, 0xa7, 0x95, 0xa9, 0xa1, 0x68, 0x3e, 0xa3, + 0x3e, 0xfd, 0x3a, 0x01, 0xc9, 0x0d, 0xec, 0x63, 0x97, 0xa1, 0xf5, 0xa1, 0xb3, 0xad, 0xba, 0x5b, + 0x5e, 0x19, 0x0a, 0xe6, 0xaa, 0x7e, 0xfe, 0x50, 0xb1, 0xfc, 0xcb, 0xd3, 0x8e, 0xb6, 0x5f, 0x84, + 0x19, 0x71, 0x47, 0x0e, 0x0d, 0x52, 0xe4, 0x4e, 0xcb, 0xab, 0x6e, 0x68, 0x3d, 0x43, 0x79, 0x48, + 0x09, 0xb1, 0xa8, 0x0e, 0x0b, 0x19, 0x70, 0xf1, 0x7e, 0x4d, 0xf5, 0xa0, 0x45, 0x40, 0xbb, 0xe1, + 0x9b, 0x85, 0x19, 0x11, 0x21, 0xe4, 0x66, 0xa3, 0x91, 0x40, 0xfc, 0x45, 0x00, 0xb1, 0x0a, 0xd3, + 0x26, 0xd4, 0x73, 0xf5, 0x45, 0x6f, 0x52, 0xf4, 0x54, 0x45, 0x07, 0xfa, 0x89, 0xa1, 0x8e, 0xc8, + 0xc7, 0x6e, 0xd2, 0xfa, 0x86, 0xb2, 0xf9, 0x14, 0x49, 0xf1, 0xef, 0xa3, 0x7c, 0xae, 0x8f, 0xdd, + 0xce, 0x72, 0xf1, 0x04, 0x9c, 0xe2, 0x49, 0x97, 0x7b, 0x71, 0x70, 0x1e, 0xbc, 0x89, 0x2f, 0x5f, + 0x17, 0xe1, 0x7d, 0xf0, 0xf1, 0x07, 0x37, 0xae, 0x46, 0xa7, 0xec, 0xf2, 0x7e, 0xf8, 0xa2, 0xa5, + 0x7c, 0x22, 0x4e, 0xaa, 0x28, 0xda, 0x35, 0x1a, 0x84, 0x75, 0xc5, 0x25, 0x50, 0x5c, 0x1a, 0x62, + 0x87, 0x7b, 0xe3, 0xc9, 0x97, 0x86, 0x48, 0x7f, 0xe0, 0xd2, 0x10, 0xcb, 0xa9, 0xd7, 0xa3, 0xa2, + 0x3d, 0xaa, 0x5d, 0xae, 0xb1, 0x5a, 0x98, 0x91, 0xd8, 0xed, 0xc3, 0x19, 0x80, 0x08, 0x94, 0x64, + 0xaa, 0x8e, 0x14, 0xff, 0x6c, 0xc0, 0x95, 0xa1, 0xf0, 0x0b, 0x97, 0x6c, 0x01, 0xf2, 0x63, 0x83, + 0xd2, 0x8d, 0x7d, 0xbd, 0xf4, 0x67, 0x8b, 0xe6, 0x59, 0x7f, 0xa8, 0x72, 0x7f, 0x36, 0xbb, 0x8f, + 0x2e, 0x3d, 0x7f, 0x34, 0x60, 0x2e, 0xbe, 0x80, 0xd0, 0x94, 0x26, 0x4c, 0xc5, 0xa7, 0xd6, 0x46, + 0x5c, 0x7f, 0x1a, 0x23, 0xe2, 0xeb, 0x1f, 0x00, 0x41, 0xdb, 0x51, 0x8a, 0xab, 0xa7, 0xb4, 0x9b, + 0x4f, 0x4d, 0x4a, 0xb0, 0xb0, 0x13, 0x53, 0x5d, 0xf9, 0xe6, 0x9f, 0x06, 0x8c, 0x6d, 0x78, 0x5e, + 0x07, 0xfd, 0x08, 0x66, 0xa9, 0xc7, 0x4d, 0x91, 0x0e, 0xc4, 0x36, 0xf5, 0x5d, 0x5f, 0x95, 0xcf, + 0xda, 0x13, 0xb9, 0xfa, 0xc7, 0x51, 0x7e, 0x58, 0x73, 0x90, 0x40, 0xfd, 0xa4, 0x44, 0x3d, 0x5e, + 0x91, 0x42, 0x9b, 0xea, 0x39, 0x60, 0x07, 0xa6, 0x07, 0xa7, 0x53, 0x25, 0x76, 0xe5, 0xac, 0xe9, + 0xa6, 0xcf, 0x9c, 0x6a, 0xaa, 0x15, 0x9b, 0x67, 0x79, 0x42, 0x78, 0xed, 0x5f, 0xc2, 0x73, 0xef, + 0x40, 0x26, 0xac, 0x2f, 0x5b, 0xf2, 0x3d, 0x8a, 0x89, 0xd0, 0x50, 0x4f, 0x53, 0xc1, 0xe9, 0xbe, + 0x10, 0x7f, 0xe7, 0xc4, 0x2d, 0xcb, 0x29, 0x1d, 0xd3, 0x19, 0xa0, 0x53, 0xeb, 0xde, 0xf8, 0xbd, + 0x01, 0x10, 0xbd, 0x9b, 0xa0, 0x57, 0xe1, 0x72, 0x65, 0x7d, 0xad, 0x6a, 0x36, 0x37, 0x57, 0x36, + 0xb7, 0x9a, 0xe6, 0xd6, 0x5a, 0x73, 0xa3, 0xb6, 0x5a, 0xbf, 0x5d, 0xaf, 0x55, 0x33, 0x23, 0xb9, + 0xf4, 0xc1, 0x61, 0x21, 0xb5, 0x45, 0x59, 0x97, 0x58, 0xce, 0x8e, 0x43, 0x6c, 0xf4, 0x25, 0x98, + 0x1b, 0x94, 0x16, 0xad, 0x5a, 0x35, 0x63, 0xe4, 0xa6, 0x0e, 0x0e, 0x0b, 0x13, 0xea, 0x9c, 0x48, + 0x6c, 0xb4, 0x00, 0x17, 0x87, 0xe5, 0xea, 0x6b, 0x6f, 0x64, 0x46, 0x73, 0xd3, 0x07, 0x87, 0x85, + 0xc9, 0xf0, 0x40, 0x89, 0x8a, 0x80, 0xe2, 0x92, 0x1a, 0x2f, 0x91, 0x83, 0x83, 0xc3, 0x42, 0x52, + 0x79, 0x21, 0x37, 0xf6, 0xee, 0x6f, 0xe7, 0x47, 0x6e, 0x7c, 0x1f, 0xa0, 0x4e, 0x77, 0x7c, 0x6c, + 0xc9, 0x68, 0xcb, 0xc1, 0xa5, 0xfa, 0xda, 0xed, 0xc6, 0xca, 0xea, 0x66, 0x7d, 0x7d, 0x6d, 0x70, + 0xd9, 0xc7, 0xc6, 0xaa, 0xeb, 0x5b, 0x95, 0xb7, 0x6a, 0x66, 0xb3, 0xfe, 0xc6, 0x5a, 0xc6, 0x40, + 0x97, 0xe1, 0xc2, 0xc0, 0xd8, 0xb7, 0xd7, 0x36, 0xeb, 0x6f, 0xd7, 0x32, 0xa3, 0x95, 0xdb, 0x1f, + 0x3e, 0x9a, 0x37, 0x1e, 0x3c, 0x9a, 0x37, 0xfe, 0xfe, 0x68, 0xde, 0x78, 0xef, 0xf1, 0xfc, 0xc8, + 0x83, 0xc7, 0xf3, 0x23, 0x7f, 0x79, 0x3c, 0x3f, 0xf2, 0xdd, 0x57, 0xdb, 0x0e, 0xdf, 0xed, 0xb5, + 0x4a, 0x96, 0xe7, 0xea, 0x97, 0xef, 0xf2, 0x89, 0x15, 0x4f, 0x3e, 0x35, 0xb7, 0x92, 0x72, 0x93, + 0xf9, 0xca, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x81, 0x47, 0x51, 0xf7, 0xe2, 0x17, 0x00, 0x00, } func (this *Pool) Description() (desc *github_com_cosmos_gogoproto_protoc_gen_gogo_descriptor.FileDescriptorSet) { @@ -1404,847 +1403,817 @@ func (this *Pool) Description() (desc *github_com_cosmos_gogoproto_protoc_gen_go func StakingDescription() (desc *github_com_cosmos_gogoproto_protoc_gen_gogo_descriptor.FileDescriptorSet) { d := &github_com_cosmos_gogoproto_protoc_gen_gogo_descriptor.FileDescriptorSet{} var gzipped = []byte{ - // 13435 bytes of a gzipped FileDescriptorSet - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0xbd, 0x6b, 0x74, 0x63, 0xd7, - 0x75, 0x18, 0x3c, 0x17, 0x00, 0xf1, 0xd8, 0x00, 0x81, 0xcb, 0x43, 0xce, 0x0c, 0x86, 0x23, 0x0d, - 0x39, 0x18, 0x3d, 0x46, 0x23, 0x89, 0xa3, 0xa1, 0x46, 0x23, 0x89, 0xb2, 0xac, 0xe0, 0x35, 0x33, - 0x18, 0x91, 0x00, 0x7d, 0x01, 0x52, 0x1a, 0xe5, 0x71, 0x73, 0x09, 0x1c, 0x92, 0x57, 0x03, 0xdc, - 0x0b, 0xe3, 0x5e, 0x50, 0xa4, 0xb2, 0x56, 0x96, 0x9d, 0x38, 0xf9, 0x1c, 0x39, 0xce, 0xe7, 0x7c, - 0xc9, 0x97, 0x28, 0xb6, 0xc7, 0xb1, 0x9d, 0x2f, 0xb1, 0x9d, 0xd7, 0xe7, 0x24, 0x4e, 0x1a, 0xa7, - 0x2b, 0x6d, 0xd3, 0x26, 0x69, 0xe2, 0xb6, 0x89, 0x93, 0xb5, 0xda, 0x64, 0x65, 0xad, 0xaa, 0xad, - 0x9d, 0xc6, 0xf2, 0x23, 0xcd, 0xa3, 0x4e, 0xeb, 0xb5, 0xdc, 0x2c, 0x77, 0x9d, 0xd7, 0x7d, 0x00, - 0x17, 0x04, 0x38, 0xb6, 0x53, 0x37, 0xe9, 0x1f, 0x12, 0xe7, 0x9c, 0xbd, 0xf7, 0xd9, 0x67, 0x9f, - 0x7d, 0xf6, 0xd9, 0x67, 0x9f, 0xc7, 0x85, 0xbf, 0xd5, 0x61, 0x71, 0xc7, 0x34, 0x77, 0xda, 0xf8, - 0x62, 0xb7, 0x67, 0xda, 0xe6, 0x56, 0x7f, 0xfb, 0x62, 0x0b, 0x5b, 0xcd, 0x9e, 0xde, 0xb5, 0xcd, - 0xde, 0x12, 0xcd, 0x43, 0x19, 0x06, 0xb1, 0x24, 0x20, 0x72, 0x9f, 0x90, 0x60, 0xe6, 0xaa, 0xde, - 0xc6, 0x25, 0x07, 0xb2, 0x8e, 0x6d, 0xf4, 0x04, 0x44, 0xb6, 0xf5, 0x36, 0xce, 0x4a, 0x8b, 0xe1, - 0xf3, 0xc9, 0xe5, 0x7b, 0x96, 0x06, 0xb0, 0x96, 0xfc, 0x18, 0xeb, 0x24, 0x5b, 0xa1, 0x18, 0x17, - 0xbe, 0x23, 0xfe, 0x96, 0x2f, 0x7c, 0xe2, 0x2b, 0x92, 0xfc, 0x56, 0xf2, 0x77, 0xbe, 0x83, 0x6e, - 0xb1, 0x34, 0xba, 0xbc, 0x44, 0xf0, 0x3c, 0xfc, 0xec, 0x5d, 0x22, 0x39, 0x2a, 0x41, 0x52, 0xdd, - 0x6c, 0xd5, 0xc2, 0xb6, 0x8a, 0xf7, 0x6d, 0x6c, 0x58, 0xba, 0x69, 0xcc, 0x3f, 0x1c, 0x80, 0x35, - 0xc4, 0x6d, 0x59, 0x80, 0xe7, 0x7e, 0x6b, 0x0a, 0x66, 0x03, 0x58, 0x43, 0x08, 0x22, 0x86, 0xd6, - 0x21, 0xcd, 0x91, 0xce, 0x27, 0x14, 0xfa, 0x1b, 0x65, 0x21, 0xd6, 0xd5, 0x9a, 0xb7, 0xb4, 0x1d, - 0x9c, 0x0d, 0xd1, 0x6c, 0x91, 0x44, 0x67, 0x00, 0x5a, 0xb8, 0x8b, 0x8d, 0x16, 0x36, 0x9a, 0x07, - 0xd9, 0xf0, 0x62, 0xf8, 0x7c, 0x42, 0xf1, 0xe4, 0xa0, 0x07, 0x61, 0xa6, 0xdb, 0xdf, 0x6a, 0xeb, - 0x4d, 0xd5, 0x03, 0x06, 0x8b, 0xe1, 0xf3, 0x53, 0x8a, 0xcc, 0x0a, 0x4a, 0x2e, 0xf0, 0xfd, 0x90, - 0x79, 0x09, 0x6b, 0xb7, 0xbc, 0xa0, 0x49, 0x0a, 0x9a, 0x26, 0xd9, 0x25, 0x1f, 0x55, 0xb3, 0x6b, - 0xeb, 0xa6, 0xe1, 0x05, 0xcd, 0xd0, 0xca, 0x65, 0x56, 0xe0, 0x01, 0x2e, 0x42, 0xaa, 0x83, 0x2d, - 0x4b, 0xdb, 0xc1, 0xaa, 0x7d, 0xd0, 0xc5, 0xd9, 0x08, 0xed, 0xa7, 0xc5, 0xa1, 0x7e, 0x1a, 0xec, - 0xa3, 0x24, 0xc7, 0x6a, 0x1c, 0x74, 0x31, 0xca, 0x43, 0x02, 0x1b, 0xfd, 0x0e, 0xa3, 0x30, 0x35, - 0xa2, 0xa7, 0xcb, 0x46, 0xbf, 0x33, 0x48, 0x25, 0x4e, 0xd0, 0x38, 0x89, 0x98, 0x85, 0x7b, 0x7b, - 0x7a, 0x13, 0x67, 0xa3, 0x94, 0xc0, 0xfd, 0x43, 0x04, 0xea, 0xac, 0x7c, 0x90, 0x86, 0xc0, 0x43, - 0x45, 0x48, 0x38, 0xfd, 0x9d, 0x8d, 0x51, 0x22, 0xf7, 0x06, 0xe8, 0x1b, 0x6e, 0xb7, 0x06, 0x49, - 0xb8, 0x78, 0xe8, 0x0a, 0xc4, 0x98, 0x8c, 0xac, 0x6c, 0x7c, 0x51, 0x3a, 0x9f, 0x5c, 0xbe, 0x2b, - 0x50, 0x65, 0x6b, 0x0c, 0x46, 0x11, 0xc0, 0xa8, 0x02, 0xb2, 0x65, 0xf6, 0x7b, 0x4d, 0xac, 0x36, - 0xcd, 0x16, 0x56, 0x75, 0x63, 0xdb, 0xcc, 0x26, 0x28, 0x81, 0x85, 0xe1, 0x86, 0x50, 0xc0, 0xa2, - 0xd9, 0xc2, 0x15, 0x63, 0xdb, 0x54, 0xd2, 0x96, 0x2f, 0x8d, 0x4e, 0x40, 0xd4, 0x3a, 0x30, 0x6c, - 0x6d, 0x3f, 0x9b, 0xa2, 0xea, 0xc4, 0x53, 0x68, 0x19, 0x62, 0xb8, 0xa5, 0x93, 0xea, 0xb2, 0xe9, - 0x45, 0xe9, 0x7c, 0x7a, 0x39, 0x3b, 0x2c, 0x63, 0x56, 0xae, 0x08, 0xc0, 0xdc, 0xff, 0x88, 0x42, - 0x66, 0x12, 0x1d, 0x7e, 0x0a, 0xa6, 0xb6, 0x89, 0x64, 0xb2, 0xa1, 0xa3, 0xc8, 0x8d, 0xe1, 0xf8, - 0x05, 0x1f, 0xbd, 0x43, 0xc1, 0xe7, 0x21, 0x69, 0x60, 0xcb, 0xc6, 0x2d, 0xa6, 0x45, 0xe1, 0x09, - 0xf5, 0x10, 0x18, 0xd2, 0xb0, 0x1a, 0x46, 0xee, 0x48, 0x0d, 0x9f, 0x87, 0x8c, 0xc3, 0x92, 0xda, - 0xd3, 0x8c, 0x1d, 0xa1, 0xcf, 0x17, 0xc7, 0x71, 0xb2, 0xe4, 0x18, 0x0f, 0x85, 0xa0, 0x29, 0x69, - 0xec, 0x4b, 0xa3, 0x12, 0x80, 0x69, 0x60, 0x73, 0x5b, 0x6d, 0xe1, 0x66, 0x3b, 0x1b, 0x1f, 0x21, - 0xa5, 0x1a, 0x01, 0x19, 0x92, 0x92, 0xc9, 0x72, 0x9b, 0x6d, 0xf4, 0xa4, 0xab, 0x9e, 0xb1, 0x11, - 0xda, 0xb5, 0xc6, 0x06, 0xe6, 0x90, 0x86, 0x6e, 0x40, 0xba, 0x87, 0xc9, 0x58, 0xc1, 0x2d, 0xde, - 0xb2, 0x04, 0x65, 0x62, 0x69, 0x6c, 0xcb, 0x14, 0x8e, 0xc6, 0x1a, 0x36, 0xdd, 0xf3, 0x26, 0xd1, - 0x39, 0x70, 0x32, 0x54, 0xaa, 0x56, 0x40, 0x2d, 0x4d, 0x4a, 0x64, 0x56, 0x89, 0x7a, 0xe5, 0x01, - 0xf6, 0x74, 0x4b, 0xdf, 0xd2, 0xdb, 0xba, 0x4d, 0xcc, 0x16, 0xd1, 0xde, 0xb3, 0xc3, 0xe3, 0xe2, - 0xa0, 0xb3, 0x65, 0xb6, 0x37, 0x1d, 0x40, 0xc5, 0x83, 0x34, 0xff, 0x32, 0xa4, 0xfd, 0x12, 0x46, - 0x73, 0x30, 0x65, 0xd9, 0x5a, 0xcf, 0xa6, 0x8a, 0x3c, 0xa5, 0xb0, 0x04, 0x92, 0x21, 0x8c, 0x8d, - 0x16, 0xb5, 0xc4, 0x53, 0x0a, 0xf9, 0x89, 0xbe, 0xc9, 0x95, 0x59, 0x98, 0xca, 0xec, 0xbe, 0x61, - 0xa5, 0xf0, 0x51, 0x1e, 0x14, 0xdd, 0xfc, 0xe3, 0x30, 0xed, 0x93, 0xc1, 0xa4, 0x55, 0xe7, 0xfe, - 0x75, 0x04, 0x8e, 0x07, 0xd2, 0x46, 0xcf, 0xc3, 0x5c, 0xdf, 0xd0, 0x0d, 0x1b, 0xf7, 0xba, 0x3d, - 0x4c, 0xb4, 0x9e, 0xd5, 0x95, 0xfd, 0x4c, 0x6c, 0x84, 0xde, 0x6e, 0x78, 0xa1, 0x19, 0x15, 0x65, - 0xb6, 0x3f, 0x9c, 0x89, 0x6e, 0x42, 0x92, 0xa8, 0x98, 0xd6, 0xd3, 0x28, 0x41, 0x36, 0xa0, 0x97, - 0x27, 0x6b, 0xf2, 0x52, 0xc9, 0xc5, 0x2c, 0x84, 0xdf, 0x2e, 0x85, 0x14, 0x2f, 0x2d, 0xf4, 0x38, - 0xc4, 0xb7, 0xb1, 0x66, 0xf7, 0x7b, 0xd8, 0xca, 0x2e, 0x53, 0x51, 0x9e, 0x1e, 0x1e, 0xe7, 0x0c, - 0xa0, 0x8e, 0x6d, 0xc5, 0x01, 0x46, 0x1d, 0x48, 0xed, 0xe1, 0x9e, 0xbe, 0xad, 0x37, 0x19, 0x53, - 0x61, 0xaa, 0x01, 0x4f, 0x4c, 0xc8, 0xd4, 0xa6, 0x07, 0xb5, 0x6e, 0x6b, 0x36, 0x5e, 0x81, 0x8d, - 0xea, 0x66, 0x59, 0xa9, 0x5c, 0xad, 0x94, 0x4b, 0x8c, 0x4d, 0x1f, 0xf9, 0xf9, 0x1f, 0x96, 0x20, - 0xe9, 0x69, 0x09, 0xb1, 0xa8, 0x46, 0xbf, 0xb3, 0x85, 0x7b, 0xbc, 0xbf, 0x78, 0x0a, 0x9d, 0x86, - 0xc4, 0x76, 0xbf, 0xdd, 0x66, 0x7a, 0xcb, 0xe6, 0xee, 0x38, 0xc9, 0xa0, 0x3a, 0x8b, 0x20, 0xc2, - 0x2d, 0x11, 0x35, 0x93, 0xe4, 0x37, 0x9a, 0x87, 0xb8, 0xd0, 0xeb, 0xec, 0xd4, 0xa2, 0x74, 0x3e, - 0xae, 0x38, 0x69, 0x56, 0xd6, 0xc5, 0x9a, 0x8d, 0x5b, 0xd9, 0xa8, 0x28, 0x63, 0xe9, 0x1b, 0x91, - 0x78, 0x44, 0x9e, 0xca, 0x5d, 0x86, 0x99, 0xa1, 0xa6, 0xa0, 0x0c, 0x24, 0x4b, 0xe5, 0xe2, 0x6a, - 0x5e, 0xc9, 0x37, 0x2a, 0xb5, 0xaa, 0x7c, 0x0c, 0xa5, 0xc1, 0xd3, 0x3a, 0x59, 0xba, 0x90, 0x88, - 0xbf, 0x1e, 0x93, 0xdf, 0xf2, 0x96, 0xb7, 0xbc, 0x25, 0x94, 0xfb, 0x8d, 0x28, 0xcc, 0x05, 0xd9, - 0xd1, 0x40, 0x93, 0xee, 0x36, 0x3a, 0xec, 0x6b, 0x74, 0x1e, 0xa6, 0xda, 0xda, 0x16, 0x6e, 0x67, - 0x23, 0xb4, 0x13, 0x1e, 0x9c, 0xc8, 0x52, 0x2f, 0xad, 0x12, 0x14, 0x85, 0x61, 0xa2, 0x37, 0x72, - 0xd1, 0x4c, 0x51, 0x0a, 0x17, 0x26, 0xa3, 0x40, 0xec, 0x2b, 0x17, 0xe3, 0x69, 0x48, 0x90, 0xff, - 0x4c, 0xee, 0x51, 0x26, 0x77, 0x92, 0x41, 0xe5, 0x3e, 0x0f, 0x71, 0x6a, 0x3a, 0x5b, 0xd8, 0xe9, - 0x13, 0x91, 0x26, 0xc6, 0xa6, 0x85, 0xb7, 0xb5, 0x7e, 0xdb, 0x56, 0xf7, 0xb4, 0x76, 0x1f, 0x53, - 0x23, 0x98, 0x50, 0x52, 0x3c, 0x73, 0x93, 0xe4, 0xa1, 0x05, 0x48, 0x32, 0x4b, 0xab, 0x1b, 0x2d, - 0xbc, 0x4f, 0x67, 0xe1, 0x29, 0x85, 0x19, 0xdf, 0x0a, 0xc9, 0x21, 0xd5, 0xbf, 0x68, 0x99, 0x86, - 0x30, 0x57, 0xb4, 0x0a, 0x92, 0x41, 0xab, 0x7f, 0x7c, 0xd0, 0x01, 0xb8, 0x3b, 0xb8, 0x79, 0x43, - 0xf6, 0xf5, 0x7e, 0xc8, 0x50, 0x88, 0x47, 0xf9, 0x50, 0xd6, 0xda, 0xd9, 0x19, 0xaa, 0x06, 0x69, - 0x96, 0x5d, 0xe3, 0xb9, 0xb9, 0x5f, 0x09, 0x41, 0x84, 0x4e, 0x36, 0x19, 0x48, 0x36, 0x6e, 0xae, - 0x97, 0xd5, 0x52, 0x6d, 0xa3, 0xb0, 0x5a, 0x96, 0x25, 0xd2, 0xf5, 0x34, 0xe3, 0xea, 0x6a, 0x2d, - 0xdf, 0x90, 0x43, 0x4e, 0xba, 0x52, 0x6d, 0x5c, 0xb9, 0x2c, 0x87, 0x1d, 0x84, 0x0d, 0x96, 0x11, - 0xf1, 0x02, 0x3c, 0xba, 0x2c, 0x4f, 0x21, 0x19, 0x52, 0x8c, 0x40, 0xe5, 0xf9, 0x72, 0xe9, 0xca, - 0x65, 0x39, 0xea, 0xcf, 0x79, 0x74, 0x59, 0x8e, 0xa1, 0x69, 0x48, 0xd0, 0x9c, 0x42, 0xad, 0xb6, - 0x2a, 0xc7, 0x1d, 0x9a, 0xf5, 0x86, 0x52, 0xa9, 0x5e, 0x93, 0x13, 0x0e, 0xcd, 0x6b, 0x4a, 0x6d, - 0x63, 0x5d, 0x06, 0x87, 0xc2, 0x5a, 0xb9, 0x5e, 0xcf, 0x5f, 0x2b, 0xcb, 0x49, 0x07, 0xa2, 0x70, - 0xb3, 0x51, 0xae, 0xcb, 0x29, 0x1f, 0x5b, 0x8f, 0x2e, 0xcb, 0xd3, 0x4e, 0x15, 0xe5, 0xea, 0xc6, - 0x9a, 0x9c, 0x46, 0x33, 0x30, 0xcd, 0xaa, 0x10, 0x4c, 0x64, 0x06, 0xb2, 0xae, 0x5c, 0x96, 0x65, - 0x97, 0x11, 0x46, 0x65, 0xc6, 0x97, 0x71, 0xe5, 0xb2, 0x8c, 0x72, 0x45, 0x98, 0xa2, 0x6a, 0x88, - 0x10, 0xa4, 0x57, 0xf3, 0x85, 0xf2, 0xaa, 0x5a, 0x5b, 0x27, 0x83, 0x26, 0xbf, 0x2a, 0x4b, 0x6e, - 0x9e, 0x52, 0x5e, 0x2f, 0xe7, 0x1b, 0xe5, 0x92, 0x1c, 0xf6, 0xe6, 0xbd, 0x69, 0xa3, 0xa2, 0x94, - 0x4b, 0x72, 0x28, 0xd7, 0x84, 0xb9, 0xa0, 0x49, 0x36, 0x70, 0x08, 0x79, 0x74, 0x21, 0x34, 0x42, - 0x17, 0x28, 0xad, 0x41, 0x5d, 0xc8, 0xfd, 0x54, 0x18, 0x66, 0x03, 0x1c, 0x8d, 0xc0, 0x4a, 0x9e, - 0x81, 0x29, 0xa6, 0xcb, 0xcc, 0x52, 0x3f, 0x10, 0xe8, 0xb1, 0x50, 0xcd, 0x1e, 0x72, 0xbf, 0x28, - 0x9e, 0xd7, 0x65, 0x0d, 0x8f, 0x70, 0x59, 0x09, 0x89, 0x21, 0x85, 0xfd, 0xd6, 0x21, 0x87, 0x80, - 0xf9, 0x4c, 0x57, 0x26, 0xf1, 0x99, 0x68, 0xde, 0xd1, 0x1c, 0x83, 0xa9, 0xb1, 0x8e, 0x41, 0xf4, - 0x4e, 0x1c, 0x83, 0xa7, 0x60, 0x66, 0x88, 0x97, 0x89, 0x27, 0xe8, 0xef, 0x96, 0x20, 0x3b, 0x4a, - 0xbe, 0x63, 0xac, 0x6a, 0xc8, 0x67, 0x55, 0x9f, 0x1a, 0xec, 0x84, 0xb3, 0xa3, 0xfb, 0x71, 0x48, - 0x5d, 0x3e, 0x24, 0xc1, 0x89, 0xe0, 0xd5, 0x4d, 0x20, 0x0f, 0x6f, 0x84, 0x68, 0x07, 0xdb, 0xbb, - 0xa6, 0xf0, 0xd6, 0xef, 0x0b, 0xf0, 0x01, 0x49, 0xf1, 0xa0, 0xbe, 0x70, 0x2c, 0xaf, 0x13, 0x19, - 0x1e, 0xb5, 0x44, 0x61, 0xdc, 0x0c, 0x71, 0xfa, 0x7d, 0x21, 0x38, 0x1e, 0x48, 0x3c, 0x90, 0xd1, - 0xbb, 0x01, 0x74, 0xa3, 0xdb, 0xb7, 0x99, 0x47, 0xce, 0x8c, 0x79, 0x82, 0xe6, 0x50, 0xfb, 0x47, - 0x0c, 0x75, 0xdf, 0x76, 0xca, 0xd9, 0x44, 0x0b, 0x2c, 0x8b, 0x02, 0x3c, 0xe1, 0x32, 0x1a, 0xa1, - 0x8c, 0x9e, 0x19, 0xd1, 0xd2, 0x21, 0xdd, 0x7e, 0x04, 0xe4, 0x66, 0x5b, 0xc7, 0x86, 0xad, 0x5a, - 0x76, 0x0f, 0x6b, 0x1d, 0xdd, 0xd8, 0x61, 0x13, 0xf6, 0xca, 0xd4, 0xb6, 0xd6, 0xb6, 0xb0, 0x92, - 0x61, 0xc5, 0x75, 0x51, 0x4a, 0x30, 0xa8, 0x02, 0xf5, 0x3c, 0x18, 0x51, 0x1f, 0x06, 0x2b, 0x76, - 0x30, 0x72, 0x3f, 0x97, 0x80, 0xa4, 0x67, 0x2d, 0x88, 0xce, 0x42, 0xea, 0x45, 0x6d, 0x4f, 0x53, - 0x45, 0x30, 0x80, 0x49, 0x22, 0x49, 0xf2, 0xd6, 0x79, 0x40, 0xe0, 0x11, 0x98, 0xa3, 0x20, 0x66, - 0xdf, 0xc6, 0x3d, 0xb5, 0xd9, 0xd6, 0x2c, 0x8b, 0x0a, 0x2d, 0x4e, 0x41, 0x11, 0x29, 0xab, 0x91, - 0xa2, 0xa2, 0x28, 0x41, 0x8f, 0xc1, 0x2c, 0xc5, 0xe8, 0xf4, 0xdb, 0xb6, 0xde, 0x6d, 0x63, 0x1a, - 0xe6, 0xb0, 0xe8, 0xac, 0xe5, 0x70, 0x36, 0x43, 0x20, 0xd6, 0x38, 0x00, 0xe1, 0xc8, 0x42, 0x25, - 0xb8, 0x9b, 0xa2, 0xed, 0x60, 0x03, 0xf7, 0x34, 0x1b, 0xab, 0xf8, 0xcd, 0x7d, 0xad, 0x6d, 0xa9, - 0x9a, 0xd1, 0x52, 0x77, 0x35, 0x6b, 0x37, 0x3b, 0x47, 0x08, 0x14, 0x42, 0x59, 0x49, 0x39, 0x45, - 0x00, 0xaf, 0x71, 0xb8, 0x32, 0x05, 0xcb, 0x1b, 0xad, 0xeb, 0x9a, 0xb5, 0x8b, 0x56, 0xe0, 0x04, - 0xa5, 0x62, 0xd9, 0x3d, 0xdd, 0xd8, 0x51, 0x9b, 0xbb, 0xb8, 0x79, 0x4b, 0xed, 0xdb, 0xdb, 0x4f, - 0x64, 0x4f, 0x7b, 0xeb, 0xa7, 0x1c, 0xd6, 0x29, 0x4c, 0x91, 0x80, 0x6c, 0xd8, 0xdb, 0x4f, 0xa0, - 0x3a, 0xa4, 0x48, 0x67, 0x74, 0xf4, 0x97, 0xb1, 0xba, 0x6d, 0xf6, 0xe8, 0x34, 0x9c, 0x0e, 0xb0, - 0x6e, 0x1e, 0x09, 0x2e, 0xd5, 0x38, 0xc2, 0x9a, 0xd9, 0xc2, 0x2b, 0x53, 0xf5, 0xf5, 0x72, 0xb9, - 0xa4, 0x24, 0x05, 0x95, 0xab, 0x66, 0x8f, 0x28, 0xd4, 0x8e, 0xe9, 0x08, 0x38, 0xc9, 0x14, 0x6a, - 0xc7, 0x14, 0xe2, 0x7d, 0x0c, 0x66, 0x9b, 0x4d, 0xd6, 0x66, 0xbd, 0xa9, 0xf2, 0xb8, 0x80, 0x95, - 0x95, 0x7d, 0xc2, 0x6a, 0x36, 0xaf, 0x31, 0x00, 0xae, 0xe3, 0x16, 0x7a, 0x12, 0x8e, 0xbb, 0xc2, - 0xf2, 0x22, 0xce, 0x0c, 0xb5, 0x72, 0x10, 0xf5, 0x31, 0x98, 0xed, 0x1e, 0x0c, 0x23, 0x22, 0x5f, - 0x8d, 0xdd, 0x83, 0x41, 0xb4, 0x7b, 0x69, 0x60, 0xa8, 0x87, 0x9b, 0xd4, 0x5b, 0x3c, 0xe9, 0x85, - 0xf6, 0x14, 0xa0, 0x25, 0x90, 0x9b, 0x4d, 0x15, 0x1b, 0xda, 0x56, 0x1b, 0xab, 0x5a, 0x0f, 0x1b, - 0x9a, 0x95, 0x5d, 0xa0, 0xc0, 0x11, 0xbb, 0xd7, 0xc7, 0x4a, 0xba, 0xd9, 0x2c, 0xd3, 0xc2, 0x3c, - 0x2d, 0x43, 0x17, 0x60, 0xc6, 0xdc, 0x7a, 0xb1, 0xc9, 0x14, 0x4b, 0xed, 0xf6, 0xf0, 0xb6, 0xbe, - 0x9f, 0xbd, 0x87, 0x4a, 0x29, 0x43, 0x0a, 0xa8, 0x5a, 0xad, 0xd3, 0x6c, 0xf4, 0x00, 0xc8, 0x4d, - 0x6b, 0x57, 0xeb, 0x75, 0xa9, 0x71, 0xb6, 0xba, 0x5a, 0x13, 0x67, 0xef, 0x65, 0xa0, 0x2c, 0xbf, - 0x2a, 0xb2, 0x89, 0x62, 0x5b, 0x2f, 0xe9, 0xdb, 0xb6, 0xa0, 0x78, 0x3f, 0x53, 0x6c, 0x9a, 0xc7, - 0xa9, 0x9d, 0x07, 0xb9, 0xbb, 0xdb, 0xf5, 0x57, 0x7c, 0x9e, 0x82, 0xa5, 0xbb, 0xbb, 0x5d, 0x6f, - 0xbd, 0xe7, 0x60, 0x9a, 0x40, 0xba, 0x95, 0x3e, 0xc0, 0x5c, 0xb8, 0xee, 0xae, 0xa7, 0xc6, 0xcb, - 0x70, 0x82, 0x00, 0x75, 0xb0, 0xad, 0xb5, 0x34, 0x5b, 0xf3, 0x40, 0x3f, 0x44, 0xa1, 0xe7, 0xba, - 0xbb, 0xdd, 0x35, 0x5e, 0xe8, 0xe3, 0xb3, 0xd7, 0xdf, 0x3a, 0x70, 0xf4, 0xe3, 0x61, 0xc6, 0x27, - 0xc9, 0x13, 0x1a, 0x72, 0xc7, 0x2b, 0x98, 0xaf, 0xdb, 0x7a, 0x2d, 0xb7, 0x02, 0x29, 0xaf, 0xde, - 0xa3, 0x04, 0x30, 0xcd, 0x97, 0x25, 0xe2, 0x47, 0x15, 0x6b, 0x25, 0xe2, 0x01, 0xbd, 0x50, 0x96, - 0x43, 0xc4, 0x13, 0x5b, 0xad, 0x34, 0xca, 0xaa, 0xb2, 0x51, 0x6d, 0x54, 0xd6, 0xca, 0x72, 0xd8, - 0xb3, 0x36, 0xb8, 0x11, 0x89, 0x5f, 0x90, 0x1f, 0xbc, 0x11, 0x89, 0xdf, 0x27, 0xdf, 0x4f, 0xc5, - 0x33, 0xa4, 0x94, 0xb9, 0x2f, 0x86, 0x21, 0xed, 0x0f, 0x0e, 0xa0, 0x37, 0xc0, 0x49, 0x11, 0xfd, - 0xb3, 0xb0, 0xad, 0xbe, 0xa4, 0xf7, 0xe8, 0x60, 0xed, 0x68, 0x6c, 0xe2, 0x74, 0x94, 0x72, 0x8e, - 0x43, 0xd5, 0xb1, 0xfd, 0x9c, 0xde, 0x23, 0x43, 0xb1, 0xa3, 0xd9, 0x68, 0x15, 0x16, 0x0c, 0x53, - 0xb5, 0x6c, 0xcd, 0x68, 0x69, 0xbd, 0x96, 0x37, 0xf6, 0xaa, 0x35, 0x9b, 0xd8, 0xb2, 0x4c, 0x36, - 0x49, 0x3a, 0x54, 0xee, 0x32, 0xcc, 0x3a, 0x07, 0x76, 0x67, 0x8f, 0x3c, 0x07, 0x1d, 0x18, 0x13, - 0xe1, 0x51, 0x63, 0xe2, 0x34, 0x24, 0x3a, 0x5a, 0x57, 0xc5, 0x86, 0xdd, 0x3b, 0xa0, 0xee, 0x7f, - 0x5c, 0x89, 0x77, 0xb4, 0x6e, 0x99, 0xa4, 0xd1, 0x26, 0xdc, 0xe7, 0x82, 0xaa, 0x6d, 0xbc, 0xa3, - 0x35, 0x0f, 0x54, 0xea, 0xeb, 0xd3, 0x48, 0x95, 0xda, 0x34, 0x8d, 0xed, 0xb6, 0xde, 0xb4, 0x2d, - 0x6a, 0x3b, 0x98, 0xfd, 0xcb, 0xb9, 0x18, 0xab, 0x14, 0xe1, 0x86, 0x65, 0x1a, 0xd4, 0xc5, 0x2f, - 0x0a, 0x68, 0x9f, 0xda, 0xa4, 0xbe, 0x21, 0xd4, 0xc6, 0xdf, 0xf5, 0x11, 0x79, 0xea, 0x46, 0x24, - 0x3e, 0x25, 0x47, 0x6f, 0x44, 0xe2, 0x51, 0x39, 0x76, 0x23, 0x12, 0x8f, 0xcb, 0x89, 0x1b, 0x91, - 0x78, 0x42, 0x86, 0xdc, 0xed, 0x69, 0x48, 0x79, 0x57, 0x2c, 0x64, 0x01, 0xd8, 0xa4, 0x13, 0xae, - 0x44, 0x4d, 0xf2, 0xb9, 0x43, 0xd7, 0x37, 0x4b, 0x45, 0x32, 0x13, 0xaf, 0x44, 0xd9, 0xf2, 0x40, - 0x61, 0x98, 0xc4, 0x0b, 0x22, 0x83, 0x0c, 0x33, 0x5f, 0x2a, 0xae, 0xf0, 0x14, 0xba, 0x06, 0xd1, - 0x17, 0x2d, 0x4a, 0x9b, 0xb9, 0x72, 0xf7, 0x1c, 0x4e, 0xfb, 0x46, 0x9d, 0x12, 0x4f, 0xdc, 0xa8, - 0xab, 0xd5, 0x9a, 0xb2, 0x96, 0x5f, 0x55, 0x38, 0x3a, 0x3a, 0x05, 0x91, 0xb6, 0xf6, 0xf2, 0x81, - 0x7f, 0xce, 0xa6, 0x59, 0x68, 0x09, 0x32, 0x7d, 0x83, 0x2d, 0xf7, 0x49, 0x1f, 0x13, 0xa8, 0x8c, - 0x17, 0x2a, 0xed, 0x96, 0xae, 0x12, 0xf8, 0x09, 0xf5, 0xea, 0x14, 0x44, 0x5e, 0xc2, 0xda, 0x2d, - 0xff, 0xcc, 0x4a, 0xb3, 0xd0, 0x79, 0x48, 0xb5, 0xf0, 0x56, 0x7f, 0x47, 0xed, 0xe1, 0x96, 0xd6, - 0xb4, 0xfd, 0xf3, 0x49, 0x92, 0x16, 0x29, 0xb4, 0x04, 0x3d, 0x0b, 0x09, 0xd2, 0x47, 0x06, 0xed, - 0xe3, 0x19, 0x2a, 0x82, 0x87, 0x0f, 0x17, 0x01, 0xef, 0x62, 0x81, 0xa4, 0xb8, 0xf8, 0xe8, 0x3a, - 0xc4, 0x6c, 0xad, 0xb7, 0x83, 0x6d, 0x2b, 0x3b, 0xbb, 0x18, 0x3e, 0x9f, 0x0e, 0x88, 0xd4, 0x05, - 0x90, 0x6a, 0x50, 0x14, 0xba, 0xd8, 0x16, 0xe8, 0xe8, 0x39, 0x90, 0x79, 0x40, 0x58, 0xe5, 0x2b, - 0x65, 0x2b, 0x3b, 0x47, 0x15, 0xf0, 0xa1, 0xc3, 0x49, 0xf2, 0x78, 0x72, 0x89, 0x21, 0x29, 0x19, - 0xec, 0x4b, 0xfb, 0xc7, 0xc5, 0xf1, 0xa3, 0x8c, 0x8b, 0x0d, 0xc8, 0xf0, 0xdf, 0xaa, 0xd5, 0xef, - 0x76, 0xcd, 0x9e, 0x9d, 0x3d, 0x41, 0xf1, 0xc7, 0x30, 0x24, 0x88, 0x31, 0x1c, 0x25, 0xbd, 0xed, - 0x4b, 0x7f, 0xfd, 0x86, 0xdb, 0xfc, 0x0b, 0x90, 0xf6, 0x0b, 0xc3, 0x1b, 0x8e, 0x0f, 0x4f, 0x18, - 0x8e, 0x27, 0xcb, 0x12, 0xb1, 0xd6, 0x23, 0x53, 0x13, 0x4b, 0xcc, 0xff, 0x48, 0x08, 0xd2, 0xfe, - 0x86, 0xa1, 0x6b, 0x80, 0x44, 0x8f, 0xe9, 0x86, 0xdd, 0x33, 0x5b, 0xfd, 0x26, 0x6e, 0xf1, 0x01, - 0x3b, 0xba, 0x9e, 0x19, 0x8e, 0x53, 0x71, 0x50, 0xbc, 0x84, 0x3c, 0xa3, 0x20, 0x34, 0x21, 0xa1, - 0x92, 0x3b, 0x3e, 0x2e, 0xc2, 0xac, 0x20, 0x40, 0x88, 0xbd, 0xa4, 0xf5, 0x0c, 0xe2, 0x22, 0x33, - 0xa7, 0x1d, 0x79, 0x8a, 0x9e, 0x63, 0x25, 0x28, 0x0f, 0x42, 0x5d, 0xd4, 0x1e, 0xee, 0x98, 0x7b, - 0xb8, 0xc5, 0x23, 0x4e, 0xa3, 0xab, 0x4d, 0x73, 0x04, 0x85, 0xc1, 0xe7, 0x2e, 0xc2, 0x14, 0x35, - 0x3f, 0x08, 0x80, 0x1b, 0x20, 0xf9, 0x18, 0x8a, 0x43, 0xa4, 0x58, 0x53, 0xc8, 0xf4, 0x28, 0x43, - 0x8a, 0xe5, 0xaa, 0xeb, 0x95, 0x72, 0xb1, 0x2c, 0x87, 0x72, 0x8f, 0x41, 0x94, 0xd9, 0x14, 0x32, - 0x75, 0x3a, 0x56, 0x45, 0x3e, 0xc6, 0x93, 0x9c, 0x86, 0x24, 0x4a, 0x37, 0xd6, 0x0a, 0x65, 0x45, - 0x0e, 0xe5, 0x36, 0x20, 0x33, 0x30, 0x0e, 0xd1, 0x71, 0x98, 0x51, 0xca, 0x8d, 0x72, 0xb5, 0x51, - 0xa9, 0x55, 0xd5, 0x8d, 0xea, 0xb3, 0xd5, 0xda, 0x73, 0x55, 0xf9, 0x98, 0x3f, 0x5b, 0xcc, 0xc3, - 0x12, 0x9a, 0x03, 0xd9, 0xcd, 0xae, 0xd7, 0x36, 0x14, 0xca, 0xcd, 0xf7, 0x87, 0x40, 0x1e, 0x1c, - 0x94, 0xe8, 0x24, 0xcc, 0x36, 0xf2, 0xca, 0xb5, 0x72, 0x43, 0x65, 0x31, 0x13, 0x87, 0xf4, 0x1c, - 0xc8, 0xde, 0x82, 0xab, 0x15, 0x1a, 0x12, 0x5a, 0x80, 0xd3, 0xde, 0xdc, 0xf2, 0xf3, 0x8d, 0x72, - 0xb5, 0x4e, 0x2b, 0xcf, 0x57, 0xaf, 0x11, 0xa7, 0x60, 0x80, 0x9e, 0x88, 0xd2, 0x84, 0x09, 0xab, - 0x7e, 0x7a, 0xe5, 0xd5, 0x92, 0x1c, 0x19, 0xcc, 0xae, 0x55, 0xcb, 0xb5, 0xab, 0xf2, 0xd4, 0x60, - 0xed, 0x34, 0x72, 0x13, 0x45, 0xf3, 0x70, 0x62, 0x30, 0x57, 0x2d, 0x57, 0x1b, 0xca, 0x4d, 0x39, - 0x36, 0x58, 0x71, 0xbd, 0xac, 0x6c, 0x56, 0x8a, 0x65, 0x39, 0x8e, 0x4e, 0x00, 0xf2, 0x73, 0xd4, - 0xb8, 0x5e, 0x2b, 0xc9, 0x89, 0xa0, 0x19, 0x0b, 0xc9, 0xb3, 0xb9, 0x9f, 0x95, 0x20, 0xe5, 0x8d, - 0xa2, 0xf8, 0x8c, 0x8a, 0xf4, 0x8d, 0x36, 0xd9, 0xe6, 0xfe, 0x20, 0x04, 0x49, 0x4f, 0x38, 0x85, - 0x2c, 0x62, 0xb5, 0x76, 0xdb, 0x7c, 0x49, 0xd5, 0xda, 0xba, 0x66, 0xf1, 0xf9, 0x10, 0x68, 0x56, - 0x9e, 0xe4, 0x4c, 0x3a, 0xff, 0x4c, 0xee, 0xba, 0x44, 0xef, 0xd8, 0x75, 0x89, 0x7d, 0x03, 0xba, - 0x2e, 0x53, 0x72, 0x34, 0xf7, 0xc7, 0x21, 0x90, 0x07, 0xa3, 0x23, 0x03, 0x72, 0x93, 0x46, 0xc9, - 0xcd, 0xdb, 0xbe, 0xd0, 0x51, 0xda, 0x37, 0x38, 0xab, 0x87, 0x47, 0xce, 0xea, 0x01, 0x93, 0x55, - 0xe4, 0x1b, 0x79, 0xb2, 0xf2, 0xaa, 0xeb, 0xbf, 0x95, 0x20, 0xed, 0x0f, 0xe6, 0xf8, 0x24, 0x96, - 0x3b, 0x8a, 0xc4, 0xfc, 0x3d, 0x72, 0x76, 0x54, 0x8f, 0xfc, 0x9d, 0xb4, 0xeb, 0xc7, 0xc2, 0x30, - 0xed, 0x8b, 0xfd, 0x4c, 0xca, 0xdd, 0x9b, 0x61, 0x46, 0x6f, 0xe1, 0x4e, 0xd7, 0xb4, 0xb1, 0xd1, - 0x3c, 0x50, 0xdb, 0x78, 0x0f, 0xb7, 0xa9, 0x18, 0xd2, 0x01, 0x7b, 0xbc, 0xbe, 0x1a, 0x96, 0x2a, - 0x2e, 0xde, 0x2a, 0x41, 0x5b, 0x99, 0xad, 0x94, 0xca, 0x6b, 0xeb, 0xb5, 0x46, 0xb9, 0x5a, 0xbc, - 0x29, 0x2c, 0xb9, 0x22, 0xeb, 0x03, 0x60, 0x3e, 0x81, 0x9f, 0xfb, 0xc6, 0x58, 0x74, 0xae, 0x83, - 0x3c, 0xd8, 0x1a, 0x62, 0xd0, 0x03, 0xda, 0x23, 0x1f, 0x43, 0xb3, 0x90, 0xa9, 0xd6, 0xd4, 0x7a, - 0xa5, 0x54, 0x56, 0xcb, 0x57, 0xaf, 0x96, 0x8b, 0x8d, 0x3a, 0xdb, 0xab, 0x70, 0xa0, 0x1b, 0x72, - 0xc8, 0xdb, 0x37, 0xef, 0x0e, 0xc3, 0x6c, 0x00, 0x27, 0x28, 0xcf, 0x43, 0x84, 0x2c, 0x6a, 0xf9, - 0xf0, 0x24, 0xdc, 0x2f, 0x91, 0xd5, 0xfd, 0xba, 0xd6, 0xb3, 0x79, 0x44, 0xf1, 0x01, 0x20, 0xe2, - 0x35, 0x6c, 0xe2, 0xde, 0xf7, 0xf8, 0x1e, 0x10, 0x73, 0x41, 0x32, 0x6e, 0x3e, 0xdb, 0x06, 0x7a, - 0x08, 0x50, 0xd7, 0xb4, 0x74, 0x5b, 0xdf, 0xc3, 0xc4, 0x87, 0xe2, 0xc0, 0x64, 0xe0, 0x46, 0x14, - 0x59, 0x94, 0x54, 0x0c, 0xdb, 0x81, 0x36, 0xf0, 0x8e, 0x36, 0x00, 0x4d, 0x96, 0x1f, 0x61, 0x45, - 0x16, 0x25, 0x0e, 0xf4, 0x59, 0x48, 0xb5, 0xcc, 0xfe, 0x56, 0x1b, 0x73, 0x38, 0x62, 0x92, 0x25, - 0x25, 0xc9, 0xf2, 0x1c, 0x10, 0x1e, 0x36, 0x73, 0x77, 0xaa, 0x52, 0x4a, 0x92, 0xe5, 0x31, 0x90, - 0xfb, 0x21, 0xa3, 0xed, 0xec, 0xf4, 0x08, 0x71, 0x41, 0x88, 0x05, 0x02, 0xd3, 0x4e, 0x36, 0x05, - 0x9c, 0xbf, 0x01, 0x71, 0x21, 0x07, 0xb2, 0xfe, 0x25, 0x92, 0x50, 0xbb, 0x2c, 0xba, 0x1d, 0x3a, - 0x9f, 0x50, 0xe2, 0x86, 0x28, 0x3c, 0x0b, 0x29, 0xdd, 0x72, 0x4f, 0x3d, 0x65, 0x43, 0x8b, 0xa1, - 0xf3, 0x71, 0x25, 0xa9, 0x5b, 0xee, 0xc9, 0xa6, 0x8f, 0xcb, 0x00, 0xae, 0xb2, 0xa1, 0x1f, 0x94, - 0x20, 0xcd, 0x26, 0x98, 0x6e, 0x0f, 0x5b, 0xd8, 0x68, 0x8a, 0x65, 0xe1, 0x03, 0x87, 0xa8, 0x28, - 0x33, 0x73, 0xeb, 0x1c, 0xa1, 0xf0, 0xcc, 0xdb, 0x25, 0xe9, 0x55, 0x29, 0xf2, 0xaa, 0x24, 0x7d, - 0x50, 0x9a, 0x46, 0xf1, 0xf2, 0xf3, 0xeb, 0xab, 0x95, 0x62, 0xa5, 0x91, 0x7d, 0x5b, 0x8c, 0xa6, - 0x2b, 0x6b, 0x3c, 0xfd, 0x99, 0x98, 0xbf, 0xfc, 0xf5, 0xd8, 0x2f, 0x4a, 0xe1, 0xf8, 0xeb, 0x31, - 0x65, 0x7a, 0xdb, 0x4b, 0x0f, 0xb5, 0xbd, 0xe7, 0x38, 0x42, 0xa3, 0x16, 0x92, 0x2e, 0x37, 0x65, - 0x7e, 0x7a, 0xa3, 0xf0, 0x00, 0x65, 0x24, 0x4a, 0x19, 0x49, 0xa2, 0x68, 0x71, 0xb5, 0x56, 0x2f, - 0x97, 0x28, 0x1b, 0x09, 0x14, 0xa9, 0xad, 0x97, 0xab, 0xd9, 0xcf, 0x88, 0x2a, 0xdd, 0x23, 0x1f, - 0xaf, 0x4a, 0x70, 0x52, 0x6c, 0xd4, 0xf2, 0xb9, 0x16, 0x1b, 0x4d, 0xb3, 0x25, 0xbc, 0xdb, 0xf4, - 0xf2, 0xa5, 0xc3, 0x2a, 0x57, 0x38, 0x2a, 0x15, 0x49, 0x99, 0x23, 0x16, 0x1e, 0x1e, 0x12, 0x49, - 0xbe, 0x5a, 0xe2, 0xbc, 0x24, 0x51, 0x74, 0x3d, 0x5f, 0x7c, 0xb6, 0x5c, 0x72, 0xb9, 0x39, 0xde, - 0x0b, 0xa2, 0x82, 0xbe, 0x13, 0x32, 0x7d, 0x7b, 0xfb, 0x09, 0xa2, 0x1b, 0x7a, 0x8b, 0xed, 0x9c, - 0x47, 0x46, 0x6d, 0xb9, 0xba, 0x1c, 0x6d, 0xd8, 0xdb, 0x4f, 0x6c, 0x3a, 0x18, 0x5c, 0x28, 0x8c, - 0x95, 0x04, 0x8a, 0x54, 0x6b, 0xd5, 0xb2, 0x60, 0x83, 0xee, 0x32, 0xdf, 0x74, 0xd9, 0x48, 0xf7, - 0x7d, 0xa8, 0xe8, 0x3b, 0x41, 0x16, 0xe1, 0x21, 0x47, 0x24, 0x53, 0xa3, 0x76, 0x8d, 0x5d, 0x06, - 0x78, 0x90, 0xc9, 0x11, 0xc6, 0x7d, 0x1e, 0x0e, 0xe6, 0x50, 0x66, 0xb5, 0x5c, 0xbd, 0xd6, 0xb8, - 0xae, 0xae, 0x2b, 0x65, 0xba, 0xf9, 0x97, 0x7d, 0x9b, 0xa8, 0x3e, 0xd3, 0xf1, 0x23, 0xa2, 0xef, - 0x92, 0x20, 0xc9, 0x5c, 0x20, 0x16, 0x93, 0x62, 0x41, 0x85, 0xfb, 0x0e, 0xab, 0x9b, 0x7a, 0x40, - 0x14, 0xba, 0xf0, 0x24, 0xad, 0x36, 0x2c, 0x14, 0xe2, 0x24, 0x42, 0xab, 0xe5, 0x6b, 0xf9, 0xe2, - 0x4d, 0xb5, 0x50, 0xae, 0x37, 0x88, 0x25, 0xab, 0x29, 0x4c, 0x47, 0x01, 0x4d, 0xe5, 0x57, 0x57, - 0x6b, 0xcf, 0xb9, 0x82, 0x80, 0x17, 0x1d, 0x32, 0xe8, 0x67, 0x24, 0x98, 0xc3, 0xc6, 0xb6, 0xd9, - 0x6b, 0xd2, 0x0d, 0x6b, 0x32, 0xa2, 0x2d, 0xfb, 0xa0, 0xcd, 0x46, 0x74, 0xe0, 0xa2, 0xdc, 0xab, - 0x99, 0x14, 0xaf, 0x4a, 0xd1, 0xea, 0x04, 0xab, 0x50, 0x79, 0xbb, 0x14, 0x7a, 0x95, 0x30, 0x16, - 0xa2, 0xbc, 0x45, 0x5e, 0x95, 0xa6, 0x28, 0x87, 0xb1, 0x57, 0xa5, 0xf8, 0xab, 0x52, 0xe2, 0x83, - 0xd2, 0x0c, 0x4a, 0xd5, 0x1b, 0x37, 0x57, 0xcb, 0x2a, 0xe3, 0x96, 0x72, 0x98, 0x46, 0x09, 0x9a, - 0xb7, 0xfc, 0xc8, 0xf2, 0xe5, 0xec, 0x67, 0x29, 0x97, 0x9f, 0x8d, 0x29, 0x08, 0x0f, 0x91, 0x47, - 0x1f, 0x97, 0xe0, 0x94, 0xd8, 0x22, 0xb7, 0xe8, 0xb6, 0x99, 0xea, 0xd9, 0x60, 0x8b, 0x53, 0x96, - 0xcb, 0x87, 0xb1, 0xec, 0xee, 0xb2, 0xf1, 0xcc, 0x25, 0xbe, 0xe0, 0x1d, 0xdc, 0x84, 0x2b, 0x5c, - 0x61, 0x2d, 0xf9, 0xa0, 0x94, 0x41, 0x50, 0x7e, 0x7e, 0xbd, 0xa6, 0x34, 0xd4, 0xfc, 0xea, 0x2a, - 0xe5, 0xf7, 0x38, 0x92, 0x79, 0x4e, 0xa3, 0xb6, 0xae, 0xae, 0x96, 0x37, 0xcb, 0xab, 0x2e, 0xdb, - 0x27, 0x5b, 0xc1, 0x04, 0xe7, 0x3f, 0x20, 0xc1, 0xcc, 0x50, 0xf5, 0xb9, 0xb7, 0x4a, 0x70, 0x72, - 0x04, 0x0b, 0xe8, 0x5e, 0x38, 0x5b, 0x2a, 0x5f, 0xcd, 0x6f, 0xac, 0x36, 0xd4, 0xfa, 0xcd, 0xb5, - 0x42, 0x6d, 0x55, 0xdd, 0xac, 0xd4, 0x2b, 0x85, 0xca, 0x6a, 0xa5, 0xe1, 0x9d, 0xc0, 0xd2, 0xe0, - 0x61, 0x90, 0x2d, 0xd7, 0x06, 0xd9, 0x93, 0x43, 0x64, 0x51, 0xb8, 0x5a, 0x2b, 0xe6, 0x57, 0x29, - 0x50, 0x58, 0xac, 0x39, 0x8b, 0x0d, 0x39, 0x72, 0x23, 0x1e, 0x97, 0xf8, 0xdc, 0xf6, 0x2d, 0x30, - 0xed, 0x33, 0x7e, 0x64, 0x89, 0x44, 0x97, 0x56, 0x44, 0x9f, 0xeb, 0xe5, 0x6a, 0xd1, 0xbb, 0xa4, - 0x4b, 0x81, 0x63, 0xec, 0x64, 0x89, 0xa4, 0x84, 0x29, 0x94, 0x43, 0x64, 0x52, 0xe5, 0xea, 0xe8, - 0x6c, 0x4e, 0x87, 0x73, 0x8f, 0x43, 0x5c, 0x18, 0x33, 0xb2, 0x50, 0xa3, 0xeb, 0xad, 0x81, 0x65, - 0x62, 0x1c, 0xa8, 0x25, 0x93, 0x25, 0xc2, 0x20, 0xb3, 0x70, 0x72, 0x28, 0xb7, 0x09, 0xc7, 0x03, - 0x0d, 0x11, 0x3a, 0x07, 0x0b, 0x62, 0x43, 0x9c, 0x2d, 0x01, 0xd5, 0x72, 0xb5, 0x58, 0x2b, 0x91, - 0x45, 0xb3, 0x4b, 0x13, 0x80, 0x5b, 0x24, 0xc6, 0xa5, 0xb0, 0x56, 0x72, 0x28, 0x57, 0x81, 0xb4, - 0xdf, 0x9c, 0xa0, 0xd3, 0x70, 0x72, 0xa3, 0x71, 0xf5, 0x09, 0x75, 0x33, 0xbf, 0x5a, 0x29, 0xe5, - 0x07, 0x96, 0xc7, 0x00, 0xdc, 0xa6, 0xc8, 0x21, 0xc2, 0x28, 0xb1, 0x35, 0x72, 0x38, 0x17, 0x89, - 0x4b, 0xb2, 0x94, 0xab, 0x43, 0x66, 0xc0, 0x30, 0xa0, 0xbb, 0x20, 0xcb, 0xd7, 0xab, 0x41, 0x5c, - 0x51, 0x09, 0xf9, 0x4c, 0x05, 0x5b, 0xb9, 0x97, 0xca, 0xab, 0x95, 0xb5, 0x4a, 0x83, 0xf2, 0x77, - 0x1d, 0xc0, 0x1d, 0xf1, 0xc4, 0x83, 0xb9, 0x51, 0xaf, 0x55, 0xd5, 0xab, 0x64, 0xd9, 0xdf, 0xf0, - 0x90, 0x4a, 0x00, 0x1b, 0xe1, 0xb2, 0x44, 0x56, 0xa7, 0xc3, 0x66, 0x40, 0x0e, 0xe5, 0x9e, 0x03, - 0x34, 0x3c, 0x5a, 0xd1, 0x22, 0xdc, 0x55, 0xae, 0x5e, 0xad, 0x29, 0xc5, 0xb2, 0x5a, 0xcd, 0xaf, - 0x11, 0xfe, 0xd8, 0xd8, 0x74, 0x49, 0x4f, 0x83, 0x3b, 0x34, 0x45, 0x4c, 0xc2, 0x1d, 0xbd, 0x72, - 0xe8, 0xc2, 0x47, 0x25, 0xe2, 0x19, 0xbd, 0xa3, 0x3a, 0xff, 0x21, 0x09, 0xdd, 0x1d, 0x7f, 0x3d, - 0x86, 0x62, 0x4b, 0xdd, 0xad, 0xa5, 0x66, 0xb7, 0x3b, 0x9f, 0x21, 0x3f, 0x8a, 0xdd, 0xee, 0x55, - 0xe1, 0xef, 0x2d, 0xc4, 0x3f, 0x1b, 0x43, 0x71, 0x92, 0xfb, 0xa2, 0xb6, 0xa7, 0xcd, 0xcb, 0xe4, - 0xd7, 0x0d, 0x6d, 0x4f, 0x73, 0x00, 0x4e, 0xc7, 0x3f, 0x17, 0x43, 0x51, 0x92, 0xbd, 0x63, 0xce, - 0xa7, 0xc9, 0xff, 0x6b, 0xa6, 0x53, 0x78, 0x2e, 0xfe, 0xf9, 0x18, 0x02, 0x92, 0xd9, 0x3d, 0xb0, - 0x77, 0x4d, 0x63, 0x1e, 0x91, 0xdf, 0xeb, 0xf4, 0xb7, 0x07, 0xe8, 0x7b, 0xab, 0x1c, 0x88, 0x0c, - 0xfe, 0x4b, 0x1c, 0x88, 0xfe, 0x16, 0x40, 0x17, 0xa2, 0xf1, 0x77, 0x54, 0xe5, 0x77, 0x55, 0x2f, - 0x44, 0xe3, 0xef, 0xaa, 0xca, 0x3f, 0x58, 0xbd, 0x11, 0x8d, 0x7f, 0x26, 0x26, 0xbf, 0x1e, 0xcb, - 0xfd, 0x45, 0x18, 0x90, 0x6b, 0x2a, 0x9c, 0x28, 0xe0, 0xf3, 0x10, 0x77, 0xc2, 0x8a, 0xec, 0x9c, - 0xf7, 0x1b, 0x0e, 0xb1, 0x30, 0x02, 0xcd, 0x93, 0x35, 0x10, 0x66, 0x74, 0xa8, 0xa1, 0x3c, 0x64, - 0x3a, 0xba, 0xa1, 0x77, 0xfa, 0x1d, 0x55, 0xc4, 0xda, 0xc6, 0xc6, 0x90, 0x38, 0x02, 0x4f, 0x53, - 0x12, 0xda, 0xbe, 0x8f, 0xc4, 0xd4, 0x58, 0x12, 0x0c, 0x81, 0xa7, 0xe7, 0xbf, 0x24, 0x41, 0x76, - 0x14, 0xb3, 0x77, 0x14, 0x06, 0xac, 0xc2, 0x9c, 0xb9, 0x87, 0x7b, 0x3d, 0xbd, 0x45, 0x77, 0xf6, - 0x9c, 0xc5, 0x41, 0x64, 0xfc, 0xe2, 0x60, 0xd6, 0x83, 0xe8, 0x74, 0x6a, 0x81, 0xf8, 0x70, 0xfb, - 0xc4, 0x7d, 0x11, 0x94, 0xa6, 0xc6, 0x53, 0x9a, 0xa6, 0x28, 0x82, 0xc6, 0x0d, 0x32, 0x48, 0xc9, - 0x7a, 0x3c, 0x24, 0x87, 0xdd, 0x15, 0x48, 0xee, 0x7d, 0x61, 0x48, 0xfb, 0x8f, 0x2b, 0xa3, 0x12, - 0xc4, 0xdb, 0x26, 0x3f, 0xc7, 0xc7, 0x7a, 0xfb, 0xfc, 0x98, 0x13, 0xce, 0x4b, 0xab, 0x1c, 0x5e, - 0x71, 0x30, 0xe7, 0x7f, 0x4f, 0x82, 0xb8, 0xc8, 0x46, 0x27, 0x20, 0xd2, 0xd5, 0xec, 0x5d, 0x4a, - 0x6e, 0xaa, 0x10, 0x92, 0x25, 0x85, 0xa6, 0x49, 0xbe, 0xd5, 0xd5, 0xd8, 0x19, 0x46, 0x9e, 0x4f, - 0xd2, 0x64, 0x15, 0xd0, 0xc6, 0x5a, 0x8b, 0xee, 0x49, 0x9b, 0x9d, 0x0e, 0x36, 0x6c, 0x4b, 0xac, - 0x02, 0x78, 0x7e, 0x91, 0x67, 0xa3, 0x07, 0x61, 0xc6, 0xee, 0x69, 0x7a, 0xdb, 0x07, 0x1b, 0xa1, - 0xb0, 0xb2, 0x28, 0x70, 0x80, 0x57, 0xe0, 0x94, 0xa0, 0xdb, 0xc2, 0xb6, 0xd6, 0xdc, 0xc5, 0x2d, - 0x17, 0x29, 0x4a, 0x8f, 0xaf, 0x9c, 0xe4, 0x00, 0x25, 0x5e, 0x2e, 0x70, 0x2f, 0xf4, 0x7d, 0xd7, - 0x15, 0x76, 0x10, 0xe6, 0xd7, 0x15, 0x2e, 0x8d, 0xb8, 0xae, 0x30, 0x78, 0x5a, 0xdc, 0x73, 0x57, - 0xe1, 0x42, 0x00, 0x8a, 0x5f, 0xa2, 0xae, 0x3b, 0xff, 0xc9, 0x10, 0xcc, 0x88, 0xcd, 0xfb, 0x96, - 0xd3, 0x47, 0x6b, 0x00, 0x9a, 0x61, 0x98, 0xb6, 0xb7, 0x97, 0x86, 0xd7, 0x5b, 0x43, 0x78, 0x4b, - 0x79, 0x07, 0x49, 0xf1, 0x10, 0x98, 0xff, 0xbc, 0x04, 0xe0, 0x16, 0x8d, 0xec, 0xae, 0x05, 0x48, - 0xf2, 0x56, 0xd1, 0x2b, 0x1f, 0x2c, 0xc6, 0x0d, 0x2c, 0xeb, 0xaa, 0xde, 0xa6, 0xa7, 0x72, 0xb6, - 0xf0, 0x8e, 0x6e, 0xf0, 0x13, 0x89, 0x2c, 0x21, 0x4e, 0xe5, 0x44, 0xdc, 0x13, 0xbb, 0x0a, 0xc4, - 0x2d, 0xdc, 0xd1, 0x0c, 0x5b, 0x6f, 0xf2, 0xc1, 0x7a, 0xe5, 0x48, 0xcc, 0x2f, 0xd5, 0x39, 0xb6, - 0xe2, 0xd0, 0xc9, 0x9d, 0x87, 0xb8, 0xc8, 0x75, 0xa6, 0xa6, 0x63, 0x28, 0x06, 0xe1, 0x7a, 0x99, - 0x4c, 0xce, 0x74, 0x86, 0xa8, 0xe4, 0xeb, 0x72, 0xe8, 0xc2, 0x87, 0x42, 0x10, 0x13, 0xd6, 0x63, - 0x16, 0x32, 0xe5, 0x52, 0x65, 0x60, 0x96, 0x9b, 0x85, 0xb4, 0xc8, 0xe4, 0x56, 0xfe, 0x6d, 0x31, - 0x6f, 0xe6, 0xba, 0x52, 0x6b, 0xd4, 0x96, 0xe5, 0x3f, 0x1b, 0xce, 0x7c, 0x54, 0xfe, 0x4c, 0x0c, - 0xcd, 0x40, 0x4a, 0x64, 0x2e, 0x3f, 0xb2, 0xfc, 0xa8, 0xfc, 0xfa, 0x60, 0xd6, 0x65, 0xf9, 0xb3, - 0x34, 0xbc, 0x2a, 0xb2, 0x2e, 0xa9, 0x0d, 0x32, 0x55, 0xd5, 0xaa, 0xab, 0x37, 0x65, 0xc9, 0x5b, - 0xb0, 0xec, 0x29, 0x08, 0xa1, 0xbb, 0xe1, 0xa4, 0x28, 0x78, 0xf2, 0xc9, 0x27, 0x9f, 0x7c, 0xdc, - 0x53, 0x78, 0xfb, 0x9d, 0xd1, 0xc1, 0xe2, 0x27, 0x3c, 0xc5, 0xef, 0x1b, 0x2e, 0x7e, 0xd2, 0x53, - 0xfc, 0xe3, 0xef, 0x8c, 0xa2, 0x59, 0x48, 0x8a, 0xe2, 0xb5, 0xfc, 0xf3, 0xf2, 0x57, 0xbe, 0xf2, - 0x95, 0xaf, 0xc4, 0x2e, 0x6c, 0x80, 0x3c, 0xe4, 0x92, 0xcd, 0x81, 0xec, 0xf3, 0xc1, 0x88, 0x78, - 0x8f, 0x0d, 0xe4, 0x52, 0x37, 0x4b, 0x96, 0x88, 0x8b, 0xe3, 0xc9, 0x65, 0x2e, 0x99, 0x1c, 0x2a, - 0x7c, 0x27, 0xcc, 0x36, 0xcd, 0xce, 0x60, 0x8f, 0x17, 0xe4, 0x81, 0x23, 0x47, 0xd6, 0x75, 0xe9, - 0x85, 0x87, 0x39, 0xd0, 0x8e, 0xd9, 0xd6, 0x8c, 0x9d, 0x25, 0xb3, 0xb7, 0xe3, 0x5e, 0x59, 0x22, - 0xcb, 0x47, 0xcb, 0x73, 0x71, 0xa9, 0xbb, 0xf5, 0x25, 0x49, 0xfa, 0x60, 0x28, 0x7c, 0x6d, 0xbd, - 0xf0, 0xd3, 0xa1, 0xf9, 0x6b, 0x0c, 0x71, 0x5d, 0xe8, 0x93, 0x82, 0xb7, 0xdb, 0xb8, 0x49, 0x3a, - 0x1d, 0xfe, 0xfc, 0x41, 0x98, 0xdb, 0x31, 0x77, 0x4c, 0x4a, 0xe9, 0x22, 0xf9, 0xc5, 0xef, 0x3c, - 0x25, 0x9c, 0xdc, 0xf9, 0xb1, 0x17, 0xa4, 0x56, 0xaa, 0x30, 0xcb, 0x81, 0x55, 0xba, 0x9a, 0x65, - 0xa7, 0x22, 0xd0, 0xa1, 0x87, 0xf3, 0xb2, 0xbf, 0xf0, 0xa7, 0x34, 0x0c, 0xa9, 0xcc, 0x70, 0x54, - 0x52, 0xc6, 0x0e, 0x4e, 0xac, 0x28, 0x70, 0xdc, 0x47, 0x8f, 0x45, 0x12, 0x70, 0x6f, 0x0c, 0xc5, - 0xdf, 0xe2, 0x14, 0x67, 0x3d, 0x14, 0xeb, 0x1c, 0x75, 0xa5, 0x08, 0xd3, 0x47, 0xa1, 0xf5, 0xdb, - 0x9c, 0x56, 0x0a, 0x7b, 0x89, 0x5c, 0x83, 0x0c, 0x25, 0xd2, 0xec, 0x5b, 0xb6, 0xd9, 0xa1, 0x61, - 0x9a, 0xc3, 0xc9, 0xfc, 0xcb, 0x3f, 0x65, 0xc6, 0x3a, 0x4d, 0xd0, 0x8a, 0x0e, 0xd6, 0xca, 0x0a, - 0xd0, 0x55, 0x79, 0x0b, 0x37, 0xdb, 0x63, 0x28, 0xfc, 0x0e, 0x67, 0xc4, 0x81, 0x5f, 0xd9, 0x24, - 0x8b, 0xb4, 0x7e, 0x87, 0x46, 0x51, 0xbc, 0x9c, 0x8c, 0x3f, 0x86, 0x97, 0xfd, 0x83, 0xef, 0x66, - 0xf3, 0xc1, 0xac, 0x43, 0xc0, 0xc3, 0x93, 0xa7, 0x17, 0x77, 0xb0, 0x6d, 0xe3, 0x9e, 0xa5, 0x6a, - 0xed, 0x20, 0xf6, 0x3c, 0xe7, 0x98, 0xb2, 0x3f, 0xf6, 0x05, 0x7f, 0x2f, 0x5e, 0x63, 0x98, 0xf9, - 0x76, 0x7b, 0x65, 0x03, 0x4e, 0x06, 0x68, 0xc5, 0x04, 0x34, 0xdf, 0xcd, 0x69, 0xce, 0x0d, 0x69, - 0x06, 0x21, 0xbb, 0x0e, 0x22, 0xdf, 0xe9, 0xcb, 0x09, 0x68, 0xbe, 0x87, 0xd3, 0x44, 0x1c, 0x57, - 0x74, 0x29, 0xa1, 0x78, 0x03, 0x66, 0xf6, 0x70, 0x6f, 0xcb, 0xb4, 0xf8, 0xd9, 0xb1, 0x09, 0xc8, - 0xbd, 0x97, 0x93, 0xcb, 0x70, 0x44, 0x7a, 0x98, 0x8c, 0xd0, 0x7a, 0x12, 0xe2, 0xdb, 0x5a, 0x13, - 0x4f, 0x40, 0xe2, 0x36, 0x27, 0x11, 0x23, 0xf0, 0x04, 0x35, 0x0f, 0xa9, 0x1d, 0x93, 0x07, 0xd2, - 0xc6, 0xa3, 0xbf, 0x8f, 0xa3, 0x27, 0x05, 0x0e, 0x27, 0xd1, 0x35, 0xbb, 0xfd, 0xb6, 0x66, 0x4f, - 0xc2, 0xc1, 0x8f, 0x0b, 0x12, 0x02, 0x87, 0x93, 0x38, 0x82, 0x58, 0xdf, 0x2f, 0x48, 0x58, 0x1e, - 0x79, 0x3e, 0x03, 0x49, 0xd3, 0x68, 0x1f, 0x98, 0xc6, 0x24, 0x4c, 0x7c, 0x80, 0x53, 0x00, 0x8e, - 0x42, 0x08, 0x3c, 0x05, 0x89, 0x49, 0x3b, 0xe2, 0x27, 0xbf, 0x20, 0x86, 0x87, 0xe8, 0x81, 0x6b, - 0x90, 0x11, 0x06, 0x4a, 0x37, 0x8d, 0x09, 0x48, 0xfc, 0x14, 0x27, 0x91, 0xf6, 0xa0, 0xf1, 0x66, - 0xd8, 0xd8, 0xb2, 0x77, 0xf0, 0x24, 0x44, 0x3e, 0x24, 0x9a, 0xc1, 0x51, 0xb8, 0x28, 0xb7, 0xb0, - 0xd1, 0xdc, 0x9d, 0x8c, 0xc2, 0x87, 0x85, 0x28, 0x05, 0x0e, 0x21, 0x51, 0x84, 0xe9, 0x8e, 0xd6, - 0xb3, 0x76, 0xb5, 0xf6, 0x44, 0xdd, 0xf1, 0x11, 0x4e, 0x23, 0xe5, 0x20, 0x71, 0x89, 0xf4, 0x8d, - 0xa3, 0x90, 0xf9, 0x69, 0x21, 0x11, 0x0f, 0x1a, 0x1f, 0x7a, 0x96, 0x4d, 0xfd, 0xf8, 0xa3, 0x50, - 0xfb, 0x19, 0x31, 0xf4, 0x18, 0xee, 0x9a, 0x97, 0xe2, 0x53, 0x90, 0xb0, 0xf4, 0x97, 0x27, 0x22, - 0xf3, 0xb3, 0xa2, 0xa7, 0x29, 0x02, 0x41, 0xbe, 0x09, 0xa7, 0x02, 0xa7, 0x89, 0x09, 0x88, 0xfd, - 0x1c, 0x27, 0x76, 0x22, 0x60, 0xaa, 0xe0, 0x26, 0xe1, 0xa8, 0x24, 0x7f, 0x5e, 0x98, 0x04, 0x3c, - 0x40, 0x6b, 0x1d, 0xe6, 0xfa, 0x86, 0xa5, 0x6d, 0x1f, 0x4d, 0x6a, 0xff, 0xbf, 0x90, 0x1a, 0xc3, - 0xf5, 0x49, 0xad, 0x01, 0x27, 0x38, 0xc5, 0xa3, 0xf5, 0xeb, 0x47, 0x85, 0x61, 0x65, 0xd8, 0x1b, - 0xfe, 0xde, 0xfd, 0x66, 0x98, 0x77, 0xc4, 0x29, 0x9c, 0x6e, 0x4b, 0xed, 0x68, 0xdd, 0x09, 0x28, - 0xff, 0x02, 0xa7, 0x2c, 0x2c, 0xbe, 0xe3, 0xb5, 0x5b, 0x6b, 0x5a, 0x97, 0x10, 0x7f, 0x1e, 0xb2, - 0x82, 0x78, 0xdf, 0xe8, 0xe1, 0xa6, 0xb9, 0x63, 0xe8, 0x2f, 0xe3, 0xd6, 0x04, 0xa4, 0x7f, 0x71, - 0xa0, 0xab, 0x36, 0x3c, 0xe8, 0x84, 0x72, 0x05, 0x64, 0xc7, 0x57, 0x51, 0xf5, 0x0e, 0xdd, 0x6f, - 0x3c, 0x9c, 0xe2, 0x2f, 0x89, 0x9e, 0x72, 0xf0, 0x2a, 0x14, 0x6d, 0xa5, 0x0c, 0xec, 0x02, 0xcb, - 0xa4, 0x2a, 0xf9, 0x31, 0x4e, 0x68, 0xda, 0xc5, 0xe2, 0x86, 0xa3, 0x69, 0x76, 0xba, 0x5a, 0x6f, - 0x12, 0xfb, 0xf7, 0xcb, 0xc2, 0x70, 0x70, 0x14, 0x6e, 0x38, 0x88, 0x47, 0x47, 0x66, 0xfb, 0x09, - 0x28, 0xfc, 0x8a, 0x30, 0x1c, 0x02, 0x87, 0x93, 0x10, 0x0e, 0xc3, 0x04, 0x24, 0xfe, 0x91, 0x20, - 0x21, 0x70, 0x08, 0x89, 0x37, 0xb9, 0x13, 0x6d, 0x0f, 0xef, 0xe8, 0x96, 0xcd, 0xaf, 0x98, 0x1d, - 0x4e, 0xea, 0x57, 0xbf, 0xe0, 0x77, 0xc2, 0x14, 0x0f, 0x2a, 0xb1, 0x44, 0x3c, 0xf0, 0x4d, 0x37, - 0x76, 0xc6, 0x33, 0xf6, 0x71, 0x61, 0x89, 0x3c, 0x68, 0x84, 0x37, 0x8f, 0x87, 0x48, 0xc4, 0xde, - 0x24, 0x0b, 0xd4, 0x09, 0xc8, 0xfd, 0xda, 0x00, 0x73, 0x75, 0x81, 0x4b, 0x68, 0x7a, 0xfc, 0x9f, - 0xbe, 0x71, 0x0b, 0x1f, 0x4c, 0xa4, 0x9d, 0xff, 0x78, 0xc0, 0xff, 0xd9, 0x60, 0x98, 0xcc, 0x86, - 0x64, 0x06, 0xfc, 0x29, 0x34, 0xee, 0x0a, 0x6b, 0xf6, 0xad, 0x5f, 0xe4, 0xed, 0xf5, 0xbb, 0x53, - 0x2b, 0xab, 0x44, 0xc9, 0xfd, 0x4e, 0xcf, 0x78, 0x62, 0xdf, 0xfd, 0x45, 0x47, 0xcf, 0x7d, 0x3e, - 0xcf, 0xca, 0x55, 0x98, 0xf6, 0x39, 0x3c, 0xe3, 0x49, 0xbd, 0x8d, 0x93, 0x4a, 0x79, 0xfd, 0x9d, - 0x95, 0xc7, 0x20, 0x42, 0x9c, 0x97, 0xf1, 0xe8, 0xdf, 0xc3, 0xd1, 0x29, 0xf8, 0xca, 0xd3, 0x10, - 0x17, 0x4e, 0xcb, 0x78, 0xd4, 0xef, 0xe5, 0xa8, 0x0e, 0x0a, 0x41, 0x17, 0x0e, 0xcb, 0x78, 0xf4, - 0xff, 0x4b, 0xa0, 0x0b, 0x14, 0x82, 0x3e, 0xb9, 0x08, 0xff, 0xd9, 0x3b, 0x22, 0x7c, 0xd2, 0x11, - 0xb2, 0x7b, 0x0a, 0x62, 0xdc, 0x53, 0x19, 0x8f, 0xfd, 0x7d, 0xbc, 0x72, 0x81, 0xb1, 0xf2, 0x38, - 0x4c, 0x4d, 0x28, 0xf0, 0x77, 0x72, 0x54, 0x06, 0xbf, 0x52, 0x84, 0xa4, 0xc7, 0x3b, 0x19, 0x8f, - 0xfe, 0x03, 0x1c, 0xdd, 0x8b, 0x45, 0x58, 0xe7, 0xde, 0xc9, 0x78, 0x02, 0xff, 0xb7, 0x60, 0x9d, - 0x63, 0x10, 0xb1, 0x09, 0xc7, 0x64, 0x3c, 0xf6, 0xbb, 0x84, 0xd4, 0x05, 0xca, 0xca, 0x33, 0x90, - 0x70, 0x26, 0x9b, 0xf1, 0xf8, 0x3f, 0xc8, 0xf1, 0x5d, 0x1c, 0x22, 0x01, 0xcf, 0x64, 0x37, 0x9e, - 0xc4, 0xff, 0x23, 0x24, 0xe0, 0xc1, 0x22, 0xc3, 0x68, 0xd0, 0x81, 0x19, 0x4f, 0xe9, 0x87, 0xc4, - 0x30, 0x1a, 0xf0, 0x5f, 0x48, 0x6f, 0x52, 0x9b, 0x3f, 0x9e, 0xc4, 0x0f, 0x8b, 0xde, 0xa4, 0xf0, - 0x84, 0x8d, 0x41, 0x8f, 0x60, 0x3c, 0x8d, 0x1f, 0x15, 0x6c, 0x0c, 0x38, 0x04, 0x2b, 0xeb, 0x80, - 0x86, 0xbd, 0x81, 0xf1, 0xf4, 0x5e, 0xe5, 0xf4, 0x66, 0x86, 0x9c, 0x81, 0x95, 0xe7, 0xe0, 0x44, - 0xb0, 0x27, 0x30, 0x9e, 0xea, 0x8f, 0x7d, 0x71, 0x60, 0xed, 0xe6, 0x75, 0x04, 0x56, 0x1a, 0xee, - 0x94, 0xe2, 0xf5, 0x02, 0xc6, 0x93, 0x7d, 0xf7, 0x17, 0xfd, 0x86, 0xdb, 0xeb, 0x04, 0xac, 0xe4, - 0x01, 0xdc, 0x09, 0x78, 0x3c, 0xad, 0xf7, 0x72, 0x5a, 0x1e, 0x24, 0x32, 0x34, 0xf8, 0xfc, 0x3b, - 0x1e, 0xff, 0xb6, 0x18, 0x1a, 0x1c, 0x83, 0x0c, 0x0d, 0x31, 0xf5, 0x8e, 0xc7, 0x7e, 0x9f, 0x18, - 0x1a, 0x02, 0x85, 0x68, 0xb6, 0x67, 0x76, 0x1b, 0x4f, 0xe1, 0x03, 0x42, 0xb3, 0x3d, 0x58, 0x2b, - 0x55, 0x98, 0x19, 0x9a, 0x10, 0xc7, 0x93, 0xfa, 0x20, 0x27, 0x25, 0x0f, 0xce, 0x87, 0xde, 0xc9, - 0x8b, 0x4f, 0x86, 0xe3, 0xa9, 0xfd, 0xc4, 0xc0, 0xe4, 0xc5, 0xe7, 0xc2, 0x95, 0xa7, 0x20, 0x6e, - 0xf4, 0xdb, 0x6d, 0x32, 0x78, 0xd0, 0xe1, 0x57, 0x8c, 0xb3, 0x9f, 0xfd, 0x32, 0x97, 0x8e, 0x40, - 0x58, 0x79, 0x0c, 0xa6, 0x70, 0x67, 0x0b, 0xb7, 0xc6, 0x61, 0x7e, 0xee, 0xcb, 0xc2, 0x60, 0x12, - 0xe8, 0x95, 0x67, 0x00, 0x58, 0x68, 0x84, 0x9e, 0xb1, 0x1f, 0x83, 0xfb, 0xf9, 0x2f, 0xf3, 0x0b, - 0x79, 0x2e, 0x8a, 0x4b, 0x80, 0x5d, 0xef, 0x3b, 0x9c, 0xc0, 0x17, 0xfc, 0x04, 0x68, 0x8f, 0x3c, - 0x09, 0xb1, 0x17, 0x2d, 0xd3, 0xb0, 0xb5, 0x9d, 0x71, 0xd8, 0x7f, 0xce, 0xb1, 0x05, 0x3c, 0x11, - 0x58, 0xc7, 0xec, 0x61, 0x5b, 0xdb, 0xb1, 0xc6, 0xe1, 0xfe, 0x17, 0x8e, 0xeb, 0x20, 0x10, 0xe4, - 0xa6, 0x66, 0xd9, 0x93, 0xb4, 0xfb, 0x2f, 0x04, 0xb2, 0x40, 0x20, 0x4c, 0x93, 0xdf, 0xb7, 0xf0, - 0xc1, 0x38, 0xdc, 0xbf, 0x14, 0x4c, 0x73, 0xf8, 0x95, 0xa7, 0x21, 0x41, 0x7e, 0xb2, 0x8b, 0xba, - 0x63, 0x90, 0xff, 0x8a, 0x23, 0xbb, 0x18, 0xa4, 0x66, 0xcb, 0x6e, 0xd9, 0xfa, 0x78, 0x61, 0xff, - 0x35, 0xef, 0x69, 0x01, 0xbf, 0x92, 0x87, 0xa4, 0x65, 0xb7, 0x5a, 0x7d, 0xee, 0x9f, 0x8e, 0x41, - 0xff, 0xaf, 0x5f, 0x76, 0x42, 0x16, 0x0e, 0x0e, 0xe9, 0xed, 0x97, 0x6e, 0xd9, 0x5d, 0x93, 0x9e, - 0xca, 0x1a, 0x47, 0xe1, 0x8b, 0x9c, 0x82, 0x07, 0x65, 0xa5, 0x08, 0x29, 0xd2, 0x16, 0x71, 0xb8, - 0x65, 0x1c, 0x89, 0xbf, 0xe1, 0x02, 0xf0, 0x21, 0x15, 0xbe, 0xfd, 0x77, 0x3e, 0x75, 0x46, 0xfa, - 0xe4, 0xa7, 0xce, 0x48, 0xff, 0xf1, 0x53, 0x67, 0xa4, 0x77, 0x7d, 0xfa, 0xcc, 0xb1, 0x4f, 0x7e, - 0xfa, 0xcc, 0xb1, 0x3f, 0xfe, 0xf4, 0x99, 0x63, 0xc1, 0x51, 0x62, 0xb8, 0x66, 0x5e, 0x33, 0x59, - 0x7c, 0xf8, 0x85, 0x7b, 0x77, 0x74, 0x7b, 0xb7, 0xbf, 0xb5, 0xd4, 0x34, 0x3b, 0x17, 0x9b, 0xa6, - 0xd5, 0x31, 0xad, 0x8b, 0xfe, 0xb8, 0x2e, 0xfd, 0x05, 0x7f, 0x2b, 0x91, 0x35, 0xb3, 0x3f, 0x9c, - 0xab, 0x19, 0x07, 0xa3, 0x1e, 0xba, 0xba, 0x02, 0xe1, 0xbc, 0x71, 0x80, 0x4e, 0x31, 0x03, 0xa7, - 0xf6, 0x7b, 0x6d, 0x7e, 0xd5, 0x33, 0x46, 0xd2, 0x1b, 0xbd, 0xb6, 0xff, 0x98, 0x7f, 0x8a, 0x1f, - 0xf3, 0x2f, 0xfc, 0x80, 0x74, 0xb4, 0x96, 0xc4, 0xf3, 0xc6, 0x01, 0x6d, 0xc8, 0xba, 0xf4, 0xc2, - 0x43, 0x63, 0xe3, 0xdc, 0xb7, 0x0c, 0xf3, 0x25, 0x83, 0xb0, 0xdd, 0xdd, 0x12, 0x31, 0xee, 0x33, - 0x83, 0x31, 0xee, 0xe7, 0x70, 0xbb, 0xfd, 0x2c, 0x81, 0x6b, 0x10, 0x94, 0xad, 0x28, 0x7b, 0x98, - 0x00, 0x7e, 0x28, 0x04, 0x67, 0x86, 0xc2, 0xd9, 0x5c, 0x09, 0x46, 0x09, 0x61, 0x05, 0xe2, 0x25, - 0xa1, 0x5b, 0x59, 0x88, 0x59, 0xb8, 0x69, 0x1a, 0x2d, 0x76, 0x5e, 0x3b, 0xac, 0x88, 0x24, 0x11, - 0x84, 0xa1, 0x19, 0xa6, 0xc5, 0x2f, 0x4b, 0xb3, 0x44, 0xe1, 0x3d, 0x47, 0x14, 0xc4, 0xb4, 0xa8, - 0x49, 0x48, 0xe3, 0xd2, 0x84, 0xd2, 0x10, 0x8d, 0xf0, 0x45, 0xfe, 0x27, 0x95, 0xca, 0x8f, 0x86, - 0x60, 0x61, 0x50, 0x2a, 0x64, 0x64, 0x59, 0xb6, 0xd6, 0xe9, 0x8e, 0x12, 0xcb, 0x53, 0x90, 0x68, - 0x08, 0x98, 0x23, 0xcb, 0xe5, 0xf6, 0x11, 0xe5, 0x92, 0x76, 0xaa, 0x12, 0x82, 0x59, 0x9e, 0x50, - 0x30, 0x4e, 0x3b, 0xee, 0x48, 0x32, 0xef, 0x49, 0xc0, 0x29, 0x36, 0x9c, 0x54, 0x36, 0x94, 0x58, - 0x82, 0xcb, 0x24, 0xe5, 0x2d, 0x1a, 0xbf, 0x4f, 0x92, 0x7b, 0x16, 0x66, 0x2b, 0xc4, 0x5a, 0x90, - 0x55, 0x90, 0xbb, 0xc3, 0x13, 0x78, 0x9f, 0x7c, 0xd1, 0xe7, 0xf0, 0xf3, 0x0d, 0x46, 0x6f, 0x56, - 0xee, 0xad, 0x12, 0xc8, 0xf5, 0xa6, 0xd6, 0xd6, 0x7a, 0x5f, 0x2d, 0x29, 0xf4, 0x38, 0x00, 0x3b, - 0x0d, 0xe8, 0xbc, 0x47, 0x95, 0x5e, 0xce, 0x2e, 0x79, 0x1b, 0xb7, 0xc4, 0x6a, 0xa2, 0x77, 0xad, - 0x12, 0x14, 0x96, 0xfc, 0xbc, 0xf0, 0x3c, 0x80, 0x5b, 0x80, 0x4e, 0xc3, 0xc9, 0x7a, 0x31, 0xbf, - 0x9a, 0x57, 0xc4, 0x41, 0x9e, 0xfa, 0x7a, 0xb9, 0xc8, 0xde, 0x76, 0x39, 0x86, 0x4e, 0x00, 0xf2, - 0x16, 0x3a, 0xf7, 0x53, 0x8e, 0xc3, 0x8c, 0x37, 0x9f, 0x3d, 0xb4, 0x11, 0x5a, 0xb9, 0x0e, 0x19, - 0x76, 0x85, 0x5f, 0xd5, 0x5a, 0x2d, 0xdc, 0x52, 0x75, 0x03, 0x8d, 0xb9, 0x11, 0x9f, 0xfd, 0xdd, - 0x7f, 0x37, 0x45, 0x9b, 0x36, 0xcd, 0x10, 0xf3, 0x04, 0xaf, 0x62, 0x10, 0x9f, 0x53, 0xef, 0x74, - 0xdb, 0x98, 0xee, 0x5d, 0xab, 0xba, 0x90, 0xff, 0x78, 0x77, 0x86, 0xd0, 0x0b, 0x9f, 0x4f, 0x28, - 0xb3, 0x2e, 0xba, 0xd3, 0x7b, 0x2b, 0xcf, 0xba, 0xe7, 0x05, 0x1d, 0x06, 0xc7, 0x52, 0xfc, 0x04, - 0xe7, 0x50, 0x44, 0x33, 0x04, 0x8b, 0xab, 0x30, 0xa3, 0x35, 0x9b, 0xb8, 0xeb, 0xe3, 0x6f, 0xcc, - 0x0c, 0x22, 0x5a, 0x2b, 0x73, 0x4c, 0x97, 0xb5, 0xc7, 0x21, 0x6a, 0xd1, 0x4e, 0x19, 0x47, 0x42, - 0xb0, 0xc3, 0xc1, 0x57, 0xca, 0xe2, 0x7c, 0xac, 0xd3, 0xa2, 0x31, 0x04, 0xfe, 0x15, 0x27, 0x90, - 0xa2, 0x68, 0xa2, 0x35, 0x06, 0xcc, 0xb0, 0x97, 0x94, 0xb0, 0xa7, 0x35, 0x87, 0x47, 0x51, 0x7e, - 0xfd, 0x97, 0x1e, 0xa1, 0x1b, 0xf7, 0x67, 0xfd, 0x4a, 0x17, 0x30, 0x58, 0x14, 0x99, 0xd3, 0x76, - 0xdb, 0x8b, 0x21, 0x2d, 0xea, 0xe3, 0xed, 0x3e, 0xbc, 0xb2, 0x7f, 0xc2, 0x2b, 0x3b, 0x13, 0xa4, - 0xe1, 0x9e, 0x9a, 0xa6, 0x39, 0x55, 0x56, 0xb0, 0x52, 0x80, 0x69, 0xfa, 0xee, 0xa2, 0x23, 0x9c, - 0xc3, 0x6b, 0xf9, 0xa7, 0xbf, 0xf4, 0x08, 0x1b, 0x68, 0x04, 0x89, 0x8b, 0xa6, 0x50, 0x1e, 0x65, - 0xf5, 0x5e, 0x78, 0x70, 0x78, 0xfe, 0x66, 0xff, 0x1e, 0xa6, 0xd4, 0x9f, 0xf2, 0xb2, 0xea, 0x5a, - 0xa7, 0x08, 0xcc, 0x68, 0x1d, 0xdd, 0x30, 0x2f, 0xd2, 0xbf, 0xdc, 0x2a, 0x4d, 0xd1, 0xc4, 0x04, - 0xdb, 0xb6, 0x57, 0x98, 0xb1, 0x18, 0xaf, 0xb7, 0x7f, 0xf5, 0xfd, 0x3f, 0x35, 0xe5, 0x1a, 0x94, - 0x95, 0xb5, 0xe1, 0xb3, 0xb2, 0xe3, 0x69, 0xfc, 0xb5, 0xa0, 0x31, 0x78, 0xf4, 0x75, 0xe5, 0x0d, - 0x10, 0x77, 0xc8, 0x8c, 0xf3, 0xdd, 0x04, 0x11, 0x07, 0x83, 0x78, 0x6e, 0x4c, 0x69, 0x27, 0xf1, - 0xd3, 0xbf, 0x28, 0xf0, 0x99, 0x0d, 0xab, 0x92, 0xd6, 0x5c, 0x83, 0x74, 0xcb, 0x34, 0x6c, 0xd5, - 0xec, 0xe8, 0x36, 0xee, 0x74, 0xed, 0xb1, 0x9e, 0xef, 0xdf, 0x30, 0x22, 0x71, 0x65, 0x9a, 0xe0, - 0xd5, 0x04, 0x1a, 0xe1, 0x84, 0x3d, 0xc6, 0x34, 0x09, 0x27, 0xff, 0xcd, 0xe1, 0x84, 0xe2, 0x10, - 0x4e, 0xee, 0x48, 0x3b, 0xac, 0xd6, 0x2d, 0x3e, 0xdd, 0xd9, 0xfb, 0x4c, 0x0b, 0x1c, 0xed, 0xf8, - 0x17, 0x11, 0x38, 0xc3, 0x81, 0xb7, 0x34, 0x0b, 0x5f, 0xdc, 0xbb, 0xb4, 0x85, 0x6d, 0xed, 0xd2, - 0xc5, 0xa6, 0xa9, 0x0b, 0x5f, 0x67, 0x96, 0x4f, 0x67, 0xa4, 0x7c, 0x89, 0x97, 0xcf, 0x07, 0x1e, - 0x08, 0x98, 0x1f, 0x3d, 0x0d, 0xce, 0x0f, 0xeb, 0x60, 0xae, 0x0d, 0x91, 0xa2, 0xa9, 0xd3, 0x5b, - 0xa0, 0x2d, 0x6c, 0x98, 0x1d, 0x3e, 0x21, 0xb1, 0x04, 0xba, 0x0e, 0x51, 0xad, 0x63, 0xf6, 0x0d, - 0x9b, 0x4d, 0x46, 0x85, 0x47, 0x7e, 0xe7, 0xb5, 0x85, 0x63, 0x7f, 0xf2, 0xda, 0xc2, 0x71, 0x46, - 0xd6, 0x6a, 0xdd, 0x5a, 0xd2, 0xcd, 0x8b, 0x1d, 0xcd, 0xde, 0x25, 0x26, 0xe0, 0x0f, 0x3f, 0xf6, - 0x30, 0xf0, 0xfa, 0x2a, 0x86, 0xfd, 0xe1, 0xcf, 0x7c, 0xf4, 0x82, 0xa4, 0x70, 0xfc, 0x95, 0xc8, - 0xeb, 0xef, 0x5f, 0x90, 0x72, 0x5d, 0x88, 0x95, 0x70, 0xf3, 0x90, 0x0a, 0x2b, 0x03, 0x15, 0x5e, - 0xe2, 0x15, 0x9e, 0x1e, 0xae, 0x90, 0xdd, 0x2e, 0x2b, 0xe1, 0xa6, 0xa7, 0xda, 0x12, 0x6e, 0x0e, - 0xd4, 0x58, 0x81, 0x78, 0xc5, 0xb0, 0xd9, 0x73, 0x30, 0x4f, 0x43, 0x58, 0x37, 0xd8, 0x2b, 0x02, - 0x89, 0xc2, 0x83, 0x47, 0x68, 0x8a, 0x42, 0xf0, 0x72, 0x35, 0x88, 0x97, 0x70, 0x93, 0x91, 0x2a, - 0x42, 0xb8, 0x85, 0x9b, 0x9c, 0xd4, 0x1d, 0x30, 0x49, 0xb0, 0x0b, 0xa5, 0x3f, 0xfe, 0x4f, 0x67, - 0x8e, 0xbd, 0xe5, 0x53, 0x67, 0x8e, 0x8d, 0x54, 0xa7, 0xdc, 0x78, 0x75, 0x72, 0xb4, 0xe8, 0x23, - 0x54, 0x8b, 0x3a, 0xd8, 0xde, 0xda, 0xb6, 0x2f, 0x36, 0x7b, 0x07, 0x5d, 0xdb, 0xbc, 0xb8, 0x77, - 0x89, 0x58, 0x15, 0x73, 0x9b, 0x6b, 0x11, 0x12, 0xe5, 0x4b, 0xac, 0x7c, 0x69, 0x6f, 0x84, 0x12, - 0xe5, 0xb6, 0x61, 0x6a, 0x9d, 0x20, 0x92, 0x6e, 0xb2, 0x4d, 0x5b, 0x6b, 0x73, 0x6f, 0x91, 0x25, - 0x48, 0x2e, 0x7b, 0xc8, 0x2c, 0xc4, 0x72, 0x75, 0xf1, 0x86, 0x59, 0x1b, 0x6b, 0xdb, 0xec, 0x31, - 0x97, 0x30, 0x5d, 0x66, 0xc4, 0x49, 0x06, 0x7d, 0xb7, 0x65, 0x0e, 0xa6, 0xb4, 0x3e, 0x3b, 0xe8, - 0x16, 0x26, 0xeb, 0x0f, 0x9a, 0xc8, 0xad, 0x42, 0x8c, 0x9f, 0x7b, 0x40, 0x32, 0x84, 0x6f, 0xe1, - 0x03, 0x5a, 0x4f, 0x4a, 0x21, 0x3f, 0xd1, 0x45, 0x98, 0xa2, 0xdc, 0xf3, 0x3b, 0x74, 0xa7, 0x96, - 0x86, 0xd9, 0x5f, 0xa2, 0x5c, 0x2a, 0x0c, 0x2e, 0x77, 0x03, 0xe2, 0x25, 0x93, 0x28, 0xb7, 0x9f, - 0x5c, 0x82, 0x91, 0xa3, 0x4c, 0x77, 0xfb, 0xb6, 0xb8, 0xe8, 0x4c, 0x13, 0xe8, 0x04, 0x44, 0xd9, - 0xeb, 0x3e, 0xfc, 0xb4, 0x1e, 0x4f, 0xe5, 0x8a, 0x10, 0xa3, 0xb4, 0x6b, 0x5d, 0xe7, 0xd5, 0x3d, - 0xc9, 0xf3, 0xea, 0x1e, 0x27, 0x1f, 0x72, 0xb9, 0x45, 0x10, 0x69, 0x69, 0xb6, 0xc6, 0x1b, 0x4e, - 0x7f, 0xe7, 0x9e, 0x81, 0x38, 0x27, 0x62, 0xa1, 0x47, 0x21, 0x6c, 0x76, 0xc5, 0x61, 0xd4, 0xd3, - 0x23, 0xdb, 0x52, 0xeb, 0x16, 0x22, 0x44, 0x9f, 0x14, 0x02, 0x5d, 0x58, 0x1b, 0xa9, 0x1a, 0x8f, - 0xfa, 0x54, 0x43, 0x74, 0xbb, 0xf8, 0xa1, 0x75, 0xf5, 0x8b, 0xc3, 0xca, 0xe0, 0xe8, 0xca, 0xab, - 0x21, 0xb8, 0x3b, 0x40, 0x57, 0x6e, 0xe1, 0x03, 0xeb, 0xc8, 0xaa, 0xb2, 0x07, 0x89, 0x75, 0xfa, - 0x2e, 0xf0, 0xb3, 0xf8, 0x00, 0xcd, 0x43, 0x0c, 0xb7, 0x96, 0x1f, 0x7b, 0xec, 0xd2, 0x93, 0xac, - 0x23, 0xaf, 0x1f, 0x53, 0x44, 0x06, 0x3a, 0x03, 0x09, 0x0b, 0x37, 0xbb, 0xcb, 0x8f, 0x5d, 0xb9, - 0x75, 0x89, 0x09, 0xee, 0xfa, 0x31, 0xc5, 0xcd, 0x42, 0x77, 0x41, 0x7c, 0xab, 0x6d, 0x5d, 0x5a, - 0x7e, 0xf4, 0x89, 0x4b, 0x4c, 0x88, 0xd7, 0x8f, 0x29, 0x4e, 0xce, 0x4a, 0x9c, 0x0c, 0xe7, 0xd7, - 0x3f, 0xb0, 0x20, 0x15, 0xa6, 0x20, 0x6c, 0xf5, 0x3b, 0x5f, 0x2f, 0xd1, 0xfc, 0x5a, 0x0c, 0xce, - 0x3a, 0xc5, 0xcc, 0x60, 0xef, 0x2d, 0x5f, 0xe4, 0xb7, 0x5d, 0x9c, 0x97, 0xa6, 0x67, 0x1c, 0xf1, - 0x50, 0x90, 0xa5, 0xbd, 0xe5, 0xf9, 0xc3, 0x05, 0x3a, 0x42, 0x78, 0x1f, 0x93, 0x20, 0xb5, 0x29, - 0x68, 0xd7, 0xb1, 0x8d, 0xde, 0x00, 0xe0, 0xd4, 0x25, 0x94, 0xe5, 0xae, 0xa5, 0xa1, 0xda, 0x96, - 0x1c, 0x24, 0xc5, 0x03, 0x8f, 0x9e, 0x80, 0x78, 0xb7, 0x67, 0x76, 0x4d, 0x8b, 0xbf, 0x05, 0x36, - 0x0e, 0xd7, 0x81, 0x46, 0x0f, 0x01, 0xa2, 0x43, 0x5b, 0xdd, 0x33, 0x6d, 0xdd, 0xd8, 0x51, 0xbb, - 0xe6, 0x4b, 0xfc, 0x95, 0xc6, 0xb0, 0x22, 0xd3, 0x92, 0x4d, 0x5a, 0xb0, 0x4e, 0xf2, 0x73, 0xff, - 0x5d, 0x82, 0x84, 0x43, 0x85, 0xac, 0x29, 0xb5, 0x56, 0xab, 0x87, 0x2d, 0x8b, 0x8f, 0x5e, 0x91, - 0x44, 0x2b, 0x10, 0xeb, 0xf6, 0xb7, 0x54, 0x31, 0x52, 0x92, 0xcb, 0x77, 0x07, 0xea, 0xbd, 0x50, - 0x1f, 0x7a, 0x81, 0x38, 0xda, 0xed, 0x6f, 0x11, 0x55, 0x3a, 0x0b, 0xa9, 0x00, 0x5e, 0x92, 0x7b, - 0x2e, 0x1b, 0xf4, 0xad, 0x6a, 0xde, 0x00, 0xb5, 0xdb, 0xd3, 0xcd, 0x9e, 0x6e, 0x1f, 0xd0, 0x33, - 0x9b, 0x61, 0x45, 0x16, 0x05, 0xeb, 0x3c, 0x1f, 0xe5, 0x60, 0x9a, 0xf3, 0xa2, 0x6e, 0x1d, 0xd8, - 0xfc, 0x3c, 0x72, 0x4a, 0x49, 0xb2, 0xea, 0x0a, 0x24, 0x0b, 0x2d, 0x42, 0x4a, 0xc0, 0x38, 0x2f, - 0x86, 0x24, 0x14, 0x60, 0x20, 0x64, 0xe9, 0x94, 0x6b, 0x43, 0xa6, 0x4e, 0x97, 0x19, 0x6e, 0xf3, - 0xaf, 0xb8, 0x8d, 0x94, 0x26, 0x68, 0xe4, 0xc8, 0x06, 0x86, 0x86, 0x1a, 0x78, 0xe1, 0x8f, 0x24, - 0x48, 0x16, 0xda, 0x66, 0xf3, 0x56, 0xa5, 0x74, 0xb5, 0xad, 0xed, 0xa0, 0x4b, 0x70, 0xbc, 0xb0, - 0x5a, 0x2b, 0x3e, 0xab, 0x56, 0x4a, 0xea, 0xd5, 0xd5, 0xbc, 0xe7, 0x66, 0xc2, 0xfc, 0x89, 0x57, - 0x6e, 0x2f, 0x22, 0x0f, 0xec, 0x86, 0x41, 0x97, 0xd5, 0xe8, 0x22, 0xcc, 0xf9, 0x51, 0xf2, 0x85, - 0x7a, 0xb9, 0xda, 0x90, 0xa5, 0xf9, 0xe3, 0xaf, 0xdc, 0x5e, 0x9c, 0xf1, 0x60, 0xe4, 0xb7, 0x2c, - 0x6c, 0xd8, 0xc3, 0x08, 0xc5, 0xda, 0xda, 0x5a, 0xa5, 0x21, 0x87, 0x86, 0x10, 0x8a, 0x66, 0xa7, - 0xa3, 0xdb, 0xe8, 0x01, 0x98, 0xf1, 0x23, 0x54, 0x2b, 0xab, 0x72, 0x78, 0x1e, 0xbd, 0x72, 0x7b, - 0x31, 0xed, 0x81, 0xae, 0xea, 0xed, 0xf9, 0xf8, 0xdb, 0x7f, 0xe2, 0xcc, 0xb1, 0x0f, 0xff, 0x7f, - 0x67, 0xa4, 0xc2, 0xea, 0xc8, 0xd1, 0xbb, 0x3c, 0xf9, 0xe8, 0x15, 0xc3, 0xd3, 0x19, 0xbc, 0xef, - 0x0b, 0xc1, 0x82, 0x53, 0xba, 0x87, 0x7b, 0x96, 0x6e, 0x1a, 0x64, 0x1c, 0x32, 0xd5, 0x77, 0x5c, - 0x29, 0xde, 0x39, 0x1c, 0x60, 0xb4, 0x69, 0x7b, 0x1a, 0xc2, 0xf9, 0x6e, 0x17, 0xcd, 0xd3, 0x51, - 0x65, 0x9b, 0x4d, 0x93, 0x4d, 0x83, 0x11, 0xc5, 0x49, 0x93, 0x32, 0xcb, 0xdc, 0xb6, 0x5f, 0xd2, - 0x7a, 0xce, 0xcb, 0xa0, 0x22, 0x9d, 0x7b, 0x12, 0x12, 0x45, 0xd3, 0xb0, 0xb0, 0x61, 0xf5, 0x69, - 0x78, 0x65, 0x8b, 0x08, 0x83, 0x53, 0x60, 0x09, 0x32, 0x8d, 0x68, 0xdd, 0x2e, 0xc5, 0x8c, 0x28, - 0xe4, 0x27, 0x73, 0x5b, 0x0a, 0xd5, 0x91, 0xe2, 0xb9, 0x3c, 0xb9, 0x78, 0x5c, 0x01, 0x38, 0x02, - 0xfa, 0xd4, 0x19, 0x8f, 0xe1, 0x77, 0xac, 0x9b, 0x57, 0x3c, 0x01, 0x96, 0x6d, 0x8c, 0x5b, 0x31, - 0x3f, 0xde, 0x5e, 0xce, 0x8f, 0xeb, 0x95, 0x11, 0xbe, 0xec, 0xb8, 0x60, 0x57, 0xee, 0x49, 0x98, - 0x5e, 0xd7, 0x7a, 0x76, 0x1d, 0xdb, 0xd7, 0xb1, 0xd6, 0xc2, 0x3d, 0xbf, 0xbf, 0x32, 0x2d, 0xfc, - 0x15, 0x04, 0x11, 0xea, 0x94, 0xb0, 0xe9, 0x9a, 0xfe, 0xce, 0xe9, 0x10, 0xa1, 0xf7, 0x53, 0x1d, - 0x5f, 0x86, 0x63, 0x30, 0x5f, 0x86, 0x74, 0x17, 0xb5, 0x12, 0x3c, 0x5c, 0x4a, 0x13, 0xe8, 0x31, - 0xe1, 0x91, 0x84, 0xc7, 0x78, 0x24, 0x7c, 0x0e, 0xe7, 0x7e, 0x49, 0x07, 0x62, 0x7c, 0x20, 0x38, - 0x9c, 0x48, 0x2e, 0x27, 0xa8, 0x0a, 0x99, 0xae, 0xd6, 0xb3, 0xe9, 0x73, 0x57, 0xbb, 0xb4, 0x19, - 0xdc, 0x5a, 0x2e, 0x06, 0x18, 0x6f, 0x5f, 0x73, 0x79, 0x35, 0xd3, 0x5d, 0x6f, 0x66, 0xee, 0xf5, - 0x08, 0x44, 0xb9, 0x38, 0xde, 0x08, 0x31, 0x2e, 0x70, 0x6e, 0x9b, 0xce, 0x2c, 0x05, 0xa8, 0xff, - 0x92, 0xa3, 0xa6, 0x9c, 0xa0, 0x40, 0x42, 0xf7, 0x41, 0xbc, 0xb9, 0xab, 0xe9, 0x86, 0xaa, 0xb7, - 0xb8, 0x47, 0x9e, 0xfc, 0xd4, 0x6b, 0x0b, 0xb1, 0x22, 0xc9, 0xab, 0x94, 0x94, 0x18, 0x2d, 0xac, - 0xb4, 0x88, 0x17, 0xb5, 0x8b, 0xf5, 0x9d, 0x5d, 0x9b, 0x9b, 0x69, 0x9e, 0x42, 0x4f, 0x40, 0x84, - 0x74, 0x19, 0xbf, 0x45, 0x32, 0x3f, 0xb4, 0xd4, 0x72, 0xa2, 0x85, 0x85, 0x38, 0xa9, 0xf8, 0x5d, - 0xff, 0x61, 0x41, 0x52, 0x28, 0x06, 0x2a, 0xc1, 0x74, 0x5b, 0xb3, 0x6c, 0x95, 0x8e, 0x13, 0x52, - 0xfd, 0x14, 0x27, 0x31, 0x2c, 0x12, 0x2e, 0x5b, 0xce, 0x7b, 0x92, 0xa0, 0xb1, 0xac, 0x16, 0x3a, - 0x0f, 0x32, 0xa5, 0xd2, 0xa4, 0xa6, 0x8a, 0x79, 0xa6, 0x51, 0x2a, 0xfa, 0x34, 0xc9, 0x67, 0x16, - 0x8c, 0xfa, 0xa7, 0xa7, 0x21, 0x41, 0x9f, 0x75, 0xa3, 0x20, 0xec, 0x62, 0x74, 0x9c, 0x64, 0xd0, - 0xc2, 0xfb, 0x21, 0xe3, 0xce, 0xb2, 0x0c, 0x24, 0xce, 0xa8, 0xb8, 0xd9, 0x14, 0xf0, 0x11, 0x98, - 0x33, 0xf0, 0xbe, 0xad, 0x0e, 0x42, 0x27, 0x28, 0x34, 0x22, 0x65, 0x9b, 0x7e, 0x8c, 0x7b, 0x21, - 0xdd, 0x14, 0xd2, 0x67, 0xb0, 0x40, 0x61, 0xa7, 0x9d, 0x5c, 0x0a, 0x76, 0x0a, 0xe2, 0x5a, 0xb7, - 0xcb, 0x00, 0x92, 0x7c, 0x92, 0xed, 0x76, 0x69, 0xd1, 0x05, 0x98, 0xa1, 0x6d, 0xec, 0x61, 0xab, - 0xdf, 0xb6, 0x39, 0x91, 0x14, 0x85, 0xc9, 0x90, 0x02, 0x85, 0xe5, 0x53, 0xd8, 0x73, 0x30, 0x8d, - 0xf7, 0xf4, 0x16, 0x36, 0x9a, 0x98, 0xc1, 0x4d, 0x53, 0xb8, 0x94, 0xc8, 0xa4, 0x40, 0x0f, 0x80, - 0x33, 0x7b, 0xaa, 0x62, 0x62, 0x4f, 0x33, 0x7a, 0x22, 0x3f, 0xcf, 0xb2, 0x73, 0x59, 0x88, 0x94, - 0x34, 0x5b, 0x23, 0x76, 0xcc, 0xde, 0x67, 0xfe, 0x4a, 0x4a, 0x21, 0x3f, 0x73, 0xef, 0x8f, 0x40, - 0x64, 0xd3, 0xb4, 0x31, 0xba, 0xec, 0xf1, 0x9e, 0xd3, 0x81, 0x2a, 0x5d, 0xd7, 0x77, 0x0c, 0xdc, - 0x5a, 0xb3, 0x76, 0x3c, 0xcf, 0x31, 0xbb, 0x0a, 0x15, 0xf2, 0x29, 0xd4, 0x1c, 0x4c, 0xf5, 0xcc, - 0xbe, 0xd1, 0x12, 0xd7, 0x35, 0x68, 0x02, 0x5d, 0x25, 0xae, 0x23, 0xd7, 0x93, 0xc8, 0x58, 0x3d, - 0xc9, 0x10, 0x3d, 0x21, 0x6a, 0xcc, 0x33, 0x94, 0xd8, 0x16, 0x57, 0x97, 0x02, 0x24, 0x1c, 0x0b, - 0xe3, 0x28, 0xdc, 0x24, 0x3a, 0xeb, 0xa2, 0x11, 0xa7, 0xc4, 0xe9, 0x7d, 0x47, 0x7c, 0x4c, 0xe7, - 0x64, 0xa7, 0x80, 0xcb, 0xcf, 0xa7, 0x58, 0xfc, 0x6d, 0xe8, 0x18, 0x6d, 0x98, 0xab, 0x58, 0xec, - 0x7d, 0xe8, 0xbb, 0x20, 0x61, 0xe9, 0x3b, 0x06, 0xbd, 0x02, 0xc5, 0x75, 0xcf, 0xcd, 0x20, 0xa5, - 0xee, 0x05, 0x7b, 0xa6, 0x6b, 0x9e, 0xcf, 0x18, 0x5c, 0x84, 0x59, 0xf7, 0x03, 0x02, 0x2e, 0x15, - 0xa6, 0x67, 0xc8, 0x29, 0xaa, 0x3b, 0xe4, 0xce, 0x83, 0x6c, 0x98, 0x86, 0xda, 0xeb, 0x7a, 0xae, - 0xed, 0x33, 0xa5, 0x4b, 0x1b, 0xa6, 0xa1, 0x74, 0x9d, 0xb3, 0x02, 0xe8, 0x29, 0x98, 0x1f, 0x84, - 0xf4, 0xd4, 0xc0, 0x94, 0xf0, 0xa4, 0x1f, 0xc7, 0xa9, 0x26, 0xf7, 0xcf, 0x25, 0x88, 0x72, 0x1f, - 0xc2, 0xed, 0x6e, 0x29, 0xb8, 0xbb, 0x43, 0xa3, 0xba, 0x3b, 0xfc, 0x55, 0x75, 0x37, 0x38, 0xcc, - 0x5a, 0xfc, 0xa5, 0xe1, 0x20, 0x87, 0x99, 0x31, 0x59, 0xd7, 0x77, 0xb8, 0x89, 0xf1, 0x60, 0xe5, - 0x5e, 0x93, 0xc8, 0x2c, 0xcf, 0xcb, 0x51, 0x01, 0xa6, 0x05, 0x67, 0xea, 0x76, 0x5b, 0xdb, 0xe1, - 0x5a, 0x7f, 0x66, 0x34, 0x7b, 0xc4, 0x35, 0x52, 0x92, 0x9c, 0x23, 0xea, 0xe4, 0x05, 0x2a, 0x50, - 0x68, 0x84, 0x02, 0xf9, 0x34, 0x36, 0x7c, 0x67, 0x1a, 0xeb, 0xd3, 0xad, 0xc8, 0x80, 0x6e, 0xe5, - 0x3e, 0x2d, 0xf1, 0xaf, 0x1c, 0xb4, 0xd8, 0xcd, 0xb2, 0xff, 0x65, 0xbd, 0xf5, 0xcd, 0x5c, 0x8d, - 0x5b, 0xb8, 0xa5, 0x0e, 0x75, 0xdb, 0x3d, 0x01, 0x24, 0xfd, 0x5c, 0xbb, 0xdd, 0x87, 0x04, 0x99, - 0xba, 0xdb, 0x8d, 0xef, 0x0d, 0xc3, 0xcc, 0x10, 0xfc, 0xdf, 0xc3, 0xee, 0xf4, 0x9b, 0x8a, 0xa9, - 0x09, 0x4d, 0x45, 0xf4, 0x48, 0xa6, 0x22, 0x76, 0x07, 0xa6, 0x22, 0x7e, 0xb8, 0xa9, 0xf8, 0xe5, - 0x10, 0x8d, 0xa4, 0x74, 0x4d, 0x4b, 0x6b, 0xff, 0x9d, 0xcc, 0x28, 0xa7, 0x21, 0xd1, 0x35, 0xdb, - 0x2a, 0x2b, 0x61, 0xd7, 0x00, 0xe3, 0x5d, 0xb3, 0xad, 0x0c, 0x69, 0xf4, 0xd4, 0xd7, 0x6a, 0xba, - 0x89, 0x7e, 0x0d, 0x7a, 0x3b, 0x36, 0x38, 0x78, 0x6d, 0x48, 0x31, 0x59, 0x70, 0x7f, 0xf0, 0x12, - 0x11, 0x02, 0xf5, 0x30, 0xa5, 0x41, 0x0f, 0xd6, 0xe1, 0x9b, 0x81, 0x2a, 0x1c, 0x90, 0xa0, 0x30, - 0xef, 0x69, 0x38, 0x0c, 0x37, 0x60, 0x20, 0x15, 0x0e, 0x98, 0x7b, 0x55, 0x02, 0x58, 0x25, 0xc2, - 0xa5, 0x2d, 0x26, 0xae, 0x9c, 0x45, 0x99, 0x50, 0x7d, 0x75, 0x2f, 0x8c, 0xec, 0x38, 0xce, 0x41, - 0xca, 0xf2, 0xb2, 0x5e, 0x82, 0x69, 0x77, 0x1c, 0x59, 0x58, 0xb0, 0xb3, 0x70, 0x58, 0x80, 0xa3, - 0x8e, 0x6d, 0x25, 0xb5, 0xe7, 0x49, 0xe5, 0x7e, 0x53, 0x82, 0x04, 0xe5, 0x6a, 0x0d, 0xdb, 0x9a, - 0xaf, 0x23, 0xa5, 0xaf, 0xa2, 0x23, 0xef, 0x06, 0x60, 0x74, 0x2c, 0xfd, 0x65, 0xcc, 0xf5, 0x2b, - 0x41, 0x73, 0xea, 0xfa, 0xcb, 0x18, 0x3d, 0xee, 0x48, 0x3d, 0x3c, 0x46, 0xea, 0xdc, 0x42, 0x09, - 0xd9, 0x9f, 0x84, 0x18, 0x7d, 0x74, 0x66, 0xdf, 0xe2, 0x61, 0x8d, 0xa8, 0xd1, 0xef, 0x34, 0xf6, - 0xad, 0xdc, 0x2d, 0x88, 0x35, 0xf6, 0x59, 0x84, 0xf6, 0x34, 0x24, 0x7a, 0xa6, 0xc9, 0x7d, 0x5b, - 0xb6, 0xac, 0x88, 0x93, 0x0c, 0xea, 0xca, 0x89, 0xa0, 0x64, 0xc8, 0x0d, 0x4a, 0xba, 0x61, 0xd5, - 0xf0, 0x64, 0x61, 0xd5, 0x0b, 0x7f, 0x24, 0xc1, 0xb4, 0x6f, 0x44, 0xa1, 0x87, 0xe0, 0x64, 0xbd, - 0x72, 0xad, 0x5a, 0x2e, 0xa9, 0x6b, 0xf5, 0x6b, 0x03, 0xaf, 0x41, 0xcc, 0x67, 0x5e, 0xb9, 0xbd, - 0x98, 0xe4, 0xe1, 0x87, 0x51, 0xd0, 0xeb, 0x4a, 0x79, 0xb3, 0xd6, 0x28, 0xcb, 0x12, 0x83, 0x5e, - 0xef, 0xe1, 0x3d, 0xd3, 0x66, 0x1f, 0xee, 0x7a, 0x04, 0x4e, 0x05, 0x40, 0x3b, 0x41, 0x88, 0x99, - 0x57, 0x6e, 0x2f, 0x4e, 0xaf, 0xf7, 0x30, 0x53, 0x35, 0x8a, 0xb1, 0x04, 0xd9, 0x61, 0x8c, 0xda, - 0x7a, 0xad, 0x9e, 0x5f, 0x95, 0x17, 0xe7, 0xe5, 0x57, 0x6e, 0x2f, 0xa6, 0x84, 0xed, 0x20, 0xf0, - 0x5f, 0xff, 0x28, 0x44, 0x64, 0xf8, 0xec, 0xca, 0x4b, 0x3d, 0xad, 0xdb, 0xc5, 0x3d, 0x6b, 0xd4, - 0x21, 0x8d, 0x73, 0x90, 0x2c, 0x79, 0x5e, 0x6a, 0x72, 0x4e, 0xeb, 0x48, 0xf4, 0x15, 0x27, 0x96, - 0xc8, 0xe5, 0x00, 0xae, 0xb6, 0x4d, 0xcd, 0x0e, 0x80, 0x09, 0x79, 0x60, 0x2a, 0x86, 0x7d, 0xe5, - 0x72, 0x00, 0x4c, 0x58, 0xc0, 0x9c, 0x83, 0xe4, 0xc6, 0x28, 0xa0, 0x88, 0x9f, 0xd0, 0xa3, 0xcb, - 0x01, 0x30, 0x53, 0x03, 0x84, 0x02, 0x81, 0xa6, 0x05, 0xd0, 0x59, 0x48, 0x14, 0x4c, 0xb3, 0x1d, - 0x00, 0x12, 0xf7, 0xd0, 0xa9, 0x7b, 0x1e, 0xa1, 0xf2, 0x01, 0x25, 0x3c, 0x0c, 0xd1, 0x28, 0x5d, - 0x00, 0x8c, 0x73, 0x9e, 0xe9, 0xc8, 0xc7, 0x78, 0x9e, 0xe3, 0xfd, 0x72, 0xd4, 0x63, 0x3c, 0xa2, - 0x3f, 0xef, 0xec, 0x18, 0x4f, 0xca, 0xb3, 0x55, 0xe3, 0xc4, 0x4c, 0xba, 0x5a, 0x4f, 0xeb, 0x1c, - 0x12, 0x86, 0x09, 0x0e, 0x91, 0x8c, 0x39, 0x25, 0x35, 0x3f, 0x46, 0x13, 0x73, 0x1f, 0x0f, 0x43, - 0xc6, 0x59, 0xfe, 0xaf, 0x53, 0x16, 0xd0, 0x65, 0x6f, 0xac, 0x2a, 0x39, 0xda, 0xdd, 0x61, 0xe0, - 0x22, 0x96, 0xf5, 0x34, 0xc4, 0xc5, 0x32, 0x92, 0xdb, 0xe6, 0xb3, 0x41, 0x4e, 0x19, 0x07, 0xe1, - 0xb8, 0x0e, 0x0a, 0xfa, 0x26, 0x48, 0x38, 0x96, 0x9a, 0x9b, 0xa6, 0xdc, 0x61, 0xb6, 0x9d, 0x13, - 0x70, 0x91, 0xd0, 0x8a, 0x1b, 0xec, 0x88, 0x8c, 0x8c, 0x9f, 0x6c, 0x32, 0x08, 0x8e, 0xed, 0x04, - 0x3a, 0x1e, 0x83, 0x88, 0xb6, 0xd5, 0xd4, 0xf9, 0x74, 0x7e, 0x77, 0x00, 0x62, 0xbe, 0x50, 0xac, - 0x30, 0x2c, 0x1a, 0xa6, 0xa6, 0xe0, 0x84, 0x69, 0xeb, 0xc0, 0x68, 0xee, 0xf6, 0x4c, 0xe3, 0x80, - 0xcf, 0xe0, 0x41, 0x4c, 0xd7, 0x05, 0x8c, 0x60, 0xda, 0x41, 0x22, 0x4c, 0xf3, 0x97, 0x2d, 0xf8, - 0x53, 0x98, 0x41, 0x4c, 0xf3, 0x17, 0x31, 0x04, 0xd3, 0x1c, 0x21, 0x57, 0xe1, 0xd1, 0x61, 0xde, - 0x6d, 0xf4, 0x19, 0xf2, 0x7d, 0x1e, 0xdd, 0x66, 0x03, 0x3e, 0xde, 0xd1, 0xf6, 0x59, 0x68, 0xfb, - 0x24, 0xc4, 0x48, 0xe1, 0x0e, 0x7f, 0x0f, 0x34, 0xac, 0x44, 0x3b, 0xda, 0xfe, 0x35, 0xcd, 0xba, - 0x11, 0x89, 0x87, 0xe5, 0x48, 0xee, 0x23, 0xc4, 0xcb, 0xf7, 0x75, 0x0d, 0x7a, 0x10, 0x10, 0xc1, - 0xd0, 0x76, 0xb0, 0x4a, 0x26, 0x21, 0xda, 0xc9, 0x82, 0x6e, 0xa6, 0xa3, 0xed, 0xe7, 0x77, 0x70, - 0xb5, 0xdf, 0xa1, 0x0c, 0x58, 0x68, 0x0d, 0x64, 0x01, 0x2c, 0x14, 0xd0, 0xf1, 0x17, 0x86, 0xbe, - 0xe5, 0xc6, 0x01, 0x98, 0x43, 0xf3, 0x2a, 0x71, 0x68, 0xd2, 0x8c, 0x9e, 0x73, 0x7c, 0xcf, 0xd7, - 0x94, 0xb0, 0xbf, 0x29, 0xb9, 0x67, 0x20, 0x33, 0xa0, 0x05, 0xde, 0xe0, 0x3e, 0x15, 0x1a, 0x8d, - 0x44, 0x24, 0x44, 0x70, 0x9f, 0x8e, 0xbe, 0x95, 0xf8, 0xaf, 0xbe, 0x7f, 0x41, 0xa2, 0x9b, 0xc2, - 0x0f, 0xc2, 0xb4, 0x4f, 0x0d, 0x44, 0x18, 0x56, 0x72, 0xc3, 0xb0, 0x2e, 0xf0, 0x0b, 0x90, 0x22, - 0x53, 0x29, 0x6e, 0x71, 0xd8, 0xfb, 0x20, 0xc3, 0xe6, 0xfa, 0x41, 0x59, 0xb3, 0xa5, 0xc2, 0x9a, - 0x10, 0x78, 0x4e, 0xac, 0x1d, 0xfc, 0x62, 0x4f, 0x0a, 0xa8, 0x6b, 0x9a, 0x95, 0xfb, 0x11, 0x09, - 0x32, 0x03, 0xba, 0x81, 0x9e, 0x86, 0x44, 0xb7, 0x87, 0x9b, 0xba, 0x27, 0x68, 0x77, 0x88, 0x08, - 0x23, 0x54, 0x7c, 0x2e, 0x06, 0x71, 0x93, 0xc4, 0x99, 0x8f, 0x16, 0x6e, 0x6b, 0x07, 0xe3, 0x7b, - 0x81, 0x91, 0x10, 0x9f, 0xdc, 0x2c, 0x11, 0xa4, 0xdc, 0x6f, 0x4b, 0x30, 0xed, 0x53, 0x3a, 0xd4, - 0x82, 0xbb, 0xc9, 0x14, 0xed, 0xbd, 0x67, 0xc0, 0x3f, 0x02, 0xe1, 0x59, 0x0a, 0x06, 0x3d, 0xef, - 0xe2, 0x4e, 0x34, 0xd4, 0xb9, 0x91, 0x94, 0x79, 0x42, 0xc7, 0xbd, 0x6e, 0xc0, 0xbe, 0x16, 0x71, - 0x9d, 0x39, 0xe3, 0x35, 0x40, 0xdd, 0x2d, 0x7b, 0x90, 0x74, 0x68, 0x52, 0xd2, 0x32, 0x41, 0xf6, - 0x12, 0xcc, 0xd5, 0x01, 0xdc, 0x81, 0x8b, 0xf2, 0x93, 0x34, 0x22, 0x7c, 0x18, 0x87, 0x2b, 0xa1, - 0xac, 0x54, 0x58, 0xff, 0xf0, 0xa7, 0xce, 0x48, 0x5f, 0x17, 0xd7, 0xe1, 0x5d, 0xcf, 0xc3, 0x5d, - 0x2e, 0xe8, 0x56, 0x53, 0x1f, 0x0c, 0xcf, 0xcb, 0x8e, 0x71, 0x20, 0xa5, 0x93, 0x44, 0xe7, 0xc7, - 0xcc, 0x34, 0x93, 0x44, 0xef, 0xef, 0x2c, 0x38, 0x3f, 0x6e, 0x6a, 0xca, 0xfd, 0x7e, 0x02, 0x62, - 0x0a, 0x7e, 0x73, 0x1f, 0x5b, 0x36, 0x7a, 0x14, 0x22, 0xb8, 0xb9, 0x6b, 0x0e, 0xef, 0xa0, 0xf1, - 0x66, 0x2e, 0x95, 0x9b, 0xbb, 0x26, 0x07, 0xbe, 0x7e, 0x4c, 0xa1, 0xc0, 0xe8, 0x0a, 0x4c, 0x6d, - 0xb7, 0xfb, 0x3c, 0xae, 0xef, 0x9b, 0xa7, 0x04, 0xd6, 0x55, 0x52, 0xec, 0xa2, 0x31, 0x70, 0x52, - 0x19, 0xfd, 0x18, 0x6a, 0x78, 0x54, 0x65, 0xf4, 0x1b, 0xa8, 0x6e, 0x65, 0x04, 0x18, 0x15, 0x01, - 0x74, 0x43, 0xb7, 0x55, 0x1a, 0xf2, 0xe6, 0xf3, 0x44, 0x2e, 0x08, 0x55, 0xb7, 0x69, 0x78, 0xdc, - 0xc5, 0x4f, 0xe8, 0x22, 0x8f, 0x70, 0xfc, 0xe6, 0x3e, 0xee, 0x89, 0xb9, 0x22, 0x80, 0xe3, 0x37, - 0x91, 0x62, 0x0f, 0xc7, 0x14, 0x9c, 0xcc, 0xad, 0xec, 0x4b, 0x37, 0xf6, 0x3e, 0xff, 0x04, 0xdc, - 0xe2, 0x30, 0x2a, 0xfd, 0xd0, 0x4d, 0x63, 0xdf, 0x45, 0x8e, 0x35, 0x59, 0x0e, 0x7a, 0xd2, 0x59, - 0xc3, 0x25, 0x07, 0x17, 0x4d, 0x0e, 0x32, 0x5b, 0xc2, 0x39, 0xb8, 0x1c, 0x01, 0xd5, 0x20, 0xdd, - 0xd6, 0x2d, 0x5b, 0xb5, 0x0c, 0xad, 0x6b, 0xed, 0x9a, 0xb6, 0xf8, 0xd8, 0xc4, 0x7d, 0xc3, 0x24, - 0x56, 0x75, 0xcb, 0xae, 0x0b, 0x30, 0x97, 0xd2, 0x74, 0xdb, 0x9b, 0x4f, 0x08, 0x9a, 0xdb, 0xdb, - 0xb8, 0xe7, 0x50, 0xa4, 0x31, 0xe8, 0x40, 0x82, 0x35, 0x02, 0x27, 0x30, 0x3d, 0x04, 0x4d, 0x6f, - 0x3e, 0xfa, 0x16, 0x98, 0x6d, 0x9b, 0x5a, 0xcb, 0xa1, 0xa7, 0x36, 0x77, 0xfb, 0xc6, 0x2d, 0x1a, - 0xb1, 0x4e, 0x2e, 0x5f, 0x08, 0x60, 0xd3, 0xd4, 0x5a, 0x02, 0xb9, 0x48, 0x40, 0x5d, 0xca, 0x33, - 0xed, 0xc1, 0x32, 0xa4, 0xc2, 0x9c, 0xd6, 0xed, 0xb6, 0x0f, 0x06, 0xc9, 0x67, 0x28, 0xf9, 0x07, - 0x87, 0xc9, 0xe7, 0x09, 0xf4, 0x08, 0xfa, 0x48, 0x1b, 0x2a, 0x44, 0x1b, 0x20, 0x77, 0x7b, 0x98, - 0x5e, 0x42, 0xee, 0xf2, 0x55, 0x0a, 0xfd, 0x9a, 0x43, 0x72, 0xf9, 0xfc, 0x30, 0xf1, 0x75, 0x06, - 0x29, 0x96, 0x33, 0x2e, 0xe5, 0x4c, 0xd7, 0x5f, 0xc2, 0xc8, 0x9a, 0x4d, 0x4c, 0xbf, 0x7d, 0xc3, - 0xc9, 0xce, 0x8c, 0x26, 0x4b, 0x21, 0x03, 0xc9, 0xfa, 0x4a, 0xd0, 0x55, 0x48, 0xb2, 0xe8, 0x99, - 0x4a, 0x6c, 0x24, 0xfd, 0xa8, 0x50, 0x72, 0xf9, 0x5c, 0xc0, 0x70, 0xa5, 0x40, 0x9b, 0xa6, 0x8d, - 0x5d, 0x62, 0x80, 0x9d, 0x4c, 0xb4, 0x05, 0xc7, 0xe9, 0x17, 0x31, 0x0e, 0x54, 0xbf, 0x41, 0xce, - 0xce, 0xf2, 0x57, 0xac, 0x87, 0x28, 0xd2, 0xcf, 0x54, 0x1e, 0x6c, 0x7a, 0x2d, 0xb3, 0x4b, 0x7a, - 0x76, 0x6f, 0xb8, 0x94, 0x68, 0xda, 0xb6, 0x6e, 0x68, 0x6d, 0xfd, 0x65, 0xcc, 0xbc, 0x17, 0xfa, - 0x85, 0xa9, 0x40, 0x4d, 0xbb, 0xca, 0xe1, 0xa8, 0x37, 0xe3, 0xd1, 0xb4, 0x6d, 0x6f, 0x7e, 0x21, - 0xc6, 0xd7, 0x1c, 0xce, 0x5b, 0xf1, 0x31, 0x39, 0xce, 0xbe, 0x68, 0x72, 0x23, 0x12, 0x07, 0x39, - 0x99, 0xbb, 0x1f, 0x92, 0x1e, 0x3b, 0x85, 0xb2, 0x10, 0xe3, 0xb3, 0xaa, 0xb8, 0x8d, 0xc1, 0x93, - 0xb9, 0x34, 0xa4, 0xbc, 0xa6, 0x29, 0xf7, 0x2e, 0x09, 0x92, 0x1e, 0xa3, 0x43, 0x30, 0xbd, 0xfb, - 0x76, 0x09, 0xd7, 0x51, 0x3d, 0x27, 0xdc, 0x0a, 0x51, 0xce, 0xf6, 0x8e, 0x53, 0x34, 0x93, 0x7b, - 0x35, 0x68, 0x01, 0x92, 0xdd, 0xe5, 0xae, 0x03, 0x12, 0xa6, 0x20, 0xd0, 0x5d, 0xee, 0x0a, 0x80, - 0xb3, 0x90, 0x22, 0x4d, 0x57, 0xbd, 0xfe, 0x72, 0x42, 0x49, 0x92, 0x3c, 0x0e, 0x92, 0xfb, 0xbd, - 0x10, 0xc8, 0x83, 0xc6, 0xcc, 0xd9, 0xcf, 0x93, 0x8e, 0xbc, 0x9f, 0x77, 0x6a, 0x70, 0x27, 0xd1, - 0xdd, 0x3c, 0x5c, 0x03, 0xd9, 0xdd, 0x02, 0x63, 0x73, 0xd3, 0x21, 0x0b, 0x80, 0x81, 0xc5, 0x8a, - 0x92, 0x69, 0x0e, 0xac, 0x5e, 0xae, 0xf9, 0x8e, 0xd0, 0x44, 0x9c, 0xf3, 0xca, 0x83, 0xfa, 0x24, - 0x60, 0x36, 0xba, 0x2d, 0xcd, 0xc6, 0x22, 0xb4, 0xef, 0x39, 0x4d, 0x73, 0x1f, 0x64, 0xb4, 0x6e, - 0x57, 0xb5, 0x6c, 0xcd, 0xc6, 0xbe, 0x33, 0x23, 0xd3, 0x5a, 0xb7, 0x4b, 0xbf, 0x94, 0xca, 0x3c, - 0xbd, 0x7b, 0x21, 0x4d, 0x2c, 0xbc, 0xae, 0xb5, 0x85, 0x1b, 0x11, 0x65, 0x0e, 0x21, 0xcf, 0xe5, - 0xae, 0x48, 0x0b, 0x52, 0x5e, 0xe3, 0xee, 0xc4, 0x66, 0x24, 0x4f, 0x6c, 0x06, 0xf1, 0x67, 0xcc, - 0x98, 0x84, 0xc4, 0x8b, 0x73, 0xc1, 0x7b, 0xab, 0x73, 0x34, 0x8e, 0xb3, 0xc7, 0x62, 0xbc, 0x71, - 0x85, 0x25, 0x72, 0x37, 0x21, 0xed, 0x9f, 0x07, 0x50, 0x1a, 0x42, 0xf6, 0x3e, 0xaf, 0x25, 0x64, - 0xef, 0xa3, 0x4b, 0x9e, 0x8f, 0xc8, 0xa6, 0x83, 0x66, 0x3f, 0x8e, 0xef, 0xc6, 0x4e, 0xd9, 0x13, - 0x7c, 0xb9, 0x0c, 0x4c, 0xfb, 0x66, 0x89, 0xdc, 0x09, 0x98, 0x0b, 0xb2, 0xf9, 0x39, 0x1d, 0xe6, - 0x82, 0x4c, 0x37, 0xba, 0x02, 0x71, 0xc7, 0xe8, 0x0f, 0x85, 0xdb, 0x44, 0xed, 0x0e, 0x92, 0x03, - 0xeb, 0xdb, 0xfc, 0x0c, 0xf9, 0x36, 0x3f, 0x73, 0xdf, 0x0e, 0xd9, 0x51, 0xf6, 0x7c, 0x60, 0x9b, - 0x22, 0xe2, 0x08, 0xee, 0x04, 0x44, 0xf9, 0xe3, 0xbd, 0x21, 0x1a, 0xa7, 0xe0, 0x29, 0x22, 0x50, - 0x66, 0xdb, 0xc3, 0x2c, 0x7c, 0x41, 0x13, 0x39, 0x15, 0x4e, 0x8d, 0x34, 0xe9, 0xa3, 0x0f, 0x0f, - 0x30, 0x42, 0xfc, 0xf0, 0x00, 0x4d, 0xd0, 0x6f, 0xa8, 0x63, 0x43, 0x44, 0x01, 0x13, 0x0a, 0x4f, - 0xe5, 0xde, 0x1d, 0x86, 0x13, 0xc1, 0x76, 0x1d, 0x2d, 0x42, 0x8a, 0xac, 0x1e, 0x6c, 0xff, 0x42, - 0x03, 0x3a, 0xda, 0x7e, 0x83, 0xaf, 0x32, 0xf8, 0xc6, 0x6b, 0xc8, 0xd9, 0x78, 0x45, 0x9b, 0x30, - 0xd3, 0x36, 0x9b, 0x5a, 0x5b, 0xf5, 0x6c, 0x7c, 0xf3, 0xe1, 0x74, 0xcf, 0x28, 0x3b, 0x2d, 0xf6, - 0x3c, 0x88, 0x09, 0xe2, 0x03, 0x21, 0x43, 0x89, 0xac, 0x3a, 0x9b, 0xe4, 0xa8, 0x0c, 0xc9, 0x8e, - 0x6e, 0x6d, 0xe1, 0x5d, 0x6d, 0x4f, 0x37, 0x7b, 0x7c, 0x5c, 0x05, 0x68, 0xcf, 0x9a, 0x0b, 0x24, - 0x76, 0xe4, 0x3d, 0x78, 0x9e, 0x4e, 0x99, 0x0a, 0x3c, 0x29, 0x10, 0x3d, 0xb2, 0x65, 0x19, 0xb5, - 0xe7, 0x1e, 0x1b, 0xb9, 0xe7, 0x1e, 0xb4, 0xc1, 0x1d, 0x0f, 0xde, 0xe0, 0x7e, 0x85, 0x76, 0x4e, - 0xd0, 0xec, 0x38, 0xbc, 0xe7, 0x8d, 0x1a, 0x30, 0xc7, 0xf1, 0x5b, 0x3e, 0xe9, 0x0f, 0x1d, 0xc5, - 0xf3, 0x3b, 0x5d, 0x1e, 0xa9, 0x23, 0x81, 0x3f, 0x5a, 0xf0, 0xe1, 0x3b, 0x14, 0xbc, 0x38, 0x79, - 0x12, 0xf1, 0x9c, 0x3c, 0xf9, 0xdf, 0xac, 0x33, 0xbe, 0xc7, 0xd9, 0xa4, 0xf3, 0x38, 0x16, 0x81, - 0x47, 0x6a, 0x46, 0x6d, 0xf6, 0x88, 0x86, 0x85, 0x8f, 0xdc, 0x30, 0xde, 0xdb, 0x91, 0xf1, 0xbd, - 0x3d, 0xf5, 0xb5, 0xec, 0xed, 0xe8, 0x1d, 0xf6, 0xf6, 0xd7, 0xb5, 0x1f, 0x7e, 0x5f, 0x82, 0xf9, - 0xd1, 0xee, 0x58, 0x60, 0x87, 0x1c, 0x69, 0x17, 0x74, 0xd4, 0x8c, 0x77, 0x2f, 0xa4, 0x07, 0xbc, - 0x45, 0xa6, 0xcc, 0xd3, 0xbe, 0xf5, 0x3a, 0xba, 0x04, 0xc7, 0xf9, 0x4e, 0xe3, 0x00, 0xf4, 0x14, - 0x6f, 0xbc, 0x69, 0x28, 0x5d, 0x1f, 0xe7, 0xb9, 0x5f, 0x0c, 0xc3, 0x5c, 0x90, 0x0f, 0x18, 0x30, - 0xc8, 0x15, 0x98, 0x6d, 0xe1, 0xa6, 0xde, 0xba, 0xe3, 0x31, 0x3e, 0xc3, 0xd1, 0xff, 0xcf, 0x10, - 0x1f, 0x56, 0x2d, 0x74, 0x01, 0x66, 0xac, 0x03, 0xa3, 0xa9, 0x1b, 0x3b, 0xaa, 0x6d, 0x0a, 0x77, - 0x2a, 0xc1, 0x62, 0x8e, 0xbc, 0xa0, 0x61, 0x72, 0x87, 0xea, 0x27, 0x01, 0xe2, 0x0a, 0xb6, 0xba, - 0xc4, 0xff, 0x43, 0x45, 0x48, 0xe0, 0xfd, 0x26, 0xee, 0xda, 0x6e, 0xd8, 0x2c, 0x70, 0x59, 0xc2, - 0x41, 0x04, 0x1e, 0x59, 0x9e, 0x3b, 0x78, 0xe8, 0x32, 0x8f, 0x42, 0x8c, 0x8c, 0x27, 0x30, 0xef, - 0xde, 0x41, 0x65, 0x61, 0x88, 0xc7, 0x45, 0x18, 0x22, 0x3c, 0x6a, 0x71, 0xcd, 0x7d, 0x7d, 0x07, - 0x8f, 0xc7, 0x21, 0x2e, 0xf3, 0x38, 0x44, 0x64, 0x54, 0x75, 0x6c, 0x49, 0xe0, 0x56, 0xa7, 0xb3, - 0xc7, 0x8e, 0xbd, 0x81, 0x88, 0xe8, 0xa8, 0xa6, 0x7a, 0x7c, 0x77, 0xb7, 0xa9, 0x6e, 0x24, 0xe2, - 0x71, 0x11, 0x89, 0x88, 0x8d, 0x62, 0x9a, 0x3b, 0xab, 0x2e, 0xd3, 0x2c, 0x14, 0xf1, 0x46, 0x4f, - 0x28, 0x22, 0x31, 0x18, 0xe6, 0x1f, 0x0a, 0x45, 0x38, 0xd8, 0x4e, 0x2c, 0x62, 0xc5, 0x89, 0x45, - 0xa4, 0x46, 0x06, 0x32, 0xb8, 0x97, 0xe9, 0x20, 0x8b, 0x60, 0xc4, 0xfa, 0x50, 0x30, 0x82, 0xc5, - 0x0e, 0xee, 0x1f, 0x1b, 0x8c, 0x70, 0x48, 0x0d, 0x44, 0x23, 0xd6, 0x87, 0xa2, 0x11, 0xe9, 0x51, - 0x14, 0x07, 0x5c, 0x5a, 0x97, 0xa2, 0x3f, 0x1c, 0xf1, 0xad, 0xc1, 0xe1, 0x88, 0x91, 0xf1, 0x82, - 0x00, 0xf7, 0xd5, 0x21, 0x1d, 0x10, 0x8f, 0xf8, 0xf6, 0x11, 0xf1, 0x08, 0x79, 0xd4, 0xba, 0x39, - 0xc8, 0x79, 0x75, 0x2a, 0x08, 0x0a, 0x48, 0x6c, 0x06, 0x04, 0x24, 0x58, 0xe4, 0xe0, 0x81, 0x09, - 0x02, 0x12, 0x0e, 0xe9, 0xa1, 0x88, 0xc4, 0x66, 0x40, 0x44, 0x02, 0x8d, 0xa6, 0x3b, 0xe0, 0x73, - 0x79, 0xe9, 0xfa, 0x43, 0x12, 0xd7, 0xfc, 0x21, 0x89, 0xd9, 0xc3, 0x5d, 0x5d, 0xe6, 0x39, 0x38, - 0xd4, 0xbc, 0x31, 0x89, 0xe6, 0xa8, 0x98, 0x04, 0x0b, 0x1b, 0x3c, 0x3c, 0x61, 0x4c, 0xc2, 0xa1, - 0x1d, 0x18, 0x94, 0x58, 0x1f, 0x0a, 0x4a, 0x1c, 0x1f, 0xa5, 0x70, 0x03, 0x13, 0x92, 0xab, 0x70, - 0x23, 0xa3, 0x12, 0xec, 0x6b, 0xab, 0xec, 0x3b, 0xab, 0x20, 0x27, 0x6f, 0x44, 0xe2, 0x49, 0x39, - 0x95, 0x7b, 0x80, 0x78, 0x4d, 0x03, 0x76, 0x8f, 0xac, 0x51, 0x70, 0xaf, 0x67, 0xf6, 0xc4, 0x1e, - 0x2b, 0x4d, 0xe4, 0xce, 0x43, 0xca, 0x6b, 0xe2, 0x0e, 0x89, 0x60, 0x64, 0x60, 0xda, 0x67, 0xd5, - 0x72, 0x5f, 0x0e, 0x41, 0xca, 0x6b, 0xaf, 0x7c, 0xeb, 0xdb, 0x04, 0x5f, 0xdf, 0x7a, 0xe2, 0x1a, - 0x21, 0x7f, 0x5c, 0x63, 0x01, 0x92, 0x64, 0x8d, 0x37, 0x10, 0xb2, 0xd0, 0xba, 0x4e, 0xc8, 0x42, - 0x1c, 0x73, 0x65, 0xd1, 0x0f, 0x3e, 0x33, 0xb0, 0x53, 0x11, 0x19, 0xe7, 0xc8, 0x2f, 0xdf, 0x46, - 0x78, 0x18, 0x66, 0x3d, 0xb0, 0xce, 0xda, 0x91, 0xcd, 0xff, 0xb2, 0x03, 0x9d, 0xe7, 0x27, 0x68, - 0xbf, 0x19, 0x32, 0x6d, 0xcd, 0xc0, 0xe2, 0x0e, 0x89, 0x8e, 0x2d, 0xee, 0x77, 0x2d, 0x1f, 0x6e, - 0x92, 0x97, 0x56, 0x35, 0x03, 0xaf, 0x3b, 0x48, 0xf4, 0x7b, 0xbf, 0x4a, 0xba, 0xed, 0xcb, 0xa4, - 0xdf, 0x65, 0xe2, 0x1f, 0x3f, 0x21, 0x25, 0xd4, 0xde, 0xd2, 0x6b, 0xfd, 0x34, 0x8f, 0x50, 0x98, - 0xcf, 0xc3, 0x6c, 0x00, 0xa5, 0xe0, 0x2b, 0x6c, 0xee, 0x23, 0x1e, 0x62, 0x83, 0x7d, 0x25, 0xf4, - 0x84, 0x94, 0xfb, 0x6d, 0x09, 0x66, 0x86, 0x2c, 0x7e, 0x60, 0x64, 0x45, 0xfa, 0x5a, 0x45, 0x56, - 0x42, 0x77, 0x1e, 0x59, 0xf1, 0x2e, 0xe8, 0xc3, 0xfe, 0x05, 0xfd, 0x97, 0x24, 0x98, 0xf6, 0xcd, - 0x3c, 0x44, 0x8f, 0x9a, 0x66, 0x4b, 0x1c, 0x2a, 0xa0, 0xbf, 0x89, 0x68, 0xda, 0xa6, 0xf8, 0xd2, - 0x27, 0xf9, 0x49, 0xa0, 0x9c, 0xb9, 0x34, 0xc1, 0x67, 0x4a, 0x67, 0x75, 0x3e, 0xe5, 0xbd, 0xa6, - 0xc8, 0xc5, 0x1a, 0x75, 0xaf, 0xee, 0x39, 0x62, 0x8d, 0x79, 0xce, 0x12, 0xa0, 0x27, 0x21, 0x41, - 0xf7, 0x51, 0x54, 0xb3, 0x6b, 0xf1, 0xa0, 0xfb, 0x5d, 0x87, 0x5c, 0xdb, 0xb3, 0xe8, 0xad, 0x10, - 0x76, 0xd7, 0xcf, 0x75, 0xba, 0x12, 0x3e, 0xa7, 0xeb, 0x2e, 0x48, 0x10, 0xf6, 0xd9, 0x67, 0xc3, - 0x81, 0xbf, 0xac, 0x23, 0x32, 0x72, 0xbf, 0x19, 0x82, 0xcc, 0xc0, 0xc4, 0x19, 0xd8, 0xf8, 0xa0, - 0x43, 0x3d, 0x93, 0x09, 0xe4, 0x0c, 0xc0, 0x8e, 0x66, 0xa9, 0x2f, 0x69, 0x86, 0x8d, 0x5b, 0x5c, - 0x2a, 0x9e, 0x1c, 0x34, 0x0f, 0x71, 0x92, 0xea, 0x5b, 0xb8, 0xc5, 0x63, 0x58, 0x4e, 0x1a, 0x55, - 0x20, 0x8a, 0xf7, 0xe8, 0x57, 0x07, 0xd8, 0x97, 0xde, 0x4e, 0x06, 0x58, 0x58, 0x52, 0x5e, 0xc8, - 0x92, 0xee, 0xfe, 0xdc, 0x6b, 0x0b, 0x32, 0x03, 0x7f, 0xc8, 0xb9, 0xaf, 0xad, 0x70, 0x02, 0x7e, - 0x31, 0xc4, 0x07, 0xc4, 0x80, 0x4e, 0x42, 0x8c, 0x8e, 0x46, 0xbd, 0x45, 0x3d, 0x84, 0x84, 0x12, - 0x25, 0xc9, 0x4a, 0x8b, 0x46, 0x5a, 0x53, 0x22, 0x6c, 0x42, 0xa4, 0xcd, 0x6e, 0x76, 0x29, 0xd3, - 0x1d, 0xdc, 0xe9, 0x9a, 0x66, 0x5b, 0x65, 0x36, 0x2c, 0x0f, 0x69, 0xbf, 0x03, 0x81, 0xce, 0xc1, - 0x74, 0x0f, 0xdb, 0x9a, 0x6e, 0xa8, 0xbe, 0x65, 0x45, 0x8a, 0x65, 0x32, 0x9b, 0xe1, 0xfd, 0xd8, - 0x44, 0xee, 0x4d, 0x70, 0x3c, 0xd0, 0x7f, 0x40, 0x4f, 0x40, 0xc2, 0xf5, 0x3d, 0xd8, 0xed, 0xbc, - 0xc3, 0x42, 0x58, 0x2e, 0x70, 0x6e, 0x13, 0x8e, 0x07, 0x3a, 0x10, 0xe8, 0x69, 0x88, 0xb2, 0x93, - 0xfb, 0xfc, 0x3c, 0xe3, 0xbd, 0xe3, 0x3d, 0x8f, 0x7e, 0xdb, 0x56, 0x38, 0x52, 0xee, 0x12, 0x9c, - 0x1a, 0xe9, 0x41, 0xb8, 0x81, 0x28, 0xc9, 0x13, 0x88, 0xca, 0xfd, 0xbc, 0x04, 0xf3, 0xa3, 0xbd, - 0x02, 0x54, 0x18, 0x60, 0xe8, 0xc2, 0x84, 0x3e, 0x85, 0x87, 0x2b, 0xb2, 0x52, 0xeb, 0xe1, 0x6d, - 0x6c, 0x37, 0x77, 0x99, 0x7b, 0xc2, 0xac, 0xc5, 0xb4, 0x32, 0xcd, 0x73, 0x29, 0x8e, 0xc5, 0xc0, - 0x5e, 0xc4, 0x4d, 0x5b, 0x65, 0x9d, 0x6a, 0xd1, 0xa5, 0x4f, 0x82, 0x80, 0x91, 0xdc, 0x3a, 0xcb, - 0xcc, 0x3d, 0x08, 0x27, 0x47, 0xf8, 0x19, 0x01, 0x17, 0x0f, 0x5e, 0x20, 0xc0, 0x81, 0xce, 0x03, - 0x7a, 0x06, 0xa2, 0x96, 0xad, 0xd9, 0x7d, 0x8b, 0xb7, 0xec, 0xfe, 0xb1, 0x7e, 0x47, 0x9d, 0x82, - 0x2b, 0x1c, 0x2d, 0x87, 0x01, 0x0d, 0x7b, 0x11, 0x01, 0xcb, 0x52, 0x29, 0x68, 0x59, 0x1a, 0x74, - 0x54, 0x36, 0x14, 0x74, 0x54, 0x36, 0xb7, 0x05, 0xa7, 0x0f, 0xf1, 0x2c, 0x50, 0x71, 0xa0, 0x19, - 0x0f, 0x4e, 0xe4, 0x98, 0x0c, 0x34, 0xe5, 0xd7, 0xc3, 0x70, 0x3c, 0xd0, 0xc1, 0xf0, 0x0c, 0x74, - 0xe9, 0xab, 0x1d, 0xe8, 0x4f, 0x03, 0xd8, 0xfb, 0xe2, 0x62, 0x0a, 0x9f, 0x30, 0x82, 0x56, 0x55, - 0xfb, 0xb8, 0x49, 0x6d, 0x1e, 0x51, 0xa1, 0x84, 0xcd, 0x7f, 0x59, 0xa8, 0xe1, 0x0d, 0x1a, 0xf4, - 0xe9, 0x64, 0x62, 0xf1, 0xc5, 0xf1, 0xc4, 0xd3, 0x8e, 0x1b, 0x5d, 0x60, 0xd9, 0x16, 0x7a, 0x01, - 0x4e, 0x0e, 0x4c, 0x8a, 0x0e, 0xed, 0xc8, 0xc4, 0x73, 0xe3, 0x71, 0xff, 0xdc, 0x28, 0x68, 0x7b, - 0x27, 0xb6, 0x29, 0xff, 0x35, 0x9d, 0x35, 0x90, 0xe9, 0xb2, 0x99, 0xf9, 0x24, 0xec, 0x6c, 0x46, - 0xf4, 0x08, 0x27, 0x64, 0x08, 0x32, 0xed, 0x28, 0x76, 0x42, 0xe3, 0x05, 0x00, 0x37, 0xb2, 0xe0, - 0x1e, 0x62, 0x96, 0xbc, 0x87, 0x98, 0xaf, 0xc0, 0x14, 0x51, 0x41, 0x21, 0xf9, 0x00, 0x4b, 0x45, - 0x34, 0xc4, 0x13, 0x9a, 0x60, 0xe0, 0xb9, 0x17, 0x85, 0x9a, 0x7b, 0xe3, 0xc2, 0x23, 0xea, 0x78, - 0xa3, 0xbf, 0x8e, 0xdc, 0xe8, 0x10, 0x73, 0x70, 0x5d, 0xdf, 0x01, 0x53, 0x54, 0x9b, 0x02, 0x6f, - 0xd9, 0x7f, 0x1b, 0x80, 0x66, 0xdb, 0x3d, 0x7d, 0xab, 0xef, 0xd6, 0xb0, 0x38, 0x42, 0x1d, 0xf3, - 0x02, 0xb0, 0x70, 0x17, 0xd7, 0xcb, 0x39, 0x17, 0xd7, 0xa3, 0x9b, 0x1e, 0x8a, 0xb9, 0x2a, 0xa4, - 0xfd, 0xb8, 0xe3, 0x7c, 0x2e, 0x71, 0x18, 0xd1, 0x75, 0x2d, 0xf8, 0x63, 0x86, 0x34, 0x91, 0x7b, - 0x6b, 0x08, 0x52, 0x5e, 0x65, 0xfe, 0x07, 0x38, 0x7d, 0xe7, 0xbe, 0x57, 0x82, 0xb8, 0xd3, 0xfe, - 0x43, 0x6e, 0x8a, 0xb8, 0x0f, 0x48, 0x38, 0xfb, 0x26, 0x6c, 0xa7, 0x2a, 0xec, 0xec, 0x54, 0xbd, - 0xc1, 0x99, 0x89, 0x46, 0x46, 0x48, 0xbc, 0xd2, 0x16, 0x87, 0xa7, 0xf9, 0xcc, 0xf8, 0xd4, 0x64, - 0x77, 0xd4, 0xe7, 0x60, 0xca, 0x7b, 0xc1, 0x9c, 0x25, 0x72, 0x96, 0xe7, 0x8c, 0x19, 0x1b, 0xdc, - 0x2e, 0x60, 0xc8, 0x03, 0x38, 0x7c, 0xad, 0x3c, 0x3c, 0xfe, 0x5a, 0x79, 0x64, 0xf0, 0x5a, 0x39, - 0x73, 0x3e, 0x72, 0xff, 0xaf, 0x04, 0x71, 0x31, 0x4a, 0xd0, 0x33, 0xde, 0xf3, 0x90, 0xe2, 0x70, - 0xd5, 0x68, 0xa3, 0xc7, 0x1b, 0xef, 0x39, 0x0e, 0x39, 0x74, 0x79, 0x25, 0x7c, 0xe4, 0xcb, 0x2b, - 0xdc, 0x1d, 0xfa, 0xcf, 0x21, 0x90, 0x07, 0x47, 0xf1, 0x57, 0xcf, 0xdf, 0xf0, 0xb4, 0x19, 0x0e, - 0x9a, 0x36, 0x47, 0x5c, 0x49, 0x89, 0x8c, 0xbc, 0x92, 0x32, 0xd4, 0xee, 0xa9, 0xa3, 0x5f, 0xda, - 0x19, 0x19, 0x42, 0x8e, 0x8e, 0x0a, 0x21, 0x8f, 0xb9, 0xdf, 0x12, 0x3b, 0xf4, 0x7e, 0x0b, 0x97, - 0xf3, 0xf7, 0x84, 0x20, 0xe9, 0x09, 0xf1, 0xa2, 0xc7, 0x7c, 0x17, 0x5d, 0xce, 0x1e, 0x1a, 0x0f, - 0xf6, 0xdc, 0x74, 0xf1, 0xf5, 0x4c, 0xe8, 0x0e, 0x7a, 0xe6, 0x6b, 0x7f, 0x9b, 0x37, 0xf8, 0x79, - 0x89, 0xa9, 0x11, 0xcf, 0x4b, 0x7c, 0x97, 0x04, 0x71, 0x27, 0x9e, 0x76, 0xd4, 0x5d, 0xdc, 0x13, - 0x10, 0xe5, 0x2e, 0x27, 0xdb, 0xc6, 0xe5, 0xa9, 0xc0, 0xe0, 0xf8, 0x3c, 0xc4, 0x3b, 0xd8, 0xd6, - 0xa8, 0x39, 0x66, 0xd3, 0xb5, 0x93, 0xbe, 0xb0, 0x05, 0x49, 0xcf, 0x46, 0x38, 0x3a, 0x05, 0xc7, - 0x8b, 0xd7, 0xcb, 0xc5, 0x67, 0xd5, 0xc6, 0xf3, 0x83, 0x9f, 0xbf, 0x1c, 0x2a, 0x52, 0xca, 0x34, - 0xcd, 0x3e, 0x8c, 0xe5, 0x2f, 0x62, 0x05, 0xa1, 0xf9, 0xc8, 0xdb, 0x7f, 0xe2, 0xcc, 0xb1, 0x0b, - 0x7f, 0x23, 0xc1, 0x6c, 0x80, 0x73, 0x8f, 0xce, 0xc2, 0xdd, 0xb5, 0xab, 0x57, 0xcb, 0x8a, 0x5a, - 0xaf, 0xe6, 0xd7, 0xeb, 0xd7, 0x6b, 0x0d, 0x55, 0x29, 0xd7, 0x37, 0x56, 0xbd, 0x9f, 0x8f, 0x5c, - 0x84, 0xbb, 0x82, 0x41, 0xf2, 0xc5, 0x62, 0x79, 0xbd, 0x21, 0x4b, 0x68, 0x01, 0x4e, 0x8f, 0x80, - 0x28, 0xd0, 0x6f, 0x5a, 0x8d, 0x26, 0xa1, 0x94, 0x6f, 0x94, 0x8b, 0x0d, 0x39, 0x8c, 0xee, 0x87, - 0x73, 0x87, 0x41, 0xf0, 0x8f, 0x5a, 0xca, 0x91, 0xb1, 0x80, 0xf5, 0x72, 0xb5, 0x54, 0x56, 0xe4, - 0x29, 0xde, 0xee, 0xf7, 0x87, 0x20, 0x3b, 0x6a, 0x0d, 0x41, 0x68, 0xe5, 0xd7, 0xd7, 0x57, 0x6f, - 0xba, 0xb4, 0x8a, 0xd7, 0x37, 0xaa, 0xcf, 0x0e, 0x8b, 0xe0, 0x3e, 0xc8, 0x1d, 0x06, 0xe8, 0x08, - 0xe2, 0x5e, 0x38, 0x7b, 0x28, 0x1c, 0x17, 0xc7, 0x18, 0x30, 0xa5, 0xdc, 0x50, 0x6e, 0xca, 0x61, - 0xb4, 0x04, 0x17, 0xc6, 0x82, 0x39, 0x65, 0x72, 0x04, 0x5d, 0x84, 0x07, 0x0f, 0x87, 0x67, 0x02, - 0x12, 0x08, 0x42, 0x44, 0xaf, 0x48, 0x70, 0x3c, 0x70, 0x31, 0x82, 0xce, 0xc1, 0xc2, 0xba, 0x52, - 0x2b, 0x96, 0xeb, 0x75, 0xe7, 0x9a, 0x8b, 0x5a, 0x6f, 0xe4, 0x1b, 0x1b, 0x75, 0x8f, 0x6c, 0x72, - 0x70, 0x66, 0x14, 0x90, 0x23, 0x97, 0x43, 0x60, 0xb8, 0x06, 0x08, 0x3d, 0xbd, 0x2d, 0xc1, 0xa9, - 0x91, 0x4b, 0x0a, 0x74, 0x1e, 0xee, 0x61, 0x5f, 0x58, 0x55, 0x37, 0x6b, 0x8d, 0xb2, 0x5a, 0x7e, - 0xbe, 0x51, 0xae, 0xd6, 0x2b, 0xb5, 0xea, 0x30, 0x57, 0xf7, 0xc3, 0xb9, 0x43, 0x21, 0x1d, 0xd6, - 0xc6, 0x01, 0x0e, 0xf0, 0xf7, 0x36, 0x09, 0x32, 0x03, 0xb6, 0x90, 0x7e, 0xc8, 0xb5, 0x52, 0x2f, - 0x94, 0xaf, 0xe7, 0x37, 0x2b, 0x35, 0x65, 0x70, 0xcc, 0x9e, 0x83, 0x85, 0xa1, 0xd2, 0xd2, 0xc6, - 0xfa, 0x6a, 0xa5, 0x98, 0x6f, 0x94, 0x55, 0x76, 0x37, 0x89, 0x34, 0x6c, 0x08, 0x68, 0xb5, 0x72, - 0xed, 0x7a, 0x43, 0x2d, 0xae, 0x56, 0xca, 0xd5, 0x86, 0x9a, 0x6f, 0x34, 0xf2, 0xee, 0x70, 0x2e, - 0x3c, 0x3b, 0xf2, 0x4c, 0xf0, 0xa5, 0xc9, 0xcf, 0x04, 0xf3, 0x53, 0xbf, 0xce, 0x91, 0xe0, 0x3f, - 0xbb, 0x08, 0xf7, 0xf0, 0xb7, 0xbf, 0x2c, 0x5b, 0xbb, 0xa5, 0x1b, 0x3b, 0xce, 0x03, 0x71, 0x3c, - 0xcd, 0x8f, 0x06, 0x9f, 0xe0, 0xef, 0x8b, 0x89, 0xdc, 0x31, 0xcf, 0xc4, 0x8d, 0x7c, 0x5d, 0x78, - 0xec, 0x95, 0x92, 0xb1, 0x07, 0x7f, 0x0f, 0x79, 0x82, 0x6e, 0xcc, 0x43, 0x77, 0x01, 0x4f, 0xd4, - 0xcd, 0x1f, 0xfe, 0x60, 0xc9, 0xfc, 0xa1, 0xe7, 0xa5, 0x73, 0x3f, 0x2c, 0x41, 0xfa, 0xba, 0x6e, - 0xd9, 0x66, 0x4f, 0x6f, 0x6a, 0x6d, 0xea, 0xb8, 0xbc, 0x61, 0xe2, 0x3b, 0x90, 0x85, 0x04, 0x99, - 0xc6, 0xf8, 0x43, 0x76, 0xbb, 0xe2, 0x1a, 0x62, 0x74, 0x4f, 0x6b, 0xb3, 0xfb, 0x87, 0xde, 0x97, - 0x30, 0x07, 0xc5, 0xee, 0x99, 0x5f, 0xbd, 0x54, 0x18, 0x6e, 0xee, 0x47, 0x42, 0x90, 0xa1, 0x4b, - 0x2b, 0x8b, 0xae, 0xec, 0xe9, 0xda, 0xf1, 0x06, 0x44, 0x7a, 0x9a, 0xcd, 0x17, 0x40, 0x85, 0x2b, - 0x47, 0x7e, 0x54, 0x8e, 0xd5, 0x40, 0x69, 0xa0, 0x37, 0x41, 0xbc, 0xa3, 0xed, 0xab, 0x94, 0x5e, - 0xe8, 0xab, 0xa2, 0x17, 0xeb, 0x68, 0xfb, 0x84, 0x3f, 0xf4, 0x6d, 0xf4, 0xa3, 0xb5, 0x6a, 0x73, - 0x57, 0x33, 0x76, 0x30, 0xa3, 0x1c, 0xfe, 0xaa, 0x28, 0x4f, 0x77, 0xb4, 0xfd, 0x22, 0xa5, 0x46, - 0xe8, 0xf3, 0xf7, 0xfa, 0x7e, 0x43, 0xe2, 0xeb, 0x5a, 0x2a, 0x18, 0xa4, 0x81, 0xdc, 0x74, 0x52, - 0xb4, 0x52, 0x11, 0xc0, 0xbe, 0x7f, 0x94, 0xdc, 0x07, 0xc4, 0x5a, 0x98, 0x26, 0xec, 0x7d, 0xf2, - 0xb5, 0x05, 0x89, 0xd5, 0x9a, 0x69, 0x0e, 0x89, 0x3d, 0xc9, 0x96, 0xff, 0x2a, 0xf5, 0x6d, 0x42, - 0x63, 0x7d, 0x9b, 0x69, 0xe1, 0xdb, 0x30, 0x82, 0xc0, 0xb0, 0x49, 0x39, 0x6f, 0xc3, 0x87, 0x25, - 0x48, 0x96, 0x3c, 0xaf, 0xf6, 0x66, 0x21, 0xd6, 0x31, 0x0d, 0xfd, 0x16, 0xee, 0x39, 0x9b, 0x28, - 0x2c, 0x49, 0xfc, 0x0f, 0xbd, 0x85, 0x0d, 0x5b, 0xb7, 0x0f, 0xc4, 0xeb, 0x41, 0x22, 0x4d, 0xb0, - 0x5e, 0xc2, 0x5b, 0x96, 0x2e, 0xe4, 0xac, 0x88, 0x24, 0x7a, 0x00, 0x64, 0x0b, 0x37, 0xfb, 0x3d, - 0xdd, 0x3e, 0x50, 0x9b, 0xa6, 0x61, 0x6b, 0x4d, 0x9b, 0x2f, 0x29, 0x32, 0x22, 0xbf, 0xc8, 0xb2, - 0x09, 0x91, 0x16, 0xb6, 0x35, 0xbd, 0xcd, 0x8e, 0x2e, 0x26, 0x14, 0x91, 0xe4, 0xac, 0xde, 0x8e, - 0x79, 0x17, 0x49, 0x45, 0x90, 0xcd, 0x2e, 0xee, 0xf9, 0xce, 0x68, 0x30, 0x6d, 0xcc, 0xfe, 0xe1, - 0xc7, 0x1e, 0x9e, 0xe3, 0x02, 0xe7, 0x5b, 0xf5, 0xec, 0xc2, 0x9e, 0x92, 0x11, 0x18, 0x62, 0x07, - 0xff, 0xa6, 0x6f, 0xcf, 0xa1, 0xbf, 0xe5, 0x3e, 0xfe, 0x35, 0x37, 0x24, 0xd4, 0xbc, 0x71, 0x50, - 0xc8, 0x7e, 0xc2, 0x25, 0xcd, 0x83, 0xea, 0xeb, 0x74, 0x61, 0xe4, 0xdd, 0x7f, 0xa0, 0x64, 0x88, - 0x6b, 0xf7, 0xa2, 0xa6, 0xb7, 0x71, 0x8b, 0xaf, 0xba, 0x79, 0x0a, 0xad, 0x38, 0x01, 0x31, 0xf6, - 0x25, 0xe6, 0xdc, 0x28, 0xdd, 0x28, 0x98, 0x46, 0xcb, 0x1f, 0x07, 0x43, 0x45, 0x88, 0xda, 0xe6, - 0x2d, 0x6c, 0x70, 0x01, 0x1d, 0xed, 0x5d, 0x48, 0x8e, 0x8a, 0xbe, 0x05, 0xe4, 0x16, 0x6e, 0xe3, - 0x1d, 0x76, 0x37, 0x79, 0x57, 0xeb, 0x61, 0xf6, 0xe4, 0xc7, 0x1d, 0xbd, 0x0d, 0x99, 0x71, 0x48, - 0xd5, 0x29, 0x25, 0xb4, 0xee, 0x7f, 0x17, 0x3a, 0xe6, 0xec, 0xf8, 0x07, 0xb6, 0xd1, 0xa3, 0x79, - 0x5e, 0xcb, 0xe3, 0x7b, 0x47, 0xfa, 0x01, 0x90, 0xfb, 0xc6, 0x96, 0x69, 0xd0, 0xcf, 0x0a, 0x73, - 0xef, 0x3a, 0xce, 0xb6, 0xd2, 0x9c, 0x7c, 0xbe, 0x95, 0xb6, 0x0e, 0x69, 0x17, 0x94, 0x8e, 0x90, - 0xc4, 0x51, 0x47, 0xc8, 0xb4, 0x43, 0x80, 0x80, 0xa0, 0x35, 0x00, 0x77, 0x0c, 0xd2, 0x5d, 0x90, - 0xe4, 0xe8, 0x1e, 0x73, 0x47, 0xb3, 0xb7, 0x31, 0x1e, 0x02, 0xc8, 0x80, 0xd9, 0x8e, 0x6e, 0xa8, - 0x16, 0x6e, 0x6f, 0xab, 0x5c, 0x72, 0xe2, 0xbd, 0x92, 0x44, 0xe1, 0x8d, 0x47, 0xe8, 0xcd, 0x3f, - 0xf9, 0xd8, 0xc3, 0x19, 0xf7, 0x75, 0xcd, 0xc5, 0x47, 0x96, 0x2e, 0x5f, 0x51, 0x66, 0x3a, 0xba, - 0x51, 0xc7, 0xed, 0xed, 0x92, 0x43, 0x18, 0xbd, 0x01, 0x4e, 0xbb, 0x02, 0x31, 0x0d, 0x75, 0xd7, - 0x6c, 0xb7, 0xd4, 0x1e, 0xde, 0x56, 0x9b, 0xf4, 0xdd, 0xd2, 0x14, 0x15, 0xe3, 0x49, 0x07, 0xa4, - 0x66, 0x5c, 0x37, 0xdb, 0x2d, 0x05, 0x6f, 0x17, 0x49, 0x31, 0x3a, 0x07, 0xae, 0x34, 0x54, 0xbd, - 0x65, 0x65, 0xa7, 0x17, 0xc3, 0xe7, 0x23, 0x4a, 0xca, 0xc9, 0xac, 0xb4, 0xac, 0x95, 0xf8, 0xdb, - 0xdf, 0xbf, 0x70, 0xec, 0xf5, 0xf7, 0x2f, 0x1c, 0xcb, 0x5d, 0xa5, 0xcf, 0x03, 0xf2, 0xa1, 0x85, - 0x2d, 0x74, 0x05, 0x12, 0x9a, 0x48, 0xb0, 0x3b, 0x6e, 0x87, 0x0c, 0x4d, 0x17, 0x34, 0xf7, 0x11, - 0x09, 0xa2, 0xa5, 0xcd, 0x75, 0x4d, 0xef, 0xa1, 0x32, 0xcc, 0xb8, 0xba, 0x3a, 0xe9, 0x28, 0x77, - 0xd5, 0x5b, 0x0c, 0xf3, 0xea, 0xa8, 0x03, 0x5d, 0x89, 0xc2, 0xd9, 0x3f, 0xfc, 0xd8, 0xc3, 0x77, - 0x73, 0x32, 0x9b, 0x03, 0x67, 0xbb, 0x04, 0xbd, 0xc1, 0x33, 0x5f, 0x9e, 0x36, 0xdf, 0x80, 0x18, - 0x63, 0xd5, 0x42, 0xcf, 0xc0, 0x54, 0x97, 0xfc, 0xe0, 0x91, 0xe8, 0x33, 0x23, 0x75, 0x9e, 0xc2, - 0x7b, 0x35, 0x84, 0xe1, 0xe5, 0xde, 0x11, 0x02, 0x28, 0x6d, 0x6e, 0x36, 0x7a, 0x7a, 0xb7, 0x8d, - 0xed, 0xaf, 0x55, 0xdb, 0x37, 0xe0, 0xb8, 0xe7, 0x29, 0x82, 0x5e, 0xf3, 0xe8, 0xed, 0x9f, 0x75, - 0x1f, 0x25, 0xe8, 0x35, 0x03, 0xc9, 0xb6, 0x2c, 0xdb, 0x21, 0x1b, 0x3e, 0x3a, 0xd9, 0x92, 0x65, - 0x0f, 0x4b, 0xf6, 0x79, 0x48, 0xba, 0xc2, 0xb0, 0x50, 0x05, 0xe2, 0x36, 0xff, 0xcd, 0x05, 0x9c, - 0x1b, 0x2d, 0x60, 0x81, 0xe6, 0x15, 0xb2, 0x83, 0x9e, 0xfb, 0x92, 0x04, 0xe0, 0x19, 0x23, 0xdf, - 0x98, 0x3a, 0x86, 0x2a, 0x10, 0xe5, 0xc6, 0x39, 0x7c, 0xc7, 0xaf, 0x0b, 0x33, 0x02, 0x1e, 0xa1, - 0xbe, 0x33, 0x04, 0xb3, 0x1b, 0x62, 0xf4, 0x7e, 0xe3, 0xcb, 0x60, 0x03, 0x62, 0xd8, 0xb0, 0x7b, - 0xba, 0xb3, 0x93, 0xf2, 0xc8, 0xa8, 0x3e, 0x0f, 0x68, 0x14, 0x3d, 0x97, 0xe0, 0xd5, 0x00, 0x41, - 0xcb, 0x23, 0x8f, 0xf7, 0x84, 0x21, 0x3b, 0x0a, 0x15, 0xdd, 0x0f, 0x99, 0x66, 0x0f, 0xd3, 0x0c, - 0xff, 0x95, 0xcb, 0xb4, 0xc8, 0xe6, 0xd3, 0x8e, 0x02, 0xc4, 0x51, 0x23, 0xca, 0x45, 0x40, 0xef, - 0xcc, 0x33, 0x4b, 0xbb, 0x14, 0xe8, 0xc4, 0xd3, 0x80, 0x8c, 0xb8, 0xa7, 0xb1, 0xa5, 0xb5, 0x35, - 0xa3, 0x29, 0x3c, 0xd8, 0x23, 0xcd, 0xf9, 0xe2, 0xae, 0x47, 0x81, 0x91, 0x40, 0x65, 0x88, 0x09, - 0x6a, 0x91, 0xa3, 0x53, 0x13, 0xb8, 0xe8, 0x2c, 0xa4, 0xbc, 0x13, 0x03, 0xf5, 0x46, 0x22, 0x4a, - 0xd2, 0x33, 0x2f, 0x8c, 0x9b, 0x79, 0xa2, 0x87, 0xce, 0x3c, 0xdc, 0xe1, 0xfb, 0xf1, 0x30, 0xcc, - 0x28, 0xb8, 0xf5, 0xf7, 0xbf, 0x5b, 0xd6, 0x01, 0xd8, 0x50, 0x25, 0x96, 0x94, 0xf7, 0xcc, 0x1d, - 0x8c, 0xf7, 0x04, 0x23, 0x52, 0xb2, 0xec, 0xbf, 0xab, 0x1e, 0xfa, 0xf7, 0x21, 0x48, 0x79, 0x7b, - 0xe8, 0x1f, 0xe4, 0xa4, 0x85, 0xaa, 0xae, 0x99, 0x62, 0x37, 0x4d, 0x1e, 0x18, 0x65, 0xa6, 0x86, - 0xb4, 0x79, 0x8c, 0x7d, 0x7a, 0x6f, 0x18, 0xa2, 0xfc, 0x3c, 0x53, 0x6d, 0xc8, 0xb7, 0x1d, 0x7b, - 0xdf, 0x7e, 0x5a, 0x6c, 0xc8, 0x06, 0xba, 0xb6, 0xf7, 0x42, 0x9a, 0xac, 0x91, 0x7d, 0x87, 0xa4, - 0xa4, 0xf3, 0xd3, 0x74, 0xa9, 0xeb, 0x9e, 0x89, 0x46, 0x0b, 0x90, 0x24, 0x60, 0xae, 0x1d, 0x26, - 0x30, 0xd0, 0xd1, 0xf6, 0xcb, 0x2c, 0x07, 0x3d, 0x0c, 0x68, 0xd7, 0x09, 0x5a, 0xa8, 0xae, 0x20, - 0x08, 0xdc, 0x8c, 0x5b, 0x22, 0xc0, 0xef, 0x06, 0x20, 0x5c, 0xa8, 0xec, 0x41, 0x7d, 0xfe, 0xb9, - 0x02, 0x92, 0x53, 0xa2, 0x8f, 0xea, 0xbf, 0x4d, 0x62, 0x2e, 0xf2, 0xc0, 0x4a, 0x9a, 0xaf, 0x50, - 0x1a, 0x13, 0x0c, 0x8a, 0xbf, 0x7e, 0x6d, 0x61, 0xfe, 0x40, 0xeb, 0xb4, 0x57, 0x72, 0x01, 0x74, - 0x72, 0x41, 0x8b, 0x7b, 0xe2, 0x38, 0xfb, 0x57, 0xe2, 0x2b, 0xf7, 0x10, 0xf5, 0x7e, 0xe5, 0x33, - 0x1f, 0xbd, 0x70, 0xda, 0xf3, 0x86, 0xfd, 0xbe, 0x13, 0xd4, 0x62, 0x7d, 0x42, 0x3c, 0x55, 0xe4, - 0xce, 0x1a, 0x9e, 0x93, 0x6c, 0xe0, 0x71, 0xee, 0xa5, 0xc3, 0x17, 0x0d, 0x2e, 0xbe, 0x6f, 0xd1, - 0xe0, 0x19, 0x53, 0x6f, 0x74, 0x8d, 0xb6, 0xfb, 0xaa, 0xd5, 0xd0, 0x17, 0x16, 0x96, 0x8a, 0xa6, - 0xee, 0x23, 0x21, 0x90, 0xe8, 0x50, 0x3d, 0x96, 0xfb, 0x37, 0x12, 0x9c, 0x1a, 0x52, 0x3f, 0x87, - 0xe5, 0x26, 0xa0, 0x9e, 0xa7, 0x90, 0x76, 0xa3, 0x78, 0x22, 0xfa, 0xce, 0xb4, 0x79, 0xa6, 0x37, - 0x64, 0xb9, 0xbf, 0x36, 0xb3, 0x0f, 0x37, 0x3d, 0xbf, 0x2b, 0xc1, 0x9c, 0x97, 0x01, 0xa7, 0x29, - 0x75, 0x48, 0x79, 0xab, 0xe6, 0x8d, 0xb8, 0x67, 0x92, 0x46, 0x78, 0xf9, 0xf7, 0x11, 0x41, 0x9b, - 0xee, 0x10, 0x67, 0xa1, 0xb4, 0x4b, 0x13, 0x0b, 0x45, 0x30, 0x16, 0x38, 0xd4, 0x59, 0xdf, 0x7c, - 0x5e, 0x82, 0xc8, 0xba, 0x69, 0xb6, 0xd1, 0x9b, 0x61, 0xc6, 0x30, 0x6d, 0x95, 0x0c, 0x07, 0xdc, - 0x52, 0xf9, 0x5a, 0x9f, 0x99, 0xcf, 0xf2, 0xa1, 0xb2, 0xfa, 0xdc, 0x6b, 0x0b, 0xc3, 0x98, 0x41, - 0xdf, 0xb8, 0xc8, 0x18, 0xa6, 0x5d, 0xa0, 0x40, 0x0d, 0x16, 0x0e, 0xd8, 0x86, 0x69, 0x7f, 0x75, - 0xcc, 0xc4, 0xe6, 0xc7, 0x55, 0x37, 0x3d, 0xb6, 0xaa, 0xd4, 0x96, 0xa7, 0x1e, 0xf6, 0x26, 0xfe, - 0x5f, 0xb2, 0x47, 0x4a, 0xe4, 0xcd, 0xc1, 0x73, 0x2e, 0x57, 0x21, 0x26, 0xce, 0xb5, 0x48, 0x93, - 0x9e, 0x99, 0xf1, 0xca, 0x93, 0x23, 0x5f, 0xf8, 0x15, 0x09, 0xc0, 0x0d, 0x9c, 0xa0, 0x87, 0xe0, - 0x64, 0xa1, 0x56, 0x2d, 0xb9, 0xc1, 0x7d, 0xcf, 0xc7, 0xa3, 0xc4, 0xdb, 0x5f, 0x56, 0x17, 0x37, - 0xf5, 0x6d, 0x1d, 0xb7, 0xd0, 0x7d, 0x30, 0xe7, 0x87, 0x26, 0xa9, 0x72, 0x49, 0x96, 0xe6, 0x53, - 0xaf, 0xdc, 0x5e, 0x8c, 0x33, 0x47, 0x11, 0xb7, 0xd0, 0x79, 0x38, 0x3e, 0x0c, 0x57, 0xa9, 0x5e, - 0x93, 0x43, 0xf3, 0xd3, 0xaf, 0xdc, 0x5e, 0x4c, 0x38, 0x1e, 0x25, 0xca, 0x01, 0xf2, 0x42, 0x72, - 0x7a, 0xe1, 0x79, 0x78, 0xe5, 0xf6, 0x62, 0x94, 0x75, 0x03, 0xdf, 0x15, 0xf8, 0x56, 0x80, 0x8a, - 0xb1, 0xdd, 0xd3, 0x9a, 0x54, 0xdd, 0xe6, 0xe1, 0x44, 0xa5, 0x7a, 0x55, 0xc9, 0x17, 0x1b, 0x95, - 0x5a, 0x75, 0xe0, 0x9b, 0x57, 0xfe, 0xb2, 0x52, 0x6d, 0xa3, 0xb0, 0x5a, 0x56, 0xeb, 0x95, 0x6b, - 0x55, 0xb6, 0x85, 0xe7, 0x2b, 0x7b, 0xae, 0xda, 0xa8, 0xac, 0x95, 0xe5, 0x50, 0xe1, 0xea, 0xc8, - 0x68, 0xff, 0x43, 0x87, 0x7e, 0xb6, 0xc3, 0x35, 0x79, 0xbe, 0x0f, 0x78, 0xfc, 0xcf, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xd9, 0x65, 0xbe, 0xbe, 0xe3, 0xba, 0x00, 0x00, + // 12959 bytes of a gzipped FileDescriptorSet + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0xbd, 0x6b, 0x94, 0x5b, 0xd7, + 0x75, 0x18, 0x3c, 0x17, 0x6f, 0x6c, 0x60, 0x80, 0x3b, 0x67, 0x86, 0x24, 0x08, 0x4a, 0x9c, 0x21, + 0x64, 0x49, 0x14, 0x25, 0x0e, 0xc5, 0x91, 0x48, 0x89, 0x43, 0xdb, 0xfa, 0xf0, 0x22, 0x09, 0x6a, + 0x06, 0x18, 0x5f, 0x60, 0x28, 0x51, 0x49, 0x7c, 0x73, 0x07, 0x38, 0x33, 0x73, 0x45, 0xe0, 0x5e, + 0x18, 0xf7, 0x82, 0x9a, 0xd1, 0xb7, 0x56, 0x96, 0x1d, 0x3b, 0xf9, 0x1c, 0x39, 0xce, 0xe7, 0x7c, + 0xc9, 0x4a, 0x94, 0xd8, 0x74, 0x6c, 0xe7, 0x8b, 0xed, 0xbc, 0x5a, 0xc7, 0x76, 0xf3, 0x68, 0x57, + 0xf3, 0x68, 0x9b, 0x36, 0x71, 0xd3, 0x2e, 0x27, 0x6b, 0xb5, 0x4d, 0xb3, 0x56, 0xdc, 0xc6, 0xc9, + 0x8a, 0xe4, 0x47, 0x9a, 0x97, 0xd2, 0xa6, 0xcb, 0xcd, 0x72, 0xd7, 0x79, 0xdd, 0x07, 0x1e, 0x03, + 0x0c, 0x2d, 0xa7, 0x6a, 0xd2, 0x3f, 0xe4, 0xdc, 0x73, 0xf6, 0xde, 0x67, 0x9f, 0x7d, 0xf6, 0xd9, + 0x67, 0xef, 0x7d, 0x1e, 0x80, 0xbf, 0xd1, 0x61, 0x69, 0xc7, 0x34, 0x77, 0xda, 0xf8, 0x5c, 0xb7, + 0x67, 0xda, 0xe6, 0x56, 0x7f, 0xfb, 0x5c, 0x0b, 0x5b, 0xcd, 0x9e, 0xde, 0xb5, 0xcd, 0xde, 0x32, + 0x2d, 0x43, 0x69, 0x06, 0xb1, 0x2c, 0x20, 0x72, 0x9f, 0x93, 0x60, 0xee, 0x8a, 0xde, 0xc6, 0x25, + 0x07, 0xb2, 0x8e, 0x6d, 0xf4, 0x24, 0x84, 0xb6, 0xf5, 0x36, 0xce, 0x48, 0x4b, 0xc1, 0xd3, 0x89, + 0x95, 0x37, 0x2d, 0x0f, 0x60, 0x2d, 0xfb, 0x31, 0x36, 0x48, 0xb1, 0x42, 0x31, 0xce, 0xfc, 0xdf, + 0xb1, 0x77, 0x7e, 0xf5, 0x73, 0x5f, 0x97, 0xe4, 0x77, 0x91, 0x7f, 0xb3, 0x1d, 0x74, 0x8b, 0x7d, + 0xa3, 0xc7, 0x97, 0x09, 0x9e, 0x87, 0x9f, 0xdb, 0xe7, 0x49, 0x89, 0x4a, 0x90, 0x54, 0xb7, 0x58, + 0xb5, 0xb0, 0xad, 0xe2, 0x3d, 0x1b, 0x1b, 0x96, 0x6e, 0x1a, 0xd9, 0xb3, 0x23, 0xb0, 0x86, 0xb8, + 0x2d, 0x0b, 0xf0, 0xdc, 0xaf, 0x87, 0x61, 0x7e, 0x04, 0x6b, 0x08, 0x41, 0xc8, 0xd0, 0x3a, 0xa4, + 0x3b, 0xd2, 0xe9, 0xb8, 0x42, 0xff, 0x46, 0x19, 0x88, 0x76, 0xb5, 0xe6, 0x2d, 0x6d, 0x07, 0x67, + 0x02, 0xb4, 0x58, 0x7c, 0xa2, 0x93, 0x00, 0x2d, 0xdc, 0xc5, 0x46, 0x0b, 0x1b, 0xcd, 0xfd, 0x4c, + 0x70, 0x29, 0x78, 0x3a, 0xae, 0x78, 0x4a, 0xd0, 0xc3, 0x30, 0xd7, 0xed, 0x6f, 0xb5, 0xf5, 0xa6, + 0xea, 0x01, 0x83, 0xa5, 0xe0, 0xe9, 0xb0, 0x22, 0xb3, 0x8a, 0x92, 0x0b, 0xfc, 0x20, 0xa4, 0x5f, + 0xc0, 0xda, 0x2d, 0x2f, 0x68, 0x82, 0x82, 0xa6, 0x48, 0x71, 0xc9, 0x47, 0xd5, 0xec, 0xda, 0xba, + 0x69, 0x78, 0x41, 0xd3, 0xb4, 0x71, 0x99, 0x55, 0x78, 0x80, 0x8b, 0x90, 0xec, 0x60, 0xcb, 0xd2, + 0x76, 0xb0, 0x6a, 0xef, 0x77, 0x71, 0x26, 0x44, 0xc7, 0x69, 0x69, 0x68, 0x9c, 0x06, 0xc7, 0x28, + 0xc1, 0xb1, 0x1a, 0xfb, 0x5d, 0x8c, 0xf2, 0x10, 0xc7, 0x46, 0xbf, 0xc3, 0x28, 0x84, 0xc7, 0x8c, + 0x74, 0xd9, 0xe8, 0x77, 0x06, 0xa9, 0xc4, 0x08, 0x1a, 0x27, 0x11, 0xb5, 0x70, 0xef, 0xb6, 0xde, + 0xc4, 0x99, 0x08, 0x25, 0xf0, 0xe0, 0x10, 0x81, 0x3a, 0xab, 0x1f, 0xa4, 0x21, 0xf0, 0x50, 0x11, + 0xe2, 0xce, 0x78, 0x67, 0xa2, 0x94, 0xc8, 0xfd, 0x23, 0xf4, 0x0d, 0xb7, 0x5b, 0x83, 0x24, 0x5c, + 0x3c, 0x74, 0x11, 0xa2, 0x4c, 0x46, 0x56, 0x26, 0xb6, 0x24, 0x9d, 0x4e, 0xac, 0xdc, 0x33, 0x52, + 0x65, 0x6b, 0x0c, 0x46, 0x11, 0xc0, 0xa8, 0x02, 0xb2, 0x65, 0xf6, 0x7b, 0x4d, 0xac, 0x36, 0xcd, + 0x16, 0x56, 0x75, 0x63, 0xdb, 0xcc, 0xc4, 0x29, 0x81, 0xc5, 0xe1, 0x8e, 0x50, 0xc0, 0xa2, 0xd9, + 0xc2, 0x15, 0x63, 0xdb, 0x54, 0x52, 0x96, 0xef, 0x1b, 0x1d, 0x85, 0x88, 0xb5, 0x6f, 0xd8, 0xda, + 0x5e, 0x26, 0x49, 0xd5, 0x89, 0x7f, 0xa1, 0x15, 0x88, 0xe2, 0x96, 0x4e, 0x9a, 0xcb, 0xa4, 0x96, + 0xa4, 0xd3, 0xa9, 0x95, 0xcc, 0xb0, 0x8c, 0x59, 0xbd, 0x22, 0x00, 0x73, 0xff, 0x23, 0x02, 0xe9, + 0x69, 0x74, 0xf8, 0x32, 0x84, 0xb7, 0x89, 0x64, 0x32, 0x81, 0xc3, 0xc8, 0x8d, 0xe1, 0xf8, 0x05, + 0x1f, 0xb9, 0x4b, 0xc1, 0xe7, 0x21, 0x61, 0x60, 0xcb, 0xc6, 0x2d, 0xa6, 0x45, 0xc1, 0x29, 0xf5, + 0x10, 0x18, 0xd2, 0xb0, 0x1a, 0x86, 0xee, 0x4a, 0x0d, 0x9f, 0x85, 0xb4, 0xc3, 0x92, 0xda, 0xd3, + 0x8c, 0x1d, 0xa1, 0xcf, 0xe7, 0x26, 0x71, 0xb2, 0xec, 0x18, 0x0f, 0x85, 0xa0, 0x29, 0x29, 0xec, + 0xfb, 0x46, 0x25, 0x00, 0xd3, 0xc0, 0xe6, 0xb6, 0xda, 0xc2, 0xcd, 0x76, 0x26, 0x36, 0x46, 0x4a, + 0x35, 0x02, 0x32, 0x24, 0x25, 0x93, 0x95, 0x36, 0xdb, 0xe8, 0x92, 0xab, 0x9e, 0xd1, 0x31, 0xda, + 0xb5, 0xce, 0x26, 0xe6, 0x90, 0x86, 0x6e, 0x42, 0xaa, 0x87, 0xc9, 0x5c, 0xc1, 0x2d, 0xde, 0xb3, + 0x38, 0x65, 0x62, 0x79, 0x62, 0xcf, 0x14, 0x8e, 0xc6, 0x3a, 0x36, 0xdb, 0xf3, 0x7e, 0xa2, 0xfb, + 0xc0, 0x29, 0x50, 0xa9, 0x5a, 0x01, 0xb5, 0x34, 0x49, 0x51, 0x58, 0x25, 0xea, 0x95, 0x07, 0xb8, + 0xad, 0x5b, 0xfa, 0x96, 0xde, 0xd6, 0x6d, 0x62, 0xb6, 0x88, 0xf6, 0x9e, 0x1a, 0x9e, 0x17, 0xfb, + 0x9d, 0x2d, 0xb3, 0x7d, 0xc3, 0x01, 0x54, 0x3c, 0x48, 0xd9, 0x17, 0x21, 0xe5, 0x97, 0x30, 0x5a, + 0x80, 0xb0, 0x65, 0x6b, 0x3d, 0x9b, 0x2a, 0x72, 0x58, 0x61, 0x1f, 0x48, 0x86, 0x20, 0x36, 0x5a, + 0xd4, 0x12, 0x87, 0x15, 0xf2, 0x27, 0xfa, 0xbf, 0x5c, 0x99, 0x05, 0xa9, 0xcc, 0x1e, 0x18, 0x56, + 0x0a, 0x1f, 0xe5, 0x41, 0xd1, 0x65, 0x9f, 0x80, 0x59, 0x9f, 0x0c, 0xa6, 0x6d, 0x3a, 0xf7, 0x5b, + 0x21, 0x38, 0x32, 0x92, 0x36, 0x7a, 0x16, 0x16, 0xfa, 0x86, 0x6e, 0xd8, 0xb8, 0xd7, 0xed, 0x61, + 0xa2, 0xf5, 0xac, 0xad, 0xcc, 0x2b, 0xd1, 0x31, 0x7a, 0xbb, 0xe9, 0x85, 0x66, 0x54, 0x94, 0xf9, + 0xfe, 0x70, 0x21, 0xba, 0x09, 0x09, 0xa2, 0x62, 0x5a, 0x4f, 0xa3, 0x04, 0xd9, 0x84, 0x5e, 0x99, + 0xae, 0xcb, 0xcb, 0x25, 0x17, 0xb3, 0x10, 0x7c, 0xaf, 0x14, 0x50, 0xbc, 0xb4, 0xd0, 0x13, 0x10, + 0xdb, 0xc6, 0x9a, 0xdd, 0xef, 0x61, 0x2b, 0xb3, 0x42, 0x45, 0x79, 0x62, 0x78, 0x9e, 0x33, 0x80, + 0x3a, 0xb6, 0x15, 0x07, 0x18, 0x75, 0x20, 0x79, 0x1b, 0xf7, 0xf4, 0x6d, 0xbd, 0xc9, 0x98, 0x0a, + 0x52, 0x0d, 0x78, 0x72, 0x4a, 0xa6, 0x6e, 0x78, 0x50, 0xeb, 0xb6, 0x66, 0xe3, 0x55, 0xd8, 0xac, + 0xde, 0x28, 0x2b, 0x95, 0x2b, 0x95, 0x72, 0x89, 0xb1, 0xe9, 0x23, 0x9f, 0xfd, 0x41, 0x09, 0x12, + 0x9e, 0x9e, 0x10, 0x8b, 0x6a, 0xf4, 0x3b, 0x5b, 0xb8, 0xc7, 0xc7, 0x8b, 0x7f, 0xa1, 0x13, 0x10, + 0xdf, 0xee, 0xb7, 0xdb, 0x4c, 0x6f, 0xd9, 0xda, 0x1d, 0x23, 0x05, 0x54, 0x67, 0x11, 0x84, 0xb8, + 0x25, 0xa2, 0x66, 0x92, 0xfc, 0x8d, 0xb2, 0x10, 0x13, 0x7a, 0x9d, 0x09, 0x2f, 0x49, 0xa7, 0x63, + 0x8a, 0xf3, 0xcd, 0xea, 0xba, 0x58, 0xb3, 0x71, 0x2b, 0x13, 0x11, 0x75, 0xec, 0xfb, 0x7a, 0x28, + 0x16, 0x92, 0xc3, 0xb9, 0xc7, 0x61, 0x6e, 0xa8, 0x2b, 0x28, 0x0d, 0x89, 0x52, 0xb9, 0xb8, 0x96, + 0x57, 0xf2, 0x8d, 0x4a, 0xad, 0x2a, 0xcf, 0xa0, 0x14, 0x78, 0x7a, 0x27, 0x4b, 0x67, 0xe2, 0xb1, + 0x57, 0xa3, 0xf2, 0x3b, 0xdf, 0xf9, 0xce, 0x77, 0x06, 0x72, 0xbf, 0x16, 0x81, 0x85, 0x51, 0x76, + 0x74, 0xa4, 0x49, 0x77, 0x3b, 0x1d, 0xf4, 0x75, 0x3a, 0x0f, 0xe1, 0xb6, 0xb6, 0x85, 0xdb, 0x99, + 0x10, 0x1d, 0x84, 0x87, 0xa7, 0xb2, 0xd4, 0xcb, 0x6b, 0x04, 0x45, 0x61, 0x98, 0xe8, 0xad, 0x5c, + 0x34, 0x61, 0x4a, 0xe1, 0xcc, 0x74, 0x14, 0x88, 0x7d, 0xe5, 0x62, 0x3c, 0x01, 0x71, 0xf2, 0x3f, + 0x93, 0x7b, 0x84, 0xc9, 0x9d, 0x14, 0x50, 0xb9, 0x67, 0x21, 0x46, 0x4d, 0x67, 0x0b, 0x3b, 0x63, + 0x22, 0xbe, 0x89, 0xb1, 0x69, 0xe1, 0x6d, 0xad, 0xdf, 0xb6, 0xd5, 0xdb, 0x5a, 0xbb, 0x8f, 0xa9, + 0x11, 0x8c, 0x2b, 0x49, 0x5e, 0x78, 0x83, 0x94, 0xa1, 0x45, 0x48, 0x30, 0x4b, 0xab, 0x1b, 0x2d, + 0xbc, 0x47, 0x57, 0xe1, 0xb0, 0xc2, 0x8c, 0x6f, 0x85, 0x94, 0x90, 0xe6, 0x9f, 0xb7, 0x4c, 0x43, + 0x98, 0x2b, 0xda, 0x04, 0x29, 0xa0, 0xcd, 0x3f, 0x31, 0xe8, 0x00, 0xdc, 0x3b, 0xba, 0x7b, 0x43, + 0xf6, 0xf5, 0x41, 0x48, 0x53, 0x88, 0xc7, 0xf8, 0x54, 0xd6, 0xda, 0x99, 0x39, 0xaa, 0x06, 0x29, + 0x56, 0x5c, 0xe3, 0xa5, 0xb9, 0x9f, 0x0f, 0x40, 0x88, 0x2e, 0x36, 0x69, 0x48, 0x34, 0x6e, 0x6e, + 0x94, 0xd5, 0x52, 0x6d, 0xb3, 0xb0, 0x56, 0x96, 0x25, 0x32, 0xf4, 0xb4, 0xe0, 0xca, 0x5a, 0x2d, + 0xdf, 0x90, 0x03, 0xce, 0x77, 0xa5, 0xda, 0xb8, 0xf8, 0xb8, 0x1c, 0x74, 0x10, 0x36, 0x59, 0x41, + 0xc8, 0x0b, 0xf0, 0xd8, 0x8a, 0x1c, 0x46, 0x32, 0x24, 0x19, 0x81, 0xca, 0xb3, 0xe5, 0xd2, 0xc5, + 0xc7, 0xe5, 0x88, 0xbf, 0xe4, 0xb1, 0x15, 0x39, 0x8a, 0x66, 0x21, 0x4e, 0x4b, 0x0a, 0xb5, 0xda, + 0x9a, 0x1c, 0x73, 0x68, 0xd6, 0x1b, 0x4a, 0xa5, 0x7a, 0x55, 0x8e, 0x3b, 0x34, 0xaf, 0x2a, 0xb5, + 0xcd, 0x0d, 0x19, 0x1c, 0x0a, 0xeb, 0xe5, 0x7a, 0x3d, 0x7f, 0xb5, 0x2c, 0x27, 0x1c, 0x88, 0xc2, + 0xcd, 0x46, 0xb9, 0x2e, 0x27, 0x7d, 0x6c, 0x3d, 0xb6, 0x22, 0xcf, 0x3a, 0x4d, 0x94, 0xab, 0x9b, + 0xeb, 0x72, 0x0a, 0xcd, 0xc1, 0x2c, 0x6b, 0x42, 0x30, 0x91, 0x1e, 0x28, 0xba, 0xf8, 0xb8, 0x2c, + 0xbb, 0x8c, 0x30, 0x2a, 0x73, 0xbe, 0x82, 0x8b, 0x8f, 0xcb, 0x28, 0x57, 0x84, 0x30, 0x55, 0x43, + 0x84, 0x20, 0xb5, 0x96, 0x2f, 0x94, 0xd7, 0xd4, 0xda, 0x06, 0x99, 0x34, 0xf9, 0x35, 0x59, 0x72, + 0xcb, 0x94, 0xf2, 0x46, 0x39, 0xdf, 0x28, 0x97, 0xe4, 0xa0, 0xb7, 0xec, 0x6d, 0x9b, 0x15, 0xa5, + 0x5c, 0x92, 0x03, 0xb9, 0x26, 0x2c, 0x8c, 0x5a, 0x64, 0x47, 0x4e, 0x21, 0x8f, 0x2e, 0x04, 0xc6, + 0xe8, 0x02, 0xa5, 0x35, 0xa8, 0x0b, 0xb9, 0x8f, 0x07, 0x61, 0x7e, 0x84, 0xa3, 0x31, 0xb2, 0x91, + 0xa7, 0x20, 0xcc, 0x74, 0x99, 0x59, 0xea, 0x87, 0x46, 0x7a, 0x2c, 0x54, 0xb3, 0x87, 0xdc, 0x2f, + 0x8a, 0xe7, 0x75, 0x59, 0x83, 0x63, 0x5c, 0x56, 0x42, 0x62, 0x48, 0x61, 0xbf, 0x6d, 0xc8, 0x21, + 0x60, 0x3e, 0xd3, 0xc5, 0x69, 0x7c, 0x26, 0x5a, 0x76, 0x38, 0xc7, 0x20, 0x3c, 0xd1, 0x31, 0x88, + 0xdc, 0x8d, 0x63, 0x70, 0x19, 0xe6, 0x86, 0x78, 0x99, 0x7a, 0x81, 0x7e, 0xb7, 0x04, 0x99, 0x71, + 0xf2, 0x9d, 0x60, 0x55, 0x03, 0x3e, 0xab, 0x7a, 0x79, 0x70, 0x10, 0x4e, 0x8d, 0x1f, 0xc7, 0x21, + 0x75, 0xf9, 0x84, 0x04, 0x47, 0x47, 0x47, 0x37, 0x23, 0x79, 0x78, 0x2b, 0x44, 0x3a, 0xd8, 0xde, + 0x35, 0x85, 0xb7, 0xfe, 0xc0, 0x08, 0x1f, 0x90, 0x54, 0x0f, 0xea, 0x0b, 0xc7, 0xf2, 0x3a, 0x91, + 0xc1, 0x71, 0x21, 0x0a, 0xe3, 0x66, 0x88, 0xd3, 0xef, 0x09, 0xc0, 0x91, 0x91, 0xc4, 0x47, 0x32, + 0x7a, 0x2f, 0x80, 0x6e, 0x74, 0xfb, 0x36, 0xf3, 0xc8, 0x99, 0x31, 0x8f, 0xd3, 0x12, 0x6a, 0xff, + 0x88, 0xa1, 0xee, 0xdb, 0x4e, 0x3d, 0x5b, 0x68, 0x81, 0x15, 0x51, 0x80, 0x27, 0x5d, 0x46, 0x43, + 0x94, 0xd1, 0x93, 0x63, 0x7a, 0x3a, 0xa4, 0xdb, 0x8f, 0x82, 0xdc, 0x6c, 0xeb, 0xd8, 0xb0, 0x55, + 0xcb, 0xee, 0x61, 0xad, 0xa3, 0x1b, 0x3b, 0x6c, 0xc1, 0x5e, 0x0d, 0x6f, 0x6b, 0x6d, 0x0b, 0x2b, + 0x69, 0x56, 0x5d, 0x17, 0xb5, 0x04, 0x83, 0x2a, 0x50, 0xcf, 0x83, 0x11, 0xf1, 0x61, 0xb0, 0x6a, + 0x07, 0x23, 0xf7, 0xb3, 0x71, 0x48, 0x78, 0x62, 0x41, 0x74, 0x0a, 0x92, 0xcf, 0x6b, 0xb7, 0x35, + 0x55, 0x24, 0x03, 0x98, 0x24, 0x12, 0xa4, 0x6c, 0x83, 0x27, 0x04, 0x1e, 0x85, 0x05, 0x0a, 0x62, + 0xf6, 0x6d, 0xdc, 0x53, 0x9b, 0x6d, 0xcd, 0xb2, 0xa8, 0xd0, 0x62, 0x14, 0x14, 0x91, 0xba, 0x1a, + 0xa9, 0x2a, 0x8a, 0x1a, 0x74, 0x01, 0xe6, 0x29, 0x46, 0xa7, 0xdf, 0xb6, 0xf5, 0x6e, 0x1b, 0xd3, + 0x34, 0x87, 0x45, 0x57, 0x2d, 0x87, 0xb3, 0x39, 0x02, 0xb1, 0xce, 0x01, 0x08, 0x47, 0x16, 0x2a, + 0xc1, 0xbd, 0x14, 0x6d, 0x07, 0x1b, 0xb8, 0xa7, 0xd9, 0x58, 0xc5, 0xef, 0xe8, 0x6b, 0x6d, 0x4b, + 0xd5, 0x8c, 0x96, 0xba, 0xab, 0x59, 0xbb, 0x99, 0x05, 0x42, 0xa0, 0x10, 0xc8, 0x48, 0xca, 0x71, + 0x02, 0x78, 0x95, 0xc3, 0x95, 0x29, 0x58, 0xde, 0x68, 0x5d, 0xd3, 0xac, 0x5d, 0xb4, 0x0a, 0x47, + 0x29, 0x15, 0xcb, 0xee, 0xe9, 0xc6, 0x8e, 0xda, 0xdc, 0xc5, 0xcd, 0x5b, 0x6a, 0xdf, 0xde, 0x7e, + 0x32, 0x73, 0xc2, 0xdb, 0x3e, 0xe5, 0xb0, 0x4e, 0x61, 0x8a, 0x04, 0x64, 0xd3, 0xde, 0x7e, 0x12, + 0xd5, 0x21, 0x49, 0x06, 0xa3, 0xa3, 0xbf, 0x88, 0xd5, 0x6d, 0xb3, 0x47, 0x97, 0xe1, 0xd4, 0x08, + 0xeb, 0xe6, 0x91, 0xe0, 0x72, 0x8d, 0x23, 0xac, 0x9b, 0x2d, 0xbc, 0x1a, 0xae, 0x6f, 0x94, 0xcb, + 0x25, 0x25, 0x21, 0xa8, 0x5c, 0x31, 0x7b, 0x44, 0xa1, 0x76, 0x4c, 0x47, 0xc0, 0x09, 0xa6, 0x50, + 0x3b, 0xa6, 0x10, 0xef, 0x05, 0x98, 0x6f, 0x36, 0x59, 0x9f, 0xf5, 0xa6, 0xca, 0xf3, 0x02, 0x56, + 0x46, 0xf6, 0x09, 0xab, 0xd9, 0xbc, 0xca, 0x00, 0xb8, 0x8e, 0x5b, 0xe8, 0x12, 0x1c, 0x71, 0x85, + 0xe5, 0x45, 0x9c, 0x1b, 0xea, 0xe5, 0x20, 0xea, 0x05, 0x98, 0xef, 0xee, 0x0f, 0x23, 0x22, 0x5f, + 0x8b, 0xdd, 0xfd, 0x41, 0xb4, 0xfb, 0x69, 0x62, 0xa8, 0x87, 0x9b, 0xd4, 0x5b, 0x3c, 0xe6, 0x85, + 0xf6, 0x54, 0xa0, 0x65, 0x90, 0x9b, 0x4d, 0x15, 0x1b, 0xda, 0x56, 0x1b, 0xab, 0x5a, 0x0f, 0x1b, + 0x9a, 0x95, 0x59, 0xa4, 0xc0, 0x21, 0xbb, 0xd7, 0xc7, 0x4a, 0xaa, 0xd9, 0x2c, 0xd3, 0xca, 0x3c, + 0xad, 0x43, 0x67, 0x60, 0xce, 0xdc, 0x7a, 0xbe, 0xc9, 0x14, 0x4b, 0xed, 0xf6, 0xf0, 0xb6, 0xbe, + 0x97, 0x79, 0x13, 0x95, 0x52, 0x9a, 0x54, 0x50, 0xb5, 0xda, 0xa0, 0xc5, 0xe8, 0x21, 0x90, 0x9b, + 0xd6, 0xae, 0xd6, 0xeb, 0x52, 0xe3, 0x6c, 0x75, 0xb5, 0x26, 0xce, 0xdc, 0xcf, 0x40, 0x59, 0x79, + 0x55, 0x14, 0x13, 0xc5, 0xb6, 0x5e, 0xd0, 0xb7, 0x6d, 0x41, 0xf1, 0x41, 0xa6, 0xd8, 0xb4, 0x8c, + 0x53, 0x3b, 0x0d, 0x72, 0x77, 0xb7, 0xeb, 0x6f, 0xf8, 0x34, 0x05, 0x4b, 0x75, 0x77, 0xbb, 0xde, + 0x76, 0xef, 0x83, 0x59, 0x02, 0xe9, 0x36, 0xfa, 0x10, 0x73, 0xe1, 0xba, 0xbb, 0x9e, 0x16, 0x1f, + 0x87, 0xa3, 0x04, 0xa8, 0x83, 0x6d, 0xad, 0xa5, 0xd9, 0x9a, 0x07, 0xfa, 0x11, 0x0a, 0xbd, 0xd0, + 0xdd, 0xed, 0xae, 0xf3, 0x4a, 0x1f, 0x9f, 0xbd, 0xfe, 0xd6, 0xbe, 0xa3, 0x1f, 0x67, 0x19, 0x9f, + 0xa4, 0x4c, 0x68, 0xc8, 0x5d, 0x47, 0x30, 0xdf, 0xb4, 0x78, 0x2d, 0xb7, 0x0a, 0x49, 0xaf, 0xde, + 0xa3, 0x38, 0x30, 0xcd, 0x97, 0x25, 0xe2, 0x47, 0x15, 0x6b, 0x25, 0xe2, 0x01, 0x3d, 0x57, 0x96, + 0x03, 0xc4, 0x13, 0x5b, 0xab, 0x34, 0xca, 0xaa, 0xb2, 0x59, 0x6d, 0x54, 0xd6, 0xcb, 0x72, 0xd0, + 0x13, 0x1b, 0x5c, 0x0f, 0xc5, 0xce, 0xc8, 0x0f, 0x5f, 0x0f, 0xc5, 0x1e, 0x90, 0x1f, 0xa4, 0xe2, + 0x19, 0x52, 0xca, 0xdc, 0x6b, 0x41, 0x48, 0xf9, 0x93, 0x03, 0xe8, 0xcd, 0x70, 0x4c, 0x64, 0xff, + 0x2c, 0x6c, 0xab, 0x2f, 0xe8, 0x3d, 0x3a, 0x59, 0x3b, 0x1a, 0x5b, 0x38, 0x1d, 0xa5, 0x5c, 0xe0, + 0x50, 0x75, 0x6c, 0x3f, 0xa3, 0xf7, 0xc8, 0x54, 0xec, 0x68, 0x36, 0x5a, 0x83, 0x45, 0xc3, 0x54, + 0x2d, 0x5b, 0x33, 0x5a, 0x5a, 0xaf, 0xe5, 0xcd, 0xbd, 0x6a, 0xcd, 0x26, 0xb6, 0x2c, 0x93, 0x2d, + 0x92, 0x0e, 0x95, 0x7b, 0x0c, 0xb3, 0xce, 0x81, 0xdd, 0xd5, 0x23, 0xcf, 0x41, 0x07, 0xe6, 0x44, + 0x70, 0xdc, 0x9c, 0x38, 0x01, 0xf1, 0x8e, 0xd6, 0x55, 0xb1, 0x61, 0xf7, 0xf6, 0xa9, 0xfb, 0x1f, + 0x53, 0x62, 0x1d, 0xad, 0x5b, 0x26, 0xdf, 0xe8, 0x06, 0x3c, 0xe0, 0x82, 0xaa, 0x6d, 0xbc, 0xa3, + 0x35, 0xf7, 0x55, 0xea, 0xeb, 0xd3, 0x4c, 0x95, 0xda, 0x34, 0x8d, 0xed, 0xb6, 0xde, 0xb4, 0x2d, + 0x6a, 0x3b, 0x98, 0xfd, 0xcb, 0xb9, 0x18, 0x6b, 0x14, 0xe1, 0xba, 0x65, 0x1a, 0xd4, 0xc5, 0x2f, + 0x0a, 0x68, 0x9f, 0xda, 0x24, 0xdf, 0x10, 0x6a, 0xe3, 0x1f, 0xfa, 0x90, 0x1c, 0xbe, 0x1e, 0x8a, + 0x85, 0xe5, 0xc8, 0xf5, 0x50, 0x2c, 0x22, 0x47, 0xaf, 0x87, 0x62, 0x31, 0x39, 0x7e, 0x3d, 0x14, + 0x8b, 0xcb, 0x90, 0xbb, 0x33, 0x0b, 0x49, 0x6f, 0xc4, 0x42, 0x02, 0xc0, 0x26, 0x5d, 0x70, 0x25, + 0x6a, 0x92, 0xef, 0x3b, 0x30, 0xbe, 0x59, 0x2e, 0x92, 0x95, 0x78, 0x35, 0xc2, 0xc2, 0x03, 0x85, + 0x61, 0x12, 0x2f, 0x88, 0x4c, 0x32, 0xcc, 0x7c, 0xa9, 0x98, 0xc2, 0xbf, 0xd0, 0x55, 0x88, 0x3c, + 0x6f, 0x51, 0xda, 0xcc, 0x95, 0x7b, 0xd3, 0xc1, 0xb4, 0xaf, 0xd7, 0x29, 0xf1, 0xf8, 0xf5, 0xba, + 0x5a, 0xad, 0x29, 0xeb, 0xf9, 0x35, 0x85, 0xa3, 0xa3, 0xe3, 0x10, 0x6a, 0x6b, 0x2f, 0xee, 0xfb, + 0xd7, 0x6c, 0x5a, 0x84, 0x96, 0x21, 0xdd, 0x37, 0x58, 0xb8, 0x4f, 0xc6, 0x98, 0x40, 0xa5, 0xbd, + 0x50, 0x29, 0xb7, 0x76, 0x8d, 0xc0, 0x4f, 0xa9, 0x57, 0xc7, 0x21, 0xf4, 0x02, 0xd6, 0x6e, 0xf9, + 0x57, 0x56, 0x5a, 0x84, 0x4e, 0x43, 0xb2, 0x85, 0xb7, 0xfa, 0x3b, 0x6a, 0x0f, 0xb7, 0xb4, 0xa6, + 0xed, 0x5f, 0x4f, 0x12, 0xb4, 0x4a, 0xa1, 0x35, 0xe8, 0x69, 0x88, 0x93, 0x31, 0x32, 0xe8, 0x18, + 0xcf, 0x51, 0x11, 0x9c, 0x3d, 0x58, 0x04, 0x7c, 0x88, 0x05, 0x92, 0xe2, 0xe2, 0xa3, 0x6b, 0x10, + 0xb5, 0xb5, 0xde, 0x0e, 0xb6, 0xad, 0xcc, 0xfc, 0x52, 0xf0, 0x74, 0x6a, 0x44, 0xa6, 0x6e, 0x04, + 0xa9, 0x06, 0x45, 0xa1, 0xc1, 0xb6, 0x40, 0x47, 0xcf, 0x80, 0xcc, 0x13, 0xc2, 0x2a, 0x8f, 0x94, + 0xad, 0xcc, 0x02, 0x55, 0xc0, 0x47, 0x0e, 0x26, 0xc9, 0xf3, 0xc9, 0x25, 0x86, 0xa4, 0xa4, 0xb1, + 0xef, 0xdb, 0x3f, 0x2f, 0x8e, 0x1c, 0x66, 0x5e, 0x6c, 0x42, 0x9a, 0xff, 0xad, 0x5a, 0xfd, 0x6e, + 0xd7, 0xec, 0xd9, 0x99, 0xa3, 0x14, 0x7f, 0x02, 0x43, 0x82, 0x18, 0xc3, 0x51, 0x52, 0xdb, 0xbe, + 0xef, 0x6f, 0xde, 0x74, 0xcb, 0x3e, 0x07, 0x29, 0xbf, 0x30, 0xbc, 0xe9, 0xf8, 0xe0, 0x94, 0xe9, + 0x78, 0x12, 0x96, 0x88, 0x58, 0x8f, 0x2c, 0x4d, 0xec, 0x23, 0xfb, 0x43, 0x01, 0x48, 0xf9, 0x3b, + 0x86, 0xae, 0x02, 0x12, 0x23, 0xa6, 0x1b, 0x76, 0xcf, 0x6c, 0xf5, 0x9b, 0xb8, 0xc5, 0x27, 0xec, + 0xf8, 0x76, 0xe6, 0x38, 0x4e, 0xc5, 0x41, 0xf1, 0x12, 0xf2, 0xcc, 0x82, 0xc0, 0x94, 0x84, 0x4a, + 0xee, 0xfc, 0x38, 0x07, 0xf3, 0x82, 0x00, 0x21, 0xf6, 0x82, 0xd6, 0x33, 0x88, 0x8b, 0xcc, 0x9c, + 0x76, 0xe4, 0xa9, 0x7a, 0x86, 0xd5, 0xa0, 0x3c, 0x08, 0x75, 0x51, 0x7b, 0xb8, 0x63, 0xde, 0xc6, + 0x2d, 0x9e, 0x71, 0x1a, 0xdf, 0x6c, 0x8a, 0x23, 0x28, 0x0c, 0x3e, 0x77, 0x0e, 0xc2, 0xd4, 0xfc, + 0x20, 0x00, 0x6e, 0x80, 0xe4, 0x19, 0x14, 0x83, 0x50, 0xb1, 0xa6, 0x90, 0xe5, 0x51, 0x86, 0x24, + 0x2b, 0x55, 0x37, 0x2a, 0xe5, 0x62, 0x59, 0x0e, 0xe4, 0x2e, 0x40, 0x84, 0xd9, 0x14, 0xb2, 0x74, + 0x3a, 0x56, 0x45, 0x9e, 0xe1, 0x9f, 0x9c, 0x86, 0x24, 0x6a, 0x37, 0xd7, 0x0b, 0x65, 0x45, 0x0e, + 0xe4, 0x36, 0x21, 0x3d, 0x30, 0x0f, 0xd1, 0x11, 0x98, 0x53, 0xca, 0x8d, 0x72, 0xb5, 0x51, 0xa9, + 0x55, 0xd5, 0xcd, 0xea, 0xd3, 0xd5, 0xda, 0x33, 0x55, 0x79, 0xc6, 0x5f, 0x2c, 0xd6, 0x61, 0x09, + 0x2d, 0x80, 0xec, 0x16, 0xd7, 0x6b, 0x9b, 0x0a, 0xe5, 0xe6, 0x7b, 0x03, 0x20, 0x0f, 0x4e, 0x4a, + 0x74, 0x0c, 0xe6, 0x1b, 0x79, 0xe5, 0x6a, 0xb9, 0xa1, 0xb2, 0x9c, 0x89, 0x43, 0x7a, 0x01, 0x64, + 0x6f, 0xc5, 0x95, 0x0a, 0x4d, 0x09, 0x2d, 0xc2, 0x09, 0x6f, 0x69, 0xf9, 0xd9, 0x46, 0xb9, 0x5a, + 0xa7, 0x8d, 0xe7, 0xab, 0x57, 0x89, 0x53, 0x30, 0x40, 0x4f, 0x64, 0x69, 0x82, 0x84, 0x55, 0x3f, + 0xbd, 0xf2, 0x5a, 0x49, 0x0e, 0x0d, 0x16, 0xd7, 0xaa, 0xe5, 0xda, 0x15, 0x39, 0x3c, 0xd8, 0x3a, + 0xcd, 0xdc, 0x44, 0x50, 0x16, 0x8e, 0x0e, 0x96, 0xaa, 0xe5, 0x6a, 0x43, 0xb9, 0x29, 0x47, 0x07, + 0x1b, 0xae, 0x97, 0x95, 0x1b, 0x95, 0x62, 0x59, 0x8e, 0xa1, 0xa3, 0x80, 0xfc, 0x1c, 0x35, 0xae, + 0xd5, 0x4a, 0x72, 0x7c, 0xd4, 0x8a, 0x85, 0xe4, 0xf9, 0xdc, 0xcf, 0x48, 0x90, 0xf4, 0x66, 0x51, + 0x7c, 0x46, 0x45, 0x7a, 0xa3, 0x2d, 0xb6, 0xb9, 0xdf, 0x0e, 0x40, 0xc2, 0x93, 0x4e, 0x21, 0x41, + 0xac, 0xd6, 0x6e, 0x9b, 0x2f, 0xa8, 0x5a, 0x5b, 0xd7, 0x2c, 0xbe, 0x1e, 0x02, 0x2d, 0xca, 0x93, + 0x92, 0x69, 0xd7, 0x9f, 0xe9, 0x5d, 0x97, 0xc8, 0x5d, 0xbb, 0x2e, 0xd1, 0x37, 0xa0, 0xeb, 0x12, + 0x96, 0x23, 0xb9, 0xdf, 0x0d, 0x80, 0x3c, 0x98, 0x1d, 0x19, 0x90, 0x9b, 0x34, 0x4e, 0x6e, 0xde, + 0xfe, 0x05, 0x0e, 0xd3, 0xbf, 0xc1, 0x55, 0x3d, 0x38, 0x76, 0x55, 0x1f, 0xb1, 0x58, 0x85, 0xde, + 0xc8, 0x8b, 0x95, 0x57, 0x5d, 0xff, 0x9d, 0x04, 0x29, 0x7f, 0x32, 0xc7, 0x27, 0xb1, 0xdc, 0x61, + 0x24, 0xe6, 0x1f, 0x91, 0x53, 0xe3, 0x46, 0xe4, 0x6f, 0xa5, 0x5f, 0x3f, 0x12, 0x84, 0x59, 0x5f, + 0xee, 0x67, 0x5a, 0xee, 0xde, 0x01, 0x73, 0x7a, 0x0b, 0x77, 0xba, 0xa6, 0x8d, 0x8d, 0xe6, 0xbe, + 0xda, 0xc6, 0xb7, 0x71, 0x9b, 0x8a, 0x21, 0x35, 0x62, 0x8f, 0xd7, 0xd7, 0xc2, 0x72, 0xc5, 0xc5, + 0x5b, 0x23, 0x68, 0xab, 0xf3, 0x95, 0x52, 0x79, 0x7d, 0xa3, 0xd6, 0x28, 0x57, 0x8b, 0x37, 0x85, + 0x25, 0x57, 0x64, 0x7d, 0x00, 0xcc, 0x27, 0xf0, 0xfb, 0xde, 0x18, 0x41, 0xe7, 0x06, 0xc8, 0x83, + 0xbd, 0x21, 0x06, 0x7d, 0x44, 0x7f, 0xe4, 0x19, 0x34, 0x0f, 0xe9, 0x6a, 0x4d, 0xad, 0x57, 0x4a, + 0x65, 0xb5, 0x7c, 0xe5, 0x4a, 0xb9, 0xd8, 0xa8, 0xb3, 0xbd, 0x0a, 0x07, 0xba, 0x21, 0x07, 0xbc, + 0x63, 0xf3, 0xa3, 0x41, 0x98, 0x1f, 0xc1, 0x09, 0xca, 0xf3, 0x14, 0x21, 0xcb, 0x5a, 0x9e, 0x9d, + 0x86, 0xfb, 0x65, 0x12, 0xdd, 0x6f, 0x68, 0x3d, 0x9b, 0x67, 0x14, 0x1f, 0x02, 0x22, 0x5e, 0xc3, + 0x26, 0xee, 0x7d, 0x8f, 0xef, 0x01, 0x31, 0x17, 0x24, 0xed, 0x96, 0xb3, 0x6d, 0xa0, 0x47, 0x00, + 0x75, 0x4d, 0x4b, 0xb7, 0xf5, 0xdb, 0x98, 0xf8, 0x50, 0x1c, 0x98, 0x4c, 0xdc, 0x90, 0x22, 0x8b, + 0x9a, 0x8a, 0x61, 0x3b, 0xd0, 0x06, 0xde, 0xd1, 0x06, 0xa0, 0x49, 0xf8, 0x11, 0x54, 0x64, 0x51, + 0xe3, 0x40, 0x9f, 0x82, 0x64, 0xcb, 0xec, 0x6f, 0xb5, 0x31, 0x87, 0x23, 0x26, 0x59, 0x52, 0x12, + 0xac, 0xcc, 0x01, 0xe1, 0x69, 0x33, 0x77, 0xa7, 0x2a, 0xa9, 0x24, 0x58, 0x19, 0x03, 0x79, 0x10, + 0xd2, 0xda, 0xce, 0x4e, 0x8f, 0x10, 0x17, 0x84, 0x58, 0x22, 0x30, 0xe5, 0x14, 0x53, 0xc0, 0xec, + 0x75, 0x88, 0x09, 0x39, 0x90, 0xf8, 0x97, 0x48, 0x42, 0xed, 0xb2, 0xec, 0x76, 0xe0, 0x74, 0x5c, + 0x89, 0x19, 0xa2, 0xf2, 0x14, 0x24, 0x75, 0xcb, 0x3d, 0xf5, 0x94, 0x09, 0x2c, 0x05, 0x4e, 0xc7, + 0x94, 0x84, 0x6e, 0xb9, 0x27, 0x9b, 0x7e, 0x49, 0x06, 0x70, 0x95, 0x0d, 0x7d, 0xbf, 0x04, 0x29, + 0xb6, 0xc0, 0x74, 0x7b, 0xd8, 0xc2, 0x46, 0x53, 0x84, 0x85, 0x0f, 0x1d, 0xa0, 0xa2, 0xcc, 0xcc, + 0x6d, 0x70, 0x84, 0xc2, 0x53, 0xef, 0x95, 0xa4, 0x97, 0xa5, 0xd0, 0xcb, 0x92, 0xf4, 0x31, 0x69, + 0x16, 0xc5, 0xca, 0xcf, 0x6e, 0xac, 0x55, 0x8a, 0x95, 0x46, 0xe6, 0x3d, 0x51, 0xfa, 0x5d, 0x59, + 0xe7, 0xdf, 0xaf, 0x44, 0xfd, 0xf5, 0xaf, 0x46, 0x3f, 0x2d, 0x05, 0x63, 0xaf, 0x46, 0x95, 0xd9, + 0x6d, 0x2f, 0x3d, 0xd4, 0xf6, 0x9e, 0xe3, 0x08, 0x8c, 0x0b, 0x24, 0x5d, 0x6e, 0xca, 0xfc, 0xf4, + 0x46, 0xe1, 0x21, 0xca, 0x48, 0x84, 0x32, 0x92, 0x40, 0x91, 0xe2, 0x5a, 0xad, 0x5e, 0x2e, 0x51, + 0x36, 0xe2, 0x28, 0x54, 0xdb, 0x28, 0x57, 0x33, 0xaf, 0x88, 0x26, 0xdd, 0x23, 0x1f, 0x2f, 0x4b, + 0x70, 0x4c, 0x6c, 0xd4, 0xf2, 0xb5, 0x16, 0x1b, 0x4d, 0xb3, 0x25, 0xbc, 0xdb, 0xd4, 0xca, 0xf9, + 0x83, 0x1a, 0x57, 0x38, 0x2a, 0x15, 0x49, 0x99, 0x23, 0x16, 0xce, 0x0e, 0x89, 0x24, 0x5f, 0x2d, + 0x71, 0x5e, 0x12, 0x28, 0xb2, 0x91, 0x2f, 0x3e, 0x5d, 0x2e, 0xb9, 0xdc, 0x1c, 0xe9, 0x8d, 0xa2, + 0x82, 0xbe, 0x03, 0xd2, 0x7d, 0x7b, 0xfb, 0x49, 0xa2, 0x1b, 0x7a, 0x8b, 0xed, 0x9c, 0x87, 0xc6, + 0x6d, 0xb9, 0xba, 0x1c, 0x6d, 0xda, 0xdb, 0x4f, 0xde, 0x70, 0x30, 0xb8, 0x50, 0x18, 0x2b, 0x71, + 0x14, 0xaa, 0xd6, 0xaa, 0x65, 0xc1, 0x06, 0xdd, 0x65, 0xbe, 0xe9, 0xb2, 0x91, 0xea, 0xfb, 0x50, + 0xd1, 0x77, 0x80, 0x2c, 0xd2, 0x43, 0x8e, 0x48, 0xc2, 0xe3, 0x76, 0x8d, 0x5d, 0x06, 0x78, 0x92, + 0xc9, 0x11, 0xc6, 0x03, 0x1e, 0x0e, 0x16, 0x50, 0x7a, 0xad, 0x5c, 0xbd, 0xda, 0xb8, 0xa6, 0x6e, + 0x28, 0x65, 0xba, 0xf9, 0x97, 0x79, 0x8f, 0x68, 0x3e, 0xdd, 0xf1, 0x23, 0xa2, 0xef, 0x94, 0x20, + 0xc1, 0x5c, 0x20, 0x96, 0x93, 0x62, 0x49, 0x85, 0x07, 0x0e, 0x6a, 0x9b, 0x7a, 0x40, 0x14, 0xba, + 0x70, 0x89, 0x36, 0x1b, 0x14, 0x0a, 0x71, 0x0c, 0xa1, 0xb5, 0xf2, 0xd5, 0x7c, 0xf1, 0xa6, 0x5a, + 0x28, 0xd7, 0x1b, 0xc4, 0x92, 0xd5, 0x14, 0xa6, 0xa3, 0x80, 0xc2, 0xf9, 0xb5, 0xb5, 0xda, 0x33, + 0xae, 0x20, 0xe0, 0x79, 0x87, 0x0c, 0xfa, 0x69, 0x09, 0x16, 0xb0, 0xb1, 0x6d, 0xf6, 0x9a, 0x74, + 0xc3, 0x9a, 0xcc, 0x68, 0xcb, 0xde, 0x6f, 0xb3, 0x19, 0x3d, 0x32, 0x28, 0xf7, 0x6a, 0x26, 0xc5, + 0xab, 0x52, 0xb4, 0x3a, 0xc1, 0x2a, 0x54, 0xde, 0x2b, 0x05, 0x5e, 0x26, 0x8c, 0x05, 0x28, 0x6f, + 0xa1, 0x97, 0xa5, 0x30, 0xe5, 0x30, 0xfa, 0xb2, 0x14, 0x7b, 0x59, 0x8a, 0x7f, 0x4c, 0x9a, 0x43, + 0xc9, 0x7a, 0xe3, 0xe6, 0x5a, 0x59, 0x65, 0xdc, 0x52, 0x0e, 0x53, 0x28, 0x4e, 0xcb, 0x56, 0x1e, + 0x5d, 0x79, 0x3c, 0xf3, 0x25, 0xca, 0xe5, 0x97, 0xa2, 0x0a, 0xc2, 0x43, 0xe4, 0xd1, 0x2f, 0x49, + 0x70, 0x5c, 0x6c, 0x91, 0x5b, 0x74, 0xdb, 0x4c, 0xf5, 0x6c, 0xb0, 0xc5, 0x28, 0xcb, 0xe5, 0x83, + 0x58, 0x76, 0x77, 0xd9, 0x78, 0xe1, 0x32, 0x0f, 0x78, 0x07, 0x37, 0xe1, 0x0a, 0x17, 0x59, 0x4f, + 0x3e, 0x26, 0xa5, 0x11, 0x94, 0x9f, 0xdd, 0xa8, 0x29, 0x0d, 0x35, 0xbf, 0xb6, 0x46, 0xf9, 0x3d, + 0x82, 0x64, 0x5e, 0xd2, 0xa8, 0x6d, 0xa8, 0x6b, 0xe5, 0x1b, 0xe5, 0x35, 0x97, 0xed, 0x63, 0xad, + 0xd1, 0x04, 0xb3, 0x1f, 0x95, 0x60, 0x6e, 0xa8, 0xf9, 0xdc, 0xbb, 0x24, 0x38, 0x36, 0x86, 0x05, + 0x74, 0x3f, 0x9c, 0x2a, 0x95, 0xaf, 0xe4, 0x37, 0xd7, 0x1a, 0x6a, 0xfd, 0xe6, 0x7a, 0xa1, 0xb6, + 0xa6, 0xde, 0xa8, 0xd4, 0x2b, 0x85, 0xca, 0x5a, 0xa5, 0xe1, 0x5d, 0xc0, 0x52, 0xe0, 0x61, 0x90, + 0x85, 0x6b, 0x83, 0xec, 0xc9, 0x01, 0x12, 0x14, 0xae, 0xd5, 0x8a, 0xf9, 0x35, 0x0a, 0x14, 0x14, + 0x31, 0x67, 0xb1, 0x21, 0x87, 0xae, 0xc7, 0x62, 0x12, 0x5f, 0xdb, 0xbe, 0x15, 0x66, 0x7d, 0xc6, + 0x8f, 0x84, 0x48, 0x34, 0xb4, 0x22, 0xfa, 0x5c, 0x2f, 0x57, 0x8b, 0xde, 0x90, 0x2e, 0x09, 0x8e, + 0xb1, 0x93, 0x25, 0xf2, 0x25, 0x4c, 0xa1, 0x1c, 0x20, 0x8b, 0x2a, 0x57, 0x47, 0x67, 0x73, 0x3a, + 0x98, 0x7b, 0x02, 0x62, 0xc2, 0x98, 0x91, 0x40, 0x8d, 0xc6, 0x5b, 0x03, 0x61, 0x62, 0x0c, 0xa8, + 0x25, 0x93, 0x25, 0xc2, 0x20, 0xb3, 0x70, 0x72, 0x20, 0x77, 0x03, 0x8e, 0x8c, 0x34, 0x44, 0xe8, + 0x3e, 0x58, 0x14, 0x1b, 0xe2, 0x2c, 0x04, 0x54, 0xcb, 0xd5, 0x62, 0xad, 0x44, 0x82, 0x66, 0x97, + 0x26, 0x00, 0xb7, 0x48, 0x8c, 0x4b, 0x61, 0xad, 0xe4, 0x40, 0xae, 0x02, 0x29, 0xbf, 0x39, 0x41, + 0x27, 0xe0, 0xd8, 0x66, 0xe3, 0xca, 0x93, 0xea, 0x8d, 0xfc, 0x5a, 0xa5, 0x94, 0x1f, 0x08, 0x8f, + 0x01, 0xb8, 0x4d, 0x91, 0x03, 0x84, 0x51, 0x62, 0x6b, 0xe4, 0x60, 0x2e, 0x14, 0x93, 0x64, 0x29, + 0x57, 0x87, 0xf4, 0x80, 0x61, 0x40, 0xf7, 0x40, 0x86, 0xc7, 0xab, 0xa3, 0xb8, 0xa2, 0x12, 0xf2, + 0x99, 0x0a, 0x16, 0xb9, 0x97, 0xca, 0x6b, 0x95, 0xf5, 0x4a, 0x83, 0xf2, 0x77, 0x0d, 0xc0, 0x9d, + 0xf1, 0xc4, 0x83, 0xb9, 0x5e, 0xaf, 0x55, 0xd5, 0x2b, 0x24, 0xec, 0x6f, 0x78, 0x48, 0xc5, 0x81, + 0xcd, 0x70, 0x59, 0x22, 0xd1, 0xe9, 0xb0, 0x19, 0x90, 0x03, 0xb9, 0x67, 0x00, 0x0d, 0xcf, 0x56, + 0xb4, 0x04, 0xf7, 0x94, 0xab, 0x57, 0x6a, 0x4a, 0xb1, 0xac, 0x56, 0xf3, 0xeb, 0x84, 0x3f, 0x36, + 0x37, 0x5d, 0xd2, 0xb3, 0xe0, 0x4e, 0x4d, 0x91, 0x93, 0x70, 0x67, 0xaf, 0x1c, 0x38, 0xf3, 0x29, + 0x89, 0x78, 0x46, 0xef, 0xab, 0x66, 0x3f, 0x21, 0xa1, 0x7b, 0x63, 0xaf, 0x46, 0x51, 0x74, 0xb9, + 0xbb, 0xb5, 0xdc, 0xec, 0x76, 0xb3, 0x69, 0xf2, 0x47, 0xb1, 0xdb, 0xbd, 0x22, 0xfc, 0xbd, 0xc5, + 0xd8, 0x97, 0xa2, 0x28, 0x46, 0x4a, 0x9f, 0xd7, 0x6e, 0x6b, 0x59, 0x99, 0xfc, 0x75, 0x5d, 0xbb, + 0xad, 0x39, 0x00, 0x27, 0x62, 0x5f, 0x8e, 0xa2, 0x08, 0x29, 0xde, 0x31, 0xb3, 0x29, 0xf2, 0xff, + 0x55, 0xd3, 0xa9, 0xbc, 0x2f, 0xf6, 0x95, 0x28, 0x02, 0x52, 0xd8, 0xdd, 0xb7, 0x77, 0x4d, 0x23, + 0x8b, 0xc8, 0xdf, 0x1b, 0xf4, 0x6f, 0x0f, 0xd0, 0x77, 0x57, 0x39, 0x10, 0x99, 0xfc, 0xe7, 0x39, + 0x10, 0xfd, 0x5b, 0x00, 0x9d, 0x89, 0xc4, 0xde, 0x57, 0x95, 0x3f, 0x50, 0x3d, 0x13, 0x89, 0x7d, + 0xa0, 0x2a, 0x7f, 0x7f, 0xf5, 0x7a, 0x24, 0xf6, 0x4a, 0x54, 0x7e, 0x35, 0x9a, 0xfb, 0xd3, 0x20, + 0x20, 0xd7, 0x54, 0x38, 0x59, 0xc0, 0x67, 0x21, 0xe6, 0xa4, 0x15, 0xd9, 0x39, 0xef, 0x37, 0x1f, + 0x60, 0x61, 0x04, 0x9a, 0xa7, 0x68, 0x20, 0xcd, 0xe8, 0x50, 0x43, 0x79, 0x48, 0x77, 0x74, 0x43, + 0xef, 0xf4, 0x3b, 0xaa, 0xc8, 0xb5, 0x4d, 0xcc, 0x21, 0x71, 0x04, 0xfe, 0x4d, 0x49, 0x68, 0x7b, + 0x3e, 0x12, 0xe1, 0x89, 0x24, 0x18, 0x02, 0xff, 0xce, 0xfe, 0xb5, 0x04, 0x99, 0x71, 0xcc, 0xde, + 0x55, 0x1a, 0xb0, 0x0a, 0x0b, 0xe6, 0x6d, 0xdc, 0xeb, 0xe9, 0x2d, 0xba, 0xb3, 0xe7, 0x04, 0x07, + 0xa1, 0xc9, 0xc1, 0xc1, 0xbc, 0x07, 0xd1, 0x19, 0xd4, 0x02, 0xf1, 0xe1, 0xf6, 0x88, 0xfb, 0x22, + 0x28, 0x85, 0x27, 0x53, 0x9a, 0xa5, 0x28, 0x82, 0xc6, 0x75, 0x32, 0x49, 0x49, 0x3c, 0x1e, 0x90, + 0x83, 0x6e, 0x04, 0x92, 0xfb, 0x70, 0x10, 0x52, 0xfe, 0xe3, 0xca, 0xa8, 0x04, 0xb1, 0xb6, 0xc9, + 0xcf, 0xf1, 0xb1, 0xd1, 0x3e, 0x3d, 0xe1, 0x84, 0xf3, 0xf2, 0x1a, 0x87, 0x57, 0x1c, 0xcc, 0xec, + 0xbf, 0x95, 0x20, 0x26, 0x8a, 0xd1, 0x51, 0x08, 0x75, 0x35, 0x7b, 0x97, 0x92, 0x0b, 0x17, 0x02, + 0xb2, 0xa4, 0xd0, 0x6f, 0x52, 0x6e, 0x75, 0x35, 0x76, 0x86, 0x91, 0x97, 0x93, 0x6f, 0x12, 0x05, + 0xb4, 0xb1, 0xd6, 0xa2, 0x7b, 0xd2, 0x66, 0xa7, 0x83, 0x0d, 0xdb, 0x12, 0x51, 0x00, 0x2f, 0x2f, + 0xf2, 0x62, 0xf4, 0x30, 0xcc, 0xd9, 0x3d, 0x4d, 0x6f, 0xfb, 0x60, 0x43, 0x14, 0x56, 0x16, 0x15, + 0x0e, 0xf0, 0x2a, 0x1c, 0x17, 0x74, 0x5b, 0xd8, 0xd6, 0x9a, 0xbb, 0xb8, 0xe5, 0x22, 0x45, 0xe8, + 0xf1, 0x95, 0x63, 0x1c, 0xa0, 0xc4, 0xeb, 0x05, 0xee, 0x99, 0xbe, 0xef, 0xba, 0xc2, 0x0e, 0xc2, + 0xfc, 0xba, 0xc2, 0xf9, 0x31, 0xd7, 0x15, 0x06, 0x4f, 0x8b, 0x7b, 0xee, 0x2a, 0x9c, 0x19, 0x81, + 0xe2, 0x97, 0xa8, 0xeb, 0xce, 0x7f, 0x3e, 0x00, 0x73, 0x62, 0xf3, 0xbe, 0xe5, 0x8c, 0xd1, 0x3a, + 0x80, 0x66, 0x18, 0xa6, 0xed, 0x1d, 0xa5, 0xe1, 0x78, 0x6b, 0x08, 0x6f, 0x39, 0xef, 0x20, 0x29, + 0x1e, 0x02, 0xd9, 0xaf, 0x48, 0x00, 0x6e, 0xd5, 0xd8, 0xe1, 0x5a, 0x84, 0x04, 0xef, 0x15, 0xbd, + 0xf2, 0xc1, 0x72, 0xdc, 0xc0, 0x8a, 0xae, 0xe8, 0x6d, 0x7a, 0x2a, 0x67, 0x0b, 0xef, 0xe8, 0x06, + 0x3f, 0x91, 0xc8, 0x3e, 0xc4, 0xa9, 0x9c, 0x90, 0x7b, 0x62, 0x57, 0x81, 0x98, 0x85, 0x3b, 0x9a, + 0x61, 0xeb, 0x4d, 0x3e, 0x59, 0x2f, 0x1e, 0x8a, 0xf9, 0xe5, 0x3a, 0xc7, 0x56, 0x1c, 0x3a, 0xb9, + 0xd3, 0x10, 0x13, 0xa5, 0xce, 0xd2, 0x34, 0x83, 0xa2, 0x10, 0xac, 0x97, 0xc9, 0xe2, 0x4c, 0x57, + 0x88, 0x4a, 0xbe, 0x2e, 0x07, 0xce, 0x7c, 0x22, 0x00, 0x51, 0x61, 0x3d, 0xe6, 0x21, 0x5d, 0x2e, + 0x55, 0x06, 0x56, 0xb9, 0x79, 0x48, 0x89, 0x42, 0x6e, 0xe5, 0xdf, 0x13, 0xf5, 0x16, 0x6e, 0x28, + 0xb5, 0x46, 0x6d, 0x45, 0xfe, 0xe3, 0xe1, 0xc2, 0xc7, 0xe4, 0x57, 0xa2, 0x68, 0x0e, 0x92, 0xa2, + 0x70, 0xe5, 0xd1, 0x95, 0xc7, 0xe4, 0x57, 0x07, 0x8b, 0x1e, 0x97, 0xbf, 0x44, 0xd3, 0xab, 0xa2, + 0xe8, 0xbc, 0xda, 0x20, 0x4b, 0x55, 0xad, 0xba, 0x76, 0x53, 0x96, 0xbc, 0x15, 0x2b, 0x9e, 0x8a, + 0x00, 0xba, 0x17, 0x8e, 0x89, 0x8a, 0x4b, 0x97, 0x2e, 0x5d, 0x7a, 0xc2, 0x53, 0x79, 0xe7, 0xfd, + 0x91, 0xc1, 0xea, 0x27, 0x3d, 0xd5, 0x1f, 0x1e, 0xae, 0xbe, 0xe4, 0xa9, 0xfe, 0xb1, 0xf7, 0x47, + 0xd0, 0x3c, 0x24, 0x44, 0xf5, 0x7a, 0xfe, 0x59, 0xf9, 0xeb, 0x5f, 0xff, 0xfa, 0xd7, 0xa3, 0x67, + 0x36, 0x41, 0x1e, 0x72, 0xc9, 0x16, 0x40, 0xf6, 0xf9, 0x60, 0x44, 0xbc, 0x33, 0x03, 0xa5, 0xd4, + 0xcd, 0x92, 0x25, 0xe2, 0xe2, 0x78, 0x4a, 0x99, 0x4b, 0x26, 0x07, 0x0a, 0xdf, 0x01, 0xf3, 0x4d, + 0xb3, 0x33, 0x38, 0xe2, 0x05, 0x79, 0xe0, 0xc8, 0x91, 0x75, 0x4d, 0x7a, 0xee, 0x2c, 0x07, 0xda, + 0x31, 0xdb, 0x9a, 0xb1, 0xb3, 0x6c, 0xf6, 0x76, 0xdc, 0x2b, 0x4b, 0x24, 0x7c, 0xb4, 0x3c, 0x17, + 0x97, 0xba, 0x5b, 0x7f, 0x2d, 0x49, 0x1f, 0x0b, 0x04, 0xaf, 0x6e, 0x14, 0x7e, 0x2a, 0x90, 0xbd, + 0xca, 0x10, 0x37, 0x84, 0x3e, 0x29, 0x78, 0xbb, 0x8d, 0x9b, 0x64, 0xd0, 0xe1, 0x4f, 0x1e, 0x86, + 0x85, 0x1d, 0x73, 0xc7, 0xa4, 0x94, 0xce, 0x91, 0xbf, 0xf8, 0x9d, 0xa7, 0xb8, 0x53, 0x9a, 0x9d, + 0x78, 0x41, 0x6a, 0xb5, 0x0a, 0xf3, 0x1c, 0x58, 0xa5, 0xd1, 0x2c, 0x3b, 0x15, 0x81, 0x0e, 0x3c, + 0x9c, 0x97, 0xf9, 0xb9, 0x3f, 0xa2, 0x69, 0x48, 0x65, 0x8e, 0xa3, 0x92, 0x3a, 0x76, 0x70, 0x62, + 0x55, 0x81, 0x23, 0x3e, 0x7a, 0x2c, 0x93, 0x80, 0x7b, 0x13, 0x28, 0xfe, 0x3a, 0xa7, 0x38, 0xef, + 0xa1, 0x58, 0xe7, 0xa8, 0xab, 0x45, 0x98, 0x3d, 0x0c, 0xad, 0x7f, 0xc9, 0x69, 0x25, 0xb1, 0x97, + 0xc8, 0x55, 0x48, 0x53, 0x22, 0xcd, 0xbe, 0x65, 0x9b, 0x1d, 0x9a, 0xa6, 0x39, 0x98, 0xcc, 0xbf, + 0xfa, 0x23, 0x66, 0xac, 0x53, 0x04, 0xad, 0xe8, 0x60, 0xad, 0xae, 0x02, 0x8d, 0xca, 0x5b, 0xb8, + 0xd9, 0x9e, 0x40, 0xe1, 0x37, 0x38, 0x23, 0x0e, 0xfc, 0xea, 0x0d, 0x12, 0xa4, 0xf5, 0x3b, 0x34, + 0x8b, 0xe2, 0xe5, 0x64, 0xf2, 0x31, 0xbc, 0xcc, 0x6f, 0xbf, 0x9b, 0xad, 0x07, 0xf3, 0x0e, 0x01, + 0x0f, 0x4f, 0x9e, 0x51, 0xdc, 0xc1, 0xb6, 0x8d, 0x7b, 0x96, 0xaa, 0xb5, 0x47, 0xb1, 0xe7, 0x39, + 0xc7, 0x94, 0xf9, 0x91, 0xaf, 0xfa, 0x47, 0xf1, 0x2a, 0xc3, 0xcc, 0xb7, 0xdb, 0xab, 0x9b, 0x70, + 0x6c, 0x84, 0x56, 0x4c, 0x41, 0xf3, 0x47, 0x39, 0xcd, 0x85, 0x21, 0xcd, 0x20, 0x64, 0x37, 0x40, + 0x94, 0x3b, 0x63, 0x39, 0x05, 0xcd, 0x0f, 0x72, 0x9a, 0x88, 0xe3, 0x8a, 0x21, 0x25, 0x14, 0xaf, + 0xc3, 0xdc, 0x6d, 0xdc, 0xdb, 0x32, 0x2d, 0x7e, 0x76, 0x6c, 0x0a, 0x72, 0x1f, 0xe2, 0xe4, 0xd2, + 0x1c, 0x91, 0x1e, 0x26, 0x23, 0xb4, 0x2e, 0x41, 0x6c, 0x5b, 0x6b, 0xe2, 0x29, 0x48, 0xdc, 0xe1, + 0x24, 0xa2, 0x04, 0x9e, 0xa0, 0xe6, 0x21, 0xb9, 0x63, 0xf2, 0x44, 0xda, 0x64, 0xf4, 0x0f, 0x73, + 0xf4, 0x84, 0xc0, 0xe1, 0x24, 0xba, 0x66, 0xb7, 0xdf, 0xd6, 0xec, 0x69, 0x38, 0xf8, 0x31, 0x41, + 0x42, 0xe0, 0x70, 0x12, 0x87, 0x10, 0xeb, 0x47, 0x04, 0x09, 0xcb, 0x23, 0xcf, 0xa7, 0x20, 0x61, + 0x1a, 0xed, 0x7d, 0xd3, 0x98, 0x86, 0x89, 0x8f, 0x72, 0x0a, 0xc0, 0x51, 0x08, 0x81, 0xcb, 0x10, + 0x9f, 0x76, 0x20, 0x7e, 0xe2, 0xab, 0x62, 0x7a, 0x88, 0x11, 0xb8, 0x0a, 0x69, 0x61, 0xa0, 0x74, + 0xd3, 0x98, 0x82, 0xc4, 0xc7, 0x39, 0x89, 0x94, 0x07, 0x8d, 0x77, 0xc3, 0xc6, 0x96, 0xbd, 0x83, + 0xa7, 0x21, 0xf2, 0x09, 0xd1, 0x0d, 0x8e, 0xc2, 0x45, 0xb9, 0x85, 0x8d, 0xe6, 0xee, 0x74, 0x14, + 0x3e, 0x29, 0x44, 0x29, 0x70, 0x08, 0x89, 0x22, 0xcc, 0x76, 0xb4, 0x9e, 0xb5, 0xab, 0xb5, 0xa7, + 0x1a, 0x8e, 0x9f, 0xe4, 0x34, 0x92, 0x0e, 0x12, 0x97, 0x48, 0xdf, 0x38, 0x0c, 0x99, 0x9f, 0x12, + 0x12, 0xf1, 0xa0, 0xf1, 0xa9, 0x67, 0xd9, 0xd4, 0x8f, 0x3f, 0x0c, 0xb5, 0x9f, 0x16, 0x53, 0x8f, + 0xe1, 0xae, 0x7b, 0x29, 0x5e, 0x86, 0xb8, 0xa5, 0xbf, 0x38, 0x15, 0x99, 0x9f, 0x11, 0x23, 0x4d, + 0x11, 0x08, 0xf2, 0x4d, 0x38, 0x3e, 0x72, 0x99, 0x98, 0x82, 0xd8, 0xcf, 0x72, 0x62, 0x47, 0x47, + 0x2c, 0x15, 0xdc, 0x24, 0x1c, 0x96, 0xe4, 0x3f, 0x10, 0x26, 0x01, 0x0f, 0xd0, 0xda, 0x80, 0x85, + 0xbe, 0x61, 0x69, 0xdb, 0x87, 0x93, 0xda, 0x3f, 0x14, 0x52, 0x63, 0xb8, 0x3e, 0xa9, 0x35, 0xe0, + 0x28, 0xa7, 0x78, 0xb8, 0x71, 0xfd, 0x94, 0x30, 0xac, 0x0c, 0x7b, 0xd3, 0x3f, 0xba, 0xdf, 0x02, + 0x59, 0x47, 0x9c, 0xc2, 0xe9, 0xb6, 0xd4, 0x8e, 0xd6, 0x9d, 0x82, 0xf2, 0xcf, 0x71, 0xca, 0xc2, + 0xe2, 0x3b, 0x5e, 0xbb, 0xb5, 0xae, 0x75, 0x09, 0xf1, 0x67, 0x21, 0x23, 0x88, 0xf7, 0x8d, 0x1e, + 0x6e, 0x9a, 0x3b, 0x86, 0xfe, 0x22, 0x6e, 0x4d, 0x41, 0xfa, 0xd3, 0x03, 0x43, 0xb5, 0xe9, 0x41, + 0x27, 0x94, 0x2b, 0x20, 0x3b, 0xbe, 0x8a, 0xaa, 0x77, 0xe8, 0x7e, 0xe3, 0xc1, 0x14, 0x3f, 0x23, + 0x46, 0xca, 0xc1, 0xab, 0x50, 0xb4, 0xd5, 0x32, 0xb0, 0x0b, 0x2c, 0xd3, 0xaa, 0xe4, 0x67, 0x39, + 0xa1, 0x59, 0x17, 0x8b, 0x1b, 0x8e, 0xa6, 0xd9, 0xe9, 0x6a, 0xbd, 0x69, 0xec, 0xdf, 0x3f, 0x12, + 0x86, 0x83, 0xa3, 0x70, 0xc3, 0x41, 0x3c, 0x3a, 0xb2, 0xda, 0x4f, 0x41, 0xe1, 0xe7, 0x85, 0xe1, + 0x10, 0x38, 0x9c, 0x84, 0x70, 0x18, 0xa6, 0x20, 0xf1, 0x0b, 0x82, 0x84, 0xc0, 0x21, 0x24, 0xde, + 0xe6, 0x2e, 0xb4, 0x3d, 0xbc, 0xa3, 0x5b, 0x36, 0xbf, 0x62, 0x76, 0x30, 0xa9, 0x5f, 0xfc, 0xaa, + 0xdf, 0x09, 0x53, 0x3c, 0xa8, 0xc4, 0x12, 0xf1, 0xc4, 0x37, 0xdd, 0xd8, 0x99, 0xcc, 0xd8, 0x2f, + 0x09, 0x4b, 0xe4, 0x41, 0x23, 0xbc, 0x79, 0x3c, 0x44, 0x22, 0xf6, 0x26, 0x09, 0x50, 0xa7, 0x20, + 0xf7, 0x8f, 0x07, 0x98, 0xab, 0x0b, 0x5c, 0x42, 0xd3, 0xe3, 0xff, 0xf4, 0x8d, 0x5b, 0x78, 0x7f, + 0x2a, 0xed, 0xfc, 0x27, 0x03, 0xfe, 0xcf, 0x26, 0xc3, 0x64, 0x36, 0x24, 0x3d, 0xe0, 0x4f, 0xa1, + 0x49, 0x57, 0x58, 0x33, 0xef, 0x7a, 0x8d, 0xf7, 0xd7, 0xef, 0x4e, 0xad, 0xae, 0x11, 0x25, 0xf7, + 0x3b, 0x3d, 0x93, 0x89, 0xbd, 0xfb, 0x35, 0x47, 0xcf, 0x7d, 0x3e, 0xcf, 0xea, 0x15, 0x98, 0xf5, + 0x39, 0x3c, 0x93, 0x49, 0xbd, 0x87, 0x93, 0x4a, 0x7a, 0xfd, 0x9d, 0xd5, 0x0b, 0x10, 0x22, 0xce, + 0xcb, 0x64, 0xf4, 0xef, 0xe2, 0xe8, 0x14, 0x7c, 0xf5, 0x2d, 0x10, 0x13, 0x4e, 0xcb, 0x64, 0xd4, + 0xef, 0xe6, 0xa8, 0x0e, 0x0a, 0x41, 0x17, 0x0e, 0xcb, 0x64, 0xf4, 0xff, 0x47, 0xa0, 0x0b, 0x14, + 0x82, 0x3e, 0xbd, 0x08, 0x7f, 0xf5, 0x7d, 0x21, 0xbe, 0xe8, 0x08, 0xd9, 0x5d, 0x86, 0x28, 0xf7, + 0x54, 0x26, 0x63, 0x7f, 0x0f, 0x6f, 0x5c, 0x60, 0xac, 0x3e, 0x01, 0xe1, 0x29, 0x05, 0xfe, 0x7e, + 0x8e, 0xca, 0xe0, 0x57, 0x8b, 0x90, 0xf0, 0x78, 0x27, 0x93, 0xd1, 0xbf, 0x8f, 0xa3, 0x7b, 0xb1, + 0x08, 0xeb, 0xdc, 0x3b, 0x99, 0x4c, 0xe0, 0xff, 0x15, 0xac, 0x73, 0x0c, 0x22, 0x36, 0xe1, 0x98, + 0x4c, 0xc6, 0xfe, 0x80, 0x90, 0xba, 0x40, 0x59, 0x7d, 0x0a, 0xe2, 0xce, 0x62, 0x33, 0x19, 0xff, + 0xfb, 0x39, 0xbe, 0x8b, 0x43, 0x24, 0xe0, 0x59, 0xec, 0x26, 0x93, 0xf8, 0xff, 0x84, 0x04, 0x3c, + 0x58, 0x64, 0x1a, 0x0d, 0x3a, 0x30, 0x93, 0x29, 0xfd, 0x80, 0x98, 0x46, 0x03, 0xfe, 0x0b, 0x19, + 0x4d, 0x6a, 0xf3, 0x27, 0x93, 0xf8, 0x41, 0x31, 0x9a, 0x14, 0x9e, 0xb0, 0x31, 0xe8, 0x11, 0x4c, + 0xa6, 0xf1, 0xc3, 0x82, 0x8d, 0x01, 0x87, 0x60, 0x75, 0x03, 0xd0, 0xb0, 0x37, 0x30, 0x99, 0xde, + 0xcb, 0x9c, 0xde, 0xdc, 0x90, 0x33, 0xb0, 0xfa, 0x0c, 0x1c, 0x1d, 0xed, 0x09, 0x4c, 0xa6, 0xfa, + 0x23, 0xaf, 0x0d, 0xc4, 0x6e, 0x5e, 0x47, 0x60, 0xb5, 0xe1, 0x2e, 0x29, 0x5e, 0x2f, 0x60, 0x32, + 0xd9, 0x1f, 0x7d, 0xcd, 0x6f, 0xb8, 0xbd, 0x4e, 0xc0, 0x6a, 0x1e, 0xc0, 0x5d, 0x80, 0x27, 0xd3, + 0xfa, 0x10, 0xa7, 0xe5, 0x41, 0x22, 0x53, 0x83, 0xaf, 0xbf, 0x93, 0xf1, 0xef, 0x88, 0xa9, 0xc1, + 0x31, 0xc8, 0xd4, 0x10, 0x4b, 0xef, 0x64, 0xec, 0x0f, 0x8b, 0xa9, 0x21, 0x50, 0x88, 0x66, 0x7b, + 0x56, 0xb7, 0xc9, 0x14, 0x3e, 0x2a, 0x34, 0xdb, 0x83, 0xb5, 0x5a, 0x85, 0xb9, 0xa1, 0x05, 0x71, + 0x32, 0xa9, 0x8f, 0x71, 0x52, 0xf2, 0xe0, 0x7a, 0xe8, 0x5d, 0xbc, 0xf8, 0x62, 0x38, 0x99, 0xda, + 0x8f, 0x0f, 0x2c, 0x5e, 0x7c, 0x2d, 0x5c, 0xbd, 0x0c, 0x31, 0xa3, 0xdf, 0x6e, 0x93, 0xc9, 0x83, + 0x0e, 0xbe, 0x62, 0x9c, 0xf9, 0xd2, 0xd7, 0xb8, 0x74, 0x04, 0xc2, 0xea, 0x05, 0x08, 0xe3, 0xce, + 0x16, 0x6e, 0x4d, 0xc2, 0xfc, 0xf2, 0xd7, 0x84, 0xc1, 0x24, 0xd0, 0xab, 0x4f, 0x01, 0xb0, 0xd4, + 0x08, 0x3d, 0x63, 0x3f, 0x01, 0xf7, 0x2b, 0x5f, 0xe3, 0x17, 0xf2, 0x5c, 0x14, 0x97, 0x00, 0xbb, + 0xde, 0x77, 0x30, 0x81, 0xaf, 0xfa, 0x09, 0xd0, 0x11, 0xb9, 0x04, 0xd1, 0xe7, 0x2d, 0xd3, 0xb0, + 0xb5, 0x9d, 0x49, 0xd8, 0x7f, 0xc2, 0xb1, 0x05, 0x3c, 0x11, 0x58, 0xc7, 0xec, 0x61, 0x5b, 0xdb, + 0xb1, 0x26, 0xe1, 0xfe, 0x17, 0x8e, 0xeb, 0x20, 0x10, 0xe4, 0xa6, 0x66, 0xd9, 0xd3, 0xf4, 0xfb, + 0x4f, 0x05, 0xb2, 0x40, 0x20, 0x4c, 0x93, 0xbf, 0x6f, 0xe1, 0xfd, 0x49, 0xb8, 0x7f, 0x26, 0x98, + 0xe6, 0xf0, 0xab, 0x6f, 0x81, 0x38, 0xf9, 0x93, 0x5d, 0xd4, 0x9d, 0x80, 0xfc, 0xe7, 0x1c, 0xd9, + 0xc5, 0x20, 0x2d, 0x5b, 0x76, 0xcb, 0xd6, 0x27, 0x0b, 0xfb, 0x2f, 0xf8, 0x48, 0x0b, 0xf8, 0xd5, + 0x3c, 0x24, 0x2c, 0xbb, 0xd5, 0xea, 0x73, 0xff, 0x74, 0x02, 0xfa, 0x5f, 0x7e, 0xcd, 0x49, 0x59, + 0x38, 0x38, 0x64, 0xb4, 0x5f, 0xb8, 0x65, 0x77, 0x4d, 0x7a, 0x2a, 0x6b, 0x12, 0x85, 0xd7, 0x38, + 0x05, 0x0f, 0xca, 0x6a, 0x11, 0x92, 0xa4, 0x2f, 0xe2, 0x70, 0xcb, 0x24, 0x12, 0x7f, 0xc5, 0x05, + 0xe0, 0x43, 0x2a, 0x7c, 0xfb, 0x6f, 0x7c, 0xf1, 0xa4, 0xf4, 0xf9, 0x2f, 0x9e, 0x94, 0xfe, 0xf3, + 0x17, 0x4f, 0x4a, 0x1f, 0xf8, 0xc3, 0x93, 0x33, 0x9f, 0xff, 0xc3, 0x93, 0x33, 0xbf, 0xfb, 0x87, + 0x27, 0x67, 0x46, 0x67, 0x89, 0xe1, 0xaa, 0x79, 0xd5, 0x64, 0xf9, 0xe1, 0xe7, 0xee, 0xdf, 0xd1, + 0xed, 0xdd, 0xfe, 0xd6, 0x72, 0xd3, 0xec, 0x9c, 0x6b, 0x9a, 0x56, 0xc7, 0xb4, 0xce, 0xf9, 0xf3, + 0xba, 0xf4, 0x2f, 0xf8, 0x1b, 0x89, 0xc4, 0xcc, 0xfe, 0x74, 0xae, 0x66, 0xec, 0x8f, 0x7b, 0xe8, + 0xea, 0x22, 0x04, 0xf3, 0xc6, 0x3e, 0x3a, 0xce, 0x0c, 0x9c, 0xda, 0xef, 0xb5, 0xf9, 0x55, 0xcf, + 0x28, 0xf9, 0xde, 0xec, 0xb5, 0xfd, 0xc7, 0xfc, 0x93, 0xfc, 0x98, 0x7f, 0xe1, 0xfb, 0xa4, 0xc3, + 0xf5, 0x24, 0x96, 0x37, 0xf6, 0x69, 0x47, 0x36, 0xa4, 0xe7, 0x1e, 0x99, 0x98, 0xe7, 0xbe, 0x65, + 0x98, 0x2f, 0x18, 0x84, 0xed, 0xee, 0x96, 0xc8, 0x71, 0x9f, 0x1c, 0xcc, 0x71, 0x3f, 0x83, 0xdb, + 0xed, 0xa7, 0x09, 0x5c, 0x83, 0xa0, 0x6c, 0x45, 0xd8, 0xc3, 0x04, 0xf0, 0x03, 0x01, 0x38, 0x39, + 0x94, 0xce, 0xe6, 0x4a, 0x30, 0x4e, 0x08, 0xab, 0x10, 0x2b, 0x09, 0xdd, 0xca, 0x40, 0xd4, 0xc2, + 0x4d, 0xd3, 0x68, 0xb1, 0xf3, 0xda, 0x41, 0x45, 0x7c, 0x12, 0x41, 0x18, 0x9a, 0x61, 0x5a, 0xfc, + 0xb2, 0x34, 0xfb, 0x28, 0x7c, 0xf0, 0x90, 0x82, 0x98, 0x15, 0x2d, 0x09, 0x69, 0x9c, 0x9f, 0x52, + 0x1a, 0xa2, 0x13, 0xbe, 0xcc, 0xff, 0xb4, 0x52, 0xf9, 0xe1, 0x00, 0x2c, 0x0e, 0x4a, 0x85, 0xcc, + 0x2c, 0xcb, 0xd6, 0x3a, 0xdd, 0x71, 0x62, 0xb9, 0x0c, 0xf1, 0x86, 0x80, 0x39, 0xb4, 0x5c, 0xee, + 0x1c, 0x52, 0x2e, 0x29, 0xa7, 0x29, 0x21, 0x98, 0x95, 0x29, 0x05, 0xe3, 0xf4, 0xe3, 0xae, 0x24, + 0xf3, 0xc1, 0x38, 0x1c, 0x67, 0xd3, 0x49, 0x65, 0x53, 0x89, 0x7d, 0x70, 0x99, 0x24, 0xbd, 0x55, + 0x93, 0xf7, 0x49, 0x72, 0x4f, 0xc3, 0x7c, 0x85, 0x58, 0x0b, 0x12, 0x05, 0xb9, 0x3b, 0x3c, 0x23, + 0xef, 0x93, 0x2f, 0xf9, 0x1c, 0x7e, 0xbe, 0xc1, 0xe8, 0x2d, 0xca, 0xbd, 0x4b, 0x02, 0xb9, 0xde, + 0xd4, 0xda, 0x5a, 0xef, 0x1b, 0x25, 0x85, 0x9e, 0x00, 0x60, 0xa7, 0x01, 0x9d, 0xf7, 0xa8, 0x52, + 0x2b, 0x99, 0x65, 0x6f, 0xe7, 0x96, 0x59, 0x4b, 0xf4, 0xae, 0x55, 0x9c, 0xc2, 0x92, 0x3f, 0xcf, + 0x3c, 0x0b, 0xe0, 0x56, 0xa0, 0x13, 0x70, 0xac, 0x5e, 0xcc, 0xaf, 0xe5, 0x15, 0x71, 0x90, 0xa7, + 0xbe, 0x51, 0x2e, 0xb2, 0xb7, 0x5d, 0x66, 0xd0, 0x51, 0x40, 0xde, 0x4a, 0xe7, 0x7e, 0xca, 0x11, + 0x98, 0xf3, 0x96, 0xb3, 0x87, 0x36, 0x02, 0xab, 0xd7, 0x20, 0xcd, 0xae, 0xf0, 0xab, 0x5a, 0xab, + 0x85, 0x5b, 0xaa, 0x6e, 0xa0, 0x09, 0x37, 0xe2, 0x33, 0xbf, 0xf9, 0xef, 0xc3, 0xb4, 0x6b, 0xb3, + 0x0c, 0x31, 0x4f, 0xf0, 0x2a, 0x06, 0xf1, 0x39, 0xf5, 0x4e, 0xb7, 0x8d, 0xe9, 0xde, 0xb5, 0xaa, + 0x0b, 0xf9, 0x4f, 0x76, 0x67, 0x08, 0xbd, 0xe0, 0xe9, 0xb8, 0x32, 0xef, 0xa2, 0x3b, 0xa3, 0xb7, + 0xfa, 0xb4, 0x7b, 0x5e, 0xd0, 0x61, 0x70, 0x22, 0xc5, 0xcf, 0x71, 0x0e, 0x45, 0x36, 0x43, 0xb0, + 0xb8, 0x06, 0x73, 0x5a, 0xb3, 0x89, 0xbb, 0x3e, 0xfe, 0x26, 0xac, 0x20, 0xa2, 0xb7, 0x32, 0xc7, + 0x74, 0x59, 0x7b, 0x02, 0x22, 0x16, 0x1d, 0x94, 0x49, 0x24, 0x04, 0x3b, 0x1c, 0x7c, 0xb5, 0x2c, + 0xce, 0xc7, 0x3a, 0x3d, 0x9a, 0x40, 0xe0, 0x5f, 0x73, 0x02, 0x49, 0x8a, 0x26, 0x7a, 0x63, 0xc0, + 0x1c, 0x7b, 0x49, 0x09, 0x7b, 0x7a, 0x73, 0x70, 0x16, 0xe5, 0x9f, 0x7e, 0xe6, 0x51, 0xba, 0x71, + 0x7f, 0xca, 0xaf, 0x74, 0x23, 0x26, 0x8b, 0x22, 0x73, 0xda, 0x6e, 0x7f, 0x31, 0xa4, 0x44, 0x7b, + 0xbc, 0xdf, 0x07, 0x37, 0xf6, 0xcb, 0xbc, 0xb1, 0x93, 0xa3, 0x34, 0xdc, 0xd3, 0xd2, 0x2c, 0xa7, + 0xca, 0x2a, 0x56, 0x0b, 0x30, 0x4b, 0xdf, 0x5d, 0x74, 0x84, 0x73, 0x70, 0x2b, 0xbf, 0xf2, 0x99, + 0x47, 0xd9, 0x44, 0x23, 0x48, 0x5c, 0x34, 0x85, 0xf2, 0x38, 0xab, 0xf7, 0xdc, 0xc3, 0xc3, 0xeb, + 0x37, 0xfb, 0xef, 0x2c, 0xa5, 0x7e, 0xd9, 0xcb, 0xaa, 0x6b, 0x9d, 0x42, 0x30, 0xa7, 0x75, 0x74, + 0xc3, 0x3c, 0x47, 0xff, 0xe5, 0x56, 0x29, 0x4c, 0x3f, 0xa6, 0xd8, 0xb6, 0xbd, 0xc8, 0x8c, 0xc5, + 0x64, 0xbd, 0xfd, 0xf3, 0xef, 0xfd, 0x78, 0xd8, 0x35, 0x28, 0xab, 0xeb, 0xc3, 0x67, 0x65, 0x27, + 0xd3, 0xf8, 0x0b, 0x41, 0x63, 0xf0, 0xe8, 0xeb, 0xea, 0x9b, 0x21, 0xe6, 0x90, 0x99, 0xe4, 0xbb, + 0x09, 0x22, 0x0e, 0x06, 0xf1, 0xdc, 0x98, 0xd2, 0x4e, 0xe3, 0xa7, 0xbf, 0x26, 0xf0, 0x99, 0x0d, + 0xab, 0x92, 0xde, 0x5c, 0x85, 0x54, 0xcb, 0x34, 0x6c, 0xd5, 0xec, 0xe8, 0x36, 0xee, 0x74, 0xed, + 0x89, 0x9e, 0xef, 0x5f, 0x31, 0x22, 0x31, 0x65, 0x96, 0xe0, 0xd5, 0x04, 0x1a, 0xe1, 0x84, 0x3d, + 0xc6, 0x34, 0x0d, 0x27, 0xff, 0xd5, 0xe1, 0x84, 0xe2, 0x10, 0x4e, 0xee, 0x4a, 0x3b, 0xac, 0xd6, + 0x2d, 0xbe, 0xdc, 0xd9, 0x7b, 0x4c, 0x0b, 0x1c, 0xed, 0xf8, 0xe7, 0x21, 0x38, 0xc9, 0x81, 0xb7, + 0x34, 0x0b, 0x9f, 0xbb, 0x7d, 0x7e, 0x0b, 0xdb, 0xda, 0xf9, 0x73, 0x4d, 0x53, 0x17, 0xbe, 0xce, + 0x3c, 0x5f, 0xce, 0x48, 0xfd, 0x32, 0xaf, 0xcf, 0x8e, 0x3c, 0x10, 0x90, 0x1d, 0xbf, 0x0c, 0x66, + 0x87, 0x75, 0x30, 0xd7, 0x86, 0x50, 0xd1, 0xd4, 0xe9, 0x2d, 0xd0, 0x16, 0x36, 0xcc, 0x0e, 0x5f, + 0x90, 0xd8, 0x07, 0xba, 0x06, 0x11, 0xad, 0x63, 0xf6, 0x0d, 0x9b, 0x2d, 0x46, 0x85, 0x47, 0x7f, + 0xe3, 0x0b, 0x8b, 0x33, 0xbf, 0xf7, 0x85, 0xc5, 0x23, 0x8c, 0xac, 0xd5, 0xba, 0xb5, 0xac, 0x9b, + 0xe7, 0x3a, 0x9a, 0xbd, 0x4b, 0x4c, 0xc0, 0xef, 0x7c, 0xf6, 0x2c, 0xf0, 0xf6, 0x2a, 0x86, 0xfd, + 0xc9, 0x57, 0x3e, 0x75, 0x46, 0x52, 0x38, 0xfe, 0x6a, 0xe8, 0xd5, 0x8f, 0x2c, 0x4a, 0xb9, 0x2e, + 0x44, 0x4b, 0xb8, 0x79, 0x40, 0x83, 0x95, 0x81, 0x06, 0xcf, 0xf3, 0x06, 0x4f, 0x0c, 0x37, 0xc8, + 0x6e, 0x97, 0x95, 0x70, 0xd3, 0xd3, 0x6c, 0x09, 0x37, 0x07, 0x5a, 0xac, 0x40, 0xac, 0x62, 0xd8, + 0xec, 0x39, 0x98, 0xb7, 0x40, 0x50, 0x37, 0xd8, 0x2b, 0x02, 0xf1, 0xc2, 0xc3, 0x87, 0xe8, 0x8a, + 0x42, 0xf0, 0x72, 0x35, 0x88, 0x95, 0x70, 0x93, 0x91, 0x2a, 0x42, 0xb0, 0x85, 0x9b, 0x9c, 0xd4, + 0x5d, 0x30, 0x49, 0xb0, 0x0b, 0xa5, 0xdf, 0xfd, 0x83, 0x93, 0x33, 0xef, 0xfc, 0xe2, 0xc9, 0x99, + 0xb1, 0xea, 0x94, 0x9b, 0xac, 0x4e, 0x8e, 0x16, 0x7d, 0x3c, 0x04, 0xf7, 0xd2, 0x27, 0xc9, 0x7a, + 0x1d, 0xdd, 0xb0, 0xcf, 0x35, 0x7b, 0xfb, 0x5d, 0xdb, 0x24, 0x46, 0xc5, 0xdc, 0xe6, 0x4a, 0x34, + 0xe7, 0x56, 0x2f, 0xb3, 0xea, 0xd1, 0x2a, 0x94, 0xdb, 0x86, 0xf0, 0x06, 0xc1, 0x23, 0x83, 0x64, + 0x9b, 0xb6, 0xd6, 0xe6, 0xbe, 0x22, 0xfb, 0x20, 0xa5, 0xec, 0x19, 0xb3, 0x00, 0x2b, 0xd5, 0xc5, + 0x0b, 0x66, 0x6d, 0xac, 0x6d, 0xb3, 0xa7, 0x5c, 0x82, 0x34, 0xc8, 0x88, 0x91, 0x02, 0xfa, 0x6a, + 0xcb, 0x02, 0x84, 0xb5, 0x3e, 0x3b, 0xe6, 0x16, 0x24, 0xd1, 0x07, 0xfd, 0xc8, 0x3d, 0x0d, 0x51, + 0x7e, 0xea, 0x01, 0xc9, 0x10, 0xbc, 0x85, 0xf7, 0x69, 0x3b, 0x49, 0x85, 0xfc, 0x89, 0x96, 0x21, + 0x4c, 0x99, 0xe7, 0x37, 0xe8, 0x32, 0xcb, 0x43, 0xdc, 0x2f, 0x53, 0x26, 0x15, 0x06, 0x96, 0xbb, + 0x0e, 0xb1, 0x92, 0x49, 0x34, 0xdb, 0x4f, 0x2d, 0xce, 0xa8, 0x51, 0x9e, 0xbb, 0x7d, 0x5b, 0xdc, + 0x72, 0xa6, 0x1f, 0xe8, 0x28, 0x44, 0xd8, 0xd3, 0x3e, 0xfc, 0xa8, 0x1e, 0xff, 0xca, 0x15, 0x21, + 0x4a, 0x69, 0xd7, 0xba, 0xce, 0x93, 0x7b, 0x92, 0xe7, 0xc9, 0x3d, 0x4e, 0x3e, 0xe0, 0x32, 0x8b, + 0x20, 0xd4, 0xd2, 0x6c, 0x8d, 0xf7, 0x9b, 0xfe, 0x9d, 0x7b, 0x2b, 0xc4, 0x38, 0x11, 0x0b, 0xad, + 0x40, 0xd0, 0xec, 0x8a, 0x93, 0xa8, 0xd9, 0x71, 0x5d, 0xa9, 0x75, 0x0b, 0x21, 0xa2, 0x4b, 0x0a, + 0x01, 0x2e, 0x54, 0xc7, 0xaa, 0xc5, 0xe3, 0x3e, 0xb5, 0xe8, 0x60, 0x7b, 0x6b, 0xdb, 0x76, 0xff, + 0x60, 0xc3, 0x39, 0xa4, 0x0a, 0x8e, 0xa2, 0xdc, 0x09, 0xc0, 0x49, 0x4f, 0xed, 0x6d, 0xdc, 0xb3, + 0x74, 0xd3, 0x60, 0xda, 0xc4, 0x35, 0x05, 0x79, 0x18, 0xe4, 0xf5, 0x63, 0x54, 0xe5, 0x2d, 0x10, + 0xcc, 0x77, 0xbb, 0x28, 0x0b, 0x31, 0xfa, 0xdd, 0x34, 0x99, 0xae, 0x84, 0x14, 0xe7, 0x9b, 0xd4, + 0x59, 0xe6, 0xb6, 0xfd, 0x82, 0xd6, 0x73, 0x1e, 0xcf, 0x13, 0xdf, 0xb9, 0x4b, 0x10, 0x2f, 0x9a, + 0x86, 0x85, 0x0d, 0xab, 0x4f, 0x23, 0x90, 0xad, 0xb6, 0xd9, 0xbc, 0xc5, 0x29, 0xb0, 0x0f, 0x22, + 0x6c, 0xad, 0xdb, 0xa5, 0x98, 0x21, 0x85, 0xfc, 0xc9, 0x66, 0x76, 0xa1, 0x36, 0x56, 0x3c, 0x17, + 0x0e, 0x27, 0x1e, 0xde, 0x41, 0x47, 0x3e, 0xff, 0x5d, 0x82, 0x7b, 0x86, 0x27, 0xd2, 0x2d, 0xbc, + 0x6f, 0x1d, 0x76, 0x1e, 0x3d, 0x0b, 0xf1, 0x0d, 0xfa, 0x64, 0xf2, 0xd3, 0x78, 0x1f, 0x65, 0x21, + 0x8a, 0x5b, 0x2b, 0x17, 0x2e, 0x9c, 0xbf, 0xc4, 0xb4, 0xfc, 0xda, 0x8c, 0x22, 0x0a, 0xd0, 0x49, + 0x88, 0x5b, 0xb8, 0xd9, 0x5d, 0xb9, 0x70, 0xf1, 0xd6, 0x79, 0xa6, 0x56, 0xd7, 0x66, 0x14, 0xb7, + 0x68, 0x35, 0x46, 0x7a, 0xfc, 0xea, 0x47, 0x17, 0xa5, 0x42, 0x18, 0x82, 0x56, 0xbf, 0xf3, 0x4d, + 0xd3, 0x8d, 0x3f, 0x8b, 0xc0, 0x92, 0xa7, 0x96, 0x2d, 0x58, 0xfc, 0xaa, 0x8f, 0xf3, 0xcc, 0xb6, + 0xec, 0xe9, 0x3f, 0x85, 0x18, 0xb3, 0x12, 0x1d, 0x28, 0xc5, 0xdc, 0xa7, 0x25, 0x48, 0xde, 0x10, + 0x94, 0xeb, 0xd8, 0x46, 0x97, 0x01, 0x9c, 0x96, 0xc4, 0x54, 0x39, 0xb1, 0x3c, 0xd8, 0xd6, 0xb2, + 0x83, 0xa3, 0x78, 0xc0, 0xd1, 0x13, 0x54, 0x01, 0xbb, 0xa6, 0xc5, 0x5f, 0x41, 0x9b, 0x80, 0xea, + 0x00, 0xa3, 0x47, 0x00, 0x51, 0xab, 0xa6, 0xde, 0x36, 0x6d, 0xdd, 0xd8, 0x51, 0xbb, 0xe6, 0x0b, + 0xfc, 0x79, 0xca, 0xa0, 0x22, 0xd3, 0x9a, 0x1b, 0xb4, 0x62, 0x83, 0x94, 0x13, 0xa6, 0xe3, 0x0e, + 0x15, 0x12, 0x4c, 0x6b, 0xad, 0x56, 0x0f, 0x5b, 0x16, 0x37, 0x5c, 0xe2, 0x13, 0x5d, 0x86, 0x68, + 0xb7, 0xbf, 0xa5, 0x0a, 0x2b, 0x91, 0x58, 0xb9, 0x67, 0xd4, 0x9c, 0x17, 0xba, 0xc1, 0x67, 0x7d, + 0xa4, 0xdb, 0xdf, 0x22, 0x9a, 0x72, 0x0a, 0x92, 0x23, 0x98, 0x49, 0xdc, 0x76, 0xf9, 0xa0, 0xaf, + 0x74, 0xf3, 0x1e, 0xa8, 0xdd, 0x9e, 0x6e, 0xf6, 0x74, 0x7b, 0x9f, 0x9e, 0x56, 0x0d, 0x2a, 0xb2, + 0xa8, 0xd8, 0xe0, 0xe5, 0xb9, 0x5b, 0x90, 0xae, 0xd3, 0xd0, 0xc8, 0xe5, 0xfc, 0x82, 0xcb, 0x9f, + 0x34, 0x99, 0xbf, 0xb1, 0x9c, 0x05, 0x86, 0x38, 0x3b, 0xf3, 0x1f, 0x24, 0x48, 0x14, 0xc8, 0xc4, + 0xad, 0x94, 0xae, 0xb4, 0xb5, 0x1d, 0x74, 0x1e, 0x8e, 0x14, 0xd6, 0x6a, 0xc5, 0xa7, 0xd5, 0x4a, + 0x49, 0xbd, 0xb2, 0x96, 0xf7, 0x5c, 0xa6, 0xc8, 0x1e, 0x7d, 0xe9, 0xce, 0x12, 0xf2, 0xc0, 0x6e, + 0x1a, 0x34, 0x13, 0x80, 0xce, 0xc1, 0x82, 0x1f, 0x25, 0x5f, 0xa8, 0x97, 0xab, 0x0d, 0x59, 0xca, + 0x1e, 0x79, 0xe9, 0xce, 0xd2, 0x9c, 0x07, 0x23, 0xbf, 0x65, 0x61, 0xc3, 0x1e, 0x46, 0x28, 0xd6, + 0xd6, 0xd7, 0x2b, 0x0d, 0x39, 0x30, 0x84, 0x50, 0x34, 0x3b, 0x1d, 0xdd, 0x46, 0x0f, 0xc1, 0x9c, + 0x1f, 0xa1, 0x5a, 0x59, 0x93, 0x83, 0x59, 0xf4, 0xd2, 0x9d, 0xa5, 0x94, 0x07, 0xba, 0xaa, 0xb7, + 0xb3, 0xb1, 0xf7, 0xfe, 0xf8, 0xc9, 0x99, 0x4f, 0xfe, 0xff, 0x27, 0xa5, 0xc2, 0xfa, 0xd8, 0x39, + 0xf7, 0xd8, 0xe1, 0xe6, 0x9c, 0x7f, 0xdd, 0xfe, 0xda, 0x3d, 0x3e, 0x73, 0xc3, 0x7d, 0x44, 0x8f, + 0x31, 0x9e, 0x76, 0xba, 0x4d, 0xca, 0x0c, 0x65, 0x0f, 0x76, 0x0f, 0xb2, 0x13, 0x16, 0x85, 0xec, + 0x44, 0xc3, 0x90, 0xbb, 0x04, 0xb3, 0x1b, 0x5a, 0xcf, 0xae, 0x63, 0xfb, 0x1a, 0xd6, 0x5a, 0xb8, + 0xe7, 0xf7, 0x1f, 0x66, 0x85, 0xff, 0x80, 0x20, 0x44, 0x9d, 0x04, 0xb6, 0x7e, 0xd2, 0xbf, 0x73, + 0xbb, 0x10, 0xa2, 0xb7, 0x45, 0x1d, 0xdf, 0x82, 0x63, 0x30, 0xdf, 0x82, 0xac, 0x0c, 0xfb, 0x36, + 0xbf, 0x4d, 0x9f, 0x54, 0xd8, 0x07, 0x7a, 0x5c, 0x78, 0x08, 0xc1, 0x83, 0x3d, 0x04, 0x3e, 0xbd, + 0xb8, 0x9f, 0xd0, 0x86, 0x28, 0x1f, 0x62, 0x87, 0x11, 0xc9, 0x65, 0x04, 0xad, 0x43, 0xba, 0xab, + 0xf5, 0x6c, 0xfa, 0xf6, 0xd4, 0x2e, 0xed, 0x05, 0x9f, 0xc1, 0x8b, 0xc3, 0xf6, 0xc4, 0xd7, 0x59, + 0xde, 0xca, 0x6c, 0xd7, 0x5b, 0x98, 0xfb, 0xe3, 0x10, 0x44, 0xb8, 0x30, 0xde, 0x02, 0x51, 0x2e, + 0x56, 0x3e, 0xe7, 0xee, 0x5d, 0x1e, 0x5e, 0x66, 0x97, 0x9d, 0xe5, 0x90, 0xd3, 0x13, 0x38, 0xe8, + 0x01, 0x88, 0x35, 0x77, 0x35, 0xdd, 0x50, 0xf5, 0x16, 0x77, 0x8e, 0x13, 0x5f, 0xfc, 0xc2, 0x62, + 0xb4, 0x48, 0xca, 0x2a, 0x25, 0x25, 0x4a, 0x2b, 0x2b, 0x2d, 0xe2, 0xd3, 0xec, 0x62, 0x7d, 0x67, + 0xd7, 0xe6, 0x76, 0x83, 0x7f, 0xa1, 0x27, 0x21, 0x44, 0x14, 0x82, 0x5f, 0xe8, 0xc8, 0x0e, 0x45, + 0x3d, 0x4e, 0xe2, 0xae, 0x10, 0x23, 0x0d, 0x7f, 0xe0, 0x3f, 0x2d, 0x4a, 0x0a, 0xc5, 0x40, 0x45, + 0x98, 0x6d, 0x6b, 0x96, 0xad, 0xd2, 0xf5, 0x98, 0x34, 0xcf, 0x6e, 0x72, 0x1c, 0x1f, 0x16, 0x08, + 0x17, 0x2c, 0x67, 0x3d, 0x41, 0xb0, 0x58, 0x51, 0x0b, 0x9d, 0x06, 0x99, 0x12, 0x69, 0xd2, 0x19, + 0xc8, 0xbc, 0xc4, 0x08, 0x95, 0x7b, 0x8a, 0x94, 0xb3, 0x89, 0x49, 0x7d, 0xc5, 0x13, 0x10, 0xa7, + 0x0f, 0xac, 0x51, 0x10, 0x76, 0x45, 0x39, 0x46, 0x0a, 0x68, 0xe5, 0x83, 0x90, 0x76, 0xad, 0x3e, + 0x03, 0x89, 0x31, 0x2a, 0x6e, 0x31, 0x05, 0x7c, 0x14, 0x16, 0x0c, 0xbc, 0x67, 0xab, 0x83, 0xd0, + 0x71, 0x0a, 0x8d, 0x48, 0xdd, 0x0d, 0x3f, 0xc6, 0xfd, 0x90, 0x6a, 0x0a, 0xe1, 0x33, 0x58, 0xa0, + 0xb0, 0xb3, 0x4e, 0x29, 0x05, 0x3b, 0x0e, 0x31, 0xad, 0xdb, 0x65, 0x00, 0x09, 0x6e, 0xf5, 0xbb, + 0x5d, 0x5a, 0x75, 0x06, 0xe6, 0x68, 0x1f, 0x7b, 0xd8, 0xea, 0xb7, 0x6d, 0x4e, 0x24, 0x49, 0x61, + 0xd2, 0xa4, 0x42, 0x61, 0xe5, 0x14, 0xf6, 0x3e, 0x98, 0xc5, 0xb7, 0xf5, 0x16, 0x36, 0x9a, 0x98, + 0xc1, 0xcd, 0x52, 0xb8, 0xa4, 0x28, 0xa4, 0x40, 0x0f, 0x81, 0x63, 0xcd, 0x55, 0xb1, 0xd2, 0xa4, + 0x18, 0x3d, 0x51, 0x9e, 0x67, 0xc5, 0xb9, 0x0c, 0x84, 0x4a, 0x9a, 0xad, 0x11, 0x77, 0xc9, 0xde, + 0x63, 0xcb, 0x67, 0x52, 0x21, 0x7f, 0xe6, 0x7e, 0x21, 0x08, 0xa1, 0x1b, 0xa6, 0x8d, 0xd1, 0x63, + 0x1e, 0x57, 0x36, 0x35, 0x4a, 0x9f, 0xeb, 0xfa, 0x8e, 0x81, 0x5b, 0xeb, 0xd6, 0x8e, 0xe7, 0x5d, + 0x64, 0x57, 0x9d, 0x02, 0x3e, 0x75, 0x5a, 0x80, 0x70, 0xcf, 0xec, 0x1b, 0x2d, 0x71, 0x6f, 0x82, + 0x7e, 0xa0, 0x32, 0xc4, 0x1c, 0x2d, 0x09, 0x4d, 0xd2, 0x92, 0x34, 0xd1, 0x12, 0xa2, 0xc3, 0xbc, + 0x40, 0x89, 0x6e, 0x71, 0x65, 0x29, 0x40, 0xdc, 0x31, 0x5e, 0x5c, 0xdb, 0xa6, 0x53, 0x58, 0x17, + 0x8d, 0x2c, 0x91, 0xce, 0xd8, 0x3b, 0xc2, 0x63, 0x1a, 0x27, 0x3b, 0x15, 0x5c, 0x7a, 0x3e, 0xb5, + 0xe2, 0x6f, 0x34, 0x47, 0x69, 0xbf, 0x5c, 0xb5, 0x62, 0xef, 0x34, 0xdf, 0x03, 0x71, 0x4b, 0xdf, + 0x31, 0xe8, 0x55, 0x24, 0xae, 0x79, 0x6e, 0x01, 0xa9, 0x75, 0x2f, 0xba, 0x33, 0x4d, 0xf3, 0xfc, + 0x9c, 0xc0, 0x39, 0x98, 0x77, 0x1f, 0xf2, 0x77, 0xa9, 0x30, 0x2d, 0x43, 0x4e, 0x55, 0x5d, 0xd4, + 0xe4, 0x7e, 0x55, 0x82, 0x08, 0x5f, 0xb1, 0xdc, 0x61, 0x90, 0x46, 0x0f, 0x43, 0x60, 0xdc, 0x30, + 0x04, 0xef, 0x7e, 0x18, 0xf2, 0x00, 0x0e, 0x9b, 0x16, 0x7f, 0x89, 0x77, 0x84, 0x5b, 0xc5, 0x58, + 0xac, 0xeb, 0x3b, 0x7c, 0xde, 0x7b, 0x90, 0x72, 0xbf, 0x2f, 0x11, 0x0f, 0x9f, 0xd7, 0xa3, 0x3c, + 0xcc, 0x0a, 0xbe, 0xd4, 0xed, 0xb6, 0xb6, 0xc3, 0x55, 0xf1, 0xde, 0xb1, 0xcc, 0x91, 0x55, 0x58, + 0x49, 0x70, 0x7e, 0xa8, 0x3f, 0x31, 0x72, 0x58, 0x03, 0x63, 0x86, 0xd5, 0xa7, 0x47, 0xc1, 0xbb, + 0xd3, 0x23, 0xdf, 0x88, 0x87, 0x06, 0x46, 0x3c, 0xf7, 0x07, 0x12, 0xff, 0x0d, 0x80, 0x16, 0xbb, + 0x77, 0xf5, 0xbf, 0x6a, 0xa8, 0x9e, 0xe3, 0xba, 0xd5, 0xc2, 0x2d, 0x75, 0x68, 0xcc, 0xee, 0x1b, + 0xa6, 0xe8, 0xe7, 0xd9, 0x1d, 0x3b, 0x24, 0xa8, 0xd4, 0xdd, 0x31, 0xfc, 0x6c, 0x00, 0xe6, 0x86, + 0xe0, 0xff, 0xee, 0x8d, 0xa5, 0x7f, 0xf6, 0x86, 0xa7, 0x9c, 0xbd, 0x91, 0xb1, 0xb3, 0xf7, 0x33, + 0x01, 0x9a, 0x00, 0xe8, 0x9a, 0x96, 0xd6, 0xfe, 0xdb, 0xb0, 0xbd, 0x27, 0x20, 0xde, 0x35, 0xdb, + 0x2a, 0xab, 0x61, 0x37, 0xd7, 0x62, 0x5d, 0xb3, 0xad, 0x0c, 0xa9, 0x59, 0xf8, 0x75, 0x32, 0xcc, + 0x91, 0xd7, 0x61, 0x10, 0xa2, 0x83, 0x13, 0xaa, 0x07, 0x49, 0x26, 0x0a, 0xee, 0x35, 0x3d, 0x4a, + 0x64, 0x40, 0xdd, 0x30, 0x69, 0xd8, 0xcb, 0x63, 0x6c, 0x33, 0x48, 0x85, 0xc3, 0x11, 0x0c, 0xe6, + 0x64, 0x8c, 0xca, 0x1c, 0x79, 0x2d, 0x96, 0xc2, 0xe1, 0x72, 0x3f, 0x24, 0x01, 0xac, 0x11, 0xc9, + 0xd2, 0xfe, 0x12, 0x7f, 0xc7, 0xa2, 0x2c, 0xa8, 0xbe, 0x96, 0x4f, 0x8e, 0x1b, 0x34, 0xde, 0x7e, + 0xd2, 0xf2, 0xf2, 0x5d, 0x84, 0x59, 0x57, 0xb7, 0x2d, 0x2c, 0x98, 0x39, 0x79, 0x40, 0x54, 0x5a, + 0xc7, 0xb6, 0x92, 0xbc, 0xed, 0xf9, 0xca, 0xfd, 0x33, 0x09, 0xe2, 0x94, 0xa7, 0x75, 0x6c, 0x6b, + 0xbe, 0x31, 0x94, 0xee, 0x7e, 0x0c, 0xef, 0x05, 0x60, 0x64, 0x2c, 0xfd, 0x45, 0xcc, 0x35, 0x2b, + 0x4e, 0x4b, 0xea, 0xfa, 0x8b, 0x18, 0x5d, 0x74, 0x04, 0x1e, 0x3c, 0x58, 0xe0, 0x22, 0x6a, 0xe5, + 0x62, 0x3f, 0x06, 0x51, 0xfa, 0x40, 0xca, 0x9e, 0xc5, 0x03, 0xd1, 0x88, 0xd1, 0xef, 0x34, 0xf6, + 0xac, 0xdc, 0xf3, 0x10, 0x6d, 0xec, 0xb1, 0x7c, 0xe2, 0x09, 0x88, 0xf7, 0x4c, 0x93, 0x7b, 0x7f, + 0xcc, 0xeb, 0x8e, 0x91, 0x02, 0xea, 0xec, 0x88, 0x1c, 0x5a, 0xc0, 0xcd, 0xa1, 0xb9, 0x49, 0xc0, + 0xe0, 0x54, 0x49, 0x40, 0x12, 0x7d, 0xce, 0xfa, 0x66, 0x12, 0x7a, 0x04, 0x8e, 0xd5, 0x2b, 0x57, + 0xab, 0xe5, 0x92, 0xba, 0x5e, 0xbf, 0x3a, 0xf0, 0x70, 0x41, 0x36, 0xfd, 0xd2, 0x9d, 0xa5, 0x04, + 0x0f, 0x3b, 0xc7, 0x41, 0x6f, 0x28, 0xe5, 0x1b, 0xb5, 0x46, 0x59, 0x96, 0x18, 0xf4, 0x46, 0x0f, + 0xdf, 0x36, 0x6d, 0xf6, 0x1b, 0x53, 0x8f, 0xc2, 0xf1, 0x11, 0xd0, 0x4e, 0xf0, 0x39, 0xf7, 0xd2, + 0x9d, 0xa5, 0xd9, 0x8d, 0x1e, 0x66, 0x5a, 0x46, 0x31, 0x96, 0x21, 0x33, 0x8c, 0x51, 0xdb, 0xa8, + 0xd5, 0xf3, 0x6b, 0xf2, 0x52, 0x56, 0x7e, 0xe9, 0xce, 0x52, 0x52, 0x98, 0x0c, 0x02, 0xff, 0xcd, + 0x8f, 0x3e, 0xbf, 0x27, 0xe6, 0xcb, 0x1a, 0xb3, 0xb8, 0xae, 0xab, 0xf5, 0xb4, 0xce, 0x61, 0xc3, + 0xcf, 0x09, 0xc7, 0x35, 0x72, 0x9f, 0x0e, 0x40, 0xda, 0x09, 0x6e, 0x36, 0x68, 0x0b, 0xe8, 0x31, + 0x6f, 0xc6, 0x2f, 0x31, 0x76, 0xed, 0x60, 0xd0, 0x22, 0x21, 0xf8, 0x66, 0x88, 0x09, 0x27, 0x99, + 0x4f, 0xaa, 0xa5, 0x11, 0xeb, 0x1b, 0x87, 0xe0, 0xa8, 0x0e, 0x06, 0x7a, 0x0a, 0xe2, 0xce, 0x14, + 0x73, 0x9e, 0xc5, 0x1f, 0x3f, 0x27, 0x39, 0xbe, 0x8b, 0x83, 0x2e, 0xb9, 0x61, 0x5c, 0x68, 0x5c, + 0x60, 0x78, 0x83, 0x01, 0x70, 0x64, 0x27, 0x84, 0x7b, 0x14, 0x42, 0xda, 0x56, 0x53, 0xe7, 0x06, + 0xf8, 0x9e, 0x61, 0xbc, 0x7c, 0xa1, 0x58, 0xe1, 0x48, 0x14, 0x32, 0x57, 0xe1, 0xc9, 0x14, 0x2e, + 0x2f, 0xfa, 0xd0, 0xf0, 0x9e, 0xca, 0x62, 0x61, 0xe6, 0x5d, 0xc4, 0x3a, 0xda, 0x5e, 0x81, 0x86, + 0xc3, 0xc7, 0x20, 0x4a, 0x2a, 0x77, 0xf8, 0x8b, 0x7f, 0x41, 0x25, 0xd2, 0xd1, 0xf6, 0xae, 0x6a, + 0xd6, 0xf5, 0x50, 0x2c, 0x28, 0x87, 0x72, 0x3f, 0x49, 0x3c, 0x15, 0x9f, 0x54, 0xd0, 0xc3, 0x80, + 0x08, 0x86, 0xb6, 0x83, 0x55, 0x32, 0x75, 0xa9, 0x78, 0x05, 0xdd, 0x74, 0x47, 0xdb, 0xcb, 0xef, + 0xe0, 0x6a, 0xbf, 0x43, 0x19, 0xb0, 0xd0, 0x3a, 0xc8, 0x02, 0x58, 0x8c, 0x2c, 0x17, 0xff, 0xf1, + 0xe1, 0x5f, 0x6b, 0xe2, 0x00, 0x6c, 0x01, 0x78, 0x99, 0x2c, 0x00, 0x29, 0x46, 0xcf, 0x39, 0xa0, + 0xe3, 0xeb, 0x4a, 0xd0, 0xdf, 0x95, 0xdc, 0x53, 0x90, 0x1e, 0x18, 0x01, 0x94, 0x83, 0x59, 0x9e, + 0xb1, 0xa2, 0x87, 0x1f, 0x58, 0x84, 0x13, 0x57, 0x12, 0x2c, 0x33, 0x45, 0x0f, 0x83, 0xac, 0xc6, + 0x7e, 0xf1, 0x23, 0x8b, 0x12, 0xdd, 0xf6, 0x79, 0x18, 0x66, 0x7d, 0x63, 0x20, 0xb2, 0xc8, 0x92, + 0x9b, 0x45, 0x76, 0x81, 0x9f, 0x83, 0x24, 0x31, 0x40, 0xb8, 0xc5, 0x61, 0x1f, 0x80, 0x34, 0x33, + 0x90, 0x83, 0xb2, 0x66, 0x0e, 0xcf, 0xba, 0x10, 0x78, 0x4e, 0x78, 0x40, 0x7e, 0xb1, 0x27, 0x04, + 0xd4, 0x55, 0xcd, 0xca, 0xd5, 0x00, 0xdc, 0x41, 0x45, 0x79, 0xb8, 0x97, 0x18, 0x0f, 0xef, 0x61, + 0x5d, 0xfe, 0x92, 0xba, 0xcf, 0x63, 0xcc, 0x12, 0x20, 0xf7, 0x40, 0x2e, 0x7b, 0x4f, 0xfd, 0x1a, + 0x85, 0x28, 0xbc, 0xed, 0x93, 0x5f, 0x3c, 0x29, 0x7d, 0x73, 0x6c, 0xc1, 0x7f, 0xbc, 0x09, 0x27, + 0x3c, 0x95, 0x44, 0x01, 0x7d, 0x89, 0xa8, 0xb4, 0x47, 0x5f, 0x49, 0xe5, 0xa4, 0x84, 0xd2, 0x81, + 0xf9, 0xdf, 0xec, 0xc1, 0x66, 0x67, 0x72, 0xb6, 0x69, 0x72, 0xbe, 0x6b, 0x74, 0x52, 0xfe, 0x57, + 0xe2, 0x10, 0x55, 0xf0, 0x3b, 0xfa, 0xd8, 0xb2, 0xd1, 0x0a, 0x84, 0x70, 0x73, 0xd7, 0x1c, 0x95, + 0x03, 0x25, 0x1d, 0x5c, 0xe6, 0x70, 0xe5, 0xe6, 0xae, 0x79, 0x6d, 0x46, 0xa1, 0xb0, 0xe8, 0x02, + 0x84, 0xb7, 0xdb, 0x7d, 0x9e, 0xbe, 0x1a, 0xb0, 0x59, 0x5e, 0xa4, 0x2b, 0x04, 0xe8, 0xda, 0x8c, + 0xc2, 0xa0, 0x49, 0x53, 0xf4, 0x07, 0xf8, 0x82, 0x07, 0x37, 0x55, 0x31, 0xb6, 0x69, 0x53, 0x04, + 0x16, 0x15, 0x00, 0x74, 0x43, 0xb7, 0x55, 0x9a, 0xda, 0xe1, 0x56, 0xe3, 0xd4, 0x78, 0x4c, 0xdd, + 0xa6, 0xc9, 0xa0, 0x6b, 0x33, 0x4a, 0x5c, 0x17, 0x1f, 0x84, 0xdd, 0x77, 0xf4, 0x71, 0x6f, 0x9f, + 0x7b, 0x6b, 0x63, 0xd9, 0x7d, 0x1b, 0x01, 0x22, 0xec, 0x52, 0x68, 0x62, 0x64, 0xd9, 0x4f, 0x2b, + 0xd8, 0x7b, 0xfc, 0x37, 0x87, 0x16, 0xc7, 0x61, 0xd2, 0xdf, 0x57, 0x68, 0xec, 0x5d, 0x9b, 0x51, + 0xa2, 0x4d, 0xf6, 0x27, 0x7a, 0xd2, 0x71, 0xc1, 0x12, 0xc3, 0x5e, 0x8f, 0x0f, 0x97, 0xa5, 0x7d, + 0x66, 0x84, 0x2b, 0x86, 0xaa, 0x90, 0x6a, 0xeb, 0x96, 0xad, 0x5a, 0x86, 0xd6, 0xb5, 0x76, 0x4d, + 0x5b, 0xbc, 0x6d, 0x7e, 0xff, 0x38, 0x0a, 0x6b, 0xba, 0x65, 0xd7, 0x05, 0xf0, 0xb5, 0x19, 0x65, + 0xb6, 0xed, 0x2d, 0x20, 0xf4, 0xcc, 0xed, 0x6d, 0xdc, 0x73, 0x08, 0xd2, 0x3c, 0xcb, 0x01, 0xf4, + 0x6a, 0x04, 0x5a, 0xe0, 0x13, 0x7a, 0xa6, 0xb7, 0x00, 0x7d, 0x0b, 0xcc, 0xb7, 0x4d, 0xad, 0xe5, + 0x90, 0x53, 0x9b, 0xbb, 0x7d, 0xe3, 0x16, 0x4d, 0xca, 0x24, 0x56, 0x1e, 0x1a, 0xcb, 0xa4, 0xa9, + 0xb5, 0x04, 0x89, 0x22, 0x41, 0xb8, 0x36, 0xa3, 0xcc, 0xb5, 0x07, 0x0b, 0xd1, 0xdb, 0x61, 0x41, + 0xeb, 0x76, 0xdb, 0xfb, 0x83, 0xd4, 0xd3, 0x94, 0xfa, 0x99, 0x71, 0xd4, 0xf3, 0x04, 0x67, 0x90, + 0x3c, 0xd2, 0x86, 0x4a, 0x51, 0x03, 0xe4, 0x6e, 0x0f, 0xd3, 0xfb, 0x6e, 0x5d, 0xee, 0x65, 0xd0, + 0x87, 0xc3, 0x13, 0x2b, 0x0f, 0x8e, 0xa3, 0xbd, 0xc1, 0xe0, 0x85, 0x53, 0x72, 0x6d, 0x46, 0x49, + 0x77, 0xfd, 0x45, 0x8c, 0xaa, 0xd9, 0xc4, 0xf4, 0x57, 0x16, 0x38, 0xd5, 0xb9, 0x49, 0x54, 0x29, + 0xbc, 0x9f, 0xaa, 0xaf, 0x08, 0x95, 0x21, 0xc1, 0x42, 0x51, 0x95, 0x18, 0x43, 0xfa, 0xeb, 0x15, + 0x89, 0x95, 0xdc, 0xd8, 0x19, 0x4a, 0x41, 0x6f, 0x98, 0x36, 0xbe, 0x36, 0xa3, 0x00, 0x76, 0xbe, + 0x90, 0x06, 0x47, 0xe8, 0xcb, 0xeb, 0xfb, 0xaa, 0xdf, 0xf0, 0x66, 0xe6, 0x29, 0xc1, 0x87, 0xc7, + 0x11, 0xa4, 0x3f, 0x8a, 0xb6, 0x7f, 0xc3, 0x6b, 0x87, 0xaf, 0xcd, 0x28, 0xf3, 0xb7, 0x87, 0x8b, + 0x89, 0x8a, 0x6d, 0xeb, 0x86, 0xd6, 0xd6, 0x5f, 0xc4, 0x6c, 0x09, 0xa5, 0x3f, 0x64, 0x72, 0x80, + 0x8a, 0x5d, 0xe1, 0xd0, 0x74, 0x61, 0x25, 0x2a, 0xb6, 0xed, 0x2d, 0x28, 0x44, 0xf9, 0x49, 0x5d, + 0xe7, 0x45, 0xe2, 0xa8, 0x1c, 0x63, 0xef, 0xe6, 0x5f, 0x0f, 0xc5, 0x40, 0x4e, 0xe4, 0x1e, 0x84, + 0x84, 0xc7, 0x30, 0xa1, 0x0c, 0x44, 0xf9, 0x49, 0x1d, 0x71, 0xe6, 0x97, 0x7f, 0xe6, 0x52, 0x90, + 0xf4, 0x1a, 0xa3, 0xdc, 0x07, 0x24, 0x07, 0x93, 0x3e, 0xc9, 0x92, 0xf1, 0x67, 0xa4, 0xe3, 0xae, + 0xa7, 0x72, 0x9f, 0x58, 0xda, 0x44, 0x3d, 0xdb, 0x7e, 0x4d, 0xd2, 0x42, 0xbe, 0xb2, 0xa2, 0x45, + 0x48, 0x74, 0x57, 0xba, 0x0e, 0x48, 0x90, 0x82, 0x40, 0x77, 0xa5, 0x2b, 0x00, 0x4e, 0x41, 0x92, + 0xf4, 0x5b, 0xf5, 0xfa, 0x4b, 0x71, 0x25, 0x41, 0xca, 0x38, 0x48, 0xee, 0xb7, 0x02, 0x20, 0x0f, + 0x1a, 0x30, 0x27, 0x55, 0x2d, 0x1d, 0x3a, 0x55, 0x7d, 0x7c, 0x30, 0x49, 0xee, 0xe6, 0xc5, 0xd7, + 0x40, 0x76, 0xd3, 0xbb, 0x6c, 0xa9, 0x19, 0xef, 0xff, 0x0d, 0x38, 0xaa, 0x4a, 0xba, 0x39, 0xe0, + 0xb9, 0x5e, 0xf1, 0x6d, 0x56, 0x8a, 0x5f, 0xa8, 0x1d, 0x1c, 0x70, 0xc7, 0x89, 0xd9, 0xec, 0xb6, + 0x34, 0x1b, 0x8b, 0xfc, 0x98, 0x67, 0xdf, 0xf2, 0x01, 0x48, 0x6b, 0xdd, 0xae, 0x6a, 0xd9, 0x9a, + 0x8d, 0xb9, 0xaf, 0xc1, 0x32, 0x0f, 0xb3, 0x5a, 0xb7, 0x4b, 0x7f, 0x8d, 0x8f, 0xf9, 0x1a, 0xf7, + 0x43, 0x8a, 0xd8, 0x74, 0x5d, 0x6b, 0x0b, 0x57, 0x21, 0xc2, 0x5c, 0x12, 0x5e, 0xca, 0xbc, 0x83, + 0x5c, 0xcb, 0x19, 0x71, 0x6a, 0xcf, 0x9d, 0x98, 0x4a, 0xf2, 0xc4, 0x54, 0x88, 0x3f, 0x95, 0xc3, + 0xe4, 0x23, 0x5e, 0x35, 0x1a, 0xbd, 0x69, 0xb0, 0x40, 0xe3, 0xaf, 0xdb, 0x2c, 0x59, 0x12, 0x53, + 0xd8, 0x47, 0x4e, 0x81, 0x94, 0xdf, 0xf6, 0xa3, 0x14, 0x04, 0xec, 0x3d, 0xde, 0x4a, 0xc0, 0xde, + 0x23, 0x9e, 0xae, 0xe7, 0xa5, 0xcc, 0xe1, 0xd5, 0x8e, 0xe3, 0xb9, 0xb9, 0x8e, 0x5c, 0x1a, 0x66, + 0x7d, 0x6b, 0x42, 0xee, 0x28, 0x2c, 0x8c, 0x32, 0xf1, 0xb9, 0x5d, 0xa7, 0xdc, 0x67, 0xaa, 0xd1, + 0x05, 0x88, 0x39, 0x36, 0x7e, 0x44, 0x74, 0x4c, 0x9b, 0x15, 0xc0, 0x8a, 0x03, 0xea, 0x4b, 0xe7, + 0x07, 0x7c, 0xe9, 0xfc, 0xdc, 0xb7, 0x43, 0x66, 0x9c, 0xfd, 0x1e, 0x48, 0xf2, 0x85, 0x1c, 0x81, + 0x1d, 0x85, 0x08, 0x7f, 0x18, 0x32, 0x40, 0x37, 0xb0, 0xf8, 0x17, 0x11, 0x24, 0xb3, 0xe5, 0x41, + 0xb6, 0xaf, 0x45, 0x3f, 0x72, 0x2a, 0x1c, 0x1f, 0x6b, 0xc3, 0xc7, 0x6f, 0x85, 0x31, 0x42, 0x7c, + 0x2b, 0xac, 0x29, 0xd8, 0xb1, 0x68, 0x5f, 0xc5, 0x41, 0x16, 0xf6, 0x95, 0x7b, 0x39, 0x08, 0x47, + 0x47, 0x5b, 0x72, 0xb4, 0x04, 0x49, 0xe2, 0xb7, 0xda, 0x7e, 0x17, 0x17, 0x3a, 0xda, 0x5e, 0x83, + 0xfb, 0xb7, 0x7c, 0x2b, 0x21, 0xe0, 0x6c, 0x25, 0xa0, 0x4d, 0x98, 0x6b, 0x9b, 0x4d, 0xad, 0xad, + 0x7a, 0xb6, 0x72, 0xf8, 0x24, 0xba, 0x6f, 0x48, 0xd8, 0xfe, 0x94, 0x21, 0x31, 0x38, 0x5c, 0xff, + 0xd3, 0x94, 0xc6, 0x9a, 0xb3, 0xeb, 0x83, 0x4a, 0x90, 0xe8, 0xe8, 0xd6, 0x16, 0xde, 0xd5, 0x6e, + 0xeb, 0x66, 0x8f, 0xcf, 0xa6, 0x61, 0xa5, 0x59, 0x77, 0x61, 0xc4, 0x0e, 0x93, 0x07, 0xcd, 0x33, + 0x24, 0xe1, 0x91, 0x1b, 0x5f, 0x91, 0x43, 0x5b, 0x93, 0x71, 0x7b, 0x48, 0xd1, 0xb1, 0x7b, 0x48, + 0xa3, 0x36, 0x6c, 0x62, 0xa3, 0x37, 0x6c, 0xde, 0xeb, 0x1d, 0x1a, 0xff, 0xda, 0x37, 0xb4, 0x87, + 0x83, 0xea, 0xb0, 0xc0, 0xf1, 0x5b, 0x3e, 0xd9, 0x8f, 0x38, 0xea, 0xc0, 0xe6, 0xd7, 0xa0, 0xcc, + 0x91, 0x40, 0x1f, 0x2f, 0xf6, 0xe0, 0xdd, 0x89, 0x5d, 0x6c, 0xa2, 0x86, 0x3c, 0x9b, 0xa8, 0xff, + 0x9b, 0x0d, 0xc5, 0xbb, 0x83, 0x30, 0x37, 0xe4, 0x48, 0x8c, 0xdc, 0x1d, 0x1e, 0x97, 0x91, 0x15, + 0x1d, 0x0b, 0x1e, 0xba, 0x63, 0x7c, 0xac, 0x43, 0x93, 0xc7, 0x3a, 0xfc, 0x3a, 0x8e, 0x75, 0xe4, + 0xee, 0xc6, 0xfa, 0x9b, 0x3a, 0x0a, 0x1f, 0x92, 0x20, 0x3b, 0xde, 0xfb, 0x1a, 0x39, 0x1c, 0x87, + 0xda, 0x40, 0x18, 0xb7, 0xc6, 0xdd, 0x0f, 0xa9, 0x01, 0xdf, 0x90, 0xa9, 0xf2, 0xac, 0x2f, 0x0a, + 0xcf, 0xbd, 0x27, 0xe8, 0x2c, 0x3c, 0x3e, 0x07, 0x6e, 0xc4, 0x6c, 0x7d, 0x1b, 0xcc, 0xb7, 0x70, + 0x53, 0x6f, 0xdd, 0xed, 0x64, 0x9d, 0xe3, 0xd8, 0xff, 0x67, 0xae, 0x0e, 0x6b, 0xc9, 0x0f, 0x02, + 0xc4, 0x14, 0x6c, 0x75, 0x89, 0x3f, 0x86, 0x0a, 0x10, 0xc7, 0x7b, 0x4d, 0xdc, 0xb5, 0xdd, 0x43, + 0x15, 0xa3, 0x42, 0x04, 0x06, 0x5d, 0x16, 0x90, 0x24, 0x40, 0x76, 0xd0, 0xd0, 0x63, 0x3c, 0x07, + 0x30, 0x3e, 0x9c, 0xe7, 0xe8, 0xde, 0x24, 0xc0, 0x45, 0x91, 0x04, 0x08, 0x8e, 0x8d, 0x6f, 0x19, + 0xd6, 0x40, 0x16, 0xe0, 0x31, 0x9e, 0x05, 0x08, 0x4d, 0x68, 0xcc, 0x97, 0x06, 0x28, 0xfa, 0xd2, + 0x00, 0x91, 0x09, 0xdd, 0x1c, 0x93, 0x07, 0xb8, 0x28, 0xf2, 0x00, 0xd1, 0x09, 0x1c, 0x0f, 0x24, + 0x02, 0xde, 0xe2, 0x49, 0x04, 0xc4, 0x87, 0xb3, 0xad, 0x3e, 0xd4, 0x11, 0x99, 0x80, 0x4b, 0x4e, + 0x26, 0x20, 0x39, 0x36, 0x8b, 0xc0, 0x91, 0x07, 0x53, 0x01, 0xb5, 0xa1, 0x54, 0xc0, 0x2c, 0xff, + 0xa9, 0xf4, 0x71, 0x24, 0x26, 0xe4, 0x02, 0x6a, 0x43, 0xb9, 0x80, 0xd4, 0x04, 0x82, 0x13, 0x92, + 0x01, 0xdf, 0x3a, 0x3a, 0x19, 0x30, 0x3e, 0x5c, 0xe7, 0x6c, 0x4e, 0x97, 0x0d, 0x50, 0xc7, 0x64, + 0x03, 0xe4, 0xb1, 0x91, 0x2b, 0x23, 0x3f, 0x75, 0x3a, 0x60, 0x73, 0x44, 0x3a, 0x80, 0x05, 0xee, + 0xa7, 0xc7, 0x12, 0x9f, 0x22, 0x1f, 0xb0, 0x39, 0x22, 0x1f, 0x80, 0x26, 0x92, 0x9d, 0x98, 0x10, + 0xb8, 0xe2, 0x4f, 0x08, 0xcc, 0x8f, 0xf1, 0x3a, 0xdd, 0xd9, 0x3e, 0x26, 0x23, 0xb0, 0x35, 0x2e, + 0x23, 0xb0, 0xc0, 0x7f, 0x3f, 0x65, 0x1c, 0xc5, 0x43, 0xa4, 0x04, 0x6a, 0x43, 0x29, 0x81, 0x23, + 0x13, 0x34, 0x6d, 0xfa, 0x9c, 0x00, 0xfb, 0x45, 0x3d, 0xf6, 0x5b, 0x7a, 0x20, 0x27, 0xae, 0x87, + 0x62, 0x09, 0x39, 0x99, 0x7b, 0x88, 0x78, 0x30, 0x03, 0x76, 0x8e, 0xc4, 0x0a, 0xb8, 0xd7, 0x33, + 0x7b, 0xe2, 0x8e, 0x05, 0xfd, 0xc8, 0x9d, 0x26, 0x31, 0xa2, 0x6b, 0xd3, 0x0e, 0xc8, 0x1f, 0xd0, + 0x98, 0xcc, 0x63, 0xc7, 0x72, 0xbf, 0x28, 0xb9, 0xb8, 0x34, 0x83, 0xe0, 0x8d, 0x2f, 0xe3, 0x3c, + 0xbe, 0xf4, 0x64, 0x15, 0x02, 0xfe, 0xac, 0xc2, 0x22, 0x24, 0x48, 0xac, 0x35, 0x90, 0x30, 0xd0, + 0xba, 0x4e, 0xc2, 0x40, 0x1c, 0xa0, 0x62, 0xb9, 0x07, 0xbe, 0x2c, 0xb1, 0xdd, 0xc4, 0xb4, 0x73, + 0x98, 0x8c, 0x85, 0xba, 0xe8, 0x2c, 0xcc, 0x7b, 0x60, 0x9d, 0x18, 0x8e, 0x45, 0xcf, 0xb2, 0x03, + 0x9d, 0xe7, 0xc1, 0xdc, 0xbf, 0x90, 0x5c, 0x09, 0xb9, 0x99, 0x86, 0x51, 0x49, 0x01, 0xe9, 0x75, + 0x4a, 0x0a, 0x04, 0xee, 0x3a, 0x29, 0xe0, 0x8d, 0x49, 0x83, 0xfe, 0x98, 0xf4, 0xbf, 0x49, 0xee, + 0x98, 0x38, 0x21, 0x7e, 0xd3, 0x6c, 0x61, 0x1e, 0x25, 0xd2, 0xbf, 0x89, 0x4b, 0xd2, 0x36, 0xc5, + 0x0f, 0xa1, 0x91, 0x3f, 0x09, 0x94, 0xb3, 0xf0, 0xc4, 0xf9, 0xba, 0xe2, 0x04, 0x98, 0x61, 0xef, + 0x3d, 0x0e, 0x7e, 0xb9, 0x21, 0xe2, 0x5e, 0x6e, 0x70, 0xae, 0x8e, 0x47, 0x3d, 0x57, 0xc7, 0xd1, + 0x93, 0x10, 0xa7, 0xc9, 0x7e, 0xd5, 0xec, 0x8a, 0x9f, 0xa5, 0x3f, 0x31, 0xfe, 0x62, 0x83, 0x45, + 0x8f, 0x5c, 0xb3, 0xcb, 0x10, 0xae, 0xc7, 0x11, 0xf7, 0x79, 0x1c, 0xf7, 0x40, 0x9c, 0x70, 0xcf, + 0x7e, 0x54, 0x15, 0xf8, 0xbb, 0x03, 0xa2, 0x20, 0xf7, 0x53, 0x01, 0x48, 0x0f, 0x2c, 0x34, 0x23, + 0xfb, 0x3e, 0x6a, 0x1b, 0x79, 0x3a, 0x79, 0x9c, 0x04, 0xd8, 0xd1, 0x2c, 0xf5, 0x05, 0xcd, 0xb0, + 0x71, 0x8b, 0x0b, 0xc5, 0x53, 0x82, 0xb2, 0x10, 0x23, 0x5f, 0x7d, 0x0b, 0xb7, 0x78, 0xf6, 0xc5, + 0xf9, 0x46, 0xd7, 0x20, 0x82, 0x6f, 0xd3, 0x37, 0x99, 0xd9, 0xef, 0xe0, 0x1c, 0x1d, 0x0e, 0x87, + 0x49, 0x75, 0x21, 0x43, 0x06, 0xfb, 0xcb, 0x5f, 0x58, 0x94, 0x19, 0xf4, 0x23, 0xce, 0x65, 0x36, + 0x85, 0xe3, 0xfb, 0xa5, 0x10, 0x1b, 0x90, 0x02, 0xcd, 0x03, 0x26, 0x45, 0x78, 0x4f, 0x64, 0xca, + 0xce, 0x78, 0x2b, 0xb3, 0x1d, 0xdc, 0xe9, 0x9a, 0x66, 0x5b, 0x65, 0x73, 0x3c, 0x0f, 0x29, 0xff, + 0xba, 0xca, 0x7e, 0xfa, 0xdc, 0xd6, 0x74, 0x43, 0xf5, 0x39, 0xc1, 0x49, 0x56, 0xc8, 0xe6, 0x94, + 0xf7, 0xc1, 0xed, 0xdc, 0x06, 0x1c, 0x19, 0xb9, 0xae, 0xa2, 0x27, 0x20, 0xee, 0x2e, 0xc9, 0xec, + 0x98, 0xfe, 0x01, 0x99, 0x16, 0x17, 0x36, 0xf7, 0xcb, 0x92, 0x4b, 0xd2, 0x9f, 0xbb, 0x29, 0x43, + 0x84, 0x9d, 0x99, 0xe4, 0xe7, 0x63, 0xce, 0x4e, 0xb7, 0x22, 0x2f, 0xb3, 0x03, 0x95, 0x0a, 0x47, + 0xce, 0xbd, 0x1d, 0x22, 0xac, 0x04, 0x25, 0x20, 0xea, 0xfb, 0x05, 0x80, 0x7c, 0xb1, 0x58, 0xde, + 0x10, 0x6f, 0x2a, 0x17, 0xe8, 0x93, 0xbe, 0xa4, 0x58, 0x29, 0x5f, 0x2f, 0x17, 0x1b, 0x72, 0x10, + 0xcd, 0xc1, 0x2c, 0xfb, 0x9b, 0xbf, 0xd3, 0x2f, 0x87, 0x3c, 0x45, 0xf5, 0x72, 0xb5, 0x54, 0x56, + 0xe4, 0x70, 0xee, 0x3c, 0x1c, 0x1f, 0xbb, 0x86, 0xbb, 0x89, 0x19, 0xc9, 0x93, 0x98, 0xc9, 0xbd, + 0x1c, 0x20, 0x41, 0xcd, 0xb8, 0x85, 0x19, 0x5d, 0x1f, 0xe8, 0xf8, 0xca, 0x21, 0x56, 0xf5, 0x81, + 0xde, 0x93, 0x38, 0xa6, 0x87, 0xb7, 0xb1, 0xdd, 0xdc, 0x65, 0x8e, 0x02, 0xb3, 0x40, 0xb3, 0xca, + 0x2c, 0x2f, 0xa5, 0x48, 0x16, 0x03, 0x7b, 0x1e, 0x37, 0x6d, 0x95, 0x29, 0x91, 0x45, 0x83, 0x89, + 0x38, 0x01, 0x23, 0xa5, 0x75, 0x56, 0x98, 0xfb, 0xf6, 0x43, 0xc9, 0x32, 0x0e, 0x61, 0xa5, 0xdc, + 0x50, 0x6e, 0xca, 0x41, 0x84, 0x20, 0x45, 0xff, 0x54, 0xeb, 0xd5, 0xfc, 0x46, 0xfd, 0x5a, 0x8d, + 0xc8, 0x72, 0x1e, 0xd2, 0x42, 0x96, 0xa2, 0x30, 0x9c, 0x7b, 0x18, 0x8e, 0x8d, 0xf1, 0x2a, 0x46, + 0x1c, 0x62, 0xfd, 0xa8, 0xe4, 0x85, 0xf6, 0x7b, 0x06, 0x35, 0x88, 0x58, 0xb6, 0x66, 0xf7, 0x2d, + 0x2e, 0xc4, 0x27, 0xa6, 0x75, 0x33, 0x96, 0xc5, 0x1f, 0x75, 0x8a, 0xae, 0x70, 0x32, 0xb9, 0x0b, + 0x90, 0xf2, 0xd7, 0x8c, 0x97, 0x81, 0xab, 0x44, 0x81, 0xdc, 0x65, 0x40, 0xc3, 0xde, 0xc7, 0x88, + 0xf0, 0x52, 0x1a, 0x15, 0x5e, 0xfe, 0x84, 0x04, 0x27, 0x0e, 0xf0, 0x34, 0xd0, 0xdb, 0x06, 0x3a, + 0x79, 0xe9, 0x30, 0x7e, 0xca, 0x32, 0x2b, 0x1b, 0xe8, 0xe6, 0x63, 0x90, 0xf4, 0x96, 0x4f, 0xd7, + 0xc9, 0x2f, 0x07, 0xdc, 0x49, 0xec, 0x8f, 0x83, 0x5d, 0x13, 0x28, 0x7d, 0x83, 0x26, 0xf0, 0xcd, + 0x00, 0xf6, 0x9e, 0x38, 0x45, 0xcd, 0xd7, 0xd1, 0x7b, 0x47, 0xe4, 0x17, 0x71, 0xb3, 0xb1, 0xc7, + 0x27, 0x41, 0xdc, 0xe6, 0x7f, 0x59, 0xa8, 0xee, 0x4d, 0x0a, 0xf4, 0xe9, 0x1a, 0x6b, 0xf1, 0x80, + 0x79, 0xda, 0xc5, 0xd8, 0x4d, 0x1e, 0xb0, 0x62, 0x0b, 0xdd, 0x84, 0x63, 0x03, 0x8e, 0x82, 0x43, + 0x3a, 0x34, 0xad, 0xbf, 0x70, 0xc4, 0xef, 0x2f, 0x08, 0xd2, 0xde, 0xd5, 0x3e, 0xec, 0x5f, 0xed, + 0x6f, 0x02, 0xb8, 0xc9, 0x01, 0xf7, 0xd8, 0x9f, 0xe4, 0x3d, 0xf6, 0x77, 0x01, 0xc2, 0x44, 0x93, + 0x84, 0x9c, 0x86, 0x4d, 0x31, 0xd1, 0x04, 0x4f, 0x72, 0x81, 0x41, 0xe7, 0x74, 0x40, 0xc3, 0x09, + 0xda, 0x31, 0x4d, 0xbc, 0xc5, 0xdf, 0xc4, 0xa9, 0xb1, 0xa9, 0xde, 0xd1, 0x4d, 0xbd, 0x08, 0x61, + 0x3a, 0xf2, 0x23, 0xef, 0x52, 0x7e, 0x1b, 0x80, 0x66, 0xdb, 0x3d, 0x7d, 0xab, 0xef, 0x36, 0xb0, + 0x38, 0x5a, 0x73, 0xf2, 0x02, 0xae, 0x70, 0x0f, 0x57, 0xa1, 0x05, 0x17, 0xd5, 0xa3, 0x46, 0x1e, + 0x82, 0xb9, 0x2a, 0xa4, 0xfc, 0xb8, 0xa3, 0xef, 0x86, 0x0e, 0xff, 0x02, 0xae, 0xeb, 0x1d, 0xf1, + 0xe7, 0xaa, 0xe8, 0x47, 0xee, 0x9d, 0x01, 0x48, 0x7a, 0x15, 0xef, 0xef, 0x9f, 0x0b, 0x92, 0xfb, + 0x2e, 0x09, 0x62, 0x4e, 0xf7, 0x0f, 0x38, 0xec, 0xec, 0xde, 0x11, 0x76, 0x36, 0x2f, 0xd8, 0x36, + 0x51, 0xd0, 0xd9, 0x26, 0xba, 0xec, 0x2c, 0x7f, 0xe3, 0x12, 0x22, 0x5e, 0x59, 0x8b, 0x03, 0x87, + 0x7c, 0xb5, 0xbf, 0x3c, 0xdd, 0x55, 0xbc, 0x05, 0x08, 0x7b, 0xaf, 0xd1, 0xb1, 0x8f, 0x5c, 0xcb, + 0x73, 0xc2, 0x88, 0x4d, 0x44, 0xef, 0x9d, 0x3d, 0xe9, 0xd0, 0x77, 0xf6, 0x9c, 0x56, 0x02, 0xde, + 0x56, 0x7e, 0x40, 0x82, 0x98, 0x98, 0x13, 0xe8, 0xad, 0xde, 0x93, 0x67, 0x62, 0x6b, 0x73, 0xac, + 0x3d, 0xe2, 0xf4, 0x3d, 0x07, 0xcf, 0x86, 0x0e, 0x5c, 0x07, 0x0f, 0x7b, 0xe0, 0x9a, 0x7b, 0x76, + 0x7f, 0x29, 0x81, 0x3c, 0x38, 0x63, 0xbf, 0x61, 0xee, 0x86, 0x97, 0xb9, 0xe0, 0x88, 0x65, 0x6e, + 0xdc, 0x29, 0xea, 0xd0, 0xb8, 0x53, 0xd4, 0xc3, 0xbd, 0x0e, 0xdf, 0x65, 0xaf, 0xdf, 0x1d, 0x80, + 0x84, 0x27, 0x3d, 0x8a, 0x1e, 0xf7, 0x9d, 0xc8, 0x5e, 0x3a, 0x28, 0x95, 0xea, 0x39, 0x92, 0xed, + 0x13, 0x53, 0xe0, 0xf0, 0x62, 0x7a, 0xfd, 0x6f, 0x67, 0x8d, 0xbe, 0xc0, 0x1a, 0x1e, 0x73, 0x81, + 0xf5, 0x3b, 0x25, 0x88, 0x39, 0x6e, 0xf7, 0x61, 0x37, 0x31, 0x8f, 0x42, 0x84, 0x7b, 0x96, 0x6c, + 0x17, 0x93, 0x7f, 0x8d, 0x4c, 0x2b, 0x67, 0x21, 0xd6, 0xc1, 0xb6, 0x46, 0xed, 0x20, 0x5b, 0xd5, + 0x9c, 0xef, 0x33, 0x97, 0x20, 0xe1, 0xd9, 0x00, 0x26, 0xa6, 0xb1, 0x5a, 0x7e, 0x46, 0x9e, 0xc9, + 0x46, 0x5f, 0xba, 0xb3, 0x14, 0xac, 0xe2, 0x17, 0xc8, 0x6c, 0x56, 0xca, 0xc5, 0x6b, 0xe5, 0xe2, + 0xd3, 0xb2, 0x94, 0x4d, 0xbc, 0x74, 0x67, 0x29, 0xaa, 0x60, 0x9a, 0x51, 0x3c, 0xf3, 0x34, 0xa4, + 0x07, 0x06, 0xc6, 0xef, 0xb6, 0x20, 0x48, 0x95, 0x36, 0x37, 0xd6, 0x2a, 0xc5, 0x7c, 0xa3, 0xac, + 0xb2, 0x73, 0xbb, 0xe8, 0x18, 0xcc, 0xaf, 0x55, 0xae, 0x5e, 0x6b, 0xa8, 0xc5, 0xb5, 0x4a, 0xb9, + 0xda, 0x50, 0xf3, 0x8d, 0x46, 0xbe, 0xf8, 0xb4, 0x1c, 0x58, 0xb9, 0x93, 0x80, 0x50, 0xbe, 0x50, + 0xac, 0xa0, 0x22, 0x84, 0x68, 0x2a, 0xe4, 0xc0, 0x13, 0x60, 0xd9, 0x83, 0x73, 0xc3, 0xe8, 0x0a, + 0x84, 0x69, 0x96, 0x04, 0x1d, 0x7c, 0x24, 0x2c, 0x3b, 0x21, 0x59, 0x4c, 0x98, 0xa1, 0x33, 0xf2, + 0xc0, 0x33, 0x62, 0xd9, 0x83, 0x73, 0xc7, 0x68, 0x0d, 0xa2, 0x22, 0x48, 0x9e, 0x74, 0x70, 0x2b, + 0x3b, 0x31, 0xa1, 0x4b, 0xba, 0xc6, 0x92, 0x0d, 0x07, 0x1f, 0x1f, 0xcb, 0x4e, 0xc8, 0x2a, 0xa3, + 0x8a, 0x73, 0x9f, 0x69, 0xc2, 0x89, 0xb0, 0xec, 0xa4, 0x3c, 0x31, 0x52, 0x20, 0xee, 0xa6, 0x71, + 0x26, 0x1f, 0x8a, 0xcb, 0x4e, 0x91, 0x30, 0x47, 0x6f, 0x87, 0x59, 0x7f, 0xa8, 0x3b, 0xdd, 0xa9, + 0xb3, 0xec, 0x94, 0x19, 0x69, 0x42, 0xdf, 0x1f, 0xf7, 0x4e, 0x77, 0x0a, 0x2d, 0x3b, 0x65, 0x82, + 0x1a, 0x3d, 0x0f, 0x73, 0xc3, 0x71, 0xe9, 0xf4, 0x87, 0xd2, 0xb2, 0x87, 0x48, 0x59, 0xa3, 0x0e, + 0xa0, 0x11, 0xf1, 0xec, 0x21, 0xce, 0xa8, 0x65, 0x0f, 0x93, 0xc1, 0x46, 0x2d, 0x48, 0x0f, 0x06, + 0x89, 0xd3, 0x9e, 0x59, 0xcb, 0x4e, 0x9d, 0xcd, 0x66, 0xad, 0xf8, 0x83, 0xcb, 0x69, 0xcf, 0xb0, + 0x65, 0xa7, 0x4e, 0x6e, 0xa3, 0x4d, 0x00, 0x4f, 0x7c, 0x38, 0xc5, 0x99, 0xb6, 0xec, 0x34, 0x69, + 0x6e, 0xd4, 0x85, 0xf9, 0x51, 0x81, 0xe3, 0x61, 0x8e, 0xb8, 0x65, 0x0f, 0x95, 0xfd, 0x26, 0xfa, + 0xec, 0x0f, 0x01, 0xa7, 0x3b, 0xf2, 0x96, 0x9d, 0x32, 0x0d, 0x5e, 0xc8, 0x8f, 0x3d, 0xe7, 0xfc, + 0xe0, 0x81, 0xe7, 0x9c, 0xdd, 0x93, 0xcb, 0xce, 0xd9, 0xe6, 0x2f, 0x9e, 0x83, 0x37, 0xf1, 0x17, + 0x74, 0x2c, 0x5b, 0xbb, 0xa5, 0x1b, 0x3b, 0xce, 0x33, 0x4b, 0xfc, 0x9b, 0x1f, 0x72, 0x3e, 0xca, + 0x5f, 0xe9, 0x11, 0xa5, 0x13, 0x1e, 0x5b, 0x1a, 0xfb, 0x46, 0xe7, 0xa4, 0xfb, 0x10, 0x93, 0x8f, + 0x2f, 0x1f, 0xf0, 0x90, 0xd3, 0x84, 0xe7, 0xa2, 0x46, 0x3c, 0xf4, 0x94, 0x3d, 0xf0, 0x8d, 0x81, + 0xec, 0x41, 0xe7, 0xbe, 0x89, 0x17, 0x9b, 0xba, 0xa6, 0x5b, 0xb6, 0xd9, 0xd3, 0x9b, 0x5a, 0x9b, + 0x2e, 0x2f, 0x97, 0xa7, 0xbd, 0x95, 0x55, 0x88, 0x13, 0x77, 0x85, 0xbf, 0x05, 0xc5, 0x6f, 0x0a, + 0x95, 0x20, 0x72, 0x5b, 0x6b, 0xb3, 0x3b, 0x51, 0xde, 0xc7, 0xe4, 0x06, 0x65, 0xee, 0xf1, 0xa3, + 0xbc, 0x54, 0x18, 0x6e, 0xee, 0x87, 0xe8, 0x7d, 0x92, 0x4e, 0x47, 0xb7, 0x88, 0x2e, 0x2a, 0x34, + 0x94, 0xbe, 0x0e, 0xa1, 0x9e, 0x66, 0xf3, 0x00, 0xb3, 0x70, 0xf1, 0xd0, 0xef, 0x32, 0xb1, 0x16, + 0x28, 0x0d, 0xf4, 0x36, 0x88, 0x75, 0xb4, 0x3d, 0x95, 0xd2, 0x0b, 0x7c, 0x43, 0xf4, 0xa2, 0x1d, + 0x6d, 0x8f, 0xf0, 0x87, 0xde, 0x4e, 0x7f, 0xf7, 0x51, 0x6d, 0xee, 0x6a, 0xc6, 0x0e, 0x66, 0x94, + 0x83, 0xdf, 0x10, 0xe5, 0xd9, 0x8e, 0xb6, 0x57, 0xa4, 0xd4, 0x08, 0x7d, 0xfe, 0xe4, 0xd5, 0xaf, + 0x49, 0x3c, 0x6b, 0x40, 0x05, 0x83, 0x34, 0x90, 0x9b, 0xce, 0x17, 0x6d, 0x54, 0x6c, 0x71, 0x3c, + 0x38, 0x4e, 0xee, 0x03, 0x62, 0x2d, 0xcc, 0x12, 0xf6, 0x3e, 0xff, 0x85, 0x45, 0x89, 0xb5, 0x9a, + 0x6e, 0x0e, 0x89, 0x3d, 0xc1, 0x92, 0x21, 0x2a, 0xf5, 0x61, 0x03, 0x13, 0x7d, 0xd8, 0x59, 0xe1, + 0xc3, 0x32, 0x82, 0xc0, 0xb0, 0x49, 0x3d, 0xef, 0xc3, 0x27, 0x25, 0x48, 0x94, 0x3c, 0x0f, 0x5f, + 0x66, 0x20, 0xda, 0x31, 0x0d, 0xfd, 0x16, 0xee, 0x39, 0x7b, 0x54, 0xec, 0x93, 0xf8, 0x99, 0xec, + 0x57, 0xd6, 0xed, 0x7d, 0xf1, 0xba, 0x90, 0xf8, 0x26, 0x58, 0x2f, 0xe0, 0x2d, 0x4b, 0x17, 0x72, + 0x56, 0xc4, 0x27, 0x7a, 0x08, 0x64, 0x0b, 0x37, 0xfb, 0x3d, 0xdd, 0xde, 0x57, 0x9b, 0xa6, 0x61, + 0x6b, 0x4d, 0x9b, 0xc7, 0xe1, 0x69, 0x51, 0x5e, 0x64, 0xc5, 0x84, 0x48, 0x0b, 0xdb, 0x9a, 0xde, + 0x66, 0x27, 0x33, 0xe3, 0x8a, 0xf8, 0xe4, 0xac, 0xde, 0x89, 0x7a, 0xe3, 0xd0, 0x22, 0xc8, 0x66, + 0x17, 0xf7, 0x7c, 0x07, 0x52, 0x98, 0x36, 0x66, 0x7e, 0xe7, 0xb3, 0x67, 0x17, 0xb8, 0xc0, 0xf9, + 0x61, 0x06, 0xf6, 0x3b, 0x0f, 0x4a, 0x5a, 0x60, 0x88, 0x93, 0x2a, 0x37, 0x7d, 0xbb, 0x52, 0xfd, + 0x2d, 0xf7, 0x19, 0x99, 0x85, 0x21, 0xa1, 0xe6, 0x8d, 0xfd, 0x42, 0xe6, 0x73, 0x2e, 0x69, 0x37, + 0x4e, 0x7d, 0x1a, 0xef, 0x7b, 0xb7, 0xa8, 0x28, 0x19, 0xe2, 0xc2, 0x3f, 0xaf, 0xe9, 0x6d, 0xdc, + 0xe2, 0x69, 0x0d, 0xfe, 0x85, 0x56, 0x9d, 0xf4, 0x22, 0xfb, 0x31, 0xd3, 0xdc, 0x38, 0xdd, 0x28, + 0x98, 0x46, 0xcb, 0x9f, 0x47, 0x44, 0x45, 0x88, 0xd8, 0xe6, 0x2d, 0x6c, 0x70, 0x01, 0x1d, 0xee, + 0x69, 0x35, 0x8e, 0x8a, 0xbe, 0x15, 0xe4, 0x16, 0x6e, 0xe3, 0x1d, 0x76, 0x5f, 0x72, 0x57, 0xeb, + 0x61, 0x76, 0x5b, 0xff, 0xae, 0x9e, 0x57, 0x4b, 0x3b, 0xa4, 0xea, 0x94, 0x12, 0xda, 0xf0, 0x3f, + 0xad, 0x1a, 0xe5, 0x9b, 0xc7, 0x63, 0xfa, 0xe8, 0xd1, 0x3c, 0xaf, 0xe5, 0xf1, 0x3d, 0xc5, 0xfa, + 0x10, 0xc8, 0x7d, 0x63, 0xcb, 0x34, 0xe8, 0x2f, 0x73, 0xf2, 0x28, 0x2a, 0xc6, 0x76, 0x2a, 0x9d, + 0x72, 0xbe, 0x53, 0xb9, 0x01, 0x29, 0x17, 0x94, 0xce, 0x90, 0xf8, 0x61, 0x67, 0xc8, 0xac, 0x43, + 0x80, 0x80, 0xa0, 0x75, 0x00, 0x77, 0x0e, 0xd2, 0xad, 0xb2, 0xc4, 0xf8, 0x11, 0x73, 0x67, 0xb3, + 0xb7, 0x33, 0x1e, 0x02, 0xc8, 0x80, 0xf9, 0x8e, 0x6e, 0xa8, 0x16, 0x6e, 0x6f, 0xab, 0x5c, 0x72, + 0x84, 0x6e, 0x82, 0x8a, 0xff, 0xad, 0x87, 0x18, 0xcd, 0xdf, 0xfb, 0xec, 0xd9, 0xb4, 0xfb, 0x40, + 0xdd, 0xd2, 0xa3, 0xcb, 0x8f, 0x5f, 0x54, 0xe6, 0x3a, 0xba, 0x51, 0xc7, 0xed, 0xed, 0x92, 0x43, + 0x18, 0xbd, 0x19, 0x4e, 0xb8, 0x02, 0x31, 0x0d, 0x75, 0xd7, 0x6c, 0xb7, 0xd4, 0x1e, 0xde, 0x56, + 0x9b, 0xf4, 0xe9, 0xbf, 0x24, 0x15, 0xe3, 0x31, 0x07, 0xa4, 0x66, 0x5c, 0x33, 0xdb, 0x2d, 0x05, + 0x6f, 0x17, 0x49, 0x35, 0xba, 0x0f, 0x5c, 0x69, 0xa8, 0x7a, 0xcb, 0xca, 0xcc, 0x2e, 0x05, 0x4f, + 0x87, 0x94, 0xa4, 0x53, 0x58, 0x69, 0x59, 0xab, 0xb1, 0xf7, 0x7e, 0x64, 0x71, 0xe6, 0xd5, 0x8f, + 0x2c, 0xce, 0xe4, 0xae, 0xd0, 0x67, 0xa6, 0xf8, 0xd4, 0xc2, 0x16, 0xba, 0x08, 0x71, 0x4d, 0x7c, + 0xb0, 0x4b, 0x64, 0x07, 0x4c, 0x4d, 0x17, 0x34, 0xf7, 0x93, 0x12, 0x44, 0x4a, 0x37, 0x36, 0x34, + 0xbd, 0x87, 0xca, 0x30, 0xe7, 0xea, 0xea, 0xb4, 0xb3, 0xdc, 0x55, 0x6f, 0x31, 0xcd, 0xab, 0xe3, + 0x4e, 0xaf, 0xc5, 0x0b, 0xa7, 0x7e, 0xe7, 0xb3, 0x67, 0xef, 0xe5, 0x64, 0x6e, 0x0c, 0x1c, 0x64, + 0x13, 0xf4, 0x06, 0x0f, 0xb8, 0x79, 0xfa, 0x7c, 0x1d, 0xa2, 0x8c, 0x55, 0x0b, 0x3d, 0x05, 0xe1, + 0x2e, 0xf9, 0x83, 0x27, 0xe5, 0x4f, 0x8e, 0xd5, 0x79, 0x0a, 0xef, 0xd5, 0x10, 0x86, 0x97, 0x7b, + 0x5f, 0x00, 0xa0, 0x74, 0xe3, 0x46, 0xa3, 0xa7, 0x77, 0xdb, 0xd8, 0x7e, 0xbd, 0xfa, 0xbe, 0x09, + 0x47, 0x3c, 0xd7, 0xa3, 0x7b, 0xcd, 0xc3, 0xf7, 0x7f, 0xde, 0xbd, 0x29, 0xdd, 0x6b, 0x8e, 0x24, + 0xdb, 0xb2, 0x6c, 0x87, 0x6c, 0xf0, 0xf0, 0x64, 0x4b, 0x96, 0x3d, 0x2c, 0xd9, 0x67, 0x21, 0xe1, + 0x0a, 0xc3, 0x42, 0x15, 0x88, 0xd9, 0xfc, 0x6f, 0x2e, 0xe0, 0xdc, 0x78, 0x01, 0x0b, 0x34, 0xaf, + 0x90, 0x1d, 0xf4, 0xdc, 0x5f, 0x4b, 0x00, 0x9e, 0x39, 0xf2, 0xc6, 0xd4, 0x31, 0x12, 0xc1, 0x73, + 0xe3, 0x1c, 0xbc, 0xeb, 0x07, 0x3a, 0x19, 0x01, 0x8f, 0x50, 0xdf, 0x1f, 0x80, 0xf9, 0x4d, 0x31, + 0x7b, 0xdf, 0xf8, 0x32, 0xd8, 0x84, 0x28, 0x36, 0xec, 0x9e, 0xee, 0x6c, 0x2b, 0x3d, 0x3a, 0x6e, + 0xcc, 0x47, 0x74, 0xaa, 0x6c, 0xd8, 0xbd, 0x7d, 0xaf, 0x06, 0x08, 0x5a, 0x1e, 0x79, 0x7c, 0x30, + 0x08, 0x99, 0x71, 0xa8, 0xe8, 0x41, 0x48, 0x37, 0x7b, 0x98, 0x16, 0xf8, 0x6f, 0x8d, 0xa6, 0x44, + 0x31, 0x5f, 0x76, 0x14, 0x20, 0x8e, 0x1a, 0x51, 0x2e, 0x02, 0x7a, 0x77, 0x9e, 0x59, 0xca, 0xa5, + 0x40, 0x17, 0x9e, 0x06, 0xa4, 0xc5, 0x35, 0x94, 0x2d, 0xad, 0xad, 0x19, 0x4d, 0xe1, 0xc1, 0x1e, + 0x6a, 0xcd, 0x17, 0x57, 0x59, 0x0a, 0x8c, 0x04, 0x2a, 0x43, 0x54, 0x50, 0x0b, 0x1d, 0x9e, 0x9a, + 0xc0, 0x45, 0xa7, 0x20, 0xe9, 0x5d, 0x18, 0xa8, 0x37, 0x12, 0x52, 0x12, 0x9e, 0x75, 0x61, 0xd2, + 0xca, 0x13, 0x39, 0x70, 0xe5, 0xe1, 0x0e, 0xdf, 0x8f, 0xd1, 0xd3, 0xe2, 0xad, 0xbf, 0xfb, 0xc3, + 0xb2, 0x01, 0xc0, 0xa6, 0x2a, 0xb1, 0xa4, 0x7c, 0x64, 0xee, 0x62, 0xbe, 0xc7, 0x19, 0x91, 0x92, + 0x65, 0xff, 0x6d, 0x8d, 0xd0, 0xef, 0x07, 0x20, 0xe9, 0x1d, 0xa1, 0xbf, 0x97, 0x8b, 0x16, 0xaa, + 0xba, 0x66, 0x8a, 0xdd, 0xa8, 0x79, 0x68, 0x9c, 0x99, 0x1a, 0xd2, 0xe6, 0x09, 0xf6, 0xe9, 0x43, + 0x41, 0x88, 0xf0, 0x23, 0x6f, 0xb5, 0x21, 0xdf, 0x56, 0x9a, 0xf4, 0x26, 0xc0, 0xac, 0x78, 0x13, + 0x60, 0xa4, 0x6b, 0x7b, 0x3f, 0xa4, 0x48, 0x8c, 0xec, 0x3b, 0x47, 0x27, 0x9d, 0x9e, 0xa5, 0xa1, + 0xae, 0x7b, 0x6a, 0x1c, 0x2d, 0x42, 0x82, 0x80, 0xb9, 0x76, 0x98, 0xc0, 0x40, 0x47, 0xdb, 0x2b, + 0xb3, 0x12, 0x74, 0x16, 0xd0, 0xae, 0x93, 0xb3, 0x50, 0x5d, 0x41, 0x10, 0xb8, 0x39, 0xb7, 0x46, + 0x80, 0xdf, 0x0b, 0x40, 0xb8, 0x50, 0xd9, 0x9b, 0xd4, 0xfc, 0xc5, 0x6f, 0x52, 0x52, 0xa2, 0xef, + 0x52, 0xbf, 0x47, 0x62, 0x2e, 0xf2, 0x40, 0x24, 0xcd, 0x23, 0x94, 0xc6, 0x14, 0x93, 0xe2, 0x2f, + 0xbe, 0xb0, 0x98, 0xdd, 0xd7, 0x3a, 0xed, 0xd5, 0xdc, 0x08, 0x3a, 0xb9, 0x51, 0xc1, 0x3d, 0x71, + 0x9c, 0xfd, 0x91, 0xf8, 0xea, 0x9b, 0x88, 0x7a, 0xbf, 0xf4, 0xca, 0xa7, 0xce, 0x9c, 0xf0, 0x3c, + 0x03, 0xbd, 0xe7, 0x64, 0xb4, 0xd8, 0x98, 0x10, 0x4f, 0x15, 0xb9, 0xab, 0x86, 0x73, 0x58, 0x7e, + 0x1d, 0xc0, 0xe3, 0xdc, 0x4b, 0x07, 0x07, 0x0d, 0x2e, 0xbe, 0x2f, 0x68, 0xf0, 0xcc, 0xa9, 0xb7, + 0xba, 0x46, 0x5b, 0x3c, 0x03, 0x31, 0xe2, 0x91, 0xf2, 0xe5, 0xa2, 0xa9, 0xfb, 0x48, 0x08, 0x24, + 0x3a, 0x55, 0x67, 0x72, 0xff, 0x46, 0x82, 0xe3, 0x43, 0xea, 0xe7, 0xb0, 0xdc, 0x04, 0xd4, 0xf3, + 0x54, 0xd2, 0x61, 0x14, 0xbb, 0xb3, 0x77, 0xa7, 0xcd, 0x73, 0xbd, 0x21, 0xcb, 0xfd, 0xfa, 0xac, + 0x3e, 0xdc, 0xf4, 0xfc, 0xa6, 0x04, 0x0b, 0x5e, 0x06, 0x9c, 0xae, 0xd4, 0x21, 0xe9, 0x6d, 0x9a, + 0x77, 0xe2, 0x4d, 0xd3, 0x74, 0xc2, 0xcb, 0xbf, 0x8f, 0x08, 0xba, 0xe1, 0x4e, 0x71, 0x96, 0x4a, + 0x3b, 0x3f, 0xb5, 0x50, 0x04, 0x63, 0x23, 0xa7, 0x3a, 0x1b, 0x9b, 0xaf, 0x48, 0x10, 0xda, 0x30, + 0xcd, 0x36, 0x7a, 0x07, 0xcc, 0x19, 0xa6, 0xad, 0x92, 0xe9, 0x80, 0x5b, 0x2a, 0x8f, 0xf5, 0x99, + 0xf9, 0x2c, 0x1f, 0x28, 0xab, 0x2f, 0x7f, 0x61, 0x71, 0x18, 0x73, 0xd4, 0x33, 0xf1, 0x69, 0xc3, + 0xb4, 0x0b, 0x14, 0xa8, 0xc1, 0xd2, 0x01, 0xdb, 0x30, 0xeb, 0x6f, 0x8e, 0x99, 0xd8, 0xfc, 0xa4, + 0xe6, 0x66, 0x27, 0x36, 0x95, 0xdc, 0xf2, 0xb4, 0xc3, 0x5e, 0x56, 0xfe, 0x33, 0x32, 0x72, 0x37, + 0x41, 0xbe, 0x31, 0x78, 0xea, 0xa7, 0x0c, 0x51, 0x71, 0xca, 0x47, 0x9a, 0xf2, 0x00, 0x91, 0x57, + 0x9c, 0x1c, 0xf7, 0xcc, 0xcf, 0x4b, 0x00, 0x6e, 0xde, 0x04, 0x3d, 0x02, 0xc7, 0x0a, 0xb5, 0x6a, + 0x49, 0xad, 0x37, 0xf2, 0x8d, 0xcd, 0xba, 0xff, 0xe7, 0x57, 0xc4, 0x93, 0x44, 0x56, 0x17, 0x37, + 0xf5, 0x6d, 0x1d, 0xb7, 0xd0, 0x03, 0xb0, 0xe0, 0x87, 0x26, 0x5f, 0xe5, 0x92, 0x2c, 0x65, 0x93, + 0x2f, 0xdd, 0x59, 0x8a, 0x31, 0x3f, 0x11, 0xb7, 0xd0, 0x69, 0x38, 0x32, 0x0c, 0x57, 0xa9, 0x5e, + 0x95, 0x03, 0xd9, 0xd9, 0x97, 0xee, 0x2c, 0xc5, 0x1d, 0x87, 0x12, 0xe5, 0x00, 0x79, 0x21, 0x39, + 0xbd, 0x60, 0x16, 0x5e, 0xba, 0xb3, 0x14, 0x61, 0xa3, 0x90, 0x0d, 0xbd, 0xf7, 0xc7, 0x4f, 0xce, + 0x9c, 0xf9, 0x36, 0x80, 0x8a, 0xb1, 0xdd, 0xd3, 0x9a, 0x54, 0xdb, 0xb2, 0x70, 0xb4, 0x52, 0xbd, + 0xa2, 0xe4, 0x8b, 0x8d, 0x4a, 0xad, 0x3a, 0xf0, 0xab, 0x31, 0xfe, 0xba, 0x52, 0x6d, 0xb3, 0xb0, + 0x56, 0x56, 0xeb, 0x95, 0xab, 0x55, 0xb6, 0xff, 0xea, 0xab, 0x7b, 0xa6, 0xda, 0xa8, 0xac, 0x97, + 0xe5, 0x40, 0xe1, 0xca, 0xd8, 0xfc, 0xfe, 0x23, 0x07, 0x3e, 0x7c, 0xef, 0x5a, 0x3c, 0x5f, 0x92, + 0xff, 0x7f, 0x06, 0x00, 0x00, 0xff, 0xff, 0xbc, 0x75, 0xa9, 0xc4, 0x25, 0xb6, 0x00, 0x00, } r := bytes.NewReader(gzipped) gzipr, err := compress_gzip.NewReader(r) @@ -7254,7 +7223,7 @@ func (m *ValidatorUpdates) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Updates = append(m.Updates, v21.ValidatorUpdate{}) + m.Updates = append(m.Updates, types2.ValidatorUpdate{}) if err := m.Updates[len(m.Updates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } diff --git a/x/staking/types/validator.go b/x/staking/types/validator.go index a60331cf25..146253d07f 100644 --- a/x/staking/types/validator.go +++ b/x/staking/types/validator.go @@ -7,9 +7,8 @@ import ( "strings" "time" - cmtprotocrypto "github.com/cometbft/cometbft/api/cometbft/crypto/v1" - abci "github.com/cometbft/cometbft/v2/abci/types" - "github.com/cometbft/cometbft/v2/crypto/encoding" + abci "github.com/cometbft/cometbft/abci/types" + cmtprotocrypto "github.com/cometbft/cometbft/proto/tendermint/crypto" "cosmossdk.io/core/address" "cosmossdk.io/errors" @@ -93,12 +92,12 @@ func (v Validators) Sort() { sort.Sort(v) } -// Len implements sort interface +// Len implements Len sort interface func (v Validators) Len() int { return len(v.Validators) } -// Less implements sort interface +// Less implements Less sort interface func (v Validators) Less(i, j int) bool { vi, err := v.ValidatorCodec.StringToBytes(v.Validators[i].GetOperator()) if err != nil { @@ -112,7 +111,7 @@ func (v Validators) Less(i, j int) bool { return bytes.Compare(vi, vj) == -1 } -// Swap implements sort interface +// Swap implements Swap sort interface func (v Validators) Swap(i, j int) { v.Validators[i], v.Validators[j] = v.Validators[j], v.Validators[i] } @@ -152,12 +151,12 @@ func (v Validators) UnpackInterfaces(c codectypes.AnyUnpacker) error { return nil } -// MustMarshalValidator marshals a validator to a store value. Panics on error. +// MustMarshalValidator returns the redelegation func MustMarshalValidator(cdc codec.BinaryCodec, validator *Validator) []byte { return cdc.MustMarshal(validator) } -// MustUnmarshalValidator unmarshals a validator from a store value. Panics on error. +// MustUnmarshalValidator unmarshals a redelegation from a store value func MustUnmarshalValidator(cdc codec.BinaryCodec, value []byte) Validator { validator, err := UnmarshalValidator(cdc, value) if err != nil { @@ -167,7 +166,7 @@ func MustUnmarshalValidator(cdc codec.BinaryCodec, value []byte) Validator { return validator } -// UnmarshalValidator unmarshals a validator from a store value +// UnmarshalValidator unmarshals a redelegation from a store value func UnmarshalValidator(cdc codec.BinaryCodec, value []byte) (v Validator, err error) { err = cdc.Unmarshal(value, &v) return v, err @@ -265,14 +264,10 @@ func (v Validator) ABCIValidatorUpdate(r math.Int) abci.ValidatorUpdate { if err != nil { panic(err) } - tmPk, err := encoding.PubKeyFromProto(tmProtoPk) - if err != nil { - panic(err) - } + return abci.ValidatorUpdate{ - PubKeyBytes: tmPk.Bytes(), - PubKeyType: tmPk.Type(), - Power: v.ConsensusPower(r), + PubKey: tmProtoPk, + Power: v.ConsensusPower(r), } } @@ -283,14 +278,10 @@ func (v Validator) ABCIValidatorUpdateZero() abci.ValidatorUpdate { if err != nil { panic(err) } - tmPk, err := encoding.PubKeyFromProto(tmProtoPk) - if err != nil { - panic(err) - } + return abci.ValidatorUpdate{ - PubKeyBytes: tmPk.Bytes(), - PubKeyType: tmPk.Type(), - Power: 0, + PubKey: tmProtoPk, + Power: 0, } } @@ -306,9 +297,7 @@ func (v Validator) SetInitialCommission(commission Commission) (Validator, error return v, nil } -// InvalidExRate returns if the Validator has an invalid exchange rate. -// -// In some situations, the exchange rate becomes invalid, e.g. if +// InvalidExRate checks if the exchange rate becomes invalid, e.g. if // Validator loses all tokens due to slashing. In this case, // make all future delegations invalid. func (v Validator) InvalidExRate() bool { @@ -360,7 +349,7 @@ func (v Validator) BondedTokens() math.Int { return math.ZeroInt() } -// ConsensusPower gets the consensus-engine power. A reduction of 10^6 from +// ConsensusPower gets the consensus-engine power. Aa reduction of 10^6 from // validator tokens is applied func (v Validator) ConsensusPower(r math.Int) int64 { if v.IsBonded() { @@ -420,7 +409,7 @@ func (v Validator) RemoveTokens(tokens math.Int) Validator { } // RemoveDelShares removes delegator shares from a validator. -// NOTE: because token fractions are left in the validator, +// NOTE: because token fractions are left in the valiadator, // // the exchange rate of future shares of this validator can increase. func (v Validator) RemoveDelShares(delShares math.LegacyDec) (Validator, math.Int) { diff --git a/x/staking/types/validator_test.go b/x/staking/types/validator_test.go index 3404c265e1..37ec659ee6 100644 --- a/x/staking/types/validator_test.go +++ b/x/staking/types/validator_test.go @@ -5,7 +5,7 @@ import ( "sort" "testing" - cmttypes "github.com/cometbft/cometbft/v2/types" + cmttypes "github.com/cometbft/cometbft/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" @@ -59,6 +59,24 @@ func TestUpdateDescription(t *testing.T) { require.Equal(t, d, d3) } +func TestABCIValidatorUpdate(t *testing.T) { + validator := newValidator(t, valAddr1, pk1) + abciVal := validator.ABCIValidatorUpdate(sdk.DefaultPowerReduction) + pk, err := validator.TmConsPublicKey() + require.NoError(t, err) + require.Equal(t, pk, abciVal.PubKey) + require.Equal(t, validator.BondedTokens().Int64(), abciVal.Power) +} + +func TestABCIValidatorUpdateZero(t *testing.T) { + validator := newValidator(t, valAddr1, pk1) + abciVal := validator.ABCIValidatorUpdateZero() + pk, err := validator.TmConsPublicKey() + require.NoError(t, err) + require.Equal(t, pk, abciVal.PubKey) + require.Equal(t, int64(0), abciVal.Power) +} + func TestShareTokens(t *testing.T) { validator := mkValidator(100, math.LegacyNewDec(100)) assert.True(math.LegacyDecEq(t, math.LegacyNewDec(50), validator.TokensFromShares(math.LegacyNewDec(50)))) diff --git a/x/tx/go.mod b/x/tx/go.mod index 1faa990622..efaa3576ed 100644 --- a/x/tx/go.mod +++ b/x/tx/go.mod @@ -3,8 +3,8 @@ module cosmossdk.io/x/tx go 1.23.0 require ( - cosmossdk.io/api v1.0.0-rc.1 - cosmossdk.io/core v1.1.0-rc.1 + cosmossdk.io/api v0.9.2 + cosmossdk.io/core v0.11.3 cosmossdk.io/errors v1.0.2 cosmossdk.io/math v1.5.3 github.com/cosmos/cosmos-proto v1.0.0-beta.5 @@ -15,7 +15,7 @@ require ( github.com/pkg/errors v0.9.1 github.com/stretchr/testify v1.11.1 github.com/tendermint/go-amino v0.16.0 - google.golang.org/protobuf v1.36.7 + google.golang.org/protobuf v1.36.8 gotest.tools/v3 v3.5.2 pgregory.net/rapid v1.2.0 ) diff --git a/x/tx/go.sum b/x/tx/go.sum index 40b8537a85..1e3e9709c5 100644 --- a/x/tx/go.sum +++ b/x/tx/go.sum @@ -1,7 +1,7 @@ -cosmossdk.io/api v1.0.0-rc.1 h1:KwZHIMveoeg6YVwvKZxJLp7be5uk6qmnqNAar2tPxVU= -cosmossdk.io/api v1.0.0-rc.1/go.mod h1:8YOT+XjVFb9eZJk62YqjFILOm8MlLhbnkC9/jxIYri8= -cosmossdk.io/core v1.1.0-rc.1 h1:VhF5xd4uJZt/lQzbl8qT1W3Pcrklp4RSnugcWQZyf5M= -cosmossdk.io/core v1.1.0-rc.1/go.mod h1:fKHIWVYfPCC4tto9eoYFZC/yAWFlWw2mz8YgSYvjnUs= +cosmossdk.io/api v0.9.2 h1:9i9ptOBdmoIEVEVWLtYYHjxZonlF/aOVODLFaxpmNtg= +cosmossdk.io/api v0.9.2/go.mod h1:CWt31nVohvoPMTlPv+mMNCtC0a7BqRdESjCsstHcTkU= +cosmossdk.io/core v0.11.3 h1:mei+MVDJOwIjIniaKelE3jPDqShCc/F4LkNNHh+4yfo= +cosmossdk.io/core v0.11.3/go.mod h1:9rL4RE1uDt5AJ4Tg55sYyHWXA16VmpHgbe0PbJc6N2Y= cosmossdk.io/errors v1.0.2 h1:wcYiJz08HThbWxd/L4jObeLaLySopyyuUFB5w4AGpCo= cosmossdk.io/errors v1.0.2/go.mod h1:0rjgiHkftRYPj//3DrD6y8hcm40HcPv/dR4R/4efr0k= cosmossdk.io/math v1.5.3 h1:WH6tu6Z3AUCeHbeOSHg2mt9rnoiUWVWaQ2t6Gkll96U= @@ -77,8 +77,8 @@ google.golang.org/genproto/googleapis/rpc v0.0.0-20250707201910-8d1bb00bc6a7 h1: google.golang.org/genproto/googleapis/rpc v0.0.0-20250707201910-8d1bb00bc6a7/go.mod h1:qQ0YXyHHx3XkvlzUtpXDkS29lDSafHMZBAZDc03LQ3A= google.golang.org/grpc v1.75.0 h1:+TW+dqTd2Biwe6KKfhE5JpiYIBWq865PhKGSXiivqt4= google.golang.org/grpc v1.75.0/go.mod h1:JtPAzKiq4v1xcAB2hydNlWI2RnF85XXcV0mhKXr2ecQ= -google.golang.org/protobuf v1.36.7 h1:IgrO7UwFQGJdRNXH/sQux4R1Dj1WAKcLElzeeRaXV2A= -google.golang.org/protobuf v1.36.7/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY= +google.golang.org/protobuf v1.36.8 h1:xHScyCOEuuwZEc6UtSOvPbAT4zRh0xcNRYekJwfqyMc= +google.golang.org/protobuf v1.36.8/go.mod h1:fuxRtAxBytpl4zzqUh6/eyUujkJdNiuEkXntxiD/uRU= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= diff --git a/x/tx/internal/testpb/1.pulsar.go b/x/tx/internal/testpb/1.pulsar.go index 317f2df461..a84549a9e5 100644 --- a/x/tx/internal/testpb/1.pulsar.go +++ b/x/tx/internal/testpb/1.pulsar.go @@ -6048,7 +6048,7 @@ type A struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Fields that are parseable by SIGN_MODE_TEXTUAL. + // Fields that are parsable by SIGN_MODE_TEXTUAL. UINT32 uint32 `protobuf:"varint,1,opt,name=UINT32,proto3" json:"UINT32,omitempty"` UINT64 uint64 `protobuf:"varint,2,opt,name=UINT64,proto3" json:"UINT64,omitempty"` INT32 int32 `protobuf:"varint,3,opt,name=INT32,proto3" json:"INT32,omitempty"` diff --git a/x/upgrade/types/storeloader_test.go b/x/upgrade/types/storeloader_test.go index 0d4c5f41d0..6889033511 100644 --- a/x/upgrade/types/storeloader_test.go +++ b/x/upgrade/types/storeloader_test.go @@ -6,7 +6,7 @@ import ( "path/filepath" "testing" - abci "github.com/cometbft/cometbft/v2/abci/types" + abci "github.com/cometbft/cometbft/abci/types" dbm "github.com/cosmos/cosmos-db" "github.com/stretchr/testify/require" @@ -128,7 +128,7 @@ func TestSetLoader(t *testing.T) { require.Equal(t, int64(1), oldApp.LastBlockHeight()) for i := int64(2); i <= upgradeHeight-1; i++ { - _, err = oldApp.FinalizeBlock(&abci.FinalizeBlockRequest{Height: i}) + _, err = oldApp.FinalizeBlock(&abci.RequestFinalizeBlock{Height: i}) require.NoError(t, err) _, err := oldApp.Commit() require.NoError(t, err) @@ -150,7 +150,7 @@ func TestSetLoader(t *testing.T) { require.Equal(t, upgradeHeight-1, newApp.LastBlockHeight()) // "execute" one block - _, err = newApp.FinalizeBlock(&abci.FinalizeBlockRequest{Height: upgradeHeight}) + _, err = newApp.FinalizeBlock(&abci.RequestFinalizeBlock{Height: upgradeHeight}) require.NoError(t, err) _, err = newApp.Commit() require.NoError(t, err)