@agoric/cosmic-proto 0.4.1-dev-ad4cd18.0.ad4cd18 → 0.4.1-dev-dcc80f2.0.dcc80f2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/address-hooks.js +2 -1
- package/dist/address-hooks.js.map +6 -1
- package/dist/codec-helpers.js +2 -1
- package/dist/codec-helpers.js.map +6 -1
- package/dist/codegen/agoric/bundle.js +2 -1
- package/dist/codegen/agoric/bundle.js.map +6 -1
- package/dist/codegen/agoric/swingset/genesis.js +2 -1
- package/dist/codegen/agoric/swingset/genesis.js.map +6 -1
- package/dist/codegen/agoric/swingset/msgs.js +2 -1
- package/dist/codegen/agoric/swingset/msgs.js.map +6 -1
- package/dist/codegen/agoric/swingset/query.js +2 -1
- package/dist/codegen/agoric/swingset/query.js.map +6 -1
- package/dist/codegen/agoric/swingset/swingset.js +2 -1
- package/dist/codegen/agoric/swingset/swingset.js.map +6 -1
- package/dist/codegen/agoric/vbank/genesis.js +2 -1
- package/dist/codegen/agoric/vbank/genesis.js.map +6 -1
- package/dist/codegen/agoric/vbank/msgs.js +2 -1
- package/dist/codegen/agoric/vbank/msgs.js.map +6 -1
- package/dist/codegen/agoric/vbank/query.js +2 -1
- package/dist/codegen/agoric/vbank/query.js.map +6 -1
- package/dist/codegen/agoric/vbank/vbank.js +2 -1
- package/dist/codegen/agoric/vbank/vbank.js.map +6 -1
- package/dist/codegen/agoric/vibc/msgs.js +2 -1
- package/dist/codegen/agoric/vibc/msgs.js.map +6 -1
- package/dist/codegen/agoric/vlocalchain/vlocalchain.js +2 -1
- package/dist/codegen/agoric/vlocalchain/vlocalchain.js.map +6 -1
- package/dist/codegen/agoric/vstorage/genesis.js +2 -1
- package/dist/codegen/agoric/vstorage/genesis.js.map +6 -1
- package/dist/codegen/agoric/vstorage/query.js +2 -1
- package/dist/codegen/agoric/vstorage/query.js.map +6 -1
- package/dist/codegen/agoric/vstorage/vstorage.js +2 -1
- package/dist/codegen/agoric/vstorage/vstorage.js.map +6 -1
- package/dist/codegen/agoric/vtransfer/genesis.js +2 -1
- package/dist/codegen/agoric/vtransfer/genesis.js.map +6 -1
- package/dist/codegen/amino/amino.js +2 -1
- package/dist/codegen/amino/amino.js.map +6 -1
- package/dist/codegen/amino/bundle.js +2 -1
- package/dist/codegen/amino/bundle.js.map +6 -1
- package/dist/codegen/binary.js +2 -1
- package/dist/codegen/binary.js.map +6 -1
- package/dist/codegen/circle/bundle.js +2 -1
- package/dist/codegen/circle/bundle.js.map +6 -1
- package/dist/codegen/circle/cctp/v1/attester.js +2 -1
- package/dist/codegen/circle/cctp/v1/attester.js.map +6 -1
- package/dist/codegen/circle/cctp/v1/burn_message.js +2 -1
- package/dist/codegen/circle/cctp/v1/burn_message.js.map +6 -1
- package/dist/codegen/circle/cctp/v1/burning_and_minting_paused.js +2 -1
- package/dist/codegen/circle/cctp/v1/burning_and_minting_paused.js.map +6 -1
- package/dist/codegen/circle/cctp/v1/events.js +2 -1
- package/dist/codegen/circle/cctp/v1/events.js.map +6 -1
- package/dist/codegen/circle/cctp/v1/genesis.js +2 -1
- package/dist/codegen/circle/cctp/v1/genesis.js.map +6 -1
- package/dist/codegen/circle/cctp/v1/max_message_body_size.js +2 -1
- package/dist/codegen/circle/cctp/v1/max_message_body_size.js.map +6 -1
- package/dist/codegen/circle/cctp/v1/message.js +2 -1
- package/dist/codegen/circle/cctp/v1/message.js.map +6 -1
- package/dist/codegen/circle/cctp/v1/nonce.js +2 -1
- package/dist/codegen/circle/cctp/v1/nonce.js.map +6 -1
- package/dist/codegen/circle/cctp/v1/per_message_burn_limit.js +2 -1
- package/dist/codegen/circle/cctp/v1/per_message_burn_limit.js.map +6 -1
- package/dist/codegen/circle/cctp/v1/query.js +2 -1
- package/dist/codegen/circle/cctp/v1/query.js.map +6 -1
- package/dist/codegen/circle/cctp/v1/remote_token_messenger.js +2 -1
- package/dist/codegen/circle/cctp/v1/remote_token_messenger.js.map +6 -1
- package/dist/codegen/circle/cctp/v1/sending_and_receiving_messages_paused.js +2 -1
- package/dist/codegen/circle/cctp/v1/sending_and_receiving_messages_paused.js.map +6 -1
- package/dist/codegen/circle/cctp/v1/signature_threshold.js +2 -1
- package/dist/codegen/circle/cctp/v1/signature_threshold.js.map +6 -1
- package/dist/codegen/circle/cctp/v1/token_pair.js +2 -1
- package/dist/codegen/circle/cctp/v1/token_pair.js.map +6 -1
- package/dist/codegen/circle/cctp/v1/tx.js +2 -1
- package/dist/codegen/circle/cctp/v1/tx.js.map +6 -1
- package/dist/codegen/cosmos/app/runtime/v1alpha1/module.js +2 -1
- package/dist/codegen/cosmos/app/runtime/v1alpha1/module.js.map +6 -1
- package/dist/codegen/cosmos/app/v1alpha1/module.js +2 -1
- package/dist/codegen/cosmos/app/v1alpha1/module.js.map +6 -1
- package/dist/codegen/cosmos/auth/module/v1/module.js +2 -1
- package/dist/codegen/cosmos/auth/module/v1/module.js.map +6 -1
- package/dist/codegen/cosmos/auth/v1beta1/auth.js +2 -1
- package/dist/codegen/cosmos/auth/v1beta1/auth.js.map +6 -1
- package/dist/codegen/cosmos/auth/v1beta1/genesis.js +2 -1
- package/dist/codegen/cosmos/auth/v1beta1/genesis.js.map +6 -1
- package/dist/codegen/cosmos/auth/v1beta1/query.js +2 -1
- package/dist/codegen/cosmos/auth/v1beta1/query.js.map +6 -1
- package/dist/codegen/cosmos/auth/v1beta1/tx.js +2 -1
- package/dist/codegen/cosmos/auth/v1beta1/tx.js.map +6 -1
- package/dist/codegen/cosmos/authz/module/v1/module.js +2 -1
- package/dist/codegen/cosmos/authz/module/v1/module.js.map +6 -1
- package/dist/codegen/cosmos/authz/v1beta1/authz.js +2 -1
- package/dist/codegen/cosmos/authz/v1beta1/authz.js.map +6 -1
- package/dist/codegen/cosmos/authz/v1beta1/event.js +2 -1
- package/dist/codegen/cosmos/authz/v1beta1/event.js.map +6 -1
- package/dist/codegen/cosmos/authz/v1beta1/genesis.js +2 -1
- package/dist/codegen/cosmos/authz/v1beta1/genesis.js.map +6 -1
- package/dist/codegen/cosmos/authz/v1beta1/query.js +2 -1
- package/dist/codegen/cosmos/authz/v1beta1/query.js.map +6 -1
- package/dist/codegen/cosmos/authz/v1beta1/tx.js +2 -1
- package/dist/codegen/cosmos/authz/v1beta1/tx.js.map +6 -1
- package/dist/codegen/cosmos/bank/module/v1/module.js +2 -1
- package/dist/codegen/cosmos/bank/module/v1/module.js.map +6 -1
- package/dist/codegen/cosmos/bank/v1beta1/authz.js +2 -1
- package/dist/codegen/cosmos/bank/v1beta1/authz.js.map +6 -1
- package/dist/codegen/cosmos/bank/v1beta1/bank.js +2 -1
- package/dist/codegen/cosmos/bank/v1beta1/bank.js.map +6 -1
- package/dist/codegen/cosmos/bank/v1beta1/genesis.js +2 -1
- package/dist/codegen/cosmos/bank/v1beta1/genesis.js.map +6 -1
- package/dist/codegen/cosmos/bank/v1beta1/query.js +2 -1
- package/dist/codegen/cosmos/bank/v1beta1/query.js.map +6 -1
- package/dist/codegen/cosmos/bank/v1beta1/tx.js +2 -1
- package/dist/codegen/cosmos/bank/v1beta1/tx.js.map +6 -1
- package/dist/codegen/cosmos/base/abci/v1beta1/abci.js +2 -1
- package/dist/codegen/cosmos/base/abci/v1beta1/abci.js.map +6 -1
- package/dist/codegen/cosmos/base/node/v1beta1/query.js +2 -1
- package/dist/codegen/cosmos/base/node/v1beta1/query.js.map +6 -1
- package/dist/codegen/cosmos/base/query/v1beta1/pagination.js +2 -1
- package/dist/codegen/cosmos/base/query/v1beta1/pagination.js.map +6 -1
- package/dist/codegen/cosmos/base/reflection/v2alpha1/reflection.js +2 -1
- package/dist/codegen/cosmos/base/reflection/v2alpha1/reflection.js.map +6 -1
- package/dist/codegen/cosmos/base/v1beta1/coin.js +2 -1
- package/dist/codegen/cosmos/base/v1beta1/coin.js.map +6 -1
- package/dist/codegen/cosmos/bundle.js +2 -1
- package/dist/codegen/cosmos/bundle.js.map +6 -1
- package/dist/codegen/cosmos/circuit/module/v1/module.js +2 -1
- package/dist/codegen/cosmos/circuit/module/v1/module.js.map +6 -1
- package/dist/codegen/cosmos/circuit/v1/query.js +2 -1
- package/dist/codegen/cosmos/circuit/v1/query.js.map +6 -1
- package/dist/codegen/cosmos/circuit/v1/tx.js +2 -1
- package/dist/codegen/cosmos/circuit/v1/tx.js.map +6 -1
- package/dist/codegen/cosmos/circuit/v1/types.js +2 -1
- package/dist/codegen/cosmos/circuit/v1/types.js.map +6 -1
- package/dist/codegen/cosmos/consensus/module/v1/module.js +2 -1
- package/dist/codegen/cosmos/consensus/module/v1/module.js.map +6 -1
- package/dist/codegen/cosmos/consensus/v1/query.js +2 -1
- package/dist/codegen/cosmos/consensus/v1/query.js.map +6 -1
- package/dist/codegen/cosmos/consensus/v1/tx.js +2 -1
- package/dist/codegen/cosmos/consensus/v1/tx.js.map +6 -1
- package/dist/codegen/cosmos/crisis/module/v1/module.js +2 -1
- package/dist/codegen/cosmos/crisis/module/v1/module.js.map +6 -1
- package/dist/codegen/cosmos/crypto/ed25519/keys.js +2 -1
- package/dist/codegen/cosmos/crypto/ed25519/keys.js.map +6 -1
- package/dist/codegen/cosmos/crypto/hd/v1/hd.js +2 -1
- package/dist/codegen/cosmos/crypto/hd/v1/hd.js.map +6 -1
- package/dist/codegen/cosmos/crypto/keyring/v1/record.js +2 -1
- package/dist/codegen/cosmos/crypto/keyring/v1/record.js.map +6 -1
- package/dist/codegen/cosmos/crypto/multisig/keys.js +2 -1
- package/dist/codegen/cosmos/crypto/multisig/keys.js.map +6 -1
- package/dist/codegen/cosmos/crypto/multisig/v1beta1/multisig.js +2 -1
- package/dist/codegen/cosmos/crypto/multisig/v1beta1/multisig.js.map +6 -1
- package/dist/codegen/cosmos/crypto/secp256k1/keys.js +2 -1
- package/dist/codegen/cosmos/crypto/secp256k1/keys.js.map +6 -1
- package/dist/codegen/cosmos/crypto/secp256r1/keys.js +2 -1
- package/dist/codegen/cosmos/crypto/secp256r1/keys.js.map +6 -1
- package/dist/codegen/cosmos/distribution/module/v1/module.js +2 -1
- package/dist/codegen/cosmos/distribution/module/v1/module.js.map +6 -1
- package/dist/codegen/cosmos/distribution/v1beta1/distribution.js +2 -1
- package/dist/codegen/cosmos/distribution/v1beta1/distribution.js.map +6 -1
- package/dist/codegen/cosmos/distribution/v1beta1/genesis.js +2 -1
- package/dist/codegen/cosmos/distribution/v1beta1/genesis.js.map +6 -1
- package/dist/codegen/cosmos/distribution/v1beta1/query.js +2 -1
- package/dist/codegen/cosmos/distribution/v1beta1/query.js.map +6 -1
- package/dist/codegen/cosmos/distribution/v1beta1/tx.js +2 -1
- package/dist/codegen/cosmos/distribution/v1beta1/tx.js.map +6 -1
- package/dist/codegen/cosmos/evidence/module/v1/module.js +2 -1
- package/dist/codegen/cosmos/evidence/module/v1/module.js.map +6 -1
- package/dist/codegen/cosmos/feegrant/module/v1/module.js +2 -1
- package/dist/codegen/cosmos/feegrant/module/v1/module.js.map +6 -1
- package/dist/codegen/cosmos/feegrant/v1beta1/feegrant.js +2 -1
- package/dist/codegen/cosmos/feegrant/v1beta1/feegrant.js.map +6 -1
- package/dist/codegen/cosmos/feegrant/v1beta1/genesis.js +2 -1
- package/dist/codegen/cosmos/feegrant/v1beta1/genesis.js.map +6 -1
- package/dist/codegen/cosmos/feegrant/v1beta1/query.js +2 -1
- package/dist/codegen/cosmos/feegrant/v1beta1/query.js.map +6 -1
- package/dist/codegen/cosmos/feegrant/v1beta1/tx.js +2 -1
- package/dist/codegen/cosmos/feegrant/v1beta1/tx.js.map +6 -1
- package/dist/codegen/cosmos/genutil/module/v1/module.js +2 -1
- package/dist/codegen/cosmos/genutil/module/v1/module.js.map +6 -1
- package/dist/codegen/cosmos/gov/module/v1/module.js +2 -1
- package/dist/codegen/cosmos/gov/module/v1/module.js.map +6 -1
- package/dist/codegen/cosmos/gov/v1/genesis.js +2 -1
- package/dist/codegen/cosmos/gov/v1/genesis.js.map +6 -1
- package/dist/codegen/cosmos/gov/v1/gov.js +2 -1
- package/dist/codegen/cosmos/gov/v1/gov.js.map +6 -1
- package/dist/codegen/cosmos/gov/v1/query.js +2 -1
- package/dist/codegen/cosmos/gov/v1/query.js.map +6 -1
- package/dist/codegen/cosmos/gov/v1/tx.js +2 -1
- package/dist/codegen/cosmos/gov/v1/tx.js.map +6 -1
- package/dist/codegen/cosmos/gov/v1beta1/genesis.js +2 -1
- package/dist/codegen/cosmos/gov/v1beta1/genesis.js.map +6 -1
- package/dist/codegen/cosmos/gov/v1beta1/gov.js +2 -1
- package/dist/codegen/cosmos/gov/v1beta1/gov.js.map +6 -1
- package/dist/codegen/cosmos/gov/v1beta1/query.js +2 -1
- package/dist/codegen/cosmos/gov/v1beta1/query.js.map +6 -1
- package/dist/codegen/cosmos/gov/v1beta1/tx.js +2 -1
- package/dist/codegen/cosmos/gov/v1beta1/tx.js.map +6 -1
- package/dist/codegen/cosmos/group/module/v1/module.js +2 -1
- package/dist/codegen/cosmos/group/module/v1/module.js.map +6 -1
- package/dist/codegen/cosmos/group/v1/events.js +2 -1
- package/dist/codegen/cosmos/group/v1/events.js.map +6 -1
- package/dist/codegen/cosmos/group/v1/genesis.js +2 -1
- package/dist/codegen/cosmos/group/v1/genesis.js.map +6 -1
- package/dist/codegen/cosmos/group/v1/query.js +2 -1
- package/dist/codegen/cosmos/group/v1/query.js.map +6 -1
- package/dist/codegen/cosmos/group/v1/tx.js +2 -1
- package/dist/codegen/cosmos/group/v1/tx.js.map +6 -1
- package/dist/codegen/cosmos/group/v1/types.js +2 -1
- package/dist/codegen/cosmos/group/v1/types.js.map +6 -1
- package/dist/codegen/cosmos/ics23/v1/proofs.js +2 -1
- package/dist/codegen/cosmos/ics23/v1/proofs.js.map +6 -1
- package/dist/codegen/cosmos/mint/module/v1/module.js +2 -1
- package/dist/codegen/cosmos/mint/module/v1/module.js.map +6 -1
- package/dist/codegen/cosmos/mint/v1beta1/genesis.js +2 -1
- package/dist/codegen/cosmos/mint/v1beta1/genesis.js.map +6 -1
- package/dist/codegen/cosmos/mint/v1beta1/mint.js +2 -1
- package/dist/codegen/cosmos/mint/v1beta1/mint.js.map +6 -1
- package/dist/codegen/cosmos/mint/v1beta1/query.js +2 -1
- package/dist/codegen/cosmos/mint/v1beta1/query.js.map +6 -1
- package/dist/codegen/cosmos/mint/v1beta1/tx.js +2 -1
- package/dist/codegen/cosmos/mint/v1beta1/tx.js.map +6 -1
- package/dist/codegen/cosmos/msg/textual/v1/textual.js +2 -1
- package/dist/codegen/cosmos/msg/textual/v1/textual.js.map +6 -1
- package/dist/codegen/cosmos/msg/v1/msg.js +2 -1
- package/dist/codegen/cosmos/msg/v1/msg.js.map +6 -1
- package/dist/codegen/cosmos/nft/module/v1/module.js +2 -1
- package/dist/codegen/cosmos/nft/module/v1/module.js.map +6 -1
- package/dist/codegen/cosmos/params/module/v1/module.js +2 -1
- package/dist/codegen/cosmos/params/module/v1/module.js.map +6 -1
- package/dist/codegen/cosmos/params/v1beta1/params.js +2 -1
- package/dist/codegen/cosmos/params/v1beta1/params.js.map +6 -1
- package/dist/codegen/cosmos/params/v1beta1/query.js +2 -1
- package/dist/codegen/cosmos/params/v1beta1/query.js.map +6 -1
- package/dist/codegen/cosmos/query/v1/query.js +2 -1
- package/dist/codegen/cosmos/query/v1/query.js.map +6 -1
- package/dist/codegen/cosmos/reflection/v1/reflection.js +2 -1
- package/dist/codegen/cosmos/reflection/v1/reflection.js.map +6 -1
- package/dist/codegen/cosmos/slashing/module/v1/module.js +2 -1
- package/dist/codegen/cosmos/slashing/module/v1/module.js.map +6 -1
- package/dist/codegen/cosmos/staking/module/v1/module.js +2 -1
- package/dist/codegen/cosmos/staking/module/v1/module.js.map +6 -1
- package/dist/codegen/cosmos/staking/v1beta1/authz.js +2 -1
- package/dist/codegen/cosmos/staking/v1beta1/authz.js.map +6 -1
- package/dist/codegen/cosmos/staking/v1beta1/genesis.js +2 -1
- package/dist/codegen/cosmos/staking/v1beta1/genesis.js.map +6 -1
- package/dist/codegen/cosmos/staking/v1beta1/query.js +2 -1
- package/dist/codegen/cosmos/staking/v1beta1/query.js.map +6 -1
- package/dist/codegen/cosmos/staking/v1beta1/staking.js +2 -1
- package/dist/codegen/cosmos/staking/v1beta1/staking.js.map +6 -1
- package/dist/codegen/cosmos/staking/v1beta1/tx.js +2 -1
- package/dist/codegen/cosmos/staking/v1beta1/tx.js.map +6 -1
- package/dist/codegen/cosmos/store/internal/kv/v1beta1/kv.js +2 -1
- package/dist/codegen/cosmos/store/internal/kv/v1beta1/kv.js.map +6 -1
- package/dist/codegen/cosmos/store/snapshots/v1/snapshot.js +2 -1
- package/dist/codegen/cosmos/store/snapshots/v1/snapshot.js.map +6 -1
- package/dist/codegen/cosmos/store/streaming/abci/grpc.js +2 -1
- package/dist/codegen/cosmos/store/streaming/abci/grpc.js.map +6 -1
- package/dist/codegen/cosmos/store/v1beta1/commit_info.js +2 -1
- package/dist/codegen/cosmos/store/v1beta1/commit_info.js.map +6 -1
- package/dist/codegen/cosmos/store/v1beta1/listening.js +2 -1
- package/dist/codegen/cosmos/store/v1beta1/listening.js.map +6 -1
- package/dist/codegen/cosmos/tx/config/v1/config.js +2 -1
- package/dist/codegen/cosmos/tx/config/v1/config.js.map +6 -1
- package/dist/codegen/cosmos/tx/signing/v1beta1/signing.js +2 -1
- package/dist/codegen/cosmos/tx/signing/v1beta1/signing.js.map +6 -1
- package/dist/codegen/cosmos/tx/v1beta1/service.js +2 -1
- package/dist/codegen/cosmos/tx/v1beta1/service.js.map +6 -1
- package/dist/codegen/cosmos/tx/v1beta1/tx.js +2 -1
- package/dist/codegen/cosmos/tx/v1beta1/tx.js.map +6 -1
- package/dist/codegen/cosmos/upgrade/module/v1/module.js +2 -1
- package/dist/codegen/cosmos/upgrade/module/v1/module.js.map +6 -1
- package/dist/codegen/cosmos/upgrade/v1beta1/query.js +2 -1
- package/dist/codegen/cosmos/upgrade/v1beta1/query.js.map +6 -1
- package/dist/codegen/cosmos/upgrade/v1beta1/tx.js +2 -1
- package/dist/codegen/cosmos/upgrade/v1beta1/tx.js.map +6 -1
- package/dist/codegen/cosmos/upgrade/v1beta1/upgrade.js +2 -1
- package/dist/codegen/cosmos/upgrade/v1beta1/upgrade.js.map +6 -1
- package/dist/codegen/cosmos/vesting/module/v1/module.js +2 -1
- package/dist/codegen/cosmos/vesting/module/v1/module.js.map +6 -1
- package/dist/codegen/cosmos/vesting/v1beta1/tx.js +2 -1
- package/dist/codegen/cosmos/vesting/v1beta1/tx.js.map +6 -1
- package/dist/codegen/cosmos/vesting/v1beta1/vesting.js +2 -1
- package/dist/codegen/cosmos/vesting/v1beta1/vesting.js.map +6 -1
- package/dist/codegen/cosmos_proto/bundle.js +2 -1
- package/dist/codegen/cosmos_proto/bundle.js.map +6 -1
- package/dist/codegen/cosmos_proto/cosmos.js +2 -1
- package/dist/codegen/cosmos_proto/cosmos.js.map +6 -1
- package/dist/codegen/decimals.js +2 -1
- package/dist/codegen/decimals.js.map +6 -1
- package/dist/codegen/gogoproto/bundle.js +2 -1
- package/dist/codegen/gogoproto/bundle.js.map +6 -1
- package/dist/codegen/gogoproto/gogo.js +2 -1
- package/dist/codegen/gogoproto/gogo.js.map +6 -1
- package/dist/codegen/google/api/annotations.js +2 -1
- package/dist/codegen/google/api/annotations.js.map +6 -1
- package/dist/codegen/google/api/http.js +2 -1
- package/dist/codegen/google/api/http.js.map +6 -1
- package/dist/codegen/google/bundle.js +2 -1
- package/dist/codegen/google/bundle.js.map +6 -1
- package/dist/codegen/google/protobuf/any.js +2 -1
- package/dist/codegen/google/protobuf/any.js.map +6 -1
- package/dist/codegen/google/protobuf/descriptor.js +2 -1
- package/dist/codegen/google/protobuf/descriptor.js.map +6 -1
- package/dist/codegen/google/protobuf/duration.js +2 -1
- package/dist/codegen/google/protobuf/duration.js.map +6 -1
- package/dist/codegen/google/protobuf/empty.js +2 -1
- package/dist/codegen/google/protobuf/empty.js.map +6 -1
- package/dist/codegen/google/protobuf/timestamp.js +2 -1
- package/dist/codegen/google/protobuf/timestamp.js.map +6 -1
- package/dist/codegen/helpers.js +2 -1
- package/dist/codegen/helpers.js.map +6 -1
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/controller.js +2 -1
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/controller.js.map +6 -1
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/query.js +2 -1
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/query.js.map +6 -1
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/tx.js +2 -1
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/tx.js.map +6 -1
- package/dist/codegen/ibc/applications/interchain_accounts/genesis/v1/genesis.js +2 -1
- package/dist/codegen/ibc/applications/interchain_accounts/genesis/v1/genesis.js.map +6 -1
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/host.js +2 -1
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/host.js.map +6 -1
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/query.js +2 -1
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/query.js.map +6 -1
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/tx.js +2 -1
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/tx.js.map +6 -1
- package/dist/codegen/ibc/applications/interchain_accounts/v1/account.js +2 -1
- package/dist/codegen/ibc/applications/interchain_accounts/v1/account.js.map +6 -1
- package/dist/codegen/ibc/applications/interchain_accounts/v1/metadata.js +2 -1
- package/dist/codegen/ibc/applications/interchain_accounts/v1/metadata.js.map +6 -1
- package/dist/codegen/ibc/applications/interchain_accounts/v1/packet.js +2 -1
- package/dist/codegen/ibc/applications/interchain_accounts/v1/packet.js.map +6 -1
- package/dist/codegen/ibc/applications/transfer/v1/authz.js +2 -1
- package/dist/codegen/ibc/applications/transfer/v1/authz.js.map +6 -1
- package/dist/codegen/ibc/applications/transfer/v1/genesis.js +2 -1
- package/dist/codegen/ibc/applications/transfer/v1/genesis.js.map +6 -1
- package/dist/codegen/ibc/applications/transfer/v1/query.js +2 -1
- package/dist/codegen/ibc/applications/transfer/v1/query.js.map +6 -1
- package/dist/codegen/ibc/applications/transfer/v1/transfer.js +2 -1
- package/dist/codegen/ibc/applications/transfer/v1/transfer.js.map +6 -1
- package/dist/codegen/ibc/applications/transfer/v1/tx.js +2 -1
- package/dist/codegen/ibc/applications/transfer/v1/tx.js.map +6 -1
- package/dist/codegen/ibc/applications/transfer/v2/packet.js +2 -1
- package/dist/codegen/ibc/applications/transfer/v2/packet.js.map +6 -1
- package/dist/codegen/ibc/bundle.js +2 -1
- package/dist/codegen/ibc/bundle.js.map +6 -1
- package/dist/codegen/ibc/core/channel/v1/channel.js +2 -1
- package/dist/codegen/ibc/core/channel/v1/channel.js.map +6 -1
- package/dist/codegen/ibc/core/channel/v1/genesis.js +2 -1
- package/dist/codegen/ibc/core/channel/v1/genesis.js.map +6 -1
- package/dist/codegen/ibc/core/channel/v1/query.js +2 -1
- package/dist/codegen/ibc/core/channel/v1/query.js.map +6 -1
- package/dist/codegen/ibc/core/channel/v1/tx.js +2 -1
- package/dist/codegen/ibc/core/channel/v1/tx.js.map +6 -1
- package/dist/codegen/ibc/core/channel/v1/upgrade.js +2 -1
- package/dist/codegen/ibc/core/channel/v1/upgrade.js.map +6 -1
- package/dist/codegen/ibc/core/client/v1/client.js +2 -1
- package/dist/codegen/ibc/core/client/v1/client.js.map +6 -1
- package/dist/codegen/ibc/core/client/v1/genesis.js +2 -1
- package/dist/codegen/ibc/core/client/v1/genesis.js.map +6 -1
- package/dist/codegen/ibc/core/client/v1/query.js +2 -1
- package/dist/codegen/ibc/core/client/v1/query.js.map +6 -1
- package/dist/codegen/ibc/core/client/v1/tx.js +2 -1
- package/dist/codegen/ibc/core/client/v1/tx.js.map +6 -1
- package/dist/codegen/ibc/core/commitment/v1/commitment.js +2 -1
- package/dist/codegen/ibc/core/commitment/v1/commitment.js.map +6 -1
- package/dist/codegen/ibc/core/connection/v1/connection.js +2 -1
- package/dist/codegen/ibc/core/connection/v1/connection.js.map +6 -1
- package/dist/codegen/ibc/core/connection/v1/genesis.js +2 -1
- package/dist/codegen/ibc/core/connection/v1/genesis.js.map +6 -1
- package/dist/codegen/ibc/core/connection/v1/query.js +2 -1
- package/dist/codegen/ibc/core/connection/v1/query.js.map +6 -1
- package/dist/codegen/ibc/core/connection/v1/tx.js +2 -1
- package/dist/codegen/ibc/core/connection/v1/tx.js.map +6 -1
- package/dist/codegen/ibc/lightclients/localhost/v1/localhost.js +2 -1
- package/dist/codegen/ibc/lightclients/localhost/v1/localhost.js.map +6 -1
- package/dist/codegen/ibc/lightclients/localhost/v2/localhost.js +2 -1
- package/dist/codegen/ibc/lightclients/localhost/v2/localhost.js.map +6 -1
- package/dist/codegen/ibc/lightclients/solomachine/v1/solomachine.js +2 -1
- package/dist/codegen/ibc/lightclients/solomachine/v1/solomachine.js.map +6 -1
- package/dist/codegen/ibc/lightclients/solomachine/v2/solomachine.js +2 -1
- package/dist/codegen/ibc/lightclients/solomachine/v2/solomachine.js.map +6 -1
- package/dist/codegen/ibc/lightclients/solomachine/v3/solomachine.js +2 -1
- package/dist/codegen/ibc/lightclients/solomachine/v3/solomachine.js.map +6 -1
- package/dist/codegen/ibc/lightclients/tendermint/v1/tendermint.js +2 -1
- package/dist/codegen/ibc/lightclients/tendermint/v1/tendermint.js.map +6 -1
- package/dist/codegen/ibc/lightclients/wasm/v1/genesis.js +2 -1
- package/dist/codegen/ibc/lightclients/wasm/v1/genesis.js.map +6 -1
- package/dist/codegen/ibc/lightclients/wasm/v1/query.js +2 -1
- package/dist/codegen/ibc/lightclients/wasm/v1/query.js.map +6 -1
- package/dist/codegen/ibc/lightclients/wasm/v1/tx.js +2 -1
- package/dist/codegen/ibc/lightclients/wasm/v1/tx.js.map +6 -1
- package/dist/codegen/ibc/lightclients/wasm/v1/wasm.js +2 -1
- package/dist/codegen/ibc/lightclients/wasm/v1/wasm.js.map +6 -1
- package/dist/codegen/icq/bundle.js +2 -1
- package/dist/codegen/icq/bundle.js.map +6 -1
- package/dist/codegen/icq/v1/genesis.js +2 -1
- package/dist/codegen/icq/v1/genesis.js.map +6 -1
- package/dist/codegen/icq/v1/icq.js +2 -1
- package/dist/codegen/icq/v1/icq.js.map +6 -1
- package/dist/codegen/icq/v1/packet.js +2 -1
- package/dist/codegen/icq/v1/packet.js.map +6 -1
- package/dist/codegen/icq/v1/query.js +2 -1
- package/dist/codegen/icq/v1/query.js.map +6 -1
- package/dist/codegen/icq/v1/tx.js +2 -1
- package/dist/codegen/icq/v1/tx.js.map +6 -1
- package/dist/codegen/index.js +2 -1
- package/dist/codegen/index.js.map +6 -1
- package/dist/codegen/json-safe.js +2 -1
- package/dist/codegen/json-safe.js.map +6 -1
- package/dist/codegen/noble/bundle.js +2 -1
- package/dist/codegen/noble/bundle.js.map +6 -1
- package/dist/codegen/noble/dollar/vaults/v1/tx.js +2 -1
- package/dist/codegen/noble/dollar/vaults/v1/tx.js.map +6 -1
- package/dist/codegen/noble/dollar/vaults/v1/vaults.js +2 -1
- package/dist/codegen/noble/dollar/vaults/v1/vaults.js.map +6 -1
- package/dist/codegen/noble/swap/v1/algorithm.js +2 -1
- package/dist/codegen/noble/swap/v1/algorithm.js.map +6 -1
- package/dist/codegen/noble/swap/v1/swap.js +2 -1
- package/dist/codegen/noble/swap/v1/swap.js.map +6 -1
- package/dist/codegen/noble/swap/v1/tx.js +2 -1
- package/dist/codegen/noble/swap/v1/tx.js.map +6 -1
- package/dist/codegen/registry.js +2 -1
- package/dist/codegen/registry.js.map +6 -1
- package/dist/codegen/stride/bundle.js +2 -1
- package/dist/codegen/stride/bundle.js.map +6 -1
- package/dist/codegen/stride/epochs/genesis.js +2 -1
- package/dist/codegen/stride/epochs/genesis.js.map +6 -1
- package/dist/codegen/stride/epochs/query.js +2 -1
- package/dist/codegen/stride/epochs/query.js.map +6 -1
- package/dist/codegen/stride/records/callbacks.js +2 -1
- package/dist/codegen/stride/records/callbacks.js.map +6 -1
- package/dist/codegen/stride/records/genesis.js +2 -1
- package/dist/codegen/stride/records/genesis.js.map +6 -1
- package/dist/codegen/stride/records/params.js +2 -1
- package/dist/codegen/stride/records/params.js.map +6 -1
- package/dist/codegen/stride/records/query.js +2 -1
- package/dist/codegen/stride/records/query.js.map +6 -1
- package/dist/codegen/stride/records/records.js +2 -1
- package/dist/codegen/stride/records/records.js.map +6 -1
- package/dist/codegen/stride/stakedym/genesis.js +2 -1
- package/dist/codegen/stride/stakedym/genesis.js.map +6 -1
- package/dist/codegen/stride/stakedym/query.js +2 -1
- package/dist/codegen/stride/stakedym/query.js.map +6 -1
- package/dist/codegen/stride/stakedym/stakedym.js +2 -1
- package/dist/codegen/stride/stakedym/stakedym.js.map +6 -1
- package/dist/codegen/stride/stakedym/tx.js +2 -1
- package/dist/codegen/stride/stakedym/tx.js.map +6 -1
- package/dist/codegen/stride/stakeibc/address_unbonding.js +2 -1
- package/dist/codegen/stride/stakeibc/address_unbonding.js.map +6 -1
- package/dist/codegen/stride/stakeibc/callbacks.js +2 -1
- package/dist/codegen/stride/stakeibc/callbacks.js.map +6 -1
- package/dist/codegen/stride/stakeibc/epoch_tracker.js +2 -1
- package/dist/codegen/stride/stakeibc/epoch_tracker.js.map +6 -1
- package/dist/codegen/stride/stakeibc/genesis.js +2 -1
- package/dist/codegen/stride/stakeibc/genesis.js.map +6 -1
- package/dist/codegen/stride/stakeibc/gov.js +2 -1
- package/dist/codegen/stride/stakeibc/gov.js.map +6 -1
- package/dist/codegen/stride/stakeibc/host_zone.js +2 -1
- package/dist/codegen/stride/stakeibc/host_zone.js.map +6 -1
- package/dist/codegen/stride/stakeibc/ica_account.js +2 -1
- package/dist/codegen/stride/stakeibc/ica_account.js.map +6 -1
- package/dist/codegen/stride/stakeibc/packet.js +2 -1
- package/dist/codegen/stride/stakeibc/packet.js.map +6 -1
- package/dist/codegen/stride/stakeibc/params.js +2 -1
- package/dist/codegen/stride/stakeibc/params.js.map +6 -1
- package/dist/codegen/stride/stakeibc/query.js +2 -1
- package/dist/codegen/stride/stakeibc/query.js.map +6 -1
- package/dist/codegen/stride/stakeibc/trade_route.js +2 -1
- package/dist/codegen/stride/stakeibc/trade_route.js.map +6 -1
- package/dist/codegen/stride/stakeibc/tx.js +2 -1
- package/dist/codegen/stride/stakeibc/tx.js.map +6 -1
- package/dist/codegen/stride/stakeibc/validator.js +2 -1
- package/dist/codegen/stride/stakeibc/validator.js.map +6 -1
- package/dist/codegen/stride/staketia/genesis.js +2 -1
- package/dist/codegen/stride/staketia/genesis.js.map +6 -1
- package/dist/codegen/stride/staketia/query.js +2 -1
- package/dist/codegen/stride/staketia/query.js.map +6 -1
- package/dist/codegen/stride/staketia/staketia.js +2 -1
- package/dist/codegen/stride/staketia/staketia.js.map +6 -1
- package/dist/codegen/stride/staketia/tx.js +2 -1
- package/dist/codegen/stride/staketia/tx.js.map +6 -1
- package/dist/codegen/tendermint/abci/types.js +2 -1
- package/dist/codegen/tendermint/abci/types.js.map +6 -1
- package/dist/codegen/tendermint/bundle.js +2 -1
- package/dist/codegen/tendermint/bundle.js.map +6 -1
- package/dist/codegen/tendermint/crypto/keys.js +2 -1
- package/dist/codegen/tendermint/crypto/keys.js.map +6 -1
- package/dist/codegen/tendermint/crypto/proof.js +2 -1
- package/dist/codegen/tendermint/crypto/proof.js.map +6 -1
- package/dist/codegen/tendermint/libs/bits/types.js +2 -1
- package/dist/codegen/tendermint/libs/bits/types.js.map +6 -1
- package/dist/codegen/tendermint/p2p/types.js +2 -1
- package/dist/codegen/tendermint/p2p/types.js.map +6 -1
- package/dist/codegen/tendermint/types/block.js +2 -1
- package/dist/codegen/tendermint/types/block.js.map +6 -1
- package/dist/codegen/tendermint/types/evidence.js +2 -1
- package/dist/codegen/tendermint/types/evidence.js.map +6 -1
- package/dist/codegen/tendermint/types/params.js +2 -1
- package/dist/codegen/tendermint/types/params.js.map +6 -1
- package/dist/codegen/tendermint/types/types.js +2 -1
- package/dist/codegen/tendermint/types/types.js.map +6 -1
- package/dist/codegen/tendermint/types/validator.js +2 -1
- package/dist/codegen/tendermint/types/validator.js.map +6 -1
- package/dist/codegen/tendermint/version/types.js +2 -1
- package/dist/codegen/tendermint/version/types.js.map +6 -1
- package/dist/codegen/typeFromUrl.js +2 -1
- package/dist/codegen/typeFromUrl.js.map +6 -1
- package/dist/codegen/types.js +2 -1
- package/dist/codegen/types.js.map +6 -1
- package/dist/codegen/utf8.js +2 -1
- package/dist/codegen/utf8.js.map +6 -1
- package/dist/codegen/varint.js +2 -1
- package/dist/codegen/varint.js.map +6 -1
- package/dist/helpers.js +2 -1
- package/dist/helpers.js.map +6 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +6 -1
- package/package.json +8 -7
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import{Timestamp as e}from"../../google/protobuf/timestamp.js";import{ConsensusParams as t}from"../types/params.js";import{ProofOps as o}from"../crypto/proof.js";import{PublicKey as s}from"../crypto/keys.js";import{BlockIDFlag as n,blockIDFlagFromJSON as i,blockIDFlagToJSON as r}from"../types/validator.js";import{BinaryReader as a,BinaryWriter as p}from"../../binary.js";import{isSet as d,fromJsonTimestamp as l,fromTimestamp as c}from"../../helpers.js";import{}from"../../json-safe.js";import{decodeBase64 as h}from"@endo/base64";import{encodeBase64 as u}from"@endo/base64";export var CheckTxType;!function(e){e[e.NEW=0]="NEW",e[e.RECHECK=1]="RECHECK",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(CheckTxType||(CheckTxType={}));export const CheckTxTypeSDKType=CheckTxType;export function checkTxTypeFromJSON(e){switch(e){case 0:case"NEW":return CheckTxType.NEW;case 1:case"RECHECK":return CheckTxType.RECHECK;default:return CheckTxType.UNRECOGNIZED}}export function checkTxTypeToJSON(e){switch(e){case CheckTxType.NEW:return"NEW";case CheckTxType.RECHECK:return"RECHECK";case CheckTxType.UNRECOGNIZED:default:return"UNRECOGNIZED"}}export var ResponseOfferSnapshot_Result;!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.ACCEPT=1]="ACCEPT",e[e.ABORT=2]="ABORT",e[e.REJECT=3]="REJECT",e[e.REJECT_FORMAT=4]="REJECT_FORMAT",e[e.REJECT_SENDER=5]="REJECT_SENDER",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ResponseOfferSnapshot_Result||(ResponseOfferSnapshot_Result={}));export const ResponseOfferSnapshot_ResultSDKType=ResponseOfferSnapshot_Result;export function responseOfferSnapshot_ResultFromJSON(e){switch(e){case 0:case"UNKNOWN":return ResponseOfferSnapshot_Result.UNKNOWN;case 1:case"ACCEPT":return ResponseOfferSnapshot_Result.ACCEPT;case 2:case"ABORT":return ResponseOfferSnapshot_Result.ABORT;case 3:case"REJECT":return ResponseOfferSnapshot_Result.REJECT;case 4:case"REJECT_FORMAT":return ResponseOfferSnapshot_Result.REJECT_FORMAT;case 5:case"REJECT_SENDER":return ResponseOfferSnapshot_Result.REJECT_SENDER;default:return ResponseOfferSnapshot_Result.UNRECOGNIZED}}export function responseOfferSnapshot_ResultToJSON(e){switch(e){case ResponseOfferSnapshot_Result.UNKNOWN:return"UNKNOWN";case ResponseOfferSnapshot_Result.ACCEPT:return"ACCEPT";case ResponseOfferSnapshot_Result.ABORT:return"ABORT";case ResponseOfferSnapshot_Result.REJECT:return"REJECT";case ResponseOfferSnapshot_Result.REJECT_FORMAT:return"REJECT_FORMAT";case ResponseOfferSnapshot_Result.REJECT_SENDER:return"REJECT_SENDER";case ResponseOfferSnapshot_Result.UNRECOGNIZED:default:return"UNRECOGNIZED"}}export var ResponseApplySnapshotChunk_Result;!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.ACCEPT=1]="ACCEPT",e[e.ABORT=2]="ABORT",e[e.RETRY=3]="RETRY",e[e.RETRY_SNAPSHOT=4]="RETRY_SNAPSHOT",e[e.REJECT_SNAPSHOT=5]="REJECT_SNAPSHOT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ResponseApplySnapshotChunk_Result||(ResponseApplySnapshotChunk_Result={}));export const ResponseApplySnapshotChunk_ResultSDKType=ResponseApplySnapshotChunk_Result;export function responseApplySnapshotChunk_ResultFromJSON(e){switch(e){case 0:case"UNKNOWN":return ResponseApplySnapshotChunk_Result.UNKNOWN;case 1:case"ACCEPT":return ResponseApplySnapshotChunk_Result.ACCEPT;case 2:case"ABORT":return ResponseApplySnapshotChunk_Result.ABORT;case 3:case"RETRY":return ResponseApplySnapshotChunk_Result.RETRY;case 4:case"RETRY_SNAPSHOT":return ResponseApplySnapshotChunk_Result.RETRY_SNAPSHOT;case 5:case"REJECT_SNAPSHOT":return ResponseApplySnapshotChunk_Result.REJECT_SNAPSHOT;default:return ResponseApplySnapshotChunk_Result.UNRECOGNIZED}}export function responseApplySnapshotChunk_ResultToJSON(e){switch(e){case ResponseApplySnapshotChunk_Result.UNKNOWN:return"UNKNOWN";case ResponseApplySnapshotChunk_Result.ACCEPT:return"ACCEPT";case ResponseApplySnapshotChunk_Result.ABORT:return"ABORT";case ResponseApplySnapshotChunk_Result.RETRY:return"RETRY";case ResponseApplySnapshotChunk_Result.RETRY_SNAPSHOT:return"RETRY_SNAPSHOT";case ResponseApplySnapshotChunk_Result.REJECT_SNAPSHOT:return"REJECT_SNAPSHOT";case ResponseApplySnapshotChunk_Result.UNRECOGNIZED:default:return"UNRECOGNIZED"}}export var ResponseProcessProposal_ProposalStatus;!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.ACCEPT=1]="ACCEPT",e[e.REJECT=2]="REJECT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ResponseProcessProposal_ProposalStatus||(ResponseProcessProposal_ProposalStatus={}));export const ResponseProcessProposal_ProposalStatusSDKType=ResponseProcessProposal_ProposalStatus;export function responseProcessProposal_ProposalStatusFromJSON(e){switch(e){case 0:case"UNKNOWN":return ResponseProcessProposal_ProposalStatus.UNKNOWN;case 1:case"ACCEPT":return ResponseProcessProposal_ProposalStatus.ACCEPT;case 2:case"REJECT":return ResponseProcessProposal_ProposalStatus.REJECT;default:return ResponseProcessProposal_ProposalStatus.UNRECOGNIZED}}export function responseProcessProposal_ProposalStatusToJSON(e){switch(e){case ResponseProcessProposal_ProposalStatus.UNKNOWN:return"UNKNOWN";case ResponseProcessProposal_ProposalStatus.ACCEPT:return"ACCEPT";case ResponseProcessProposal_ProposalStatus.REJECT:return"REJECT";case ResponseProcessProposal_ProposalStatus.UNRECOGNIZED:default:return"UNRECOGNIZED"}}export var ResponseVerifyVoteExtension_VerifyStatus;!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.ACCEPT=1]="ACCEPT",e[e.REJECT=2]="REJECT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ResponseVerifyVoteExtension_VerifyStatus||(ResponseVerifyVoteExtension_VerifyStatus={}));export const ResponseVerifyVoteExtension_VerifyStatusSDKType=ResponseVerifyVoteExtension_VerifyStatus;export function responseVerifyVoteExtension_VerifyStatusFromJSON(e){switch(e){case 0:case"UNKNOWN":return ResponseVerifyVoteExtension_VerifyStatus.UNKNOWN;case 1:case"ACCEPT":return ResponseVerifyVoteExtension_VerifyStatus.ACCEPT;case 2:case"REJECT":return ResponseVerifyVoteExtension_VerifyStatus.REJECT;default:return ResponseVerifyVoteExtension_VerifyStatus.UNRECOGNIZED}}export function responseVerifyVoteExtension_VerifyStatusToJSON(e){switch(e){case ResponseVerifyVoteExtension_VerifyStatus.UNKNOWN:return"UNKNOWN";case ResponseVerifyVoteExtension_VerifyStatus.ACCEPT:return"ACCEPT";case ResponseVerifyVoteExtension_VerifyStatus.REJECT:return"REJECT";case ResponseVerifyVoteExtension_VerifyStatus.UNRECOGNIZED:default:return"UNRECOGNIZED"}}export var MisbehaviorType;!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.DUPLICATE_VOTE=1]="DUPLICATE_VOTE",e[e.LIGHT_CLIENT_ATTACK=2]="LIGHT_CLIENT_ATTACK",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(MisbehaviorType||(MisbehaviorType={}));export const MisbehaviorTypeSDKType=MisbehaviorType;export function misbehaviorTypeFromJSON(e){switch(e){case 0:case"UNKNOWN":return MisbehaviorType.UNKNOWN;case 1:case"DUPLICATE_VOTE":return MisbehaviorType.DUPLICATE_VOTE;case 2:case"LIGHT_CLIENT_ATTACK":return MisbehaviorType.LIGHT_CLIENT_ATTACK;default:return MisbehaviorType.UNRECOGNIZED}}export function misbehaviorTypeToJSON(e){switch(e){case MisbehaviorType.UNKNOWN:return"UNKNOWN";case MisbehaviorType.DUPLICATE_VOTE:return"DUPLICATE_VOTE";case MisbehaviorType.LIGHT_CLIENT_ATTACK:return"LIGHT_CLIENT_ATTACK";case MisbehaviorType.UNRECOGNIZED:default:return"UNRECOGNIZED"}}export const Request={typeUrl:"/tendermint.abci.Request",is:e=>e&&e.$typeUrl===Request.typeUrl,isSDK:e=>e&&e.$typeUrl===Request.typeUrl,encode:(e,t=p.create())=>(void 0!==e.echo&&RequestEcho.encode(e.echo,t.uint32(10).fork()).ldelim(),void 0!==e.flush&&RequestFlush.encode(e.flush,t.uint32(18).fork()).ldelim(),void 0!==e.info&&RequestInfo.encode(e.info,t.uint32(26).fork()).ldelim(),void 0!==e.initChain&&RequestInitChain.encode(e.initChain,t.uint32(42).fork()).ldelim(),void 0!==e.query&&RequestQuery.encode(e.query,t.uint32(50).fork()).ldelim(),void 0!==e.checkTx&&RequestCheckTx.encode(e.checkTx,t.uint32(66).fork()).ldelim(),void 0!==e.commit&&RequestCommit.encode(e.commit,t.uint32(90).fork()).ldelim(),void 0!==e.listSnapshots&&RequestListSnapshots.encode(e.listSnapshots,t.uint32(98).fork()).ldelim(),void 0!==e.offerSnapshot&&RequestOfferSnapshot.encode(e.offerSnapshot,t.uint32(106).fork()).ldelim(),void 0!==e.loadSnapshotChunk&&RequestLoadSnapshotChunk.encode(e.loadSnapshotChunk,t.uint32(114).fork()).ldelim(),void 0!==e.applySnapshotChunk&&RequestApplySnapshotChunk.encode(e.applySnapshotChunk,t.uint32(122).fork()).ldelim(),void 0!==e.prepareProposal&&RequestPrepareProposal.encode(e.prepareProposal,t.uint32(130).fork()).ldelim(),void 0!==e.processProposal&&RequestProcessProposal.encode(e.processProposal,t.uint32(138).fork()).ldelim(),void 0!==e.extendVote&&RequestExtendVote.encode(e.extendVote,t.uint32(146).fork()).ldelim(),void 0!==e.verifyVoteExtension&&RequestVerifyVoteExtension.encode(e.verifyVoteExtension,t.uint32(154).fork()).ldelim(),void 0!==e.finalizeBlock&&RequestFinalizeBlock.encode(e.finalizeBlock,t.uint32(162).fork()).ldelim(),t),decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n={echo:void 0,flush:void 0,info:void 0,initChain:void 0,query:void 0,checkTx:void 0,commit:void 0,listSnapshots:void 0,offerSnapshot:void 0,loadSnapshotChunk:void 0,applySnapshotChunk:void 0,prepareProposal:void 0,processProposal:void 0,extendVote:void 0,verifyVoteExtension:void 0,finalizeBlock:void 0};for(;o.pos<s;){const e=o.uint32();switch(e>>>3){case 1:n.echo=RequestEcho.decode(o,o.uint32());break;case 2:n.flush=RequestFlush.decode(o,o.uint32());break;case 3:n.info=RequestInfo.decode(o,o.uint32());break;case 5:n.initChain=RequestInitChain.decode(o,o.uint32());break;case 6:n.query=RequestQuery.decode(o,o.uint32());break;case 8:n.checkTx=RequestCheckTx.decode(o,o.uint32());break;case 11:n.commit=RequestCommit.decode(o,o.uint32());break;case 12:n.listSnapshots=RequestListSnapshots.decode(o,o.uint32());break;case 13:n.offerSnapshot=RequestOfferSnapshot.decode(o,o.uint32());break;case 14:n.loadSnapshotChunk=RequestLoadSnapshotChunk.decode(o,o.uint32());break;case 15:n.applySnapshotChunk=RequestApplySnapshotChunk.decode(o,o.uint32());break;case 16:n.prepareProposal=RequestPrepareProposal.decode(o,o.uint32());break;case 17:n.processProposal=RequestProcessProposal.decode(o,o.uint32());break;case 18:n.extendVote=RequestExtendVote.decode(o,o.uint32());break;case 19:n.verifyVoteExtension=RequestVerifyVoteExtension.decode(o,o.uint32());break;case 20:n.finalizeBlock=RequestFinalizeBlock.decode(o,o.uint32());break;default:o.skipType(7&e)}}return n},fromJSON:e=>({echo:d(e.echo)?RequestEcho.fromJSON(e.echo):void 0,flush:d(e.flush)?RequestFlush.fromJSON(e.flush):void 0,info:d(e.info)?RequestInfo.fromJSON(e.info):void 0,initChain:d(e.initChain)?RequestInitChain.fromJSON(e.initChain):void 0,query:d(e.query)?RequestQuery.fromJSON(e.query):void 0,checkTx:d(e.checkTx)?RequestCheckTx.fromJSON(e.checkTx):void 0,commit:d(e.commit)?RequestCommit.fromJSON(e.commit):void 0,listSnapshots:d(e.listSnapshots)?RequestListSnapshots.fromJSON(e.listSnapshots):void 0,offerSnapshot:d(e.offerSnapshot)?RequestOfferSnapshot.fromJSON(e.offerSnapshot):void 0,loadSnapshotChunk:d(e.loadSnapshotChunk)?RequestLoadSnapshotChunk.fromJSON(e.loadSnapshotChunk):void 0,applySnapshotChunk:d(e.applySnapshotChunk)?RequestApplySnapshotChunk.fromJSON(e.applySnapshotChunk):void 0,prepareProposal:d(e.prepareProposal)?RequestPrepareProposal.fromJSON(e.prepareProposal):void 0,processProposal:d(e.processProposal)?RequestProcessProposal.fromJSON(e.processProposal):void 0,extendVote:d(e.extendVote)?RequestExtendVote.fromJSON(e.extendVote):void 0,verifyVoteExtension:d(e.verifyVoteExtension)?RequestVerifyVoteExtension.fromJSON(e.verifyVoteExtension):void 0,finalizeBlock:d(e.finalizeBlock)?RequestFinalizeBlock.fromJSON(e.finalizeBlock):void 0}),toJSON(e){const t={};return void 0!==e.echo&&(t.echo=e.echo?RequestEcho.toJSON(e.echo):void 0),void 0!==e.flush&&(t.flush=e.flush?RequestFlush.toJSON(e.flush):void 0),void 0!==e.info&&(t.info=e.info?RequestInfo.toJSON(e.info):void 0),void 0!==e.initChain&&(t.initChain=e.initChain?RequestInitChain.toJSON(e.initChain):void 0),void 0!==e.query&&(t.query=e.query?RequestQuery.toJSON(e.query):void 0),void 0!==e.checkTx&&(t.checkTx=e.checkTx?RequestCheckTx.toJSON(e.checkTx):void 0),void 0!==e.commit&&(t.commit=e.commit?RequestCommit.toJSON(e.commit):void 0),void 0!==e.listSnapshots&&(t.listSnapshots=e.listSnapshots?RequestListSnapshots.toJSON(e.listSnapshots):void 0),void 0!==e.offerSnapshot&&(t.offerSnapshot=e.offerSnapshot?RequestOfferSnapshot.toJSON(e.offerSnapshot):void 0),void 0!==e.loadSnapshotChunk&&(t.loadSnapshotChunk=e.loadSnapshotChunk?RequestLoadSnapshotChunk.toJSON(e.loadSnapshotChunk):void 0),void 0!==e.applySnapshotChunk&&(t.applySnapshotChunk=e.applySnapshotChunk?RequestApplySnapshotChunk.toJSON(e.applySnapshotChunk):void 0),void 0!==e.prepareProposal&&(t.prepareProposal=e.prepareProposal?RequestPrepareProposal.toJSON(e.prepareProposal):void 0),void 0!==e.processProposal&&(t.processProposal=e.processProposal?RequestProcessProposal.toJSON(e.processProposal):void 0),void 0!==e.extendVote&&(t.extendVote=e.extendVote?RequestExtendVote.toJSON(e.extendVote):void 0),void 0!==e.verifyVoteExtension&&(t.verifyVoteExtension=e.verifyVoteExtension?RequestVerifyVoteExtension.toJSON(e.verifyVoteExtension):void 0),void 0!==e.finalizeBlock&&(t.finalizeBlock=e.finalizeBlock?RequestFinalizeBlock.toJSON(e.finalizeBlock):void 0),t},fromPartial(e){const t={echo:void 0,flush:void 0,info:void 0,initChain:void 0,query:void 0,checkTx:void 0,commit:void 0,listSnapshots:void 0,offerSnapshot:void 0,loadSnapshotChunk:void 0,applySnapshotChunk:void 0,prepareProposal:void 0,processProposal:void 0,extendVote:void 0,verifyVoteExtension:void 0,finalizeBlock:void 0};return t.echo=void 0!==e.echo&&null!==e.echo?RequestEcho.fromPartial(e.echo):void 0,t.flush=void 0!==e.flush&&null!==e.flush?RequestFlush.fromPartial(e.flush):void 0,t.info=void 0!==e.info&&null!==e.info?RequestInfo.fromPartial(e.info):void 0,t.initChain=void 0!==e.initChain&&null!==e.initChain?RequestInitChain.fromPartial(e.initChain):void 0,t.query=void 0!==e.query&&null!==e.query?RequestQuery.fromPartial(e.query):void 0,t.checkTx=void 0!==e.checkTx&&null!==e.checkTx?RequestCheckTx.fromPartial(e.checkTx):void 0,t.commit=void 0!==e.commit&&null!==e.commit?RequestCommit.fromPartial(e.commit):void 0,t.listSnapshots=void 0!==e.listSnapshots&&null!==e.listSnapshots?RequestListSnapshots.fromPartial(e.listSnapshots):void 0,t.offerSnapshot=void 0!==e.offerSnapshot&&null!==e.offerSnapshot?RequestOfferSnapshot.fromPartial(e.offerSnapshot):void 0,t.loadSnapshotChunk=void 0!==e.loadSnapshotChunk&&null!==e.loadSnapshotChunk?RequestLoadSnapshotChunk.fromPartial(e.loadSnapshotChunk):void 0,t.applySnapshotChunk=void 0!==e.applySnapshotChunk&&null!==e.applySnapshotChunk?RequestApplySnapshotChunk.fromPartial(e.applySnapshotChunk):void 0,t.prepareProposal=void 0!==e.prepareProposal&&null!==e.prepareProposal?RequestPrepareProposal.fromPartial(e.prepareProposal):void 0,t.processProposal=void 0!==e.processProposal&&null!==e.processProposal?RequestProcessProposal.fromPartial(e.processProposal):void 0,t.extendVote=void 0!==e.extendVote&&null!==e.extendVote?RequestExtendVote.fromPartial(e.extendVote):void 0,t.verifyVoteExtension=void 0!==e.verifyVoteExtension&&null!==e.verifyVoteExtension?RequestVerifyVoteExtension.fromPartial(e.verifyVoteExtension):void 0,t.finalizeBlock=void 0!==e.finalizeBlock&&null!==e.finalizeBlock?RequestFinalizeBlock.fromPartial(e.finalizeBlock):void 0,t},fromProtoMsg:e=>Request.decode(e.value),toProto:e=>Request.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.Request",value:Request.encode(e).finish()})};export const RequestEcho={typeUrl:"/tendermint.abci.RequestEcho",is:e=>e&&(e.$typeUrl===RequestEcho.typeUrl||"string"==typeof e.message),isSDK:e=>e&&(e.$typeUrl===RequestEcho.typeUrl||"string"==typeof e.message),encode:(e,t=p.create())=>(""!==e.message&&t.uint32(10).string(e.message),t),decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n={message:""};for(;o.pos<s;){const e=o.uint32();if(e>>>3==1)n.message=o.string();else o.skipType(7&e)}return n},fromJSON:e=>({message:d(e.message)?String(e.message):""}),toJSON(e){const t={};return void 0!==e.message&&(t.message=e.message),t},fromPartial(e){const t={message:""};return t.message=e.message??"",t},fromProtoMsg:e=>RequestEcho.decode(e.value),toProto:e=>RequestEcho.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.RequestEcho",value:RequestEcho.encode(e).finish()})};export const RequestFlush={typeUrl:"/tendermint.abci.RequestFlush",is:e=>e&&e.$typeUrl===RequestFlush.typeUrl,isSDK:e=>e&&e.$typeUrl===RequestFlush.typeUrl,encode:(e,t=p.create())=>t,decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n={};for(;o.pos<s;){const e=o.uint32();o.skipType(7&e)}return n},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>RequestFlush.decode(e.value),toProto:e=>RequestFlush.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.RequestFlush",value:RequestFlush.encode(e).finish()})};function f(){return{version:"",blockVersion:BigInt(0),p2pVersion:BigInt(0),abciVersion:""}}export const RequestInfo={typeUrl:"/tendermint.abci.RequestInfo",is:e=>e&&(e.$typeUrl===RequestInfo.typeUrl||"string"==typeof e.version&&"bigint"==typeof e.blockVersion&&"bigint"==typeof e.p2pVersion&&"string"==typeof e.abciVersion),isSDK:e=>e&&(e.$typeUrl===RequestInfo.typeUrl||"string"==typeof e.version&&"bigint"==typeof e.block_version&&"bigint"==typeof e.p2p_version&&"string"==typeof e.abci_version),encode:(e,t=p.create())=>(""!==e.version&&t.uint32(10).string(e.version),e.blockVersion!==BigInt(0)&&t.uint32(16).uint64(e.blockVersion),e.p2pVersion!==BigInt(0)&&t.uint32(24).uint64(e.p2pVersion),""!==e.abciVersion&&t.uint32(34).string(e.abciVersion),t),decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n=f();for(;o.pos<s;){const e=o.uint32();switch(e>>>3){case 1:n.version=o.string();break;case 2:n.blockVersion=o.uint64();break;case 3:n.p2pVersion=o.uint64();break;case 4:n.abciVersion=o.string();break;default:o.skipType(7&e)}}return n},fromJSON:e=>({version:d(e.version)?String(e.version):"",blockVersion:d(e.blockVersion)?BigInt(e.blockVersion.toString()):BigInt(0),p2pVersion:d(e.p2pVersion)?BigInt(e.p2pVersion.toString()):BigInt(0),abciVersion:d(e.abciVersion)?String(e.abciVersion):""}),toJSON(e){const t={};return void 0!==e.version&&(t.version=e.version),void 0!==e.blockVersion&&(t.blockVersion=(e.blockVersion||BigInt(0)).toString()),void 0!==e.p2pVersion&&(t.p2pVersion=(e.p2pVersion||BigInt(0)).toString()),void 0!==e.abciVersion&&(t.abciVersion=e.abciVersion),t},fromPartial(e){const t=f();return t.version=e.version??"",t.blockVersion=void 0!==e.blockVersion&&null!==e.blockVersion?BigInt(e.blockVersion.toString()):BigInt(0),t.p2pVersion=void 0!==e.p2pVersion&&null!==e.p2pVersion?BigInt(e.p2pVersion.toString()):BigInt(0),t.abciVersion=e.abciVersion??"",t},fromProtoMsg:e=>RequestInfo.decode(e.value),toProto:e=>RequestInfo.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.RequestInfo",value:RequestInfo.encode(e).finish()})};function y(){return{time:e.fromPartial({}),chainId:"",consensusParams:void 0,validators:[],appStateBytes:new Uint8Array,initialHeight:BigInt(0)}}export const RequestInitChain={typeUrl:"/tendermint.abci.RequestInitChain",is:t=>t&&(t.$typeUrl===RequestInitChain.typeUrl||e.is(t.time)&&"string"==typeof t.chainId&&Array.isArray(t.validators)&&(!t.validators.length||ValidatorUpdate.is(t.validators[0]))&&(t.appStateBytes instanceof Uint8Array||"string"==typeof t.appStateBytes)&&"bigint"==typeof t.initialHeight),isSDK:t=>t&&(t.$typeUrl===RequestInitChain.typeUrl||e.isSDK(t.time)&&"string"==typeof t.chain_id&&Array.isArray(t.validators)&&(!t.validators.length||ValidatorUpdate.isSDK(t.validators[0]))&&(t.app_state_bytes instanceof Uint8Array||"string"==typeof t.app_state_bytes)&&"bigint"==typeof t.initial_height),encode(o,s=p.create()){void 0!==o.time&&e.encode(o.time,s.uint32(10).fork()).ldelim(),""!==o.chainId&&s.uint32(18).string(o.chainId),void 0!==o.consensusParams&&t.encode(o.consensusParams,s.uint32(26).fork()).ldelim();for(const e of o.validators)ValidatorUpdate.encode(e,s.uint32(34).fork()).ldelim();return 0!==o.appStateBytes.length&&s.uint32(42).bytes(o.appStateBytes),o.initialHeight!==BigInt(0)&&s.uint32(48).int64(o.initialHeight),s},decode(o,s){const n=o instanceof a?o:new a(o);let i=void 0===s?n.len:n.pos+s;const r=y();for(;n.pos<i;){const o=n.uint32();switch(o>>>3){case 1:r.time=e.decode(n,n.uint32());break;case 2:r.chainId=n.string();break;case 3:r.consensusParams=t.decode(n,n.uint32());break;case 4:r.validators.push(ValidatorUpdate.decode(n,n.uint32()));break;case 5:r.appStateBytes=n.bytes();break;case 6:r.initialHeight=n.int64();break;default:n.skipType(7&o)}}return r},fromJSON:e=>({time:d(e.time)?l(e.time):void 0,chainId:d(e.chainId)?String(e.chainId):"",consensusParams:d(e.consensusParams)?t.fromJSON(e.consensusParams):void 0,validators:Array.isArray(e?.validators)?e.validators.map((e=>ValidatorUpdate.fromJSON(e))):[],appStateBytes:d(e.appStateBytes)?h(e.appStateBytes):new Uint8Array,initialHeight:d(e.initialHeight)?BigInt(e.initialHeight.toString()):BigInt(0)}),toJSON(e){const o={};return void 0!==e.time&&(o.time=c(e.time).toISOString()),void 0!==e.chainId&&(o.chainId=e.chainId),void 0!==e.consensusParams&&(o.consensusParams=e.consensusParams?t.toJSON(e.consensusParams):void 0),e.validators?o.validators=e.validators.map((e=>e?ValidatorUpdate.toJSON(e):void 0)):o.validators=[],void 0!==e.appStateBytes&&(o.appStateBytes=u(void 0!==e.appStateBytes?e.appStateBytes:new Uint8Array)),void 0!==e.initialHeight&&(o.initialHeight=(e.initialHeight||BigInt(0)).toString()),o},fromPartial(o){const s=y();return s.time=void 0!==o.time&&null!==o.time?e.fromPartial(o.time):void 0,s.chainId=o.chainId??"",s.consensusParams=void 0!==o.consensusParams&&null!==o.consensusParams?t.fromPartial(o.consensusParams):void 0,s.validators=o.validators?.map((e=>ValidatorUpdate.fromPartial(e)))||[],s.appStateBytes=o.appStateBytes??new Uint8Array,s.initialHeight=void 0!==o.initialHeight&&null!==o.initialHeight?BigInt(o.initialHeight.toString()):BigInt(0),s},fromProtoMsg:e=>RequestInitChain.decode(e.value),toProto:e=>RequestInitChain.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.RequestInitChain",value:RequestInitChain.encode(e).finish()})};function v(){return{data:new Uint8Array,path:"",height:BigInt(0),prove:!1}}export const RequestQuery={typeUrl:"/tendermint.abci.RequestQuery",is:e=>e&&(e.$typeUrl===RequestQuery.typeUrl||(e.data instanceof Uint8Array||"string"==typeof e.data)&&"string"==typeof e.path&&"bigint"==typeof e.height&&"boolean"==typeof e.prove),isSDK:e=>e&&(e.$typeUrl===RequestQuery.typeUrl||(e.data instanceof Uint8Array||"string"==typeof e.data)&&"string"==typeof e.path&&"bigint"==typeof e.height&&"boolean"==typeof e.prove),encode:(e,t=p.create())=>(0!==e.data.length&&t.uint32(10).bytes(e.data),""!==e.path&&t.uint32(18).string(e.path),e.height!==BigInt(0)&&t.uint32(24).int64(e.height),!0===e.prove&&t.uint32(32).bool(e.prove),t),decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n=v();for(;o.pos<s;){const e=o.uint32();switch(e>>>3){case 1:n.data=o.bytes();break;case 2:n.path=o.string();break;case 3:n.height=o.int64();break;case 4:n.prove=o.bool();break;default:o.skipType(7&e)}}return n},fromJSON:e=>({data:d(e.data)?h(e.data):new Uint8Array,path:d(e.path)?String(e.path):"",height:d(e.height)?BigInt(e.height.toString()):BigInt(0),prove:!!d(e.prove)&&Boolean(e.prove)}),toJSON(e){const t={};return void 0!==e.data&&(t.data=u(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.path&&(t.path=e.path),void 0!==e.height&&(t.height=(e.height||BigInt(0)).toString()),void 0!==e.prove&&(t.prove=e.prove),t},fromPartial(e){const t=v();return t.data=e.data??new Uint8Array,t.path=e.path??"",t.height=void 0!==e.height&&null!==e.height?BigInt(e.height.toString()):BigInt(0),t.prove=e.prove??!1,t},fromProtoMsg:e=>RequestQuery.decode(e.value),toProto:e=>RequestQuery.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.RequestQuery",value:RequestQuery.encode(e).finish()})};function m(){return{tx:new Uint8Array,type:0}}export const RequestCheckTx={typeUrl:"/tendermint.abci.RequestCheckTx",is:e=>e&&(e.$typeUrl===RequestCheckTx.typeUrl||(e.tx instanceof Uint8Array||"string"==typeof e.tx)&&d(e.type)),isSDK:e=>e&&(e.$typeUrl===RequestCheckTx.typeUrl||(e.tx instanceof Uint8Array||"string"==typeof e.tx)&&d(e.type)),encode:(e,t=p.create())=>(0!==e.tx.length&&t.uint32(10).bytes(e.tx),0!==e.type&&t.uint32(16).int32(e.type),t),decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n=m();for(;o.pos<s;){const e=o.uint32();switch(e>>>3){case 1:n.tx=o.bytes();break;case 2:n.type=o.int32();break;default:o.skipType(7&e)}}return n},fromJSON:e=>({tx:d(e.tx)?h(e.tx):new Uint8Array,type:d(e.type)?checkTxTypeFromJSON(e.type):-1}),toJSON(e){const t={};return void 0!==e.tx&&(t.tx=u(void 0!==e.tx?e.tx:new Uint8Array)),void 0!==e.type&&(t.type=checkTxTypeToJSON(e.type)),t},fromPartial(e){const t=m();return t.tx=e.tx??new Uint8Array,t.type=e.type??0,t},fromProtoMsg:e=>RequestCheckTx.decode(e.value),toProto:e=>RequestCheckTx.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.RequestCheckTx",value:RequestCheckTx.encode(e).finish()})};export const RequestCommit={typeUrl:"/tendermint.abci.RequestCommit",is:e=>e&&e.$typeUrl===RequestCommit.typeUrl,isSDK:e=>e&&e.$typeUrl===RequestCommit.typeUrl,encode:(e,t=p.create())=>t,decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n={};for(;o.pos<s;){const e=o.uint32();o.skipType(7&e)}return n},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>RequestCommit.decode(e.value),toProto:e=>RequestCommit.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.RequestCommit",value:RequestCommit.encode(e).finish()})};export const RequestListSnapshots={typeUrl:"/tendermint.abci.RequestListSnapshots",is:e=>e&&e.$typeUrl===RequestListSnapshots.typeUrl,isSDK:e=>e&&e.$typeUrl===RequestListSnapshots.typeUrl,encode:(e,t=p.create())=>t,decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n={};for(;o.pos<s;){const e=o.uint32();o.skipType(7&e)}return n},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>RequestListSnapshots.decode(e.value),toProto:e=>RequestListSnapshots.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.RequestListSnapshots",value:RequestListSnapshots.encode(e).finish()})};function g(){return{snapshot:void 0,appHash:new Uint8Array}}export const RequestOfferSnapshot={typeUrl:"/tendermint.abci.RequestOfferSnapshot",is:e=>e&&(e.$typeUrl===RequestOfferSnapshot.typeUrl||e.appHash instanceof Uint8Array||"string"==typeof e.appHash),isSDK:e=>e&&(e.$typeUrl===RequestOfferSnapshot.typeUrl||e.app_hash instanceof Uint8Array||"string"==typeof e.app_hash),encode:(e,t=p.create())=>(void 0!==e.snapshot&&Snapshot.encode(e.snapshot,t.uint32(10).fork()).ldelim(),0!==e.appHash.length&&t.uint32(18).bytes(e.appHash),t),decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n=g();for(;o.pos<s;){const e=o.uint32();switch(e>>>3){case 1:n.snapshot=Snapshot.decode(o,o.uint32());break;case 2:n.appHash=o.bytes();break;default:o.skipType(7&e)}}return n},fromJSON:e=>({snapshot:d(e.snapshot)?Snapshot.fromJSON(e.snapshot):void 0,appHash:d(e.appHash)?h(e.appHash):new Uint8Array}),toJSON(e){const t={};return void 0!==e.snapshot&&(t.snapshot=e.snapshot?Snapshot.toJSON(e.snapshot):void 0),void 0!==e.appHash&&(t.appHash=u(void 0!==e.appHash?e.appHash:new Uint8Array)),t},fromPartial(e){const t=g();return t.snapshot=void 0!==e.snapshot&&null!==e.snapshot?Snapshot.fromPartial(e.snapshot):void 0,t.appHash=e.appHash??new Uint8Array,t},fromProtoMsg:e=>RequestOfferSnapshot.decode(e.value),toProto:e=>RequestOfferSnapshot.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.RequestOfferSnapshot",value:RequestOfferSnapshot.encode(e).finish()})};function S(){return{height:BigInt(0),format:0,chunk:0}}export const RequestLoadSnapshotChunk={typeUrl:"/tendermint.abci.RequestLoadSnapshotChunk",is:e=>e&&(e.$typeUrl===RequestLoadSnapshotChunk.typeUrl||"bigint"==typeof e.height&&"number"==typeof e.format&&"number"==typeof e.chunk),isSDK:e=>e&&(e.$typeUrl===RequestLoadSnapshotChunk.typeUrl||"bigint"==typeof e.height&&"number"==typeof e.format&&"number"==typeof e.chunk),encode:(e,t=p.create())=>(e.height!==BigInt(0)&&t.uint32(8).uint64(e.height),0!==e.format&&t.uint32(16).uint32(e.format),0!==e.chunk&&t.uint32(24).uint32(e.chunk),t),decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n=S();for(;o.pos<s;){const e=o.uint32();switch(e>>>3){case 1:n.height=o.uint64();break;case 2:n.format=o.uint32();break;case 3:n.chunk=o.uint32();break;default:o.skipType(7&e)}}return n},fromJSON:e=>({height:d(e.height)?BigInt(e.height.toString()):BigInt(0),format:d(e.format)?Number(e.format):0,chunk:d(e.chunk)?Number(e.chunk):0}),toJSON(e){const t={};return void 0!==e.height&&(t.height=(e.height||BigInt(0)).toString()),void 0!==e.format&&(t.format=Math.round(e.format)),void 0!==e.chunk&&(t.chunk=Math.round(e.chunk)),t},fromPartial(e){const t=S();return t.height=void 0!==e.height&&null!==e.height?BigInt(e.height.toString()):BigInt(0),t.format=e.format??0,t.chunk=e.chunk??0,t},fromProtoMsg:e=>RequestLoadSnapshotChunk.decode(e.value),toProto:e=>RequestLoadSnapshotChunk.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.RequestLoadSnapshotChunk",value:RequestLoadSnapshotChunk.encode(e).finish()})};function x(){return{index:0,chunk:new Uint8Array,sender:""}}export const RequestApplySnapshotChunk={typeUrl:"/tendermint.abci.RequestApplySnapshotChunk",is:e=>e&&(e.$typeUrl===RequestApplySnapshotChunk.typeUrl||"number"==typeof e.index&&(e.chunk instanceof Uint8Array||"string"==typeof e.chunk)&&"string"==typeof e.sender),isSDK:e=>e&&(e.$typeUrl===RequestApplySnapshotChunk.typeUrl||"number"==typeof e.index&&(e.chunk instanceof Uint8Array||"string"==typeof e.chunk)&&"string"==typeof e.sender),encode:(e,t=p.create())=>(0!==e.index&&t.uint32(8).uint32(e.index),0!==e.chunk.length&&t.uint32(18).bytes(e.chunk),""!==e.sender&&t.uint32(26).string(e.sender),t),decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n=x();for(;o.pos<s;){const e=o.uint32();switch(e>>>3){case 1:n.index=o.uint32();break;case 2:n.chunk=o.bytes();break;case 3:n.sender=o.string();break;default:o.skipType(7&e)}}return n},fromJSON:e=>({index:d(e.index)?Number(e.index):0,chunk:d(e.chunk)?h(e.chunk):new Uint8Array,sender:d(e.sender)?String(e.sender):""}),toJSON(e){const t={};return void 0!==e.index&&(t.index=Math.round(e.index)),void 0!==e.chunk&&(t.chunk=u(void 0!==e.chunk?e.chunk:new Uint8Array)),void 0!==e.sender&&(t.sender=e.sender),t},fromPartial(e){const t=x();return t.index=e.index??0,t.chunk=e.chunk??new Uint8Array,t.sender=e.sender??"",t},fromProtoMsg:e=>RequestApplySnapshotChunk.decode(e.value),toProto:e=>RequestApplySnapshotChunk.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.RequestApplySnapshotChunk",value:RequestApplySnapshotChunk.encode(e).finish()})};function k(){return{maxTxBytes:BigInt(0),txs:[],localLastCommit:ExtendedCommitInfo.fromPartial({}),misbehavior:[],height:BigInt(0),time:e.fromPartial({}),nextValidatorsHash:new Uint8Array,proposerAddress:new Uint8Array}}export const RequestPrepareProposal={typeUrl:"/tendermint.abci.RequestPrepareProposal",is:t=>t&&(t.$typeUrl===RequestPrepareProposal.typeUrl||"bigint"==typeof t.maxTxBytes&&Array.isArray(t.txs)&&(!t.txs.length||t.txs[0]instanceof Uint8Array||"string"==typeof t.txs[0])&&ExtendedCommitInfo.is(t.localLastCommit)&&Array.isArray(t.misbehavior)&&(!t.misbehavior.length||Misbehavior.is(t.misbehavior[0]))&&"bigint"==typeof t.height&&e.is(t.time)&&(t.nextValidatorsHash instanceof Uint8Array||"string"==typeof t.nextValidatorsHash)&&(t.proposerAddress instanceof Uint8Array||"string"==typeof t.proposerAddress)),isSDK:t=>t&&(t.$typeUrl===RequestPrepareProposal.typeUrl||"bigint"==typeof t.max_tx_bytes&&Array.isArray(t.txs)&&(!t.txs.length||t.txs[0]instanceof Uint8Array||"string"==typeof t.txs[0])&&ExtendedCommitInfo.isSDK(t.local_last_commit)&&Array.isArray(t.misbehavior)&&(!t.misbehavior.length||Misbehavior.isSDK(t.misbehavior[0]))&&"bigint"==typeof t.height&&e.isSDK(t.time)&&(t.next_validators_hash instanceof Uint8Array||"string"==typeof t.next_validators_hash)&&(t.proposer_address instanceof Uint8Array||"string"==typeof t.proposer_address)),encode(t,o=p.create()){t.maxTxBytes!==BigInt(0)&&o.uint32(8).int64(t.maxTxBytes);for(const e of t.txs)o.uint32(18).bytes(e);void 0!==t.localLastCommit&&ExtendedCommitInfo.encode(t.localLastCommit,o.uint32(26).fork()).ldelim();for(const e of t.misbehavior)Misbehavior.encode(e,o.uint32(34).fork()).ldelim();return t.height!==BigInt(0)&&o.uint32(40).int64(t.height),void 0!==t.time&&e.encode(t.time,o.uint32(50).fork()).ldelim(),0!==t.nextValidatorsHash.length&&o.uint32(58).bytes(t.nextValidatorsHash),0!==t.proposerAddress.length&&o.uint32(66).bytes(t.proposerAddress),o},decode(t,o){const s=t instanceof a?t:new a(t);let n=void 0===o?s.len:s.pos+o;const i=k();for(;s.pos<n;){const t=s.uint32();switch(t>>>3){case 1:i.maxTxBytes=s.int64();break;case 2:i.txs.push(s.bytes());break;case 3:i.localLastCommit=ExtendedCommitInfo.decode(s,s.uint32());break;case 4:i.misbehavior.push(Misbehavior.decode(s,s.uint32()));break;case 5:i.height=s.int64();break;case 6:i.time=e.decode(s,s.uint32());break;case 7:i.nextValidatorsHash=s.bytes();break;case 8:i.proposerAddress=s.bytes();break;default:s.skipType(7&t)}}return i},fromJSON:e=>({maxTxBytes:d(e.maxTxBytes)?BigInt(e.maxTxBytes.toString()):BigInt(0),txs:Array.isArray(e?.txs)?e.txs.map((e=>h(e))):[],localLastCommit:d(e.localLastCommit)?ExtendedCommitInfo.fromJSON(e.localLastCommit):void 0,misbehavior:Array.isArray(e?.misbehavior)?e.misbehavior.map((e=>Misbehavior.fromJSON(e))):[],height:d(e.height)?BigInt(e.height.toString()):BigInt(0),time:d(e.time)?l(e.time):void 0,nextValidatorsHash:d(e.nextValidatorsHash)?h(e.nextValidatorsHash):new Uint8Array,proposerAddress:d(e.proposerAddress)?h(e.proposerAddress):new Uint8Array}),toJSON(e){const t={};return void 0!==e.maxTxBytes&&(t.maxTxBytes=(e.maxTxBytes||BigInt(0)).toString()),e.txs?t.txs=e.txs.map((e=>u(void 0!==e?e:new Uint8Array))):t.txs=[],void 0!==e.localLastCommit&&(t.localLastCommit=e.localLastCommit?ExtendedCommitInfo.toJSON(e.localLastCommit):void 0),e.misbehavior?t.misbehavior=e.misbehavior.map((e=>e?Misbehavior.toJSON(e):void 0)):t.misbehavior=[],void 0!==e.height&&(t.height=(e.height||BigInt(0)).toString()),void 0!==e.time&&(t.time=c(e.time).toISOString()),void 0!==e.nextValidatorsHash&&(t.nextValidatorsHash=u(void 0!==e.nextValidatorsHash?e.nextValidatorsHash:new Uint8Array)),void 0!==e.proposerAddress&&(t.proposerAddress=u(void 0!==e.proposerAddress?e.proposerAddress:new Uint8Array)),t},fromPartial(t){const o=k();return o.maxTxBytes=void 0!==t.maxTxBytes&&null!==t.maxTxBytes?BigInt(t.maxTxBytes.toString()):BigInt(0),o.txs=t.txs?.map((e=>e))||[],o.localLastCommit=void 0!==t.localLastCommit&&null!==t.localLastCommit?ExtendedCommitInfo.fromPartial(t.localLastCommit):void 0,o.misbehavior=t.misbehavior?.map((e=>Misbehavior.fromPartial(e)))||[],o.height=void 0!==t.height&&null!==t.height?BigInt(t.height.toString()):BigInt(0),o.time=void 0!==t.time&&null!==t.time?e.fromPartial(t.time):void 0,o.nextValidatorsHash=t.nextValidatorsHash??new Uint8Array,o.proposerAddress=t.proposerAddress??new Uint8Array,o},fromProtoMsg:e=>RequestPrepareProposal.decode(e.value),toProto:e=>RequestPrepareProposal.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.RequestPrepareProposal",value:RequestPrepareProposal.encode(e).finish()})};function R(){return{txs:[],proposedLastCommit:CommitInfo.fromPartial({}),misbehavior:[],hash:new Uint8Array,height:BigInt(0),time:e.fromPartial({}),nextValidatorsHash:new Uint8Array,proposerAddress:new Uint8Array}}export const RequestProcessProposal={typeUrl:"/tendermint.abci.RequestProcessProposal",is:t=>t&&(t.$typeUrl===RequestProcessProposal.typeUrl||Array.isArray(t.txs)&&(!t.txs.length||t.txs[0]instanceof Uint8Array||"string"==typeof t.txs[0])&&CommitInfo.is(t.proposedLastCommit)&&Array.isArray(t.misbehavior)&&(!t.misbehavior.length||Misbehavior.is(t.misbehavior[0]))&&(t.hash instanceof Uint8Array||"string"==typeof t.hash)&&"bigint"==typeof t.height&&e.is(t.time)&&(t.nextValidatorsHash instanceof Uint8Array||"string"==typeof t.nextValidatorsHash)&&(t.proposerAddress instanceof Uint8Array||"string"==typeof t.proposerAddress)),isSDK:t=>t&&(t.$typeUrl===RequestProcessProposal.typeUrl||Array.isArray(t.txs)&&(!t.txs.length||t.txs[0]instanceof Uint8Array||"string"==typeof t.txs[0])&&CommitInfo.isSDK(t.proposed_last_commit)&&Array.isArray(t.misbehavior)&&(!t.misbehavior.length||Misbehavior.isSDK(t.misbehavior[0]))&&(t.hash instanceof Uint8Array||"string"==typeof t.hash)&&"bigint"==typeof t.height&&e.isSDK(t.time)&&(t.next_validators_hash instanceof Uint8Array||"string"==typeof t.next_validators_hash)&&(t.proposer_address instanceof Uint8Array||"string"==typeof t.proposer_address)),encode(t,o=p.create()){for(const e of t.txs)o.uint32(10).bytes(e);void 0!==t.proposedLastCommit&&CommitInfo.encode(t.proposedLastCommit,o.uint32(18).fork()).ldelim();for(const e of t.misbehavior)Misbehavior.encode(e,o.uint32(26).fork()).ldelim();return 0!==t.hash.length&&o.uint32(34).bytes(t.hash),t.height!==BigInt(0)&&o.uint32(40).int64(t.height),void 0!==t.time&&e.encode(t.time,o.uint32(50).fork()).ldelim(),0!==t.nextValidatorsHash.length&&o.uint32(58).bytes(t.nextValidatorsHash),0!==t.proposerAddress.length&&o.uint32(66).bytes(t.proposerAddress),o},decode(t,o){const s=t instanceof a?t:new a(t);let n=void 0===o?s.len:s.pos+o;const i=R();for(;s.pos<n;){const t=s.uint32();switch(t>>>3){case 1:i.txs.push(s.bytes());break;case 2:i.proposedLastCommit=CommitInfo.decode(s,s.uint32());break;case 3:i.misbehavior.push(Misbehavior.decode(s,s.uint32()));break;case 4:i.hash=s.bytes();break;case 5:i.height=s.int64();break;case 6:i.time=e.decode(s,s.uint32());break;case 7:i.nextValidatorsHash=s.bytes();break;case 8:i.proposerAddress=s.bytes();break;default:s.skipType(7&t)}}return i},fromJSON:e=>({txs:Array.isArray(e?.txs)?e.txs.map((e=>h(e))):[],proposedLastCommit:d(e.proposedLastCommit)?CommitInfo.fromJSON(e.proposedLastCommit):void 0,misbehavior:Array.isArray(e?.misbehavior)?e.misbehavior.map((e=>Misbehavior.fromJSON(e))):[],hash:d(e.hash)?h(e.hash):new Uint8Array,height:d(e.height)?BigInt(e.height.toString()):BigInt(0),time:d(e.time)?l(e.time):void 0,nextValidatorsHash:d(e.nextValidatorsHash)?h(e.nextValidatorsHash):new Uint8Array,proposerAddress:d(e.proposerAddress)?h(e.proposerAddress):new Uint8Array}),toJSON(e){const t={};return e.txs?t.txs=e.txs.map((e=>u(void 0!==e?e:new Uint8Array))):t.txs=[],void 0!==e.proposedLastCommit&&(t.proposedLastCommit=e.proposedLastCommit?CommitInfo.toJSON(e.proposedLastCommit):void 0),e.misbehavior?t.misbehavior=e.misbehavior.map((e=>e?Misbehavior.toJSON(e):void 0)):t.misbehavior=[],void 0!==e.hash&&(t.hash=u(void 0!==e.hash?e.hash:new Uint8Array)),void 0!==e.height&&(t.height=(e.height||BigInt(0)).toString()),void 0!==e.time&&(t.time=c(e.time).toISOString()),void 0!==e.nextValidatorsHash&&(t.nextValidatorsHash=u(void 0!==e.nextValidatorsHash?e.nextValidatorsHash:new Uint8Array)),void 0!==e.proposerAddress&&(t.proposerAddress=u(void 0!==e.proposerAddress?e.proposerAddress:new Uint8Array)),t},fromPartial(t){const o=R();return o.txs=t.txs?.map((e=>e))||[],o.proposedLastCommit=void 0!==t.proposedLastCommit&&null!==t.proposedLastCommit?CommitInfo.fromPartial(t.proposedLastCommit):void 0,o.misbehavior=t.misbehavior?.map((e=>Misbehavior.fromPartial(e)))||[],o.hash=t.hash??new Uint8Array,o.height=void 0!==t.height&&null!==t.height?BigInt(t.height.toString()):BigInt(0),o.time=void 0!==t.time&&null!==t.time?e.fromPartial(t.time):void 0,o.nextValidatorsHash=t.nextValidatorsHash??new Uint8Array,o.proposerAddress=t.proposerAddress??new Uint8Array,o},fromProtoMsg:e=>RequestProcessProposal.decode(e.value),toProto:e=>RequestProcessProposal.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.RequestProcessProposal",value:RequestProcessProposal.encode(e).finish()})};function b(){return{hash:new Uint8Array,height:BigInt(0),time:e.fromPartial({}),txs:[],proposedLastCommit:CommitInfo.fromPartial({}),misbehavior:[],nextValidatorsHash:new Uint8Array,proposerAddress:new Uint8Array}}export const RequestExtendVote={typeUrl:"/tendermint.abci.RequestExtendVote",is:t=>t&&(t.$typeUrl===RequestExtendVote.typeUrl||(t.hash instanceof Uint8Array||"string"==typeof t.hash)&&"bigint"==typeof t.height&&e.is(t.time)&&Array.isArray(t.txs)&&(!t.txs.length||t.txs[0]instanceof Uint8Array||"string"==typeof t.txs[0])&&CommitInfo.is(t.proposedLastCommit)&&Array.isArray(t.misbehavior)&&(!t.misbehavior.length||Misbehavior.is(t.misbehavior[0]))&&(t.nextValidatorsHash instanceof Uint8Array||"string"==typeof t.nextValidatorsHash)&&(t.proposerAddress instanceof Uint8Array||"string"==typeof t.proposerAddress)),isSDK:t=>t&&(t.$typeUrl===RequestExtendVote.typeUrl||(t.hash instanceof Uint8Array||"string"==typeof t.hash)&&"bigint"==typeof t.height&&e.isSDK(t.time)&&Array.isArray(t.txs)&&(!t.txs.length||t.txs[0]instanceof Uint8Array||"string"==typeof t.txs[0])&&CommitInfo.isSDK(t.proposed_last_commit)&&Array.isArray(t.misbehavior)&&(!t.misbehavior.length||Misbehavior.isSDK(t.misbehavior[0]))&&(t.next_validators_hash instanceof Uint8Array||"string"==typeof t.next_validators_hash)&&(t.proposer_address instanceof Uint8Array||"string"==typeof t.proposer_address)),encode(t,o=p.create()){0!==t.hash.length&&o.uint32(10).bytes(t.hash),t.height!==BigInt(0)&&o.uint32(16).int64(t.height),void 0!==t.time&&e.encode(t.time,o.uint32(26).fork()).ldelim();for(const e of t.txs)o.uint32(34).bytes(e);void 0!==t.proposedLastCommit&&CommitInfo.encode(t.proposedLastCommit,o.uint32(42).fork()).ldelim();for(const e of t.misbehavior)Misbehavior.encode(e,o.uint32(50).fork()).ldelim();return 0!==t.nextValidatorsHash.length&&o.uint32(58).bytes(t.nextValidatorsHash),0!==t.proposerAddress.length&&o.uint32(66).bytes(t.proposerAddress),o},decode(t,o){const s=t instanceof a?t:new a(t);let n=void 0===o?s.len:s.pos+o;const i=b();for(;s.pos<n;){const t=s.uint32();switch(t>>>3){case 1:i.hash=s.bytes();break;case 2:i.height=s.int64();break;case 3:i.time=e.decode(s,s.uint32());break;case 4:i.txs.push(s.bytes());break;case 5:i.proposedLastCommit=CommitInfo.decode(s,s.uint32());break;case 6:i.misbehavior.push(Misbehavior.decode(s,s.uint32()));break;case 7:i.nextValidatorsHash=s.bytes();break;case 8:i.proposerAddress=s.bytes();break;default:s.skipType(7&t)}}return i},fromJSON:e=>({hash:d(e.hash)?h(e.hash):new Uint8Array,height:d(e.height)?BigInt(e.height.toString()):BigInt(0),time:d(e.time)?l(e.time):void 0,txs:Array.isArray(e?.txs)?e.txs.map((e=>h(e))):[],proposedLastCommit:d(e.proposedLastCommit)?CommitInfo.fromJSON(e.proposedLastCommit):void 0,misbehavior:Array.isArray(e?.misbehavior)?e.misbehavior.map((e=>Misbehavior.fromJSON(e))):[],nextValidatorsHash:d(e.nextValidatorsHash)?h(e.nextValidatorsHash):new Uint8Array,proposerAddress:d(e.proposerAddress)?h(e.proposerAddress):new Uint8Array}),toJSON(e){const t={};return void 0!==e.hash&&(t.hash=u(void 0!==e.hash?e.hash:new Uint8Array)),void 0!==e.height&&(t.height=(e.height||BigInt(0)).toString()),void 0!==e.time&&(t.time=c(e.time).toISOString()),e.txs?t.txs=e.txs.map((e=>u(void 0!==e?e:new Uint8Array))):t.txs=[],void 0!==e.proposedLastCommit&&(t.proposedLastCommit=e.proposedLastCommit?CommitInfo.toJSON(e.proposedLastCommit):void 0),e.misbehavior?t.misbehavior=e.misbehavior.map((e=>e?Misbehavior.toJSON(e):void 0)):t.misbehavior=[],void 0!==e.nextValidatorsHash&&(t.nextValidatorsHash=u(void 0!==e.nextValidatorsHash?e.nextValidatorsHash:new Uint8Array)),void 0!==e.proposerAddress&&(t.proposerAddress=u(void 0!==e.proposerAddress?e.proposerAddress:new Uint8Array)),t},fromPartial(t){const o=b();return o.hash=t.hash??new Uint8Array,o.height=void 0!==t.height&&null!==t.height?BigInt(t.height.toString()):BigInt(0),o.time=void 0!==t.time&&null!==t.time?e.fromPartial(t.time):void 0,o.txs=t.txs?.map((e=>e))||[],o.proposedLastCommit=void 0!==t.proposedLastCommit&&null!==t.proposedLastCommit?CommitInfo.fromPartial(t.proposedLastCommit):void 0,o.misbehavior=t.misbehavior?.map((e=>Misbehavior.fromPartial(e)))||[],o.nextValidatorsHash=t.nextValidatorsHash??new Uint8Array,o.proposerAddress=t.proposerAddress??new Uint8Array,o},fromProtoMsg:e=>RequestExtendVote.decode(e.value),toProto:e=>RequestExtendVote.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.RequestExtendVote",value:RequestExtendVote.encode(e).finish()})};function U(){return{hash:new Uint8Array,validatorAddress:new Uint8Array,height:BigInt(0),voteExtension:new Uint8Array}}export const RequestVerifyVoteExtension={typeUrl:"/tendermint.abci.RequestVerifyVoteExtension",is:e=>e&&(e.$typeUrl===RequestVerifyVoteExtension.typeUrl||(e.hash instanceof Uint8Array||"string"==typeof e.hash)&&(e.validatorAddress instanceof Uint8Array||"string"==typeof e.validatorAddress)&&"bigint"==typeof e.height&&(e.voteExtension instanceof Uint8Array||"string"==typeof e.voteExtension)),isSDK:e=>e&&(e.$typeUrl===RequestVerifyVoteExtension.typeUrl||(e.hash instanceof Uint8Array||"string"==typeof e.hash)&&(e.validator_address instanceof Uint8Array||"string"==typeof e.validator_address)&&"bigint"==typeof e.height&&(e.vote_extension instanceof Uint8Array||"string"==typeof e.vote_extension)),encode:(e,t=p.create())=>(0!==e.hash.length&&t.uint32(10).bytes(e.hash),0!==e.validatorAddress.length&&t.uint32(18).bytes(e.validatorAddress),e.height!==BigInt(0)&&t.uint32(24).int64(e.height),0!==e.voteExtension.length&&t.uint32(34).bytes(e.voteExtension),t),decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n=U();for(;o.pos<s;){const e=o.uint32();switch(e>>>3){case 1:n.hash=o.bytes();break;case 2:n.validatorAddress=o.bytes();break;case 3:n.height=o.int64();break;case 4:n.voteExtension=o.bytes();break;default:o.skipType(7&e)}}return n},fromJSON:e=>({hash:d(e.hash)?h(e.hash):new Uint8Array,validatorAddress:d(e.validatorAddress)?h(e.validatorAddress):new Uint8Array,height:d(e.height)?BigInt(e.height.toString()):BigInt(0),voteExtension:d(e.voteExtension)?h(e.voteExtension):new Uint8Array}),toJSON(e){const t={};return void 0!==e.hash&&(t.hash=u(void 0!==e.hash?e.hash:new Uint8Array)),void 0!==e.validatorAddress&&(t.validatorAddress=u(void 0!==e.validatorAddress?e.validatorAddress:new Uint8Array)),void 0!==e.height&&(t.height=(e.height||BigInt(0)).toString()),void 0!==e.voteExtension&&(t.voteExtension=u(void 0!==e.voteExtension?e.voteExtension:new Uint8Array)),t},fromPartial(e){const t=U();return t.hash=e.hash??new Uint8Array,t.validatorAddress=e.validatorAddress??new Uint8Array,t.height=void 0!==e.height&&null!==e.height?BigInt(e.height.toString()):BigInt(0),t.voteExtension=e.voteExtension??new Uint8Array,t},fromProtoMsg:e=>RequestVerifyVoteExtension.decode(e.value),toProto:e=>RequestVerifyVoteExtension.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.RequestVerifyVoteExtension",value:RequestVerifyVoteExtension.encode(e).finish()})};function P(){return{txs:[],decidedLastCommit:CommitInfo.fromPartial({}),misbehavior:[],hash:new Uint8Array,height:BigInt(0),time:e.fromPartial({}),nextValidatorsHash:new Uint8Array,proposerAddress:new Uint8Array}}export const RequestFinalizeBlock={typeUrl:"/tendermint.abci.RequestFinalizeBlock",is:t=>t&&(t.$typeUrl===RequestFinalizeBlock.typeUrl||Array.isArray(t.txs)&&(!t.txs.length||t.txs[0]instanceof Uint8Array||"string"==typeof t.txs[0])&&CommitInfo.is(t.decidedLastCommit)&&Array.isArray(t.misbehavior)&&(!t.misbehavior.length||Misbehavior.is(t.misbehavior[0]))&&(t.hash instanceof Uint8Array||"string"==typeof t.hash)&&"bigint"==typeof t.height&&e.is(t.time)&&(t.nextValidatorsHash instanceof Uint8Array||"string"==typeof t.nextValidatorsHash)&&(t.proposerAddress instanceof Uint8Array||"string"==typeof t.proposerAddress)),isSDK:t=>t&&(t.$typeUrl===RequestFinalizeBlock.typeUrl||Array.isArray(t.txs)&&(!t.txs.length||t.txs[0]instanceof Uint8Array||"string"==typeof t.txs[0])&&CommitInfo.isSDK(t.decided_last_commit)&&Array.isArray(t.misbehavior)&&(!t.misbehavior.length||Misbehavior.isSDK(t.misbehavior[0]))&&(t.hash instanceof Uint8Array||"string"==typeof t.hash)&&"bigint"==typeof t.height&&e.isSDK(t.time)&&(t.next_validators_hash instanceof Uint8Array||"string"==typeof t.next_validators_hash)&&(t.proposer_address instanceof Uint8Array||"string"==typeof t.proposer_address)),encode(t,o=p.create()){for(const e of t.txs)o.uint32(10).bytes(e);void 0!==t.decidedLastCommit&&CommitInfo.encode(t.decidedLastCommit,o.uint32(18).fork()).ldelim();for(const e of t.misbehavior)Misbehavior.encode(e,o.uint32(26).fork()).ldelim();return 0!==t.hash.length&&o.uint32(34).bytes(t.hash),t.height!==BigInt(0)&&o.uint32(40).int64(t.height),void 0!==t.time&&e.encode(t.time,o.uint32(50).fork()).ldelim(),0!==t.nextValidatorsHash.length&&o.uint32(58).bytes(t.nextValidatorsHash),0!==t.proposerAddress.length&&o.uint32(66).bytes(t.proposerAddress),o},decode(t,o){const s=t instanceof a?t:new a(t);let n=void 0===o?s.len:s.pos+o;const i=P();for(;s.pos<n;){const t=s.uint32();switch(t>>>3){case 1:i.txs.push(s.bytes());break;case 2:i.decidedLastCommit=CommitInfo.decode(s,s.uint32());break;case 3:i.misbehavior.push(Misbehavior.decode(s,s.uint32()));break;case 4:i.hash=s.bytes();break;case 5:i.height=s.int64();break;case 6:i.time=e.decode(s,s.uint32());break;case 7:i.nextValidatorsHash=s.bytes();break;case 8:i.proposerAddress=s.bytes();break;default:s.skipType(7&t)}}return i},fromJSON:e=>({txs:Array.isArray(e?.txs)?e.txs.map((e=>h(e))):[],decidedLastCommit:d(e.decidedLastCommit)?CommitInfo.fromJSON(e.decidedLastCommit):void 0,misbehavior:Array.isArray(e?.misbehavior)?e.misbehavior.map((e=>Misbehavior.fromJSON(e))):[],hash:d(e.hash)?h(e.hash):new Uint8Array,height:d(e.height)?BigInt(e.height.toString()):BigInt(0),time:d(e.time)?l(e.time):void 0,nextValidatorsHash:d(e.nextValidatorsHash)?h(e.nextValidatorsHash):new Uint8Array,proposerAddress:d(e.proposerAddress)?h(e.proposerAddress):new Uint8Array}),toJSON(e){const t={};return e.txs?t.txs=e.txs.map((e=>u(void 0!==e?e:new Uint8Array))):t.txs=[],void 0!==e.decidedLastCommit&&(t.decidedLastCommit=e.decidedLastCommit?CommitInfo.toJSON(e.decidedLastCommit):void 0),e.misbehavior?t.misbehavior=e.misbehavior.map((e=>e?Misbehavior.toJSON(e):void 0)):t.misbehavior=[],void 0!==e.hash&&(t.hash=u(void 0!==e.hash?e.hash:new Uint8Array)),void 0!==e.height&&(t.height=(e.height||BigInt(0)).toString()),void 0!==e.time&&(t.time=c(e.time).toISOString()),void 0!==e.nextValidatorsHash&&(t.nextValidatorsHash=u(void 0!==e.nextValidatorsHash?e.nextValidatorsHash:new Uint8Array)),void 0!==e.proposerAddress&&(t.proposerAddress=u(void 0!==e.proposerAddress?e.proposerAddress:new Uint8Array)),t},fromPartial(t){const o=P();return o.txs=t.txs?.map((e=>e))||[],o.decidedLastCommit=void 0!==t.decidedLastCommit&&null!==t.decidedLastCommit?CommitInfo.fromPartial(t.decidedLastCommit):void 0,o.misbehavior=t.misbehavior?.map((e=>Misbehavior.fromPartial(e)))||[],o.hash=t.hash??new Uint8Array,o.height=void 0!==t.height&&null!==t.height?BigInt(t.height.toString()):BigInt(0),o.time=void 0!==t.time&&null!==t.time?e.fromPartial(t.time):void 0,o.nextValidatorsHash=t.nextValidatorsHash??new Uint8Array,o.proposerAddress=t.proposerAddress??new Uint8Array,o},fromProtoMsg:e=>RequestFinalizeBlock.decode(e.value),toProto:e=>RequestFinalizeBlock.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.RequestFinalizeBlock",value:RequestFinalizeBlock.encode(e).finish()})};export const Response={typeUrl:"/tendermint.abci.Response",is:e=>e&&e.$typeUrl===Response.typeUrl,isSDK:e=>e&&e.$typeUrl===Response.typeUrl,encode:(e,t=p.create())=>(void 0!==e.exception&&ResponseException.encode(e.exception,t.uint32(10).fork()).ldelim(),void 0!==e.echo&&ResponseEcho.encode(e.echo,t.uint32(18).fork()).ldelim(),void 0!==e.flush&&ResponseFlush.encode(e.flush,t.uint32(26).fork()).ldelim(),void 0!==e.info&&ResponseInfo.encode(e.info,t.uint32(34).fork()).ldelim(),void 0!==e.initChain&&ResponseInitChain.encode(e.initChain,t.uint32(50).fork()).ldelim(),void 0!==e.query&&ResponseQuery.encode(e.query,t.uint32(58).fork()).ldelim(),void 0!==e.checkTx&&ResponseCheckTx.encode(e.checkTx,t.uint32(74).fork()).ldelim(),void 0!==e.commit&&ResponseCommit.encode(e.commit,t.uint32(98).fork()).ldelim(),void 0!==e.listSnapshots&&ResponseListSnapshots.encode(e.listSnapshots,t.uint32(106).fork()).ldelim(),void 0!==e.offerSnapshot&&ResponseOfferSnapshot.encode(e.offerSnapshot,t.uint32(114).fork()).ldelim(),void 0!==e.loadSnapshotChunk&&ResponseLoadSnapshotChunk.encode(e.loadSnapshotChunk,t.uint32(122).fork()).ldelim(),void 0!==e.applySnapshotChunk&&ResponseApplySnapshotChunk.encode(e.applySnapshotChunk,t.uint32(130).fork()).ldelim(),void 0!==e.prepareProposal&&ResponsePrepareProposal.encode(e.prepareProposal,t.uint32(138).fork()).ldelim(),void 0!==e.processProposal&&ResponseProcessProposal.encode(e.processProposal,t.uint32(146).fork()).ldelim(),void 0!==e.extendVote&&ResponseExtendVote.encode(e.extendVote,t.uint32(154).fork()).ldelim(),void 0!==e.verifyVoteExtension&&ResponseVerifyVoteExtension.encode(e.verifyVoteExtension,t.uint32(162).fork()).ldelim(),void 0!==e.finalizeBlock&&ResponseFinalizeBlock.encode(e.finalizeBlock,t.uint32(170).fork()).ldelim(),t),decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n={exception:void 0,echo:void 0,flush:void 0,info:void 0,initChain:void 0,query:void 0,checkTx:void 0,commit:void 0,listSnapshots:void 0,offerSnapshot:void 0,loadSnapshotChunk:void 0,applySnapshotChunk:void 0,prepareProposal:void 0,processProposal:void 0,extendVote:void 0,verifyVoteExtension:void 0,finalizeBlock:void 0};for(;o.pos<s;){const e=o.uint32();switch(e>>>3){case 1:n.exception=ResponseException.decode(o,o.uint32());break;case 2:n.echo=ResponseEcho.decode(o,o.uint32());break;case 3:n.flush=ResponseFlush.decode(o,o.uint32());break;case 4:n.info=ResponseInfo.decode(o,o.uint32());break;case 6:n.initChain=ResponseInitChain.decode(o,o.uint32());break;case 7:n.query=ResponseQuery.decode(o,o.uint32());break;case 9:n.checkTx=ResponseCheckTx.decode(o,o.uint32());break;case 12:n.commit=ResponseCommit.decode(o,o.uint32());break;case 13:n.listSnapshots=ResponseListSnapshots.decode(o,o.uint32());break;case 14:n.offerSnapshot=ResponseOfferSnapshot.decode(o,o.uint32());break;case 15:n.loadSnapshotChunk=ResponseLoadSnapshotChunk.decode(o,o.uint32());break;case 16:n.applySnapshotChunk=ResponseApplySnapshotChunk.decode(o,o.uint32());break;case 17:n.prepareProposal=ResponsePrepareProposal.decode(o,o.uint32());break;case 18:n.processProposal=ResponseProcessProposal.decode(o,o.uint32());break;case 19:n.extendVote=ResponseExtendVote.decode(o,o.uint32());break;case 20:n.verifyVoteExtension=ResponseVerifyVoteExtension.decode(o,o.uint32());break;case 21:n.finalizeBlock=ResponseFinalizeBlock.decode(o,o.uint32());break;default:o.skipType(7&e)}}return n},fromJSON:e=>({exception:d(e.exception)?ResponseException.fromJSON(e.exception):void 0,echo:d(e.echo)?ResponseEcho.fromJSON(e.echo):void 0,flush:d(e.flush)?ResponseFlush.fromJSON(e.flush):void 0,info:d(e.info)?ResponseInfo.fromJSON(e.info):void 0,initChain:d(e.initChain)?ResponseInitChain.fromJSON(e.initChain):void 0,query:d(e.query)?ResponseQuery.fromJSON(e.query):void 0,checkTx:d(e.checkTx)?ResponseCheckTx.fromJSON(e.checkTx):void 0,commit:d(e.commit)?ResponseCommit.fromJSON(e.commit):void 0,listSnapshots:d(e.listSnapshots)?ResponseListSnapshots.fromJSON(e.listSnapshots):void 0,offerSnapshot:d(e.offerSnapshot)?ResponseOfferSnapshot.fromJSON(e.offerSnapshot):void 0,loadSnapshotChunk:d(e.loadSnapshotChunk)?ResponseLoadSnapshotChunk.fromJSON(e.loadSnapshotChunk):void 0,applySnapshotChunk:d(e.applySnapshotChunk)?ResponseApplySnapshotChunk.fromJSON(e.applySnapshotChunk):void 0,prepareProposal:d(e.prepareProposal)?ResponsePrepareProposal.fromJSON(e.prepareProposal):void 0,processProposal:d(e.processProposal)?ResponseProcessProposal.fromJSON(e.processProposal):void 0,extendVote:d(e.extendVote)?ResponseExtendVote.fromJSON(e.extendVote):void 0,verifyVoteExtension:d(e.verifyVoteExtension)?ResponseVerifyVoteExtension.fromJSON(e.verifyVoteExtension):void 0,finalizeBlock:d(e.finalizeBlock)?ResponseFinalizeBlock.fromJSON(e.finalizeBlock):void 0}),toJSON(e){const t={};return void 0!==e.exception&&(t.exception=e.exception?ResponseException.toJSON(e.exception):void 0),void 0!==e.echo&&(t.echo=e.echo?ResponseEcho.toJSON(e.echo):void 0),void 0!==e.flush&&(t.flush=e.flush?ResponseFlush.toJSON(e.flush):void 0),void 0!==e.info&&(t.info=e.info?ResponseInfo.toJSON(e.info):void 0),void 0!==e.initChain&&(t.initChain=e.initChain?ResponseInitChain.toJSON(e.initChain):void 0),void 0!==e.query&&(t.query=e.query?ResponseQuery.toJSON(e.query):void 0),void 0!==e.checkTx&&(t.checkTx=e.checkTx?ResponseCheckTx.toJSON(e.checkTx):void 0),void 0!==e.commit&&(t.commit=e.commit?ResponseCommit.toJSON(e.commit):void 0),void 0!==e.listSnapshots&&(t.listSnapshots=e.listSnapshots?ResponseListSnapshots.toJSON(e.listSnapshots):void 0),void 0!==e.offerSnapshot&&(t.offerSnapshot=e.offerSnapshot?ResponseOfferSnapshot.toJSON(e.offerSnapshot):void 0),void 0!==e.loadSnapshotChunk&&(t.loadSnapshotChunk=e.loadSnapshotChunk?ResponseLoadSnapshotChunk.toJSON(e.loadSnapshotChunk):void 0),void 0!==e.applySnapshotChunk&&(t.applySnapshotChunk=e.applySnapshotChunk?ResponseApplySnapshotChunk.toJSON(e.applySnapshotChunk):void 0),void 0!==e.prepareProposal&&(t.prepareProposal=e.prepareProposal?ResponsePrepareProposal.toJSON(e.prepareProposal):void 0),void 0!==e.processProposal&&(t.processProposal=e.processProposal?ResponseProcessProposal.toJSON(e.processProposal):void 0),void 0!==e.extendVote&&(t.extendVote=e.extendVote?ResponseExtendVote.toJSON(e.extendVote):void 0),void 0!==e.verifyVoteExtension&&(t.verifyVoteExtension=e.verifyVoteExtension?ResponseVerifyVoteExtension.toJSON(e.verifyVoteExtension):void 0),void 0!==e.finalizeBlock&&(t.finalizeBlock=e.finalizeBlock?ResponseFinalizeBlock.toJSON(e.finalizeBlock):void 0),t},fromPartial(e){const t={exception:void 0,echo:void 0,flush:void 0,info:void 0,initChain:void 0,query:void 0,checkTx:void 0,commit:void 0,listSnapshots:void 0,offerSnapshot:void 0,loadSnapshotChunk:void 0,applySnapshotChunk:void 0,prepareProposal:void 0,processProposal:void 0,extendVote:void 0,verifyVoteExtension:void 0,finalizeBlock:void 0};return t.exception=void 0!==e.exception&&null!==e.exception?ResponseException.fromPartial(e.exception):void 0,t.echo=void 0!==e.echo&&null!==e.echo?ResponseEcho.fromPartial(e.echo):void 0,t.flush=void 0!==e.flush&&null!==e.flush?ResponseFlush.fromPartial(e.flush):void 0,t.info=void 0!==e.info&&null!==e.info?ResponseInfo.fromPartial(e.info):void 0,t.initChain=void 0!==e.initChain&&null!==e.initChain?ResponseInitChain.fromPartial(e.initChain):void 0,t.query=void 0!==e.query&&null!==e.query?ResponseQuery.fromPartial(e.query):void 0,t.checkTx=void 0!==e.checkTx&&null!==e.checkTx?ResponseCheckTx.fromPartial(e.checkTx):void 0,t.commit=void 0!==e.commit&&null!==e.commit?ResponseCommit.fromPartial(e.commit):void 0,t.listSnapshots=void 0!==e.listSnapshots&&null!==e.listSnapshots?ResponseListSnapshots.fromPartial(e.listSnapshots):void 0,t.offerSnapshot=void 0!==e.offerSnapshot&&null!==e.offerSnapshot?ResponseOfferSnapshot.fromPartial(e.offerSnapshot):void 0,t.loadSnapshotChunk=void 0!==e.loadSnapshotChunk&&null!==e.loadSnapshotChunk?ResponseLoadSnapshotChunk.fromPartial(e.loadSnapshotChunk):void 0,t.applySnapshotChunk=void 0!==e.applySnapshotChunk&&null!==e.applySnapshotChunk?ResponseApplySnapshotChunk.fromPartial(e.applySnapshotChunk):void 0,t.prepareProposal=void 0!==e.prepareProposal&&null!==e.prepareProposal?ResponsePrepareProposal.fromPartial(e.prepareProposal):void 0,t.processProposal=void 0!==e.processProposal&&null!==e.processProposal?ResponseProcessProposal.fromPartial(e.processProposal):void 0,t.extendVote=void 0!==e.extendVote&&null!==e.extendVote?ResponseExtendVote.fromPartial(e.extendVote):void 0,t.verifyVoteExtension=void 0!==e.verifyVoteExtension&&null!==e.verifyVoteExtension?ResponseVerifyVoteExtension.fromPartial(e.verifyVoteExtension):void 0,t.finalizeBlock=void 0!==e.finalizeBlock&&null!==e.finalizeBlock?ResponseFinalizeBlock.fromPartial(e.finalizeBlock):void 0,t},fromProtoMsg:e=>Response.decode(e.value),toProto:e=>Response.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.Response",value:Response.encode(e).finish()})};export const ResponseException={typeUrl:"/tendermint.abci.ResponseException",is:e=>e&&(e.$typeUrl===ResponseException.typeUrl||"string"==typeof e.error),isSDK:e=>e&&(e.$typeUrl===ResponseException.typeUrl||"string"==typeof e.error),encode:(e,t=p.create())=>(""!==e.error&&t.uint32(10).string(e.error),t),decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n={error:""};for(;o.pos<s;){const e=o.uint32();if(e>>>3==1)n.error=o.string();else o.skipType(7&e)}return n},fromJSON:e=>({error:d(e.error)?String(e.error):""}),toJSON(e){const t={};return void 0!==e.error&&(t.error=e.error),t},fromPartial(e){const t={error:""};return t.error=e.error??"",t},fromProtoMsg:e=>ResponseException.decode(e.value),toProto:e=>ResponseException.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.ResponseException",value:ResponseException.encode(e).finish()})};export const ResponseEcho={typeUrl:"/tendermint.abci.ResponseEcho",is:e=>e&&(e.$typeUrl===ResponseEcho.typeUrl||"string"==typeof e.message),isSDK:e=>e&&(e.$typeUrl===ResponseEcho.typeUrl||"string"==typeof e.message),encode:(e,t=p.create())=>(""!==e.message&&t.uint32(10).string(e.message),t),decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n={message:""};for(;o.pos<s;){const e=o.uint32();if(e>>>3==1)n.message=o.string();else o.skipType(7&e)}return n},fromJSON:e=>({message:d(e.message)?String(e.message):""}),toJSON(e){const t={};return void 0!==e.message&&(t.message=e.message),t},fromPartial(e){const t={message:""};return t.message=e.message??"",t},fromProtoMsg:e=>ResponseEcho.decode(e.value),toProto:e=>ResponseEcho.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.ResponseEcho",value:ResponseEcho.encode(e).finish()})};export const ResponseFlush={typeUrl:"/tendermint.abci.ResponseFlush",is:e=>e&&e.$typeUrl===ResponseFlush.typeUrl,isSDK:e=>e&&e.$typeUrl===ResponseFlush.typeUrl,encode:(e,t=p.create())=>t,decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n={};for(;o.pos<s;){const e=o.uint32();o.skipType(7&e)}return n},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>ResponseFlush.decode(e.value),toProto:e=>ResponseFlush.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.ResponseFlush",value:ResponseFlush.encode(e).finish()})};function A(){return{data:"",version:"",appVersion:BigInt(0),lastBlockHeight:BigInt(0),lastBlockAppHash:new Uint8Array}}export const ResponseInfo={typeUrl:"/tendermint.abci.ResponseInfo",is:e=>e&&(e.$typeUrl===ResponseInfo.typeUrl||"string"==typeof e.data&&"string"==typeof e.version&&"bigint"==typeof e.appVersion&&"bigint"==typeof e.lastBlockHeight&&(e.lastBlockAppHash instanceof Uint8Array||"string"==typeof e.lastBlockAppHash)),isSDK:e=>e&&(e.$typeUrl===ResponseInfo.typeUrl||"string"==typeof e.data&&"string"==typeof e.version&&"bigint"==typeof e.app_version&&"bigint"==typeof e.last_block_height&&(e.last_block_app_hash instanceof Uint8Array||"string"==typeof e.last_block_app_hash)),encode:(e,t=p.create())=>(""!==e.data&&t.uint32(10).string(e.data),""!==e.version&&t.uint32(18).string(e.version),e.appVersion!==BigInt(0)&&t.uint32(24).uint64(e.appVersion),e.lastBlockHeight!==BigInt(0)&&t.uint32(32).int64(e.lastBlockHeight),0!==e.lastBlockAppHash.length&&t.uint32(42).bytes(e.lastBlockAppHash),t),decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n=A();for(;o.pos<s;){const e=o.uint32();switch(e>>>3){case 1:n.data=o.string();break;case 2:n.version=o.string();break;case 3:n.appVersion=o.uint64();break;case 4:n.lastBlockHeight=o.int64();break;case 5:n.lastBlockAppHash=o.bytes();break;default:o.skipType(7&e)}}return n},fromJSON:e=>({data:d(e.data)?String(e.data):"",version:d(e.version)?String(e.version):"",appVersion:d(e.appVersion)?BigInt(e.appVersion.toString()):BigInt(0),lastBlockHeight:d(e.lastBlockHeight)?BigInt(e.lastBlockHeight.toString()):BigInt(0),lastBlockAppHash:d(e.lastBlockAppHash)?h(e.lastBlockAppHash):new Uint8Array}),toJSON(e){const t={};return void 0!==e.data&&(t.data=e.data),void 0!==e.version&&(t.version=e.version),void 0!==e.appVersion&&(t.appVersion=(e.appVersion||BigInt(0)).toString()),void 0!==e.lastBlockHeight&&(t.lastBlockHeight=(e.lastBlockHeight||BigInt(0)).toString()),void 0!==e.lastBlockAppHash&&(t.lastBlockAppHash=u(void 0!==e.lastBlockAppHash?e.lastBlockAppHash:new Uint8Array)),t},fromPartial(e){const t=A();return t.data=e.data??"",t.version=e.version??"",t.appVersion=void 0!==e.appVersion&&null!==e.appVersion?BigInt(e.appVersion.toString()):BigInt(0),t.lastBlockHeight=void 0!==e.lastBlockHeight&&null!==e.lastBlockHeight?BigInt(e.lastBlockHeight.toString()):BigInt(0),t.lastBlockAppHash=e.lastBlockAppHash??new Uint8Array,t},fromProtoMsg:e=>ResponseInfo.decode(e.value),toProto:e=>ResponseInfo.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.ResponseInfo",value:ResponseInfo.encode(e).finish()})};function C(){return{consensusParams:void 0,validators:[],appHash:new Uint8Array}}export const ResponseInitChain={typeUrl:"/tendermint.abci.ResponseInitChain",is:e=>e&&(e.$typeUrl===ResponseInitChain.typeUrl||Array.isArray(e.validators)&&(!e.validators.length||ValidatorUpdate.is(e.validators[0]))&&(e.appHash instanceof Uint8Array||"string"==typeof e.appHash)),isSDK:e=>e&&(e.$typeUrl===ResponseInitChain.typeUrl||Array.isArray(e.validators)&&(!e.validators.length||ValidatorUpdate.isSDK(e.validators[0]))&&(e.app_hash instanceof Uint8Array||"string"==typeof e.app_hash)),encode(e,o=p.create()){void 0!==e.consensusParams&&t.encode(e.consensusParams,o.uint32(10).fork()).ldelim();for(const t of e.validators)ValidatorUpdate.encode(t,o.uint32(18).fork()).ldelim();return 0!==e.appHash.length&&o.uint32(26).bytes(e.appHash),o},decode(e,o){const s=e instanceof a?e:new a(e);let n=void 0===o?s.len:s.pos+o;const i=C();for(;s.pos<n;){const e=s.uint32();switch(e>>>3){case 1:i.consensusParams=t.decode(s,s.uint32());break;case 2:i.validators.push(ValidatorUpdate.decode(s,s.uint32()));break;case 3:i.appHash=s.bytes();break;default:s.skipType(7&e)}}return i},fromJSON:e=>({consensusParams:d(e.consensusParams)?t.fromJSON(e.consensusParams):void 0,validators:Array.isArray(e?.validators)?e.validators.map((e=>ValidatorUpdate.fromJSON(e))):[],appHash:d(e.appHash)?h(e.appHash):new Uint8Array}),toJSON(e){const o={};return void 0!==e.consensusParams&&(o.consensusParams=e.consensusParams?t.toJSON(e.consensusParams):void 0),e.validators?o.validators=e.validators.map((e=>e?ValidatorUpdate.toJSON(e):void 0)):o.validators=[],void 0!==e.appHash&&(o.appHash=u(void 0!==e.appHash?e.appHash:new Uint8Array)),o},fromPartial(e){const o=C();return o.consensusParams=void 0!==e.consensusParams&&null!==e.consensusParams?t.fromPartial(e.consensusParams):void 0,o.validators=e.validators?.map((e=>ValidatorUpdate.fromPartial(e)))||[],o.appHash=e.appHash??new Uint8Array,o},fromProtoMsg:e=>ResponseInitChain.decode(e.value),toProto:e=>ResponseInitChain.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.ResponseInitChain",value:ResponseInitChain.encode(e).finish()})};function E(){return{code:0,log:"",info:"",index:BigInt(0),key:new Uint8Array,value:new Uint8Array,proofOps:void 0,height:BigInt(0),codespace:""}}export const ResponseQuery={typeUrl:"/tendermint.abci.ResponseQuery",is:e=>e&&(e.$typeUrl===ResponseQuery.typeUrl||"number"==typeof e.code&&"string"==typeof e.log&&"string"==typeof e.info&&"bigint"==typeof e.index&&(e.key instanceof Uint8Array||"string"==typeof e.key)&&(e.value instanceof Uint8Array||"string"==typeof e.value)&&"bigint"==typeof e.height&&"string"==typeof e.codespace),isSDK:e=>e&&(e.$typeUrl===ResponseQuery.typeUrl||"number"==typeof e.code&&"string"==typeof e.log&&"string"==typeof e.info&&"bigint"==typeof e.index&&(e.key instanceof Uint8Array||"string"==typeof e.key)&&(e.value instanceof Uint8Array||"string"==typeof e.value)&&"bigint"==typeof e.height&&"string"==typeof e.codespace),encode:(e,t=p.create())=>(0!==e.code&&t.uint32(8).uint32(e.code),""!==e.log&&t.uint32(26).string(e.log),""!==e.info&&t.uint32(34).string(e.info),e.index!==BigInt(0)&&t.uint32(40).int64(e.index),0!==e.key.length&&t.uint32(50).bytes(e.key),0!==e.value.length&&t.uint32(58).bytes(e.value),void 0!==e.proofOps&&o.encode(e.proofOps,t.uint32(66).fork()).ldelim(),e.height!==BigInt(0)&&t.uint32(72).int64(e.height),""!==e.codespace&&t.uint32(82).string(e.codespace),t),decode(e,t){const s=e instanceof a?e:new a(e);let n=void 0===t?s.len:s.pos+t;const i=E();for(;s.pos<n;){const e=s.uint32();switch(e>>>3){case 1:i.code=s.uint32();break;case 3:i.log=s.string();break;case 4:i.info=s.string();break;case 5:i.index=s.int64();break;case 6:i.key=s.bytes();break;case 7:i.value=s.bytes();break;case 8:i.proofOps=o.decode(s,s.uint32());break;case 9:i.height=s.int64();break;case 10:i.codespace=s.string();break;default:s.skipType(7&e)}}return i},fromJSON:e=>({code:d(e.code)?Number(e.code):0,log:d(e.log)?String(e.log):"",info:d(e.info)?String(e.info):"",index:d(e.index)?BigInt(e.index.toString()):BigInt(0),key:d(e.key)?h(e.key):new Uint8Array,value:d(e.value)?h(e.value):new Uint8Array,proofOps:d(e.proofOps)?o.fromJSON(e.proofOps):void 0,height:d(e.height)?BigInt(e.height.toString()):BigInt(0),codespace:d(e.codespace)?String(e.codespace):""}),toJSON(e){const t={};return void 0!==e.code&&(t.code=Math.round(e.code)),void 0!==e.log&&(t.log=e.log),void 0!==e.info&&(t.info=e.info),void 0!==e.index&&(t.index=(e.index||BigInt(0)).toString()),void 0!==e.key&&(t.key=u(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.value&&(t.value=u(void 0!==e.value?e.value:new Uint8Array)),void 0!==e.proofOps&&(t.proofOps=e.proofOps?o.toJSON(e.proofOps):void 0),void 0!==e.height&&(t.height=(e.height||BigInt(0)).toString()),void 0!==e.codespace&&(t.codespace=e.codespace),t},fromPartial(e){const t=E();return t.code=e.code??0,t.log=e.log??"",t.info=e.info??"",t.index=void 0!==e.index&&null!==e.index?BigInt(e.index.toString()):BigInt(0),t.key=e.key??new Uint8Array,t.value=e.value??new Uint8Array,t.proofOps=void 0!==e.proofOps&&null!==e.proofOps?o.fromPartial(e.proofOps):void 0,t.height=void 0!==e.height&&null!==e.height?BigInt(e.height.toString()):BigInt(0),t.codespace=e.codespace??"",t},fromProtoMsg:e=>ResponseQuery.decode(e.value),toProto:e=>ResponseQuery.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.ResponseQuery",value:ResponseQuery.encode(e).finish()})};function N(){return{code:0,data:new Uint8Array,log:"",info:"",gasWanted:BigInt(0),gasUsed:BigInt(0),events:[],codespace:""}}export const ResponseCheckTx={typeUrl:"/tendermint.abci.ResponseCheckTx",is:e=>e&&(e.$typeUrl===ResponseCheckTx.typeUrl||"number"==typeof e.code&&(e.data instanceof Uint8Array||"string"==typeof e.data)&&"string"==typeof e.log&&"string"==typeof e.info&&"bigint"==typeof e.gasWanted&&"bigint"==typeof e.gasUsed&&Array.isArray(e.events)&&(!e.events.length||Event.is(e.events[0]))&&"string"==typeof e.codespace),isSDK:e=>e&&(e.$typeUrl===ResponseCheckTx.typeUrl||"number"==typeof e.code&&(e.data instanceof Uint8Array||"string"==typeof e.data)&&"string"==typeof e.log&&"string"==typeof e.info&&"bigint"==typeof e.gas_wanted&&"bigint"==typeof e.gas_used&&Array.isArray(e.events)&&(!e.events.length||Event.isSDK(e.events[0]))&&"string"==typeof e.codespace),encode(e,t=p.create()){0!==e.code&&t.uint32(8).uint32(e.code),0!==e.data.length&&t.uint32(18).bytes(e.data),""!==e.log&&t.uint32(26).string(e.log),""!==e.info&&t.uint32(34).string(e.info),e.gasWanted!==BigInt(0)&&t.uint32(40).int64(e.gasWanted),e.gasUsed!==BigInt(0)&&t.uint32(48).int64(e.gasUsed);for(const o of e.events)Event.encode(o,t.uint32(58).fork()).ldelim();return""!==e.codespace&&t.uint32(66).string(e.codespace),t},decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n=N();for(;o.pos<s;){const e=o.uint32();switch(e>>>3){case 1:n.code=o.uint32();break;case 2:n.data=o.bytes();break;case 3:n.log=o.string();break;case 4:n.info=o.string();break;case 5:n.gasWanted=o.int64();break;case 6:n.gasUsed=o.int64();break;case 7:n.events.push(Event.decode(o,o.uint32()));break;case 8:n.codespace=o.string();break;default:o.skipType(7&e)}}return n},fromJSON:e=>({code:d(e.code)?Number(e.code):0,data:d(e.data)?h(e.data):new Uint8Array,log:d(e.log)?String(e.log):"",info:d(e.info)?String(e.info):"",gasWanted:d(e.gas_wanted)?BigInt(e.gas_wanted.toString()):BigInt(0),gasUsed:d(e.gas_used)?BigInt(e.gas_used.toString()):BigInt(0),events:Array.isArray(e?.events)?e.events.map((e=>Event.fromJSON(e))):[],codespace:d(e.codespace)?String(e.codespace):""}),toJSON(e){const t={};return void 0!==e.code&&(t.code=Math.round(e.code)),void 0!==e.data&&(t.data=u(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.log&&(t.log=e.log),void 0!==e.info&&(t.info=e.info),void 0!==e.gasWanted&&(t.gas_wanted=(e.gasWanted||BigInt(0)).toString()),void 0!==e.gasUsed&&(t.gas_used=(e.gasUsed||BigInt(0)).toString()),e.events?t.events=e.events.map((e=>e?Event.toJSON(e):void 0)):t.events=[],void 0!==e.codespace&&(t.codespace=e.codespace),t},fromPartial(e){const t=N();return t.code=e.code??0,t.data=e.data??new Uint8Array,t.log=e.log??"",t.info=e.info??"",t.gasWanted=void 0!==e.gasWanted&&null!==e.gasWanted?BigInt(e.gasWanted.toString()):BigInt(0),t.gasUsed=void 0!==e.gasUsed&&null!==e.gasUsed?BigInt(e.gasUsed.toString()):BigInt(0),t.events=e.events?.map((e=>Event.fromPartial(e)))||[],t.codespace=e.codespace??"",t},fromProtoMsg:e=>ResponseCheckTx.decode(e.value),toProto:e=>ResponseCheckTx.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.ResponseCheckTx",value:ResponseCheckTx.encode(e).finish()})};function V(){return{retainHeight:BigInt(0)}}export const ResponseCommit={typeUrl:"/tendermint.abci.ResponseCommit",is:e=>e&&(e.$typeUrl===ResponseCommit.typeUrl||"bigint"==typeof e.retainHeight),isSDK:e=>e&&(e.$typeUrl===ResponseCommit.typeUrl||"bigint"==typeof e.retain_height),encode:(e,t=p.create())=>(e.retainHeight!==BigInt(0)&&t.uint32(24).int64(e.retainHeight),t),decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n=V();for(;o.pos<s;){const e=o.uint32();if(e>>>3==3)n.retainHeight=o.int64();else o.skipType(7&e)}return n},fromJSON:e=>({retainHeight:d(e.retainHeight)?BigInt(e.retainHeight.toString()):BigInt(0)}),toJSON(e){const t={};return void 0!==e.retainHeight&&(t.retainHeight=(e.retainHeight||BigInt(0)).toString()),t},fromPartial(e){const t=V();return t.retainHeight=void 0!==e.retainHeight&&null!==e.retainHeight?BigInt(e.retainHeight.toString()):BigInt(0),t},fromProtoMsg:e=>ResponseCommit.decode(e.value),toProto:e=>ResponseCommit.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.ResponseCommit",value:ResponseCommit.encode(e).finish()})};export const ResponseListSnapshots={typeUrl:"/tendermint.abci.ResponseListSnapshots",is:e=>e&&(e.$typeUrl===ResponseListSnapshots.typeUrl||Array.isArray(e.snapshots)&&(!e.snapshots.length||Snapshot.is(e.snapshots[0]))),isSDK:e=>e&&(e.$typeUrl===ResponseListSnapshots.typeUrl||Array.isArray(e.snapshots)&&(!e.snapshots.length||Snapshot.isSDK(e.snapshots[0]))),encode(e,t=p.create()){for(const o of e.snapshots)Snapshot.encode(o,t.uint32(10).fork()).ldelim();return t},decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n={snapshots:[]};for(;o.pos<s;){const e=o.uint32();if(e>>>3==1)n.snapshots.push(Snapshot.decode(o,o.uint32()));else o.skipType(7&e)}return n},fromJSON:e=>({snapshots:Array.isArray(e?.snapshots)?e.snapshots.map((e=>Snapshot.fromJSON(e))):[]}),toJSON(e){const t={};return e.snapshots?t.snapshots=e.snapshots.map((e=>e?Snapshot.toJSON(e):void 0)):t.snapshots=[],t},fromPartial(e){const t={snapshots:[]};return t.snapshots=e.snapshots?.map((e=>Snapshot.fromPartial(e)))||[],t},fromProtoMsg:e=>ResponseListSnapshots.decode(e.value),toProto:e=>ResponseListSnapshots.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.ResponseListSnapshots",value:ResponseListSnapshots.encode(e).finish()})};export const ResponseOfferSnapshot={typeUrl:"/tendermint.abci.ResponseOfferSnapshot",is:e=>e&&(e.$typeUrl===ResponseOfferSnapshot.typeUrl||d(e.result)),isSDK:e=>e&&(e.$typeUrl===ResponseOfferSnapshot.typeUrl||d(e.result)),encode:(e,t=p.create())=>(0!==e.result&&t.uint32(8).int32(e.result),t),decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n={result:0};for(;o.pos<s;){const e=o.uint32();if(e>>>3==1)n.result=o.int32();else o.skipType(7&e)}return n},fromJSON:e=>({result:d(e.result)?responseOfferSnapshot_ResultFromJSON(e.result):-1}),toJSON(e){const t={};return void 0!==e.result&&(t.result=responseOfferSnapshot_ResultToJSON(e.result)),t},fromPartial(e){const t={result:0};return t.result=e.result??0,t},fromProtoMsg:e=>ResponseOfferSnapshot.decode(e.value),toProto:e=>ResponseOfferSnapshot.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.ResponseOfferSnapshot",value:ResponseOfferSnapshot.encode(e).finish()})};function O(){return{chunk:new Uint8Array}}export const ResponseLoadSnapshotChunk={typeUrl:"/tendermint.abci.ResponseLoadSnapshotChunk",is:e=>e&&(e.$typeUrl===ResponseLoadSnapshotChunk.typeUrl||e.chunk instanceof Uint8Array||"string"==typeof e.chunk),isSDK:e=>e&&(e.$typeUrl===ResponseLoadSnapshotChunk.typeUrl||e.chunk instanceof Uint8Array||"string"==typeof e.chunk),encode:(e,t=p.create())=>(0!==e.chunk.length&&t.uint32(10).bytes(e.chunk),t),decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n=O();for(;o.pos<s;){const e=o.uint32();if(e>>>3==1)n.chunk=o.bytes();else o.skipType(7&e)}return n},fromJSON:e=>({chunk:d(e.chunk)?h(e.chunk):new Uint8Array}),toJSON(e){const t={};return void 0!==e.chunk&&(t.chunk=u(void 0!==e.chunk?e.chunk:new Uint8Array)),t},fromPartial(e){const t=O();return t.chunk=e.chunk??new Uint8Array,t},fromProtoMsg:e=>ResponseLoadSnapshotChunk.decode(e.value),toProto:e=>ResponseLoadSnapshotChunk.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.ResponseLoadSnapshotChunk",value:ResponseLoadSnapshotChunk.encode(e).finish()})};export const ResponseApplySnapshotChunk={typeUrl:"/tendermint.abci.ResponseApplySnapshotChunk",is:e=>e&&(e.$typeUrl===ResponseApplySnapshotChunk.typeUrl||d(e.result)&&Array.isArray(e.refetchChunks)&&(!e.refetchChunks.length||"number"==typeof e.refetchChunks[0])&&Array.isArray(e.rejectSenders)&&(!e.rejectSenders.length||"string"==typeof e.rejectSenders[0])),isSDK:e=>e&&(e.$typeUrl===ResponseApplySnapshotChunk.typeUrl||d(e.result)&&Array.isArray(e.refetch_chunks)&&(!e.refetch_chunks.length||"number"==typeof e.refetch_chunks[0])&&Array.isArray(e.reject_senders)&&(!e.reject_senders.length||"string"==typeof e.reject_senders[0])),encode(e,t=p.create()){0!==e.result&&t.uint32(8).int32(e.result),t.uint32(18).fork();for(const o of e.refetchChunks)t.uint32(o);t.ldelim();for(const o of e.rejectSenders)t.uint32(26).string(o);return t},decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n={result:0,refetchChunks:[],rejectSenders:[]};for(;o.pos<s;){const e=o.uint32();switch(e>>>3){case 1:n.result=o.int32();break;case 2:if(2==(7&e)){const e=o.uint32()+o.pos;for(;o.pos<e;)n.refetchChunks.push(o.uint32())}else n.refetchChunks.push(o.uint32());break;case 3:n.rejectSenders.push(o.string());break;default:o.skipType(7&e)}}return n},fromJSON:e=>({result:d(e.result)?responseApplySnapshotChunk_ResultFromJSON(e.result):-1,refetchChunks:Array.isArray(e?.refetchChunks)?e.refetchChunks.map((e=>Number(e))):[],rejectSenders:Array.isArray(e?.rejectSenders)?e.rejectSenders.map((e=>String(e))):[]}),toJSON(e){const t={};return void 0!==e.result&&(t.result=responseApplySnapshotChunk_ResultToJSON(e.result)),e.refetchChunks?t.refetchChunks=e.refetchChunks.map((e=>Math.round(e))):t.refetchChunks=[],e.rejectSenders?t.rejectSenders=e.rejectSenders.map((e=>e)):t.rejectSenders=[],t},fromPartial(e){const t={result:0,refetchChunks:[],rejectSenders:[]};return t.result=e.result??0,t.refetchChunks=e.refetchChunks?.map((e=>e))||[],t.rejectSenders=e.rejectSenders?.map((e=>e))||[],t},fromProtoMsg:e=>ResponseApplySnapshotChunk.decode(e.value),toProto:e=>ResponseApplySnapshotChunk.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.ResponseApplySnapshotChunk",value:ResponseApplySnapshotChunk.encode(e).finish()})};export const ResponsePrepareProposal={typeUrl:"/tendermint.abci.ResponsePrepareProposal",is:e=>e&&(e.$typeUrl===ResponsePrepareProposal.typeUrl||Array.isArray(e.txs)&&(!e.txs.length||e.txs[0]instanceof Uint8Array||"string"==typeof e.txs[0])),isSDK:e=>e&&(e.$typeUrl===ResponsePrepareProposal.typeUrl||Array.isArray(e.txs)&&(!e.txs.length||e.txs[0]instanceof Uint8Array||"string"==typeof e.txs[0])),encode(e,t=p.create()){for(const o of e.txs)t.uint32(10).bytes(o);return t},decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n={txs:[]};for(;o.pos<s;){const e=o.uint32();if(e>>>3==1)n.txs.push(o.bytes());else o.skipType(7&e)}return n},fromJSON:e=>({txs:Array.isArray(e?.txs)?e.txs.map((e=>h(e))):[]}),toJSON(e){const t={};return e.txs?t.txs=e.txs.map((e=>u(void 0!==e?e:new Uint8Array))):t.txs=[],t},fromPartial(e){const t={txs:[]};return t.txs=e.txs?.map((e=>e))||[],t},fromProtoMsg:e=>ResponsePrepareProposal.decode(e.value),toProto:e=>ResponsePrepareProposal.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.ResponsePrepareProposal",value:ResponsePrepareProposal.encode(e).finish()})};export const ResponseProcessProposal={typeUrl:"/tendermint.abci.ResponseProcessProposal",is:e=>e&&(e.$typeUrl===ResponseProcessProposal.typeUrl||d(e.status)),isSDK:e=>e&&(e.$typeUrl===ResponseProcessProposal.typeUrl||d(e.status)),encode:(e,t=p.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n={status:0};for(;o.pos<s;){const e=o.uint32();if(e>>>3==1)n.status=o.int32();else o.skipType(7&e)}return n},fromJSON:e=>({status:d(e.status)?responseProcessProposal_ProposalStatusFromJSON(e.status):-1}),toJSON(e){const t={};return void 0!==e.status&&(t.status=responseProcessProposal_ProposalStatusToJSON(e.status)),t},fromPartial(e){const t={status:0};return t.status=e.status??0,t},fromProtoMsg:e=>ResponseProcessProposal.decode(e.value),toProto:e=>ResponseProcessProposal.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.ResponseProcessProposal",value:ResponseProcessProposal.encode(e).finish()})};function I(){return{voteExtension:new Uint8Array}}export const ResponseExtendVote={typeUrl:"/tendermint.abci.ResponseExtendVote",is:e=>e&&(e.$typeUrl===ResponseExtendVote.typeUrl||e.voteExtension instanceof Uint8Array||"string"==typeof e.voteExtension),isSDK:e=>e&&(e.$typeUrl===ResponseExtendVote.typeUrl||e.vote_extension instanceof Uint8Array||"string"==typeof e.vote_extension),encode:(e,t=p.create())=>(0!==e.voteExtension.length&&t.uint32(10).bytes(e.voteExtension),t),decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n=I();for(;o.pos<s;){const e=o.uint32();if(e>>>3==1)n.voteExtension=o.bytes();else o.skipType(7&e)}return n},fromJSON:e=>({voteExtension:d(e.voteExtension)?h(e.voteExtension):new Uint8Array}),toJSON(e){const t={};return void 0!==e.voteExtension&&(t.voteExtension=u(void 0!==e.voteExtension?e.voteExtension:new Uint8Array)),t},fromPartial(e){const t=I();return t.voteExtension=e.voteExtension??new Uint8Array,t},fromProtoMsg:e=>ResponseExtendVote.decode(e.value),toProto:e=>ResponseExtendVote.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.ResponseExtendVote",value:ResponseExtendVote.encode(e).finish()})};export const ResponseVerifyVoteExtension={typeUrl:"/tendermint.abci.ResponseVerifyVoteExtension",is:e=>e&&(e.$typeUrl===ResponseVerifyVoteExtension.typeUrl||d(e.status)),isSDK:e=>e&&(e.$typeUrl===ResponseVerifyVoteExtension.typeUrl||d(e.status)),encode:(e,t=p.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n={status:0};for(;o.pos<s;){const e=o.uint32();if(e>>>3==1)n.status=o.int32();else o.skipType(7&e)}return n},fromJSON:e=>({status:d(e.status)?responseVerifyVoteExtension_VerifyStatusFromJSON(e.status):-1}),toJSON(e){const t={};return void 0!==e.status&&(t.status=responseVerifyVoteExtension_VerifyStatusToJSON(e.status)),t},fromPartial(e){const t={status:0};return t.status=e.status??0,t},fromProtoMsg:e=>ResponseVerifyVoteExtension.decode(e.value),toProto:e=>ResponseVerifyVoteExtension.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.ResponseVerifyVoteExtension",value:ResponseVerifyVoteExtension.encode(e).finish()})};function T(){return{events:[],txResults:[],validatorUpdates:[],consensusParamUpdates:void 0,appHash:new Uint8Array}}export const ResponseFinalizeBlock={typeUrl:"/tendermint.abci.ResponseFinalizeBlock",is:e=>e&&(e.$typeUrl===ResponseFinalizeBlock.typeUrl||Array.isArray(e.events)&&(!e.events.length||Event.is(e.events[0]))&&Array.isArray(e.txResults)&&(!e.txResults.length||ExecTxResult.is(e.txResults[0]))&&Array.isArray(e.validatorUpdates)&&(!e.validatorUpdates.length||ValidatorUpdate.is(e.validatorUpdates[0]))&&(e.appHash instanceof Uint8Array||"string"==typeof e.appHash)),isSDK:e=>e&&(e.$typeUrl===ResponseFinalizeBlock.typeUrl||Array.isArray(e.events)&&(!e.events.length||Event.isSDK(e.events[0]))&&Array.isArray(e.tx_results)&&(!e.tx_results.length||ExecTxResult.isSDK(e.tx_results[0]))&&Array.isArray(e.validator_updates)&&(!e.validator_updates.length||ValidatorUpdate.isSDK(e.validator_updates[0]))&&(e.app_hash instanceof Uint8Array||"string"==typeof e.app_hash)),encode(e,o=p.create()){for(const t of e.events)Event.encode(t,o.uint32(10).fork()).ldelim();for(const t of e.txResults)ExecTxResult.encode(t,o.uint32(18).fork()).ldelim();for(const t of e.validatorUpdates)ValidatorUpdate.encode(t,o.uint32(26).fork()).ldelim();return void 0!==e.consensusParamUpdates&&t.encode(e.consensusParamUpdates,o.uint32(34).fork()).ldelim(),0!==e.appHash.length&&o.uint32(42).bytes(e.appHash),o},decode(e,o){const s=e instanceof a?e:new a(e);let n=void 0===o?s.len:s.pos+o;const i=T();for(;s.pos<n;){const e=s.uint32();switch(e>>>3){case 1:i.events.push(Event.decode(s,s.uint32()));break;case 2:i.txResults.push(ExecTxResult.decode(s,s.uint32()));break;case 3:i.validatorUpdates.push(ValidatorUpdate.decode(s,s.uint32()));break;case 4:i.consensusParamUpdates=t.decode(s,s.uint32());break;case 5:i.appHash=s.bytes();break;default:s.skipType(7&e)}}return i},fromJSON:e=>({events:Array.isArray(e?.events)?e.events.map((e=>Event.fromJSON(e))):[],txResults:Array.isArray(e?.txResults)?e.txResults.map((e=>ExecTxResult.fromJSON(e))):[],validatorUpdates:Array.isArray(e?.validatorUpdates)?e.validatorUpdates.map((e=>ValidatorUpdate.fromJSON(e))):[],consensusParamUpdates:d(e.consensusParamUpdates)?t.fromJSON(e.consensusParamUpdates):void 0,appHash:d(e.appHash)?h(e.appHash):new Uint8Array}),toJSON(e){const o={};return e.events?o.events=e.events.map((e=>e?Event.toJSON(e):void 0)):o.events=[],e.txResults?o.txResults=e.txResults.map((e=>e?ExecTxResult.toJSON(e):void 0)):o.txResults=[],e.validatorUpdates?o.validatorUpdates=e.validatorUpdates.map((e=>e?ValidatorUpdate.toJSON(e):void 0)):o.validatorUpdates=[],void 0!==e.consensusParamUpdates&&(o.consensusParamUpdates=e.consensusParamUpdates?t.toJSON(e.consensusParamUpdates):void 0),void 0!==e.appHash&&(o.appHash=u(void 0!==e.appHash?e.appHash:new Uint8Array)),o},fromPartial(e){const o=T();return o.events=e.events?.map((e=>Event.fromPartial(e)))||[],o.txResults=e.txResults?.map((e=>ExecTxResult.fromPartial(e)))||[],o.validatorUpdates=e.validatorUpdates?.map((e=>ValidatorUpdate.fromPartial(e)))||[],o.consensusParamUpdates=void 0!==e.consensusParamUpdates&&null!==e.consensusParamUpdates?t.fromPartial(e.consensusParamUpdates):void 0,o.appHash=e.appHash??new Uint8Array,o},fromProtoMsg:e=>ResponseFinalizeBlock.decode(e.value),toProto:e=>ResponseFinalizeBlock.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.ResponseFinalizeBlock",value:ResponseFinalizeBlock.encode(e).finish()})};export const CommitInfo={typeUrl:"/tendermint.abci.CommitInfo",is:e=>e&&(e.$typeUrl===CommitInfo.typeUrl||"number"==typeof e.round&&Array.isArray(e.votes)&&(!e.votes.length||VoteInfo.is(e.votes[0]))),isSDK:e=>e&&(e.$typeUrl===CommitInfo.typeUrl||"number"==typeof e.round&&Array.isArray(e.votes)&&(!e.votes.length||VoteInfo.isSDK(e.votes[0]))),encode(e,t=p.create()){0!==e.round&&t.uint32(8).int32(e.round);for(const o of e.votes)VoteInfo.encode(o,t.uint32(18).fork()).ldelim();return t},decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n={round:0,votes:[]};for(;o.pos<s;){const e=o.uint32();switch(e>>>3){case 1:n.round=o.int32();break;case 2:n.votes.push(VoteInfo.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return n},fromJSON:e=>({round:d(e.round)?Number(e.round):0,votes:Array.isArray(e?.votes)?e.votes.map((e=>VoteInfo.fromJSON(e))):[]}),toJSON(e){const t={};return void 0!==e.round&&(t.round=Math.round(e.round)),e.votes?t.votes=e.votes.map((e=>e?VoteInfo.toJSON(e):void 0)):t.votes=[],t},fromPartial(e){const t={round:0,votes:[]};return t.round=e.round??0,t.votes=e.votes?.map((e=>VoteInfo.fromPartial(e)))||[],t},fromProtoMsg:e=>CommitInfo.decode(e.value),toProto:e=>CommitInfo.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.CommitInfo",value:CommitInfo.encode(e).finish()})};export const ExtendedCommitInfo={typeUrl:"/tendermint.abci.ExtendedCommitInfo",is:e=>e&&(e.$typeUrl===ExtendedCommitInfo.typeUrl||"number"==typeof e.round&&Array.isArray(e.votes)&&(!e.votes.length||ExtendedVoteInfo.is(e.votes[0]))),isSDK:e=>e&&(e.$typeUrl===ExtendedCommitInfo.typeUrl||"number"==typeof e.round&&Array.isArray(e.votes)&&(!e.votes.length||ExtendedVoteInfo.isSDK(e.votes[0]))),encode(e,t=p.create()){0!==e.round&&t.uint32(8).int32(e.round);for(const o of e.votes)ExtendedVoteInfo.encode(o,t.uint32(18).fork()).ldelim();return t},decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n={round:0,votes:[]};for(;o.pos<s;){const e=o.uint32();switch(e>>>3){case 1:n.round=o.int32();break;case 2:n.votes.push(ExtendedVoteInfo.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return n},fromJSON:e=>({round:d(e.round)?Number(e.round):0,votes:Array.isArray(e?.votes)?e.votes.map((e=>ExtendedVoteInfo.fromJSON(e))):[]}),toJSON(e){const t={};return void 0!==e.round&&(t.round=Math.round(e.round)),e.votes?t.votes=e.votes.map((e=>e?ExtendedVoteInfo.toJSON(e):void 0)):t.votes=[],t},fromPartial(e){const t={round:0,votes:[]};return t.round=e.round??0,t.votes=e.votes?.map((e=>ExtendedVoteInfo.fromPartial(e)))||[],t},fromProtoMsg:e=>ExtendedCommitInfo.decode(e.value),toProto:e=>ExtendedCommitInfo.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.ExtendedCommitInfo",value:ExtendedCommitInfo.encode(e).finish()})};export const Event={typeUrl:"/tendermint.abci.Event",is:e=>e&&(e.$typeUrl===Event.typeUrl||"string"==typeof e.type&&Array.isArray(e.attributes)&&(!e.attributes.length||EventAttribute.is(e.attributes[0]))),isSDK:e=>e&&(e.$typeUrl===Event.typeUrl||"string"==typeof e.type&&Array.isArray(e.attributes)&&(!e.attributes.length||EventAttribute.isSDK(e.attributes[0]))),encode(e,t=p.create()){""!==e.type&&t.uint32(10).string(e.type);for(const o of e.attributes)EventAttribute.encode(o,t.uint32(18).fork()).ldelim();return t},decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n={type:"",attributes:[]};for(;o.pos<s;){const e=o.uint32();switch(e>>>3){case 1:n.type=o.string();break;case 2:n.attributes.push(EventAttribute.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return n},fromJSON:e=>({type:d(e.type)?String(e.type):"",attributes:Array.isArray(e?.attributes)?e.attributes.map((e=>EventAttribute.fromJSON(e))):[]}),toJSON(e){const t={};return void 0!==e.type&&(t.type=e.type),e.attributes?t.attributes=e.attributes.map((e=>e?EventAttribute.toJSON(e):void 0)):t.attributes=[],t},fromPartial(e){const t={type:"",attributes:[]};return t.type=e.type??"",t.attributes=e.attributes?.map((e=>EventAttribute.fromPartial(e)))||[],t},fromProtoMsg:e=>Event.decode(e.value),toProto:e=>Event.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.Event",value:Event.encode(e).finish()})};export const EventAttribute={typeUrl:"/tendermint.abci.EventAttribute",is:e=>e&&(e.$typeUrl===EventAttribute.typeUrl||"string"==typeof e.key&&"string"==typeof e.value&&"boolean"==typeof e.index),isSDK:e=>e&&(e.$typeUrl===EventAttribute.typeUrl||"string"==typeof e.key&&"string"==typeof e.value&&"boolean"==typeof e.index),encode:(e,t=p.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),!0===e.index&&t.uint32(24).bool(e.index),t),decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n={key:"",value:"",index:!1};for(;o.pos<s;){const e=o.uint32();switch(e>>>3){case 1:n.key=o.string();break;case 2:n.value=o.string();break;case 3:n.index=o.bool();break;default:o.skipType(7&e)}}return n},fromJSON:e=>({key:d(e.key)?String(e.key):"",value:d(e.value)?String(e.value):"",index:!!d(e.index)&&Boolean(e.index)}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),void 0!==e.index&&(t.index=e.index),t},fromPartial(e){const t={key:"",value:"",index:!1};return t.key=e.key??"",t.value=e.value??"",t.index=e.index??!1,t},fromProtoMsg:e=>EventAttribute.decode(e.value),toProto:e=>EventAttribute.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.EventAttribute",value:EventAttribute.encode(e).finish()})};function B(){return{code:0,data:new Uint8Array,log:"",info:"",gasWanted:BigInt(0),gasUsed:BigInt(0),events:[],codespace:""}}export const ExecTxResult={typeUrl:"/tendermint.abci.ExecTxResult",is:e=>e&&(e.$typeUrl===ExecTxResult.typeUrl||"number"==typeof e.code&&(e.data instanceof Uint8Array||"string"==typeof e.data)&&"string"==typeof e.log&&"string"==typeof e.info&&"bigint"==typeof e.gasWanted&&"bigint"==typeof e.gasUsed&&Array.isArray(e.events)&&(!e.events.length||Event.is(e.events[0]))&&"string"==typeof e.codespace),isSDK:e=>e&&(e.$typeUrl===ExecTxResult.typeUrl||"number"==typeof e.code&&(e.data instanceof Uint8Array||"string"==typeof e.data)&&"string"==typeof e.log&&"string"==typeof e.info&&"bigint"==typeof e.gas_wanted&&"bigint"==typeof e.gas_used&&Array.isArray(e.events)&&(!e.events.length||Event.isSDK(e.events[0]))&&"string"==typeof e.codespace),encode(e,t=p.create()){0!==e.code&&t.uint32(8).uint32(e.code),0!==e.data.length&&t.uint32(18).bytes(e.data),""!==e.log&&t.uint32(26).string(e.log),""!==e.info&&t.uint32(34).string(e.info),e.gasWanted!==BigInt(0)&&t.uint32(40).int64(e.gasWanted),e.gasUsed!==BigInt(0)&&t.uint32(48).int64(e.gasUsed);for(const o of e.events)Event.encode(o,t.uint32(58).fork()).ldelim();return""!==e.codespace&&t.uint32(66).string(e.codespace),t},decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n=B();for(;o.pos<s;){const e=o.uint32();switch(e>>>3){case 1:n.code=o.uint32();break;case 2:n.data=o.bytes();break;case 3:n.log=o.string();break;case 4:n.info=o.string();break;case 5:n.gasWanted=o.int64();break;case 6:n.gasUsed=o.int64();break;case 7:n.events.push(Event.decode(o,o.uint32()));break;case 8:n.codespace=o.string();break;default:o.skipType(7&e)}}return n},fromJSON:e=>({code:d(e.code)?Number(e.code):0,data:d(e.data)?h(e.data):new Uint8Array,log:d(e.log)?String(e.log):"",info:d(e.info)?String(e.info):"",gasWanted:d(e.gas_wanted)?BigInt(e.gas_wanted.toString()):BigInt(0),gasUsed:d(e.gas_used)?BigInt(e.gas_used.toString()):BigInt(0),events:Array.isArray(e?.events)?e.events.map((e=>Event.fromJSON(e))):[],codespace:d(e.codespace)?String(e.codespace):""}),toJSON(e){const t={};return void 0!==e.code&&(t.code=Math.round(e.code)),void 0!==e.data&&(t.data=u(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.log&&(t.log=e.log),void 0!==e.info&&(t.info=e.info),void 0!==e.gasWanted&&(t.gas_wanted=(e.gasWanted||BigInt(0)).toString()),void 0!==e.gasUsed&&(t.gas_used=(e.gasUsed||BigInt(0)).toString()),e.events?t.events=e.events.map((e=>e?Event.toJSON(e):void 0)):t.events=[],void 0!==e.codespace&&(t.codespace=e.codespace),t},fromPartial(e){const t=B();return t.code=e.code??0,t.data=e.data??new Uint8Array,t.log=e.log??"",t.info=e.info??"",t.gasWanted=void 0!==e.gasWanted&&null!==e.gasWanted?BigInt(e.gasWanted.toString()):BigInt(0),t.gasUsed=void 0!==e.gasUsed&&null!==e.gasUsed?BigInt(e.gasUsed.toString()):BigInt(0),t.events=e.events?.map((e=>Event.fromPartial(e)))||[],t.codespace=e.codespace??"",t},fromProtoMsg:e=>ExecTxResult.decode(e.value),toProto:e=>ExecTxResult.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.ExecTxResult",value:ExecTxResult.encode(e).finish()})};function w(){return{height:BigInt(0),index:0,tx:new Uint8Array,result:ExecTxResult.fromPartial({})}}export const TxResult={typeUrl:"/tendermint.abci.TxResult",is:e=>e&&(e.$typeUrl===TxResult.typeUrl||"bigint"==typeof e.height&&"number"==typeof e.index&&(e.tx instanceof Uint8Array||"string"==typeof e.tx)&&ExecTxResult.is(e.result)),isSDK:e=>e&&(e.$typeUrl===TxResult.typeUrl||"bigint"==typeof e.height&&"number"==typeof e.index&&(e.tx instanceof Uint8Array||"string"==typeof e.tx)&&ExecTxResult.isSDK(e.result)),encode:(e,t=p.create())=>(e.height!==BigInt(0)&&t.uint32(8).int64(e.height),0!==e.index&&t.uint32(16).uint32(e.index),0!==e.tx.length&&t.uint32(26).bytes(e.tx),void 0!==e.result&&ExecTxResult.encode(e.result,t.uint32(34).fork()).ldelim(),t),decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n=w();for(;o.pos<s;){const e=o.uint32();switch(e>>>3){case 1:n.height=o.int64();break;case 2:n.index=o.uint32();break;case 3:n.tx=o.bytes();break;case 4:n.result=ExecTxResult.decode(o,o.uint32());break;default:o.skipType(7&e)}}return n},fromJSON:e=>({height:d(e.height)?BigInt(e.height.toString()):BigInt(0),index:d(e.index)?Number(e.index):0,tx:d(e.tx)?h(e.tx):new Uint8Array,result:d(e.result)?ExecTxResult.fromJSON(e.result):void 0}),toJSON(e){const t={};return void 0!==e.height&&(t.height=(e.height||BigInt(0)).toString()),void 0!==e.index&&(t.index=Math.round(e.index)),void 0!==e.tx&&(t.tx=u(void 0!==e.tx?e.tx:new Uint8Array)),void 0!==e.result&&(t.result=e.result?ExecTxResult.toJSON(e.result):void 0),t},fromPartial(e){const t=w();return t.height=void 0!==e.height&&null!==e.height?BigInt(e.height.toString()):BigInt(0),t.index=e.index??0,t.tx=e.tx??new Uint8Array,t.result=void 0!==e.result&&null!==e.result?ExecTxResult.fromPartial(e.result):void 0,t},fromProtoMsg:e=>TxResult.decode(e.value),toProto:e=>TxResult.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.TxResult",value:TxResult.encode(e).finish()})};function J(){return{address:new Uint8Array,power:BigInt(0)}}export const Validator={typeUrl:"/tendermint.abci.Validator",is:e=>e&&(e.$typeUrl===Validator.typeUrl||(e.address instanceof Uint8Array||"string"==typeof e.address)&&"bigint"==typeof e.power),isSDK:e=>e&&(e.$typeUrl===Validator.typeUrl||(e.address instanceof Uint8Array||"string"==typeof e.address)&&"bigint"==typeof e.power),encode:(e,t=p.create())=>(0!==e.address.length&&t.uint32(10).bytes(e.address),e.power!==BigInt(0)&&t.uint32(24).int64(e.power),t),decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n=J();for(;o.pos<s;){const e=o.uint32();switch(e>>>3){case 1:n.address=o.bytes();break;case 3:n.power=o.int64();break;default:o.skipType(7&e)}}return n},fromJSON:e=>({address:d(e.address)?h(e.address):new Uint8Array,power:d(e.power)?BigInt(e.power.toString()):BigInt(0)}),toJSON(e){const t={};return void 0!==e.address&&(t.address=u(void 0!==e.address?e.address:new Uint8Array)),void 0!==e.power&&(t.power=(e.power||BigInt(0)).toString()),t},fromPartial(e){const t=J();return t.address=e.address??new Uint8Array,t.power=void 0!==e.power&&null!==e.power?BigInt(e.power.toString()):BigInt(0),t},fromProtoMsg:e=>Validator.decode(e.value),toProto:e=>Validator.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.Validator",value:Validator.encode(e).finish()})};function q(){return{pubKey:s.fromPartial({}),power:BigInt(0)}}export const ValidatorUpdate={typeUrl:"/tendermint.abci.ValidatorUpdate",is:e=>e&&(e.$typeUrl===ValidatorUpdate.typeUrl||s.is(e.pubKey)&&"bigint"==typeof e.power),isSDK:e=>e&&(e.$typeUrl===ValidatorUpdate.typeUrl||s.isSDK(e.pub_key)&&"bigint"==typeof e.power),encode:(e,t=p.create())=>(void 0!==e.pubKey&&s.encode(e.pubKey,t.uint32(10).fork()).ldelim(),e.power!==BigInt(0)&&t.uint32(16).int64(e.power),t),decode(e,t){const o=e instanceof a?e:new a(e);let n=void 0===t?o.len:o.pos+t;const i=q();for(;o.pos<n;){const e=o.uint32();switch(e>>>3){case 1:i.pubKey=s.decode(o,o.uint32());break;case 2:i.power=o.int64();break;default:o.skipType(7&e)}}return i},fromJSON:e=>({pubKey:d(e.pubKey)?s.fromJSON(e.pubKey):void 0,power:d(e.power)?BigInt(e.power.toString()):BigInt(0)}),toJSON(e){const t={};return void 0!==e.pubKey&&(t.pubKey=e.pubKey?s.toJSON(e.pubKey):void 0),void 0!==e.power&&(t.power=(e.power||BigInt(0)).toString()),t},fromPartial(e){const t=q();return t.pubKey=void 0!==e.pubKey&&null!==e.pubKey?s.fromPartial(e.pubKey):void 0,t.power=void 0!==e.power&&null!==e.power?BigInt(e.power.toString()):BigInt(0),t},fromProtoMsg:e=>ValidatorUpdate.decode(e.value),toProto:e=>ValidatorUpdate.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.ValidatorUpdate",value:ValidatorUpdate.encode(e).finish()})};function _(){return{validator:Validator.fromPartial({}),blockIdFlag:0}}export const VoteInfo={typeUrl:"/tendermint.abci.VoteInfo",is:e=>e&&(e.$typeUrl===VoteInfo.typeUrl||Validator.is(e.validator)&&d(e.blockIdFlag)),isSDK:e=>e&&(e.$typeUrl===VoteInfo.typeUrl||Validator.isSDK(e.validator)&&d(e.block_id_flag)),encode:(e,t=p.create())=>(void 0!==e.validator&&Validator.encode(e.validator,t.uint32(10).fork()).ldelim(),0!==e.blockIdFlag&&t.uint32(24).int32(e.blockIdFlag),t),decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n=_();for(;o.pos<s;){const e=o.uint32();switch(e>>>3){case 1:n.validator=Validator.decode(o,o.uint32());break;case 3:n.blockIdFlag=o.int32();break;default:o.skipType(7&e)}}return n},fromJSON:e=>({validator:d(e.validator)?Validator.fromJSON(e.validator):void 0,blockIdFlag:d(e.blockIdFlag)?i(e.blockIdFlag):-1}),toJSON(e){const t={};return void 0!==e.validator&&(t.validator=e.validator?Validator.toJSON(e.validator):void 0),void 0!==e.blockIdFlag&&(t.blockIdFlag=r(e.blockIdFlag)),t},fromPartial(e){const t=_();return t.validator=void 0!==e.validator&&null!==e.validator?Validator.fromPartial(e.validator):void 0,t.blockIdFlag=e.blockIdFlag??0,t},fromProtoMsg:e=>VoteInfo.decode(e.value),toProto:e=>VoteInfo.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.VoteInfo",value:VoteInfo.encode(e).finish()})};function H(){return{validator:Validator.fromPartial({}),voteExtension:new Uint8Array,extensionSignature:new Uint8Array,blockIdFlag:0}}export const ExtendedVoteInfo={typeUrl:"/tendermint.abci.ExtendedVoteInfo",is:e=>e&&(e.$typeUrl===ExtendedVoteInfo.typeUrl||Validator.is(e.validator)&&(e.voteExtension instanceof Uint8Array||"string"==typeof e.voteExtension)&&(e.extensionSignature instanceof Uint8Array||"string"==typeof e.extensionSignature)&&d(e.blockIdFlag)),isSDK:e=>e&&(e.$typeUrl===ExtendedVoteInfo.typeUrl||Validator.isSDK(e.validator)&&(e.vote_extension instanceof Uint8Array||"string"==typeof e.vote_extension)&&(e.extension_signature instanceof Uint8Array||"string"==typeof e.extension_signature)&&d(e.block_id_flag)),encode:(e,t=p.create())=>(void 0!==e.validator&&Validator.encode(e.validator,t.uint32(10).fork()).ldelim(),0!==e.voteExtension.length&&t.uint32(26).bytes(e.voteExtension),0!==e.extensionSignature.length&&t.uint32(34).bytes(e.extensionSignature),0!==e.blockIdFlag&&t.uint32(40).int32(e.blockIdFlag),t),decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n=H();for(;o.pos<s;){const e=o.uint32();switch(e>>>3){case 1:n.validator=Validator.decode(o,o.uint32());break;case 3:n.voteExtension=o.bytes();break;case 4:n.extensionSignature=o.bytes();break;case 5:n.blockIdFlag=o.int32();break;default:o.skipType(7&e)}}return n},fromJSON:e=>({validator:d(e.validator)?Validator.fromJSON(e.validator):void 0,voteExtension:d(e.voteExtension)?h(e.voteExtension):new Uint8Array,extensionSignature:d(e.extensionSignature)?h(e.extensionSignature):new Uint8Array,blockIdFlag:d(e.blockIdFlag)?i(e.blockIdFlag):-1}),toJSON(e){const t={};return void 0!==e.validator&&(t.validator=e.validator?Validator.toJSON(e.validator):void 0),void 0!==e.voteExtension&&(t.voteExtension=u(void 0!==e.voteExtension?e.voteExtension:new Uint8Array)),void 0!==e.extensionSignature&&(t.extensionSignature=u(void 0!==e.extensionSignature?e.extensionSignature:new Uint8Array)),void 0!==e.blockIdFlag&&(t.blockIdFlag=r(e.blockIdFlag)),t},fromPartial(e){const t=H();return t.validator=void 0!==e.validator&&null!==e.validator?Validator.fromPartial(e.validator):void 0,t.voteExtension=e.voteExtension??new Uint8Array,t.extensionSignature=e.extensionSignature??new Uint8Array,t.blockIdFlag=e.blockIdFlag??0,t},fromProtoMsg:e=>ExtendedVoteInfo.decode(e.value),toProto:e=>ExtendedVoteInfo.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.ExtendedVoteInfo",value:ExtendedVoteInfo.encode(e).finish()})};function M(){return{type:0,validator:Validator.fromPartial({}),height:BigInt(0),time:e.fromPartial({}),totalVotingPower:BigInt(0)}}export const Misbehavior={typeUrl:"/tendermint.abci.Misbehavior",is:t=>t&&(t.$typeUrl===Misbehavior.typeUrl||d(t.type)&&Validator.is(t.validator)&&"bigint"==typeof t.height&&e.is(t.time)&&"bigint"==typeof t.totalVotingPower),isSDK:t=>t&&(t.$typeUrl===Misbehavior.typeUrl||d(t.type)&&Validator.isSDK(t.validator)&&"bigint"==typeof t.height&&e.isSDK(t.time)&&"bigint"==typeof t.total_voting_power),encode:(t,o=p.create())=>(0!==t.type&&o.uint32(8).int32(t.type),void 0!==t.validator&&Validator.encode(t.validator,o.uint32(18).fork()).ldelim(),t.height!==BigInt(0)&&o.uint32(24).int64(t.height),void 0!==t.time&&e.encode(t.time,o.uint32(34).fork()).ldelim(),t.totalVotingPower!==BigInt(0)&&o.uint32(40).int64(t.totalVotingPower),o),decode(t,o){const s=t instanceof a?t:new a(t);let n=void 0===o?s.len:s.pos+o;const i=M();for(;s.pos<n;){const t=s.uint32();switch(t>>>3){case 1:i.type=s.int32();break;case 2:i.validator=Validator.decode(s,s.uint32());break;case 3:i.height=s.int64();break;case 4:i.time=e.decode(s,s.uint32());break;case 5:i.totalVotingPower=s.int64();break;default:s.skipType(7&t)}}return i},fromJSON:e=>({type:d(e.type)?misbehaviorTypeFromJSON(e.type):-1,validator:d(e.validator)?Validator.fromJSON(e.validator):void 0,height:d(e.height)?BigInt(e.height.toString()):BigInt(0),time:d(e.time)?l(e.time):void 0,totalVotingPower:d(e.totalVotingPower)?BigInt(e.totalVotingPower.toString()):BigInt(0)}),toJSON(e){const t={};return void 0!==e.type&&(t.type=misbehaviorTypeToJSON(e.type)),void 0!==e.validator&&(t.validator=e.validator?Validator.toJSON(e.validator):void 0),void 0!==e.height&&(t.height=(e.height||BigInt(0)).toString()),void 0!==e.time&&(t.time=c(e.time).toISOString()),void 0!==e.totalVotingPower&&(t.totalVotingPower=(e.totalVotingPower||BigInt(0)).toString()),t},fromPartial(t){const o=M();return o.type=t.type??0,o.validator=void 0!==t.validator&&null!==t.validator?Validator.fromPartial(t.validator):void 0,o.height=void 0!==t.height&&null!==t.height?BigInt(t.height.toString()):BigInt(0),o.time=void 0!==t.time&&null!==t.time?e.fromPartial(t.time):void 0,o.totalVotingPower=void 0!==t.totalVotingPower&&null!==t.totalVotingPower?BigInt(t.totalVotingPower.toString()):BigInt(0),o},fromProtoMsg:e=>Misbehavior.decode(e.value),toProto:e=>Misbehavior.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.Misbehavior",value:Misbehavior.encode(e).finish()})};function K(){return{height:BigInt(0),format:0,chunks:0,hash:new Uint8Array,metadata:new Uint8Array}}export const Snapshot={typeUrl:"/tendermint.abci.Snapshot",is:e=>e&&(e.$typeUrl===Snapshot.typeUrl||"bigint"==typeof e.height&&"number"==typeof e.format&&"number"==typeof e.chunks&&(e.hash instanceof Uint8Array||"string"==typeof e.hash)&&(e.metadata instanceof Uint8Array||"string"==typeof e.metadata)),isSDK:e=>e&&(e.$typeUrl===Snapshot.typeUrl||"bigint"==typeof e.height&&"number"==typeof e.format&&"number"==typeof e.chunks&&(e.hash instanceof Uint8Array||"string"==typeof e.hash)&&(e.metadata instanceof Uint8Array||"string"==typeof e.metadata)),encode:(e,t=p.create())=>(e.height!==BigInt(0)&&t.uint32(8).uint64(e.height),0!==e.format&&t.uint32(16).uint32(e.format),0!==e.chunks&&t.uint32(24).uint32(e.chunks),0!==e.hash.length&&t.uint32(34).bytes(e.hash),0!==e.metadata.length&&t.uint32(42).bytes(e.metadata),t),decode(e,t){const o=e instanceof a?e:new a(e);let s=void 0===t?o.len:o.pos+t;const n=K();for(;o.pos<s;){const e=o.uint32();switch(e>>>3){case 1:n.height=o.uint64();break;case 2:n.format=o.uint32();break;case 3:n.chunks=o.uint32();break;case 4:n.hash=o.bytes();break;case 5:n.metadata=o.bytes();break;default:o.skipType(7&e)}}return n},fromJSON:e=>({height:d(e.height)?BigInt(e.height.toString()):BigInt(0),format:d(e.format)?Number(e.format):0,chunks:d(e.chunks)?Number(e.chunks):0,hash:d(e.hash)?h(e.hash):new Uint8Array,metadata:d(e.metadata)?h(e.metadata):new Uint8Array}),toJSON(e){const t={};return void 0!==e.height&&(t.height=(e.height||BigInt(0)).toString()),void 0!==e.format&&(t.format=Math.round(e.format)),void 0!==e.chunks&&(t.chunks=Math.round(e.chunks)),void 0!==e.hash&&(t.hash=u(void 0!==e.hash?e.hash:new Uint8Array)),void 0!==e.metadata&&(t.metadata=u(void 0!==e.metadata?e.metadata:new Uint8Array)),t},fromPartial(e){const t=K();return t.height=void 0!==e.height&&null!==e.height?BigInt(e.height.toString()):BigInt(0),t.format=e.format??0,t.chunks=e.chunks??0,t.hash=e.hash??new Uint8Array,t.metadata=e.metadata??new Uint8Array,t},fromProtoMsg:e=>Snapshot.decode(e.value),toProto:e=>Snapshot.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.Snapshot",value:Snapshot.encode(e).finish()})};
|
|
1
|
+
"use strict";import{Timestamp as f}from"../../google/protobuf/timestamp.js";import{ConsensusParams as h}from"../types/params.js";import{ProofOps as S}from"../crypto/proof.js";import{PublicKey as y}from"../crypto/keys.js";import{blockIDFlagFromJSON as x,blockIDFlagToJSON as m}from"../types/validator.js";import{BinaryReader as a,BinaryWriter as d}from"../../binary.js";import{isSet as i,fromJsonTimestamp as c,fromTimestamp as R}from"../../helpers.js";import"../../json-safe.js";import{decodeBase64 as p}from"@endo/base64";import{encodeBase64 as u}from"@endo/base64";export var CheckTxType=(o=>(o[o.NEW=0]="NEW",o[o.RECHECK=1]="RECHECK",o[o.UNRECOGNIZED=-1]="UNRECOGNIZED",o))(CheckTxType||{});export const CheckTxTypeSDKType=CheckTxType;export function checkTxTypeFromJSON(e){switch(e){case 0:case"NEW":return 0;case 1:case"RECHECK":return 1;case-1:case"UNRECOGNIZED":default:return-1}}export function checkTxTypeToJSON(e){switch(e){case 0:return"NEW";case 1:return"RECHECK";case-1:default:return"UNRECOGNIZED"}}export var ResponseOfferSnapshot_Result=(l=>(l[l.UNKNOWN=0]="UNKNOWN",l[l.ACCEPT=1]="ACCEPT",l[l.ABORT=2]="ABORT",l[l.REJECT=3]="REJECT",l[l.REJECT_FORMAT=4]="REJECT_FORMAT",l[l.REJECT_SENDER=5]="REJECT_SENDER",l[l.UNRECOGNIZED=-1]="UNRECOGNIZED",l))(ResponseOfferSnapshot_Result||{});export const ResponseOfferSnapshot_ResultSDKType=ResponseOfferSnapshot_Result;export function responseOfferSnapshot_ResultFromJSON(e){switch(e){case 0:case"UNKNOWN":return 0;case 1:case"ACCEPT":return 1;case 2:case"ABORT":return 2;case 3:case"REJECT":return 3;case 4:case"REJECT_FORMAT":return 4;case 5:case"REJECT_SENDER":return 5;case-1:case"UNRECOGNIZED":default:return-1}}export function responseOfferSnapshot_ResultToJSON(e){switch(e){case 0:return"UNKNOWN";case 1:return"ACCEPT";case 2:return"ABORT";case 3:return"REJECT";case 4:return"REJECT_FORMAT";case 5:return"REJECT_SENDER";case-1:default:return"UNRECOGNIZED"}}export var ResponseApplySnapshotChunk_Result=(l=>(l[l.UNKNOWN=0]="UNKNOWN",l[l.ACCEPT=1]="ACCEPT",l[l.ABORT=2]="ABORT",l[l.RETRY=3]="RETRY",l[l.RETRY_SNAPSHOT=4]="RETRY_SNAPSHOT",l[l.REJECT_SNAPSHOT=5]="REJECT_SNAPSHOT",l[l.UNRECOGNIZED=-1]="UNRECOGNIZED",l))(ResponseApplySnapshotChunk_Result||{});export const ResponseApplySnapshotChunk_ResultSDKType=ResponseApplySnapshotChunk_Result;export function responseApplySnapshotChunk_ResultFromJSON(e){switch(e){case 0:case"UNKNOWN":return 0;case 1:case"ACCEPT":return 1;case 2:case"ABORT":return 2;case 3:case"RETRY":return 3;case 4:case"RETRY_SNAPSHOT":return 4;case 5:case"REJECT_SNAPSHOT":return 5;case-1:case"UNRECOGNIZED":default:return-1}}export function responseApplySnapshotChunk_ResultToJSON(e){switch(e){case 0:return"UNKNOWN";case 1:return"ACCEPT";case 2:return"ABORT";case 3:return"RETRY";case 4:return"RETRY_SNAPSHOT";case 5:return"REJECT_SNAPSHOT";case-1:default:return"UNRECOGNIZED"}}export var ResponseProcessProposal_ProposalStatus=(r=>(r[r.UNKNOWN=0]="UNKNOWN",r[r.ACCEPT=1]="ACCEPT",r[r.REJECT=2]="REJECT",r[r.UNRECOGNIZED=-1]="UNRECOGNIZED",r))(ResponseProcessProposal_ProposalStatus||{});export const ResponseProcessProposal_ProposalStatusSDKType=ResponseProcessProposal_ProposalStatus;export function responseProcessProposal_ProposalStatusFromJSON(e){switch(e){case 0:case"UNKNOWN":return 0;case 1:case"ACCEPT":return 1;case 2:case"REJECT":return 2;case-1:case"UNRECOGNIZED":default:return-1}}export function responseProcessProposal_ProposalStatusToJSON(e){switch(e){case 0:return"UNKNOWN";case 1:return"ACCEPT";case 2:return"REJECT";case-1:default:return"UNRECOGNIZED"}}export var ResponseVerifyVoteExtension_VerifyStatus=(r=>(r[r.UNKNOWN=0]="UNKNOWN",r[r.ACCEPT=1]="ACCEPT",r[r.REJECT=2]="REJECT",r[r.UNRECOGNIZED=-1]="UNRECOGNIZED",r))(ResponseVerifyVoteExtension_VerifyStatus||{});export const ResponseVerifyVoteExtension_VerifyStatusSDKType=ResponseVerifyVoteExtension_VerifyStatus;export function responseVerifyVoteExtension_VerifyStatusFromJSON(e){switch(e){case 0:case"UNKNOWN":return 0;case 1:case"ACCEPT":return 1;case 2:case"REJECT":return 2;case-1:case"UNRECOGNIZED":default:return-1}}export function responseVerifyVoteExtension_VerifyStatusToJSON(e){switch(e){case 0:return"UNKNOWN";case 1:return"ACCEPT";case 2:return"REJECT";case-1:default:return"UNRECOGNIZED"}}export var MisbehaviorType=(r=>(r[r.UNKNOWN=0]="UNKNOWN",r[r.DUPLICATE_VOTE=1]="DUPLICATE_VOTE",r[r.LIGHT_CLIENT_ATTACK=2]="LIGHT_CLIENT_ATTACK",r[r.UNRECOGNIZED=-1]="UNRECOGNIZED",r))(MisbehaviorType||{});export const MisbehaviorTypeSDKType=MisbehaviorType;export function misbehaviorTypeFromJSON(e){switch(e){case 0:case"UNKNOWN":return 0;case 1:case"DUPLICATE_VOTE":return 1;case 2:case"LIGHT_CLIENT_ATTACK":return 2;case-1:case"UNRECOGNIZED":default:return-1}}export function misbehaviorTypeToJSON(e){switch(e){case 0:return"UNKNOWN";case 1:return"DUPLICATE_VOTE";case 2:return"LIGHT_CLIENT_ATTACK";case-1:default:return"UNRECOGNIZED"}}function U(){return{echo:void 0,flush:void 0,info:void 0,initChain:void 0,query:void 0,checkTx:void 0,commit:void 0,listSnapshots:void 0,offerSnapshot:void 0,loadSnapshotChunk:void 0,applySnapshotChunk:void 0,prepareProposal:void 0,processProposal:void 0,extendVote:void 0,verifyVoteExtension:void 0,finalizeBlock:void 0}}export const Request={typeUrl:"/tendermint.abci.Request",is(e){return e&&e.$typeUrl===Request.typeUrl},isSDK(e){return e&&e.$typeUrl===Request.typeUrl},encode(e,n=d.create()){return e.echo!==void 0&&RequestEcho.encode(e.echo,n.uint32(10).fork()).ldelim(),e.flush!==void 0&&RequestFlush.encode(e.flush,n.uint32(18).fork()).ldelim(),e.info!==void 0&&RequestInfo.encode(e.info,n.uint32(26).fork()).ldelim(),e.initChain!==void 0&&RequestInitChain.encode(e.initChain,n.uint32(42).fork()).ldelim(),e.query!==void 0&&RequestQuery.encode(e.query,n.uint32(50).fork()).ldelim(),e.checkTx!==void 0&&RequestCheckTx.encode(e.checkTx,n.uint32(66).fork()).ldelim(),e.commit!==void 0&&RequestCommit.encode(e.commit,n.uint32(90).fork()).ldelim(),e.listSnapshots!==void 0&&RequestListSnapshots.encode(e.listSnapshots,n.uint32(98).fork()).ldelim(),e.offerSnapshot!==void 0&&RequestOfferSnapshot.encode(e.offerSnapshot,n.uint32(106).fork()).ldelim(),e.loadSnapshotChunk!==void 0&&RequestLoadSnapshotChunk.encode(e.loadSnapshotChunk,n.uint32(114).fork()).ldelim(),e.applySnapshotChunk!==void 0&&RequestApplySnapshotChunk.encode(e.applySnapshotChunk,n.uint32(122).fork()).ldelim(),e.prepareProposal!==void 0&&RequestPrepareProposal.encode(e.prepareProposal,n.uint32(130).fork()).ldelim(),e.processProposal!==void 0&&RequestProcessProposal.encode(e.processProposal,n.uint32(138).fork()).ldelim(),e.extendVote!==void 0&&RequestExtendVote.encode(e.extendVote,n.uint32(146).fork()).ldelim(),e.verifyVoteExtension!==void 0&&RequestVerifyVoteExtension.encode(e.verifyVoteExtension,n.uint32(154).fork()).ldelim(),e.finalizeBlock!==void 0&&RequestFinalizeBlock.encode(e.finalizeBlock,n.uint32(162).fork()).ldelim(),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=U();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.echo=RequestEcho.decode(t,t.uint32());break;case 2:r.flush=RequestFlush.decode(t,t.uint32());break;case 3:r.info=RequestInfo.decode(t,t.uint32());break;case 5:r.initChain=RequestInitChain.decode(t,t.uint32());break;case 6:r.query=RequestQuery.decode(t,t.uint32());break;case 8:r.checkTx=RequestCheckTx.decode(t,t.uint32());break;case 11:r.commit=RequestCommit.decode(t,t.uint32());break;case 12:r.listSnapshots=RequestListSnapshots.decode(t,t.uint32());break;case 13:r.offerSnapshot=RequestOfferSnapshot.decode(t,t.uint32());break;case 14:r.loadSnapshotChunk=RequestLoadSnapshotChunk.decode(t,t.uint32());break;case 15:r.applySnapshotChunk=RequestApplySnapshotChunk.decode(t,t.uint32());break;case 16:r.prepareProposal=RequestPrepareProposal.decode(t,t.uint32());break;case 17:r.processProposal=RequestProcessProposal.decode(t,t.uint32());break;case 18:r.extendVote=RequestExtendVote.decode(t,t.uint32());break;case 19:r.verifyVoteExtension=RequestVerifyVoteExtension.decode(t,t.uint32());break;case 20:r.finalizeBlock=RequestFinalizeBlock.decode(t,t.uint32());break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{echo:i(e.echo)?RequestEcho.fromJSON(e.echo):void 0,flush:i(e.flush)?RequestFlush.fromJSON(e.flush):void 0,info:i(e.info)?RequestInfo.fromJSON(e.info):void 0,initChain:i(e.initChain)?RequestInitChain.fromJSON(e.initChain):void 0,query:i(e.query)?RequestQuery.fromJSON(e.query):void 0,checkTx:i(e.checkTx)?RequestCheckTx.fromJSON(e.checkTx):void 0,commit:i(e.commit)?RequestCommit.fromJSON(e.commit):void 0,listSnapshots:i(e.listSnapshots)?RequestListSnapshots.fromJSON(e.listSnapshots):void 0,offerSnapshot:i(e.offerSnapshot)?RequestOfferSnapshot.fromJSON(e.offerSnapshot):void 0,loadSnapshotChunk:i(e.loadSnapshotChunk)?RequestLoadSnapshotChunk.fromJSON(e.loadSnapshotChunk):void 0,applySnapshotChunk:i(e.applySnapshotChunk)?RequestApplySnapshotChunk.fromJSON(e.applySnapshotChunk):void 0,prepareProposal:i(e.prepareProposal)?RequestPrepareProposal.fromJSON(e.prepareProposal):void 0,processProposal:i(e.processProposal)?RequestProcessProposal.fromJSON(e.processProposal):void 0,extendVote:i(e.extendVote)?RequestExtendVote.fromJSON(e.extendVote):void 0,verifyVoteExtension:i(e.verifyVoteExtension)?RequestVerifyVoteExtension.fromJSON(e.verifyVoteExtension):void 0,finalizeBlock:i(e.finalizeBlock)?RequestFinalizeBlock.fromJSON(e.finalizeBlock):void 0}},toJSON(e){const n={};return e.echo!==void 0&&(n.echo=e.echo?RequestEcho.toJSON(e.echo):void 0),e.flush!==void 0&&(n.flush=e.flush?RequestFlush.toJSON(e.flush):void 0),e.info!==void 0&&(n.info=e.info?RequestInfo.toJSON(e.info):void 0),e.initChain!==void 0&&(n.initChain=e.initChain?RequestInitChain.toJSON(e.initChain):void 0),e.query!==void 0&&(n.query=e.query?RequestQuery.toJSON(e.query):void 0),e.checkTx!==void 0&&(n.checkTx=e.checkTx?RequestCheckTx.toJSON(e.checkTx):void 0),e.commit!==void 0&&(n.commit=e.commit?RequestCommit.toJSON(e.commit):void 0),e.listSnapshots!==void 0&&(n.listSnapshots=e.listSnapshots?RequestListSnapshots.toJSON(e.listSnapshots):void 0),e.offerSnapshot!==void 0&&(n.offerSnapshot=e.offerSnapshot?RequestOfferSnapshot.toJSON(e.offerSnapshot):void 0),e.loadSnapshotChunk!==void 0&&(n.loadSnapshotChunk=e.loadSnapshotChunk?RequestLoadSnapshotChunk.toJSON(e.loadSnapshotChunk):void 0),e.applySnapshotChunk!==void 0&&(n.applySnapshotChunk=e.applySnapshotChunk?RequestApplySnapshotChunk.toJSON(e.applySnapshotChunk):void 0),e.prepareProposal!==void 0&&(n.prepareProposal=e.prepareProposal?RequestPrepareProposal.toJSON(e.prepareProposal):void 0),e.processProposal!==void 0&&(n.processProposal=e.processProposal?RequestProcessProposal.toJSON(e.processProposal):void 0),e.extendVote!==void 0&&(n.extendVote=e.extendVote?RequestExtendVote.toJSON(e.extendVote):void 0),e.verifyVoteExtension!==void 0&&(n.verifyVoteExtension=e.verifyVoteExtension?RequestVerifyVoteExtension.toJSON(e.verifyVoteExtension):void 0),e.finalizeBlock!==void 0&&(n.finalizeBlock=e.finalizeBlock?RequestFinalizeBlock.toJSON(e.finalizeBlock):void 0),n},fromPartial(e){const n=U();return n.echo=e.echo!==void 0&&e.echo!==null?RequestEcho.fromPartial(e.echo):void 0,n.flush=e.flush!==void 0&&e.flush!==null?RequestFlush.fromPartial(e.flush):void 0,n.info=e.info!==void 0&&e.info!==null?RequestInfo.fromPartial(e.info):void 0,n.initChain=e.initChain!==void 0&&e.initChain!==null?RequestInitChain.fromPartial(e.initChain):void 0,n.query=e.query!==void 0&&e.query!==null?RequestQuery.fromPartial(e.query):void 0,n.checkTx=e.checkTx!==void 0&&e.checkTx!==null?RequestCheckTx.fromPartial(e.checkTx):void 0,n.commit=e.commit!==void 0&&e.commit!==null?RequestCommit.fromPartial(e.commit):void 0,n.listSnapshots=e.listSnapshots!==void 0&&e.listSnapshots!==null?RequestListSnapshots.fromPartial(e.listSnapshots):void 0,n.offerSnapshot=e.offerSnapshot!==void 0&&e.offerSnapshot!==null?RequestOfferSnapshot.fromPartial(e.offerSnapshot):void 0,n.loadSnapshotChunk=e.loadSnapshotChunk!==void 0&&e.loadSnapshotChunk!==null?RequestLoadSnapshotChunk.fromPartial(e.loadSnapshotChunk):void 0,n.applySnapshotChunk=e.applySnapshotChunk!==void 0&&e.applySnapshotChunk!==null?RequestApplySnapshotChunk.fromPartial(e.applySnapshotChunk):void 0,n.prepareProposal=e.prepareProposal!==void 0&&e.prepareProposal!==null?RequestPrepareProposal.fromPartial(e.prepareProposal):void 0,n.processProposal=e.processProposal!==void 0&&e.processProposal!==null?RequestProcessProposal.fromPartial(e.processProposal):void 0,n.extendVote=e.extendVote!==void 0&&e.extendVote!==null?RequestExtendVote.fromPartial(e.extendVote):void 0,n.verifyVoteExtension=e.verifyVoteExtension!==void 0&&e.verifyVoteExtension!==null?RequestVerifyVoteExtension.fromPartial(e.verifyVoteExtension):void 0,n.finalizeBlock=e.finalizeBlock!==void 0&&e.finalizeBlock!==null?RequestFinalizeBlock.fromPartial(e.finalizeBlock):void 0,n},fromProtoMsg(e){return Request.decode(e.value)},toProto(e){return Request.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.Request",value:Request.encode(e).finish()}}};function k(){return{message:""}}export const RequestEcho={typeUrl:"/tendermint.abci.RequestEcho",is(e){return e&&(e.$typeUrl===RequestEcho.typeUrl||typeof e.message=="string")},isSDK(e){return e&&(e.$typeUrl===RequestEcho.typeUrl||typeof e.message=="string")},encode(e,n=d.create()){return e.message!==""&&n.uint32(10).string(e.message),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=k();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.message=t.string();break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{message:i(e.message)?String(e.message):""}},toJSON(e){const n={};return e.message!==void 0&&(n.message=e.message),n},fromPartial(e){const n=k();return n.message=e.message??"",n},fromProtoMsg(e){return RequestEcho.decode(e.value)},toProto(e){return RequestEcho.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.RequestEcho",value:RequestEcho.encode(e).finish()}}};function P(){return{}}export const RequestFlush={typeUrl:"/tendermint.abci.RequestFlush",is(e){return e&&e.$typeUrl===RequestFlush.typeUrl},isSDK(e){return e&&e.$typeUrl===RequestFlush.typeUrl},encode(e,n=d.create()){return n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=P();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){default:t.skipType(s&7);break}}return r},fromJSON(e){return{}},toJSON(e){return{}},fromPartial(e){return P()},fromProtoMsg(e){return RequestFlush.decode(e.value)},toProto(e){return RequestFlush.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.RequestFlush",value:RequestFlush.encode(e).finish()}}};function g(){return{version:"",blockVersion:BigInt(0),p2pVersion:BigInt(0),abciVersion:""}}export const RequestInfo={typeUrl:"/tendermint.abci.RequestInfo",is(e){return e&&(e.$typeUrl===RequestInfo.typeUrl||typeof e.version=="string"&&typeof e.blockVersion=="bigint"&&typeof e.p2pVersion=="bigint"&&typeof e.abciVersion=="string")},isSDK(e){return e&&(e.$typeUrl===RequestInfo.typeUrl||typeof e.version=="string"&&typeof e.block_version=="bigint"&&typeof e.p2p_version=="bigint"&&typeof e.abci_version=="string")},encode(e,n=d.create()){return e.version!==""&&n.uint32(10).string(e.version),e.blockVersion!==BigInt(0)&&n.uint32(16).uint64(e.blockVersion),e.p2pVersion!==BigInt(0)&&n.uint32(24).uint64(e.p2pVersion),e.abciVersion!==""&&n.uint32(34).string(e.abciVersion),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=g();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.version=t.string();break;case 2:r.blockVersion=t.uint64();break;case 3:r.p2pVersion=t.uint64();break;case 4:r.abciVersion=t.string();break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{version:i(e.version)?String(e.version):"",blockVersion:i(e.blockVersion)?BigInt(e.blockVersion.toString()):BigInt(0),p2pVersion:i(e.p2pVersion)?BigInt(e.p2pVersion.toString()):BigInt(0),abciVersion:i(e.abciVersion)?String(e.abciVersion):""}},toJSON(e){const n={};return e.version!==void 0&&(n.version=e.version),e.blockVersion!==void 0&&(n.blockVersion=(e.blockVersion||BigInt(0)).toString()),e.p2pVersion!==void 0&&(n.p2pVersion=(e.p2pVersion||BigInt(0)).toString()),e.abciVersion!==void 0&&(n.abciVersion=e.abciVersion),n},fromPartial(e){const n=g();return n.version=e.version??"",n.blockVersion=e.blockVersion!==void 0&&e.blockVersion!==null?BigInt(e.blockVersion.toString()):BigInt(0),n.p2pVersion=e.p2pVersion!==void 0&&e.p2pVersion!==null?BigInt(e.p2pVersion.toString()):BigInt(0),n.abciVersion=e.abciVersion??"",n},fromProtoMsg(e){return RequestInfo.decode(e.value)},toProto(e){return RequestInfo.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.RequestInfo",value:RequestInfo.encode(e).finish()}}};function A(){return{time:f.fromPartial({}),chainId:"",consensusParams:void 0,validators:[],appStateBytes:new Uint8Array,initialHeight:BigInt(0)}}export const RequestInitChain={typeUrl:"/tendermint.abci.RequestInitChain",is(e){return e&&(e.$typeUrl===RequestInitChain.typeUrl||f.is(e.time)&&typeof e.chainId=="string"&&Array.isArray(e.validators)&&(!e.validators.length||ValidatorUpdate.is(e.validators[0]))&&(e.appStateBytes instanceof Uint8Array||typeof e.appStateBytes=="string")&&typeof e.initialHeight=="bigint")},isSDK(e){return e&&(e.$typeUrl===RequestInitChain.typeUrl||f.isSDK(e.time)&&typeof e.chain_id=="string"&&Array.isArray(e.validators)&&(!e.validators.length||ValidatorUpdate.isSDK(e.validators[0]))&&(e.app_state_bytes instanceof Uint8Array||typeof e.app_state_bytes=="string")&&typeof e.initial_height=="bigint")},encode(e,n=d.create()){e.time!==void 0&&f.encode(e.time,n.uint32(10).fork()).ldelim(),e.chainId!==""&&n.uint32(18).string(e.chainId),e.consensusParams!==void 0&&h.encode(e.consensusParams,n.uint32(26).fork()).ldelim();for(const t of e.validators)ValidatorUpdate.encode(t,n.uint32(34).fork()).ldelim();return e.appStateBytes.length!==0&&n.uint32(42).bytes(e.appStateBytes),e.initialHeight!==BigInt(0)&&n.uint32(48).int64(e.initialHeight),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=A();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.time=f.decode(t,t.uint32());break;case 2:r.chainId=t.string();break;case 3:r.consensusParams=h.decode(t,t.uint32());break;case 4:r.validators.push(ValidatorUpdate.decode(t,t.uint32()));break;case 5:r.appStateBytes=t.bytes();break;case 6:r.initialHeight=t.int64();break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{time:i(e.time)?c(e.time):void 0,chainId:i(e.chainId)?String(e.chainId):"",consensusParams:i(e.consensusParams)?h.fromJSON(e.consensusParams):void 0,validators:Array.isArray(e?.validators)?e.validators.map(n=>ValidatorUpdate.fromJSON(n)):[],appStateBytes:i(e.appStateBytes)?p(e.appStateBytes):new Uint8Array,initialHeight:i(e.initialHeight)?BigInt(e.initialHeight.toString()):BigInt(0)}},toJSON(e){const n={};return e.time!==void 0&&(n.time=R(e.time).toISOString()),e.chainId!==void 0&&(n.chainId=e.chainId),e.consensusParams!==void 0&&(n.consensusParams=e.consensusParams?h.toJSON(e.consensusParams):void 0),e.validators?n.validators=e.validators.map(t=>t?ValidatorUpdate.toJSON(t):void 0):n.validators=[],e.appStateBytes!==void 0&&(n.appStateBytes=u(e.appStateBytes!==void 0?e.appStateBytes:new Uint8Array)),e.initialHeight!==void 0&&(n.initialHeight=(e.initialHeight||BigInt(0)).toString()),n},fromPartial(e){const n=A();return n.time=e.time!==void 0&&e.time!==null?f.fromPartial(e.time):void 0,n.chainId=e.chainId??"",n.consensusParams=e.consensusParams!==void 0&&e.consensusParams!==null?h.fromPartial(e.consensusParams):void 0,n.validators=e.validators?.map(t=>ValidatorUpdate.fromPartial(t))||[],n.appStateBytes=e.appStateBytes??new Uint8Array,n.initialHeight=e.initialHeight!==void 0&&e.initialHeight!==null?BigInt(e.initialHeight.toString()):BigInt(0),n},fromProtoMsg(e){return RequestInitChain.decode(e.value)},toProto(e){return RequestInitChain.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.RequestInitChain",value:RequestInitChain.encode(e).finish()}}};function v(){return{data:new Uint8Array,path:"",height:BigInt(0),prove:!1}}export const RequestQuery={typeUrl:"/tendermint.abci.RequestQuery",is(e){return e&&(e.$typeUrl===RequestQuery.typeUrl||(e.data instanceof Uint8Array||typeof e.data=="string")&&typeof e.path=="string"&&typeof e.height=="bigint"&&typeof e.prove=="boolean")},isSDK(e){return e&&(e.$typeUrl===RequestQuery.typeUrl||(e.data instanceof Uint8Array||typeof e.data=="string")&&typeof e.path=="string"&&typeof e.height=="bigint"&&typeof e.prove=="boolean")},encode(e,n=d.create()){return e.data.length!==0&&n.uint32(10).bytes(e.data),e.path!==""&&n.uint32(18).string(e.path),e.height!==BigInt(0)&&n.uint32(24).int64(e.height),e.prove===!0&&n.uint32(32).bool(e.prove),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=v();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.data=t.bytes();break;case 2:r.path=t.string();break;case 3:r.height=t.int64();break;case 4:r.prove=t.bool();break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{data:i(e.data)?p(e.data):new Uint8Array,path:i(e.path)?String(e.path):"",height:i(e.height)?BigInt(e.height.toString()):BigInt(0),prove:i(e.prove)?!!e.prove:!1}},toJSON(e){const n={};return e.data!==void 0&&(n.data=u(e.data!==void 0?e.data:new Uint8Array)),e.path!==void 0&&(n.path=e.path),e.height!==void 0&&(n.height=(e.height||BigInt(0)).toString()),e.prove!==void 0&&(n.prove=e.prove),n},fromPartial(e){const n=v();return n.data=e.data??new Uint8Array,n.path=e.path??"",n.height=e.height!==void 0&&e.height!==null?BigInt(e.height.toString()):BigInt(0),n.prove=e.prove??!1,n},fromProtoMsg(e){return RequestQuery.decode(e.value)},toProto(e){return RequestQuery.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.RequestQuery",value:RequestQuery.encode(e).finish()}}};function C(){return{tx:new Uint8Array,type:0}}export const RequestCheckTx={typeUrl:"/tendermint.abci.RequestCheckTx",is(e){return e&&(e.$typeUrl===RequestCheckTx.typeUrl||(e.tx instanceof Uint8Array||typeof e.tx=="string")&&i(e.type))},isSDK(e){return e&&(e.$typeUrl===RequestCheckTx.typeUrl||(e.tx instanceof Uint8Array||typeof e.tx=="string")&&i(e.type))},encode(e,n=d.create()){return e.tx.length!==0&&n.uint32(10).bytes(e.tx),e.type!==0&&n.uint32(16).int32(e.type),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=C();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.tx=t.bytes();break;case 2:r.type=t.int32();break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{tx:i(e.tx)?p(e.tx):new Uint8Array,type:i(e.type)?checkTxTypeFromJSON(e.type):-1}},toJSON(e){const n={};return e.tx!==void 0&&(n.tx=u(e.tx!==void 0?e.tx:new Uint8Array)),e.type!==void 0&&(n.type=checkTxTypeToJSON(e.type)),n},fromPartial(e){const n=C();return n.tx=e.tx??new Uint8Array,n.type=e.type??0,n},fromProtoMsg(e){return RequestCheckTx.decode(e.value)},toProto(e){return RequestCheckTx.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.RequestCheckTx",value:RequestCheckTx.encode(e).finish()}}};function E(){return{}}export const RequestCommit={typeUrl:"/tendermint.abci.RequestCommit",is(e){return e&&e.$typeUrl===RequestCommit.typeUrl},isSDK(e){return e&&e.$typeUrl===RequestCommit.typeUrl},encode(e,n=d.create()){return n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=E();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){default:t.skipType(s&7);break}}return r},fromJSON(e){return{}},toJSON(e){return{}},fromPartial(e){return E()},fromProtoMsg(e){return RequestCommit.decode(e.value)},toProto(e){return RequestCommit.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.RequestCommit",value:RequestCommit.encode(e).finish()}}};function B(){return{}}export const RequestListSnapshots={typeUrl:"/tendermint.abci.RequestListSnapshots",is(e){return e&&e.$typeUrl===RequestListSnapshots.typeUrl},isSDK(e){return e&&e.$typeUrl===RequestListSnapshots.typeUrl},encode(e,n=d.create()){return n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=B();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){default:t.skipType(s&7);break}}return r},fromJSON(e){return{}},toJSON(e){return{}},fromPartial(e){return B()},fromProtoMsg(e){return RequestListSnapshots.decode(e.value)},toProto(e){return RequestListSnapshots.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.RequestListSnapshots",value:RequestListSnapshots.encode(e).finish()}}};function T(){return{snapshot:void 0,appHash:new Uint8Array}}export const RequestOfferSnapshot={typeUrl:"/tendermint.abci.RequestOfferSnapshot",is(e){return e&&(e.$typeUrl===RequestOfferSnapshot.typeUrl||e.appHash instanceof Uint8Array||typeof e.appHash=="string")},isSDK(e){return e&&(e.$typeUrl===RequestOfferSnapshot.typeUrl||e.app_hash instanceof Uint8Array||typeof e.app_hash=="string")},encode(e,n=d.create()){return e.snapshot!==void 0&&Snapshot.encode(e.snapshot,n.uint32(10).fork()).ldelim(),e.appHash.length!==0&&n.uint32(18).bytes(e.appHash),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=T();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.snapshot=Snapshot.decode(t,t.uint32());break;case 2:r.appHash=t.bytes();break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{snapshot:i(e.snapshot)?Snapshot.fromJSON(e.snapshot):void 0,appHash:i(e.appHash)?p(e.appHash):new Uint8Array}},toJSON(e){const n={};return e.snapshot!==void 0&&(n.snapshot=e.snapshot?Snapshot.toJSON(e.snapshot):void 0),e.appHash!==void 0&&(n.appHash=u(e.appHash!==void 0?e.appHash:new Uint8Array)),n},fromPartial(e){const n=T();return n.snapshot=e.snapshot!==void 0&&e.snapshot!==null?Snapshot.fromPartial(e.snapshot):void 0,n.appHash=e.appHash??new Uint8Array,n},fromProtoMsg(e){return RequestOfferSnapshot.decode(e.value)},toProto(e){return RequestOfferSnapshot.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.RequestOfferSnapshot",value:RequestOfferSnapshot.encode(e).finish()}}};function V(){return{height:BigInt(0),format:0,chunk:0}}export const RequestLoadSnapshotChunk={typeUrl:"/tendermint.abci.RequestLoadSnapshotChunk",is(e){return e&&(e.$typeUrl===RequestLoadSnapshotChunk.typeUrl||typeof e.height=="bigint"&&typeof e.format=="number"&&typeof e.chunk=="number")},isSDK(e){return e&&(e.$typeUrl===RequestLoadSnapshotChunk.typeUrl||typeof e.height=="bigint"&&typeof e.format=="number"&&typeof e.chunk=="number")},encode(e,n=d.create()){return e.height!==BigInt(0)&&n.uint32(8).uint64(e.height),e.format!==0&&n.uint32(16).uint32(e.format),e.chunk!==0&&n.uint32(24).uint32(e.chunk),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=V();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.height=t.uint64();break;case 2:r.format=t.uint32();break;case 3:r.chunk=t.uint32();break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{height:i(e.height)?BigInt(e.height.toString()):BigInt(0),format:i(e.format)?Number(e.format):0,chunk:i(e.chunk)?Number(e.chunk):0}},toJSON(e){const n={};return e.height!==void 0&&(n.height=(e.height||BigInt(0)).toString()),e.format!==void 0&&(n.format=Math.round(e.format)),e.chunk!==void 0&&(n.chunk=Math.round(e.chunk)),n},fromPartial(e){const n=V();return n.height=e.height!==void 0&&e.height!==null?BigInt(e.height.toString()):BigInt(0),n.format=e.format??0,n.chunk=e.chunk??0,n},fromProtoMsg(e){return RequestLoadSnapshotChunk.decode(e.value)},toProto(e){return RequestLoadSnapshotChunk.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.RequestLoadSnapshotChunk",value:RequestLoadSnapshotChunk.encode(e).finish()}}};function I(){return{index:0,chunk:new Uint8Array,sender:""}}export const RequestApplySnapshotChunk={typeUrl:"/tendermint.abci.RequestApplySnapshotChunk",is(e){return e&&(e.$typeUrl===RequestApplySnapshotChunk.typeUrl||typeof e.index=="number"&&(e.chunk instanceof Uint8Array||typeof e.chunk=="string")&&typeof e.sender=="string")},isSDK(e){return e&&(e.$typeUrl===RequestApplySnapshotChunk.typeUrl||typeof e.index=="number"&&(e.chunk instanceof Uint8Array||typeof e.chunk=="string")&&typeof e.sender=="string")},encode(e,n=d.create()){return e.index!==0&&n.uint32(8).uint32(e.index),e.chunk.length!==0&&n.uint32(18).bytes(e.chunk),e.sender!==""&&n.uint32(26).string(e.sender),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=I();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.index=t.uint32();break;case 2:r.chunk=t.bytes();break;case 3:r.sender=t.string();break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{index:i(e.index)?Number(e.index):0,chunk:i(e.chunk)?p(e.chunk):new Uint8Array,sender:i(e.sender)?String(e.sender):""}},toJSON(e){const n={};return e.index!==void 0&&(n.index=Math.round(e.index)),e.chunk!==void 0&&(n.chunk=u(e.chunk!==void 0?e.chunk:new Uint8Array)),e.sender!==void 0&&(n.sender=e.sender),n},fromPartial(e){const n=I();return n.index=e.index??0,n.chunk=e.chunk??new Uint8Array,n.sender=e.sender??"",n},fromProtoMsg(e){return RequestApplySnapshotChunk.decode(e.value)},toProto(e){return RequestApplySnapshotChunk.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.RequestApplySnapshotChunk",value:RequestApplySnapshotChunk.encode(e).finish()}}};function q(){return{maxTxBytes:BigInt(0),txs:[],localLastCommit:ExtendedCommitInfo.fromPartial({}),misbehavior:[],height:BigInt(0),time:f.fromPartial({}),nextValidatorsHash:new Uint8Array,proposerAddress:new Uint8Array}}export const RequestPrepareProposal={typeUrl:"/tendermint.abci.RequestPrepareProposal",is(e){return e&&(e.$typeUrl===RequestPrepareProposal.typeUrl||typeof e.maxTxBytes=="bigint"&&Array.isArray(e.txs)&&(!e.txs.length||e.txs[0]instanceof Uint8Array||typeof e.txs[0]=="string")&&ExtendedCommitInfo.is(e.localLastCommit)&&Array.isArray(e.misbehavior)&&(!e.misbehavior.length||Misbehavior.is(e.misbehavior[0]))&&typeof e.height=="bigint"&&f.is(e.time)&&(e.nextValidatorsHash instanceof Uint8Array||typeof e.nextValidatorsHash=="string")&&(e.proposerAddress instanceof Uint8Array||typeof e.proposerAddress=="string"))},isSDK(e){return e&&(e.$typeUrl===RequestPrepareProposal.typeUrl||typeof e.max_tx_bytes=="bigint"&&Array.isArray(e.txs)&&(!e.txs.length||e.txs[0]instanceof Uint8Array||typeof e.txs[0]=="string")&&ExtendedCommitInfo.isSDK(e.local_last_commit)&&Array.isArray(e.misbehavior)&&(!e.misbehavior.length||Misbehavior.isSDK(e.misbehavior[0]))&&typeof e.height=="bigint"&&f.isSDK(e.time)&&(e.next_validators_hash instanceof Uint8Array||typeof e.next_validators_hash=="string")&&(e.proposer_address instanceof Uint8Array||typeof e.proposer_address=="string"))},encode(e,n=d.create()){e.maxTxBytes!==BigInt(0)&&n.uint32(8).int64(e.maxTxBytes);for(const t of e.txs)n.uint32(18).bytes(t);e.localLastCommit!==void 0&&ExtendedCommitInfo.encode(e.localLastCommit,n.uint32(26).fork()).ldelim();for(const t of e.misbehavior)Misbehavior.encode(t,n.uint32(34).fork()).ldelim();return e.height!==BigInt(0)&&n.uint32(40).int64(e.height),e.time!==void 0&&f.encode(e.time,n.uint32(50).fork()).ldelim(),e.nextValidatorsHash.length!==0&&n.uint32(58).bytes(e.nextValidatorsHash),e.proposerAddress.length!==0&&n.uint32(66).bytes(e.proposerAddress),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=q();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.maxTxBytes=t.int64();break;case 2:r.txs.push(t.bytes());break;case 3:r.localLastCommit=ExtendedCommitInfo.decode(t,t.uint32());break;case 4:r.misbehavior.push(Misbehavior.decode(t,t.uint32()));break;case 5:r.height=t.int64();break;case 6:r.time=f.decode(t,t.uint32());break;case 7:r.nextValidatorsHash=t.bytes();break;case 8:r.proposerAddress=t.bytes();break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{maxTxBytes:i(e.maxTxBytes)?BigInt(e.maxTxBytes.toString()):BigInt(0),txs:Array.isArray(e?.txs)?e.txs.map(n=>p(n)):[],localLastCommit:i(e.localLastCommit)?ExtendedCommitInfo.fromJSON(e.localLastCommit):void 0,misbehavior:Array.isArray(e?.misbehavior)?e.misbehavior.map(n=>Misbehavior.fromJSON(n)):[],height:i(e.height)?BigInt(e.height.toString()):BigInt(0),time:i(e.time)?c(e.time):void 0,nextValidatorsHash:i(e.nextValidatorsHash)?p(e.nextValidatorsHash):new Uint8Array,proposerAddress:i(e.proposerAddress)?p(e.proposerAddress):new Uint8Array}},toJSON(e){const n={};return e.maxTxBytes!==void 0&&(n.maxTxBytes=(e.maxTxBytes||BigInt(0)).toString()),e.txs?n.txs=e.txs.map(t=>u(t!==void 0?t:new Uint8Array)):n.txs=[],e.localLastCommit!==void 0&&(n.localLastCommit=e.localLastCommit?ExtendedCommitInfo.toJSON(e.localLastCommit):void 0),e.misbehavior?n.misbehavior=e.misbehavior.map(t=>t?Misbehavior.toJSON(t):void 0):n.misbehavior=[],e.height!==void 0&&(n.height=(e.height||BigInt(0)).toString()),e.time!==void 0&&(n.time=R(e.time).toISOString()),e.nextValidatorsHash!==void 0&&(n.nextValidatorsHash=u(e.nextValidatorsHash!==void 0?e.nextValidatorsHash:new Uint8Array)),e.proposerAddress!==void 0&&(n.proposerAddress=u(e.proposerAddress!==void 0?e.proposerAddress:new Uint8Array)),n},fromPartial(e){const n=q();return n.maxTxBytes=e.maxTxBytes!==void 0&&e.maxTxBytes!==null?BigInt(e.maxTxBytes.toString()):BigInt(0),n.txs=e.txs?.map(t=>t)||[],n.localLastCommit=e.localLastCommit!==void 0&&e.localLastCommit!==null?ExtendedCommitInfo.fromPartial(e.localLastCommit):void 0,n.misbehavior=e.misbehavior?.map(t=>Misbehavior.fromPartial(t))||[],n.height=e.height!==void 0&&e.height!==null?BigInt(e.height.toString()):BigInt(0),n.time=e.time!==void 0&&e.time!==null?f.fromPartial(e.time):void 0,n.nextValidatorsHash=e.nextValidatorsHash??new Uint8Array,n.proposerAddress=e.proposerAddress??new Uint8Array,n},fromProtoMsg(e){return RequestPrepareProposal.decode(e.value)},toProto(e){return RequestPrepareProposal.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.RequestPrepareProposal",value:RequestPrepareProposal.encode(e).finish()}}};function N(){return{txs:[],proposedLastCommit:CommitInfo.fromPartial({}),misbehavior:[],hash:new Uint8Array,height:BigInt(0),time:f.fromPartial({}),nextValidatorsHash:new Uint8Array,proposerAddress:new Uint8Array}}export const RequestProcessProposal={typeUrl:"/tendermint.abci.RequestProcessProposal",is(e){return e&&(e.$typeUrl===RequestProcessProposal.typeUrl||Array.isArray(e.txs)&&(!e.txs.length||e.txs[0]instanceof Uint8Array||typeof e.txs[0]=="string")&&CommitInfo.is(e.proposedLastCommit)&&Array.isArray(e.misbehavior)&&(!e.misbehavior.length||Misbehavior.is(e.misbehavior[0]))&&(e.hash instanceof Uint8Array||typeof e.hash=="string")&&typeof e.height=="bigint"&&f.is(e.time)&&(e.nextValidatorsHash instanceof Uint8Array||typeof e.nextValidatorsHash=="string")&&(e.proposerAddress instanceof Uint8Array||typeof e.proposerAddress=="string"))},isSDK(e){return e&&(e.$typeUrl===RequestProcessProposal.typeUrl||Array.isArray(e.txs)&&(!e.txs.length||e.txs[0]instanceof Uint8Array||typeof e.txs[0]=="string")&&CommitInfo.isSDK(e.proposed_last_commit)&&Array.isArray(e.misbehavior)&&(!e.misbehavior.length||Misbehavior.isSDK(e.misbehavior[0]))&&(e.hash instanceof Uint8Array||typeof e.hash=="string")&&typeof e.height=="bigint"&&f.isSDK(e.time)&&(e.next_validators_hash instanceof Uint8Array||typeof e.next_validators_hash=="string")&&(e.proposer_address instanceof Uint8Array||typeof e.proposer_address=="string"))},encode(e,n=d.create()){for(const t of e.txs)n.uint32(10).bytes(t);e.proposedLastCommit!==void 0&&CommitInfo.encode(e.proposedLastCommit,n.uint32(18).fork()).ldelim();for(const t of e.misbehavior)Misbehavior.encode(t,n.uint32(26).fork()).ldelim();return e.hash.length!==0&&n.uint32(34).bytes(e.hash),e.height!==BigInt(0)&&n.uint32(40).int64(e.height),e.time!==void 0&&f.encode(e.time,n.uint32(50).fork()).ldelim(),e.nextValidatorsHash.length!==0&&n.uint32(58).bytes(e.nextValidatorsHash),e.proposerAddress.length!==0&&n.uint32(66).bytes(e.proposerAddress),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=N();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.txs.push(t.bytes());break;case 2:r.proposedLastCommit=CommitInfo.decode(t,t.uint32());break;case 3:r.misbehavior.push(Misbehavior.decode(t,t.uint32()));break;case 4:r.hash=t.bytes();break;case 5:r.height=t.int64();break;case 6:r.time=f.decode(t,t.uint32());break;case 7:r.nextValidatorsHash=t.bytes();break;case 8:r.proposerAddress=t.bytes();break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{txs:Array.isArray(e?.txs)?e.txs.map(n=>p(n)):[],proposedLastCommit:i(e.proposedLastCommit)?CommitInfo.fromJSON(e.proposedLastCommit):void 0,misbehavior:Array.isArray(e?.misbehavior)?e.misbehavior.map(n=>Misbehavior.fromJSON(n)):[],hash:i(e.hash)?p(e.hash):new Uint8Array,height:i(e.height)?BigInt(e.height.toString()):BigInt(0),time:i(e.time)?c(e.time):void 0,nextValidatorsHash:i(e.nextValidatorsHash)?p(e.nextValidatorsHash):new Uint8Array,proposerAddress:i(e.proposerAddress)?p(e.proposerAddress):new Uint8Array}},toJSON(e){const n={};return e.txs?n.txs=e.txs.map(t=>u(t!==void 0?t:new Uint8Array)):n.txs=[],e.proposedLastCommit!==void 0&&(n.proposedLastCommit=e.proposedLastCommit?CommitInfo.toJSON(e.proposedLastCommit):void 0),e.misbehavior?n.misbehavior=e.misbehavior.map(t=>t?Misbehavior.toJSON(t):void 0):n.misbehavior=[],e.hash!==void 0&&(n.hash=u(e.hash!==void 0?e.hash:new Uint8Array)),e.height!==void 0&&(n.height=(e.height||BigInt(0)).toString()),e.time!==void 0&&(n.time=R(e.time).toISOString()),e.nextValidatorsHash!==void 0&&(n.nextValidatorsHash=u(e.nextValidatorsHash!==void 0?e.nextValidatorsHash:new Uint8Array)),e.proposerAddress!==void 0&&(n.proposerAddress=u(e.proposerAddress!==void 0?e.proposerAddress:new Uint8Array)),n},fromPartial(e){const n=N();return n.txs=e.txs?.map(t=>t)||[],n.proposedLastCommit=e.proposedLastCommit!==void 0&&e.proposedLastCommit!==null?CommitInfo.fromPartial(e.proposedLastCommit):void 0,n.misbehavior=e.misbehavior?.map(t=>Misbehavior.fromPartial(t))||[],n.hash=e.hash??new Uint8Array,n.height=e.height!==void 0&&e.height!==null?BigInt(e.height.toString()):BigInt(0),n.time=e.time!==void 0&&e.time!==null?f.fromPartial(e.time):void 0,n.nextValidatorsHash=e.nextValidatorsHash??new Uint8Array,n.proposerAddress=e.proposerAddress??new Uint8Array,n},fromProtoMsg(e){return RequestProcessProposal.decode(e.value)},toProto(e){return RequestProcessProposal.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.RequestProcessProposal",value:RequestProcessProposal.encode(e).finish()}}};function O(){return{hash:new Uint8Array,height:BigInt(0),time:f.fromPartial({}),txs:[],proposedLastCommit:CommitInfo.fromPartial({}),misbehavior:[],nextValidatorsHash:new Uint8Array,proposerAddress:new Uint8Array}}export const RequestExtendVote={typeUrl:"/tendermint.abci.RequestExtendVote",is(e){return e&&(e.$typeUrl===RequestExtendVote.typeUrl||(e.hash instanceof Uint8Array||typeof e.hash=="string")&&typeof e.height=="bigint"&&f.is(e.time)&&Array.isArray(e.txs)&&(!e.txs.length||e.txs[0]instanceof Uint8Array||typeof e.txs[0]=="string")&&CommitInfo.is(e.proposedLastCommit)&&Array.isArray(e.misbehavior)&&(!e.misbehavior.length||Misbehavior.is(e.misbehavior[0]))&&(e.nextValidatorsHash instanceof Uint8Array||typeof e.nextValidatorsHash=="string")&&(e.proposerAddress instanceof Uint8Array||typeof e.proposerAddress=="string"))},isSDK(e){return e&&(e.$typeUrl===RequestExtendVote.typeUrl||(e.hash instanceof Uint8Array||typeof e.hash=="string")&&typeof e.height=="bigint"&&f.isSDK(e.time)&&Array.isArray(e.txs)&&(!e.txs.length||e.txs[0]instanceof Uint8Array||typeof e.txs[0]=="string")&&CommitInfo.isSDK(e.proposed_last_commit)&&Array.isArray(e.misbehavior)&&(!e.misbehavior.length||Misbehavior.isSDK(e.misbehavior[0]))&&(e.next_validators_hash instanceof Uint8Array||typeof e.next_validators_hash=="string")&&(e.proposer_address instanceof Uint8Array||typeof e.proposer_address=="string"))},encode(e,n=d.create()){e.hash.length!==0&&n.uint32(10).bytes(e.hash),e.height!==BigInt(0)&&n.uint32(16).int64(e.height),e.time!==void 0&&f.encode(e.time,n.uint32(26).fork()).ldelim();for(const t of e.txs)n.uint32(34).bytes(t);e.proposedLastCommit!==void 0&&CommitInfo.encode(e.proposedLastCommit,n.uint32(42).fork()).ldelim();for(const t of e.misbehavior)Misbehavior.encode(t,n.uint32(50).fork()).ldelim();return e.nextValidatorsHash.length!==0&&n.uint32(58).bytes(e.nextValidatorsHash),e.proposerAddress.length!==0&&n.uint32(66).bytes(e.proposerAddress),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=O();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.hash=t.bytes();break;case 2:r.height=t.int64();break;case 3:r.time=f.decode(t,t.uint32());break;case 4:r.txs.push(t.bytes());break;case 5:r.proposedLastCommit=CommitInfo.decode(t,t.uint32());break;case 6:r.misbehavior.push(Misbehavior.decode(t,t.uint32()));break;case 7:r.nextValidatorsHash=t.bytes();break;case 8:r.proposerAddress=t.bytes();break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{hash:i(e.hash)?p(e.hash):new Uint8Array,height:i(e.height)?BigInt(e.height.toString()):BigInt(0),time:i(e.time)?c(e.time):void 0,txs:Array.isArray(e?.txs)?e.txs.map(n=>p(n)):[],proposedLastCommit:i(e.proposedLastCommit)?CommitInfo.fromJSON(e.proposedLastCommit):void 0,misbehavior:Array.isArray(e?.misbehavior)?e.misbehavior.map(n=>Misbehavior.fromJSON(n)):[],nextValidatorsHash:i(e.nextValidatorsHash)?p(e.nextValidatorsHash):new Uint8Array,proposerAddress:i(e.proposerAddress)?p(e.proposerAddress):new Uint8Array}},toJSON(e){const n={};return e.hash!==void 0&&(n.hash=u(e.hash!==void 0?e.hash:new Uint8Array)),e.height!==void 0&&(n.height=(e.height||BigInt(0)).toString()),e.time!==void 0&&(n.time=R(e.time).toISOString()),e.txs?n.txs=e.txs.map(t=>u(t!==void 0?t:new Uint8Array)):n.txs=[],e.proposedLastCommit!==void 0&&(n.proposedLastCommit=e.proposedLastCommit?CommitInfo.toJSON(e.proposedLastCommit):void 0),e.misbehavior?n.misbehavior=e.misbehavior.map(t=>t?Misbehavior.toJSON(t):void 0):n.misbehavior=[],e.nextValidatorsHash!==void 0&&(n.nextValidatorsHash=u(e.nextValidatorsHash!==void 0?e.nextValidatorsHash:new Uint8Array)),e.proposerAddress!==void 0&&(n.proposerAddress=u(e.proposerAddress!==void 0?e.proposerAddress:new Uint8Array)),n},fromPartial(e){const n=O();return n.hash=e.hash??new Uint8Array,n.height=e.height!==void 0&&e.height!==null?BigInt(e.height.toString()):BigInt(0),n.time=e.time!==void 0&&e.time!==null?f.fromPartial(e.time):void 0,n.txs=e.txs?.map(t=>t)||[],n.proposedLastCommit=e.proposedLastCommit!==void 0&&e.proposedLastCommit!==null?CommitInfo.fromPartial(e.proposedLastCommit):void 0,n.misbehavior=e.misbehavior?.map(t=>Misbehavior.fromPartial(t))||[],n.nextValidatorsHash=e.nextValidatorsHash??new Uint8Array,n.proposerAddress=e.proposerAddress??new Uint8Array,n},fromProtoMsg(e){return RequestExtendVote.decode(e.value)},toProto(e){return RequestExtendVote.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.RequestExtendVote",value:RequestExtendVote.encode(e).finish()}}};function b(){return{hash:new Uint8Array,validatorAddress:new Uint8Array,height:BigInt(0),voteExtension:new Uint8Array}}export const RequestVerifyVoteExtension={typeUrl:"/tendermint.abci.RequestVerifyVoteExtension",is(e){return e&&(e.$typeUrl===RequestVerifyVoteExtension.typeUrl||(e.hash instanceof Uint8Array||typeof e.hash=="string")&&(e.validatorAddress instanceof Uint8Array||typeof e.validatorAddress=="string")&&typeof e.height=="bigint"&&(e.voteExtension instanceof Uint8Array||typeof e.voteExtension=="string"))},isSDK(e){return e&&(e.$typeUrl===RequestVerifyVoteExtension.typeUrl||(e.hash instanceof Uint8Array||typeof e.hash=="string")&&(e.validator_address instanceof Uint8Array||typeof e.validator_address=="string")&&typeof e.height=="bigint"&&(e.vote_extension instanceof Uint8Array||typeof e.vote_extension=="string"))},encode(e,n=d.create()){return e.hash.length!==0&&n.uint32(10).bytes(e.hash),e.validatorAddress.length!==0&&n.uint32(18).bytes(e.validatorAddress),e.height!==BigInt(0)&&n.uint32(24).int64(e.height),e.voteExtension.length!==0&&n.uint32(34).bytes(e.voteExtension),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=b();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.hash=t.bytes();break;case 2:r.validatorAddress=t.bytes();break;case 3:r.height=t.int64();break;case 4:r.voteExtension=t.bytes();break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{hash:i(e.hash)?p(e.hash):new Uint8Array,validatorAddress:i(e.validatorAddress)?p(e.validatorAddress):new Uint8Array,height:i(e.height)?BigInt(e.height.toString()):BigInt(0),voteExtension:i(e.voteExtension)?p(e.voteExtension):new Uint8Array}},toJSON(e){const n={};return e.hash!==void 0&&(n.hash=u(e.hash!==void 0?e.hash:new Uint8Array)),e.validatorAddress!==void 0&&(n.validatorAddress=u(e.validatorAddress!==void 0?e.validatorAddress:new Uint8Array)),e.height!==void 0&&(n.height=(e.height||BigInt(0)).toString()),e.voteExtension!==void 0&&(n.voteExtension=u(e.voteExtension!==void 0?e.voteExtension:new Uint8Array)),n},fromPartial(e){const n=b();return n.hash=e.hash??new Uint8Array,n.validatorAddress=e.validatorAddress??new Uint8Array,n.height=e.height!==void 0&&e.height!==null?BigInt(e.height.toString()):BigInt(0),n.voteExtension=e.voteExtension??new Uint8Array,n},fromProtoMsg(e){return RequestVerifyVoteExtension.decode(e.value)},toProto(e){return RequestVerifyVoteExtension.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.RequestVerifyVoteExtension",value:RequestVerifyVoteExtension.encode(e).finish()}}};function J(){return{txs:[],decidedLastCommit:CommitInfo.fromPartial({}),misbehavior:[],hash:new Uint8Array,height:BigInt(0),time:f.fromPartial({}),nextValidatorsHash:new Uint8Array,proposerAddress:new Uint8Array}}export const RequestFinalizeBlock={typeUrl:"/tendermint.abci.RequestFinalizeBlock",is(e){return e&&(e.$typeUrl===RequestFinalizeBlock.typeUrl||Array.isArray(e.txs)&&(!e.txs.length||e.txs[0]instanceof Uint8Array||typeof e.txs[0]=="string")&&CommitInfo.is(e.decidedLastCommit)&&Array.isArray(e.misbehavior)&&(!e.misbehavior.length||Misbehavior.is(e.misbehavior[0]))&&(e.hash instanceof Uint8Array||typeof e.hash=="string")&&typeof e.height=="bigint"&&f.is(e.time)&&(e.nextValidatorsHash instanceof Uint8Array||typeof e.nextValidatorsHash=="string")&&(e.proposerAddress instanceof Uint8Array||typeof e.proposerAddress=="string"))},isSDK(e){return e&&(e.$typeUrl===RequestFinalizeBlock.typeUrl||Array.isArray(e.txs)&&(!e.txs.length||e.txs[0]instanceof Uint8Array||typeof e.txs[0]=="string")&&CommitInfo.isSDK(e.decided_last_commit)&&Array.isArray(e.misbehavior)&&(!e.misbehavior.length||Misbehavior.isSDK(e.misbehavior[0]))&&(e.hash instanceof Uint8Array||typeof e.hash=="string")&&typeof e.height=="bigint"&&f.isSDK(e.time)&&(e.next_validators_hash instanceof Uint8Array||typeof e.next_validators_hash=="string")&&(e.proposer_address instanceof Uint8Array||typeof e.proposer_address=="string"))},encode(e,n=d.create()){for(const t of e.txs)n.uint32(10).bytes(t);e.decidedLastCommit!==void 0&&CommitInfo.encode(e.decidedLastCommit,n.uint32(18).fork()).ldelim();for(const t of e.misbehavior)Misbehavior.encode(t,n.uint32(26).fork()).ldelim();return e.hash.length!==0&&n.uint32(34).bytes(e.hash),e.height!==BigInt(0)&&n.uint32(40).int64(e.height),e.time!==void 0&&f.encode(e.time,n.uint32(50).fork()).ldelim(),e.nextValidatorsHash.length!==0&&n.uint32(58).bytes(e.nextValidatorsHash),e.proposerAddress.length!==0&&n.uint32(66).bytes(e.proposerAddress),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=J();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.txs.push(t.bytes());break;case 2:r.decidedLastCommit=CommitInfo.decode(t,t.uint32());break;case 3:r.misbehavior.push(Misbehavior.decode(t,t.uint32()));break;case 4:r.hash=t.bytes();break;case 5:r.height=t.int64();break;case 6:r.time=f.decode(t,t.uint32());break;case 7:r.nextValidatorsHash=t.bytes();break;case 8:r.proposerAddress=t.bytes();break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{txs:Array.isArray(e?.txs)?e.txs.map(n=>p(n)):[],decidedLastCommit:i(e.decidedLastCommit)?CommitInfo.fromJSON(e.decidedLastCommit):void 0,misbehavior:Array.isArray(e?.misbehavior)?e.misbehavior.map(n=>Misbehavior.fromJSON(n)):[],hash:i(e.hash)?p(e.hash):new Uint8Array,height:i(e.height)?BigInt(e.height.toString()):BigInt(0),time:i(e.time)?c(e.time):void 0,nextValidatorsHash:i(e.nextValidatorsHash)?p(e.nextValidatorsHash):new Uint8Array,proposerAddress:i(e.proposerAddress)?p(e.proposerAddress):new Uint8Array}},toJSON(e){const n={};return e.txs?n.txs=e.txs.map(t=>u(t!==void 0?t:new Uint8Array)):n.txs=[],e.decidedLastCommit!==void 0&&(n.decidedLastCommit=e.decidedLastCommit?CommitInfo.toJSON(e.decidedLastCommit):void 0),e.misbehavior?n.misbehavior=e.misbehavior.map(t=>t?Misbehavior.toJSON(t):void 0):n.misbehavior=[],e.hash!==void 0&&(n.hash=u(e.hash!==void 0?e.hash:new Uint8Array)),e.height!==void 0&&(n.height=(e.height||BigInt(0)).toString()),e.time!==void 0&&(n.time=R(e.time).toISOString()),e.nextValidatorsHash!==void 0&&(n.nextValidatorsHash=u(e.nextValidatorsHash!==void 0?e.nextValidatorsHash:new Uint8Array)),e.proposerAddress!==void 0&&(n.proposerAddress=u(e.proposerAddress!==void 0?e.proposerAddress:new Uint8Array)),n},fromPartial(e){const n=J();return n.txs=e.txs?.map(t=>t)||[],n.decidedLastCommit=e.decidedLastCommit!==void 0&&e.decidedLastCommit!==null?CommitInfo.fromPartial(e.decidedLastCommit):void 0,n.misbehavior=e.misbehavior?.map(t=>Misbehavior.fromPartial(t))||[],n.hash=e.hash??new Uint8Array,n.height=e.height!==void 0&&e.height!==null?BigInt(e.height.toString()):BigInt(0),n.time=e.time!==void 0&&e.time!==null?f.fromPartial(e.time):void 0,n.nextValidatorsHash=e.nextValidatorsHash??new Uint8Array,n.proposerAddress=e.proposerAddress??new Uint8Array,n},fromProtoMsg(e){return RequestFinalizeBlock.decode(e.value)},toProto(e){return RequestFinalizeBlock.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.RequestFinalizeBlock",value:RequestFinalizeBlock.encode(e).finish()}}};function K(){return{exception:void 0,echo:void 0,flush:void 0,info:void 0,initChain:void 0,query:void 0,checkTx:void 0,commit:void 0,listSnapshots:void 0,offerSnapshot:void 0,loadSnapshotChunk:void 0,applySnapshotChunk:void 0,prepareProposal:void 0,processProposal:void 0,extendVote:void 0,verifyVoteExtension:void 0,finalizeBlock:void 0}}export const Response={typeUrl:"/tendermint.abci.Response",is(e){return e&&e.$typeUrl===Response.typeUrl},isSDK(e){return e&&e.$typeUrl===Response.typeUrl},encode(e,n=d.create()){return e.exception!==void 0&&ResponseException.encode(e.exception,n.uint32(10).fork()).ldelim(),e.echo!==void 0&&ResponseEcho.encode(e.echo,n.uint32(18).fork()).ldelim(),e.flush!==void 0&&ResponseFlush.encode(e.flush,n.uint32(26).fork()).ldelim(),e.info!==void 0&&ResponseInfo.encode(e.info,n.uint32(34).fork()).ldelim(),e.initChain!==void 0&&ResponseInitChain.encode(e.initChain,n.uint32(50).fork()).ldelim(),e.query!==void 0&&ResponseQuery.encode(e.query,n.uint32(58).fork()).ldelim(),e.checkTx!==void 0&&ResponseCheckTx.encode(e.checkTx,n.uint32(74).fork()).ldelim(),e.commit!==void 0&&ResponseCommit.encode(e.commit,n.uint32(98).fork()).ldelim(),e.listSnapshots!==void 0&&ResponseListSnapshots.encode(e.listSnapshots,n.uint32(106).fork()).ldelim(),e.offerSnapshot!==void 0&&ResponseOfferSnapshot.encode(e.offerSnapshot,n.uint32(114).fork()).ldelim(),e.loadSnapshotChunk!==void 0&&ResponseLoadSnapshotChunk.encode(e.loadSnapshotChunk,n.uint32(122).fork()).ldelim(),e.applySnapshotChunk!==void 0&&ResponseApplySnapshotChunk.encode(e.applySnapshotChunk,n.uint32(130).fork()).ldelim(),e.prepareProposal!==void 0&&ResponsePrepareProposal.encode(e.prepareProposal,n.uint32(138).fork()).ldelim(),e.processProposal!==void 0&&ResponseProcessProposal.encode(e.processProposal,n.uint32(146).fork()).ldelim(),e.extendVote!==void 0&&ResponseExtendVote.encode(e.extendVote,n.uint32(154).fork()).ldelim(),e.verifyVoteExtension!==void 0&&ResponseVerifyVoteExtension.encode(e.verifyVoteExtension,n.uint32(162).fork()).ldelim(),e.finalizeBlock!==void 0&&ResponseFinalizeBlock.encode(e.finalizeBlock,n.uint32(170).fork()).ldelim(),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=K();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.exception=ResponseException.decode(t,t.uint32());break;case 2:r.echo=ResponseEcho.decode(t,t.uint32());break;case 3:r.flush=ResponseFlush.decode(t,t.uint32());break;case 4:r.info=ResponseInfo.decode(t,t.uint32());break;case 6:r.initChain=ResponseInitChain.decode(t,t.uint32());break;case 7:r.query=ResponseQuery.decode(t,t.uint32());break;case 9:r.checkTx=ResponseCheckTx.decode(t,t.uint32());break;case 12:r.commit=ResponseCommit.decode(t,t.uint32());break;case 13:r.listSnapshots=ResponseListSnapshots.decode(t,t.uint32());break;case 14:r.offerSnapshot=ResponseOfferSnapshot.decode(t,t.uint32());break;case 15:r.loadSnapshotChunk=ResponseLoadSnapshotChunk.decode(t,t.uint32());break;case 16:r.applySnapshotChunk=ResponseApplySnapshotChunk.decode(t,t.uint32());break;case 17:r.prepareProposal=ResponsePrepareProposal.decode(t,t.uint32());break;case 18:r.processProposal=ResponseProcessProposal.decode(t,t.uint32());break;case 19:r.extendVote=ResponseExtendVote.decode(t,t.uint32());break;case 20:r.verifyVoteExtension=ResponseVerifyVoteExtension.decode(t,t.uint32());break;case 21:r.finalizeBlock=ResponseFinalizeBlock.decode(t,t.uint32());break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{exception:i(e.exception)?ResponseException.fromJSON(e.exception):void 0,echo:i(e.echo)?ResponseEcho.fromJSON(e.echo):void 0,flush:i(e.flush)?ResponseFlush.fromJSON(e.flush):void 0,info:i(e.info)?ResponseInfo.fromJSON(e.info):void 0,initChain:i(e.initChain)?ResponseInitChain.fromJSON(e.initChain):void 0,query:i(e.query)?ResponseQuery.fromJSON(e.query):void 0,checkTx:i(e.checkTx)?ResponseCheckTx.fromJSON(e.checkTx):void 0,commit:i(e.commit)?ResponseCommit.fromJSON(e.commit):void 0,listSnapshots:i(e.listSnapshots)?ResponseListSnapshots.fromJSON(e.listSnapshots):void 0,offerSnapshot:i(e.offerSnapshot)?ResponseOfferSnapshot.fromJSON(e.offerSnapshot):void 0,loadSnapshotChunk:i(e.loadSnapshotChunk)?ResponseLoadSnapshotChunk.fromJSON(e.loadSnapshotChunk):void 0,applySnapshotChunk:i(e.applySnapshotChunk)?ResponseApplySnapshotChunk.fromJSON(e.applySnapshotChunk):void 0,prepareProposal:i(e.prepareProposal)?ResponsePrepareProposal.fromJSON(e.prepareProposal):void 0,processProposal:i(e.processProposal)?ResponseProcessProposal.fromJSON(e.processProposal):void 0,extendVote:i(e.extendVote)?ResponseExtendVote.fromJSON(e.extendVote):void 0,verifyVoteExtension:i(e.verifyVoteExtension)?ResponseVerifyVoteExtension.fromJSON(e.verifyVoteExtension):void 0,finalizeBlock:i(e.finalizeBlock)?ResponseFinalizeBlock.fromJSON(e.finalizeBlock):void 0}},toJSON(e){const n={};return e.exception!==void 0&&(n.exception=e.exception?ResponseException.toJSON(e.exception):void 0),e.echo!==void 0&&(n.echo=e.echo?ResponseEcho.toJSON(e.echo):void 0),e.flush!==void 0&&(n.flush=e.flush?ResponseFlush.toJSON(e.flush):void 0),e.info!==void 0&&(n.info=e.info?ResponseInfo.toJSON(e.info):void 0),e.initChain!==void 0&&(n.initChain=e.initChain?ResponseInitChain.toJSON(e.initChain):void 0),e.query!==void 0&&(n.query=e.query?ResponseQuery.toJSON(e.query):void 0),e.checkTx!==void 0&&(n.checkTx=e.checkTx?ResponseCheckTx.toJSON(e.checkTx):void 0),e.commit!==void 0&&(n.commit=e.commit?ResponseCommit.toJSON(e.commit):void 0),e.listSnapshots!==void 0&&(n.listSnapshots=e.listSnapshots?ResponseListSnapshots.toJSON(e.listSnapshots):void 0),e.offerSnapshot!==void 0&&(n.offerSnapshot=e.offerSnapshot?ResponseOfferSnapshot.toJSON(e.offerSnapshot):void 0),e.loadSnapshotChunk!==void 0&&(n.loadSnapshotChunk=e.loadSnapshotChunk?ResponseLoadSnapshotChunk.toJSON(e.loadSnapshotChunk):void 0),e.applySnapshotChunk!==void 0&&(n.applySnapshotChunk=e.applySnapshotChunk?ResponseApplySnapshotChunk.toJSON(e.applySnapshotChunk):void 0),e.prepareProposal!==void 0&&(n.prepareProposal=e.prepareProposal?ResponsePrepareProposal.toJSON(e.prepareProposal):void 0),e.processProposal!==void 0&&(n.processProposal=e.processProposal?ResponseProcessProposal.toJSON(e.processProposal):void 0),e.extendVote!==void 0&&(n.extendVote=e.extendVote?ResponseExtendVote.toJSON(e.extendVote):void 0),e.verifyVoteExtension!==void 0&&(n.verifyVoteExtension=e.verifyVoteExtension?ResponseVerifyVoteExtension.toJSON(e.verifyVoteExtension):void 0),e.finalizeBlock!==void 0&&(n.finalizeBlock=e.finalizeBlock?ResponseFinalizeBlock.toJSON(e.finalizeBlock):void 0),n},fromPartial(e){const n=K();return n.exception=e.exception!==void 0&&e.exception!==null?ResponseException.fromPartial(e.exception):void 0,n.echo=e.echo!==void 0&&e.echo!==null?ResponseEcho.fromPartial(e.echo):void 0,n.flush=e.flush!==void 0&&e.flush!==null?ResponseFlush.fromPartial(e.flush):void 0,n.info=e.info!==void 0&&e.info!==null?ResponseInfo.fromPartial(e.info):void 0,n.initChain=e.initChain!==void 0&&e.initChain!==null?ResponseInitChain.fromPartial(e.initChain):void 0,n.query=e.query!==void 0&&e.query!==null?ResponseQuery.fromPartial(e.query):void 0,n.checkTx=e.checkTx!==void 0&&e.checkTx!==null?ResponseCheckTx.fromPartial(e.checkTx):void 0,n.commit=e.commit!==void 0&&e.commit!==null?ResponseCommit.fromPartial(e.commit):void 0,n.listSnapshots=e.listSnapshots!==void 0&&e.listSnapshots!==null?ResponseListSnapshots.fromPartial(e.listSnapshots):void 0,n.offerSnapshot=e.offerSnapshot!==void 0&&e.offerSnapshot!==null?ResponseOfferSnapshot.fromPartial(e.offerSnapshot):void 0,n.loadSnapshotChunk=e.loadSnapshotChunk!==void 0&&e.loadSnapshotChunk!==null?ResponseLoadSnapshotChunk.fromPartial(e.loadSnapshotChunk):void 0,n.applySnapshotChunk=e.applySnapshotChunk!==void 0&&e.applySnapshotChunk!==null?ResponseApplySnapshotChunk.fromPartial(e.applySnapshotChunk):void 0,n.prepareProposal=e.prepareProposal!==void 0&&e.prepareProposal!==null?ResponsePrepareProposal.fromPartial(e.prepareProposal):void 0,n.processProposal=e.processProposal!==void 0&&e.processProposal!==null?ResponseProcessProposal.fromPartial(e.processProposal):void 0,n.extendVote=e.extendVote!==void 0&&e.extendVote!==null?ResponseExtendVote.fromPartial(e.extendVote):void 0,n.verifyVoteExtension=e.verifyVoteExtension!==void 0&&e.verifyVoteExtension!==null?ResponseVerifyVoteExtension.fromPartial(e.verifyVoteExtension):void 0,n.finalizeBlock=e.finalizeBlock!==void 0&&e.finalizeBlock!==null?ResponseFinalizeBlock.fromPartial(e.finalizeBlock):void 0,n},fromProtoMsg(e){return Response.decode(e.value)},toProto(e){return Response.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.Response",value:Response.encode(e).finish()}}};function D(){return{error:""}}export const ResponseException={typeUrl:"/tendermint.abci.ResponseException",is(e){return e&&(e.$typeUrl===ResponseException.typeUrl||typeof e.error=="string")},isSDK(e){return e&&(e.$typeUrl===ResponseException.typeUrl||typeof e.error=="string")},encode(e,n=d.create()){return e.error!==""&&n.uint32(10).string(e.error),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=D();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.error=t.string();break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{error:i(e.error)?String(e.error):""}},toJSON(e){const n={};return e.error!==void 0&&(n.error=e.error),n},fromPartial(e){const n=D();return n.error=e.error??"",n},fromProtoMsg(e){return ResponseException.decode(e.value)},toProto(e){return ResponseException.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.ResponseException",value:ResponseException.encode(e).finish()}}};function M(){return{message:""}}export const ResponseEcho={typeUrl:"/tendermint.abci.ResponseEcho",is(e){return e&&(e.$typeUrl===ResponseEcho.typeUrl||typeof e.message=="string")},isSDK(e){return e&&(e.$typeUrl===ResponseEcho.typeUrl||typeof e.message=="string")},encode(e,n=d.create()){return e.message!==""&&n.uint32(10).string(e.message),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=M();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.message=t.string();break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{message:i(e.message)?String(e.message):""}},toJSON(e){const n={};return e.message!==void 0&&(n.message=e.message),n},fromPartial(e){const n=M();return n.message=e.message??"",n},fromProtoMsg(e){return ResponseEcho.decode(e.value)},toProto(e){return ResponseEcho.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.ResponseEcho",value:ResponseEcho.encode(e).finish()}}};function _(){return{}}export const ResponseFlush={typeUrl:"/tendermint.abci.ResponseFlush",is(e){return e&&e.$typeUrl===ResponseFlush.typeUrl},isSDK(e){return e&&e.$typeUrl===ResponseFlush.typeUrl},encode(e,n=d.create()){return n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=_();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){default:t.skipType(s&7);break}}return r},fromJSON(e){return{}},toJSON(e){return{}},fromPartial(e){return _()},fromProtoMsg(e){return ResponseFlush.decode(e.value)},toProto(e){return ResponseFlush.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.ResponseFlush",value:ResponseFlush.encode(e).finish()}}};function H(){return{data:"",version:"",appVersion:BigInt(0),lastBlockHeight:BigInt(0),lastBlockAppHash:new Uint8Array}}export const ResponseInfo={typeUrl:"/tendermint.abci.ResponseInfo",is(e){return e&&(e.$typeUrl===ResponseInfo.typeUrl||typeof e.data=="string"&&typeof e.version=="string"&&typeof e.appVersion=="bigint"&&typeof e.lastBlockHeight=="bigint"&&(e.lastBlockAppHash instanceof Uint8Array||typeof e.lastBlockAppHash=="string"))},isSDK(e){return e&&(e.$typeUrl===ResponseInfo.typeUrl||typeof e.data=="string"&&typeof e.version=="string"&&typeof e.app_version=="bigint"&&typeof e.last_block_height=="bigint"&&(e.last_block_app_hash instanceof Uint8Array||typeof e.last_block_app_hash=="string"))},encode(e,n=d.create()){return e.data!==""&&n.uint32(10).string(e.data),e.version!==""&&n.uint32(18).string(e.version),e.appVersion!==BigInt(0)&&n.uint32(24).uint64(e.appVersion),e.lastBlockHeight!==BigInt(0)&&n.uint32(32).int64(e.lastBlockHeight),e.lastBlockAppHash.length!==0&&n.uint32(42).bytes(e.lastBlockAppHash),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=H();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.data=t.string();break;case 2:r.version=t.string();break;case 3:r.appVersion=t.uint64();break;case 4:r.lastBlockHeight=t.int64();break;case 5:r.lastBlockAppHash=t.bytes();break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{data:i(e.data)?String(e.data):"",version:i(e.version)?String(e.version):"",appVersion:i(e.appVersion)?BigInt(e.appVersion.toString()):BigInt(0),lastBlockHeight:i(e.lastBlockHeight)?BigInt(e.lastBlockHeight.toString()):BigInt(0),lastBlockAppHash:i(e.lastBlockAppHash)?p(e.lastBlockAppHash):new Uint8Array}},toJSON(e){const n={};return e.data!==void 0&&(n.data=e.data),e.version!==void 0&&(n.version=e.version),e.appVersion!==void 0&&(n.appVersion=(e.appVersion||BigInt(0)).toString()),e.lastBlockHeight!==void 0&&(n.lastBlockHeight=(e.lastBlockHeight||BigInt(0)).toString()),e.lastBlockAppHash!==void 0&&(n.lastBlockAppHash=u(e.lastBlockAppHash!==void 0?e.lastBlockAppHash:new Uint8Array)),n},fromPartial(e){const n=H();return n.data=e.data??"",n.version=e.version??"",n.appVersion=e.appVersion!==void 0&&e.appVersion!==null?BigInt(e.appVersion.toString()):BigInt(0),n.lastBlockHeight=e.lastBlockHeight!==void 0&&e.lastBlockHeight!==null?BigInt(e.lastBlockHeight.toString()):BigInt(0),n.lastBlockAppHash=e.lastBlockAppHash??new Uint8Array,n},fromProtoMsg(e){return ResponseInfo.decode(e.value)},toProto(e){return ResponseInfo.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.ResponseInfo",value:ResponseInfo.encode(e).finish()}}};function L(){return{consensusParams:void 0,validators:[],appHash:new Uint8Array}}export const ResponseInitChain={typeUrl:"/tendermint.abci.ResponseInitChain",is(e){return e&&(e.$typeUrl===ResponseInitChain.typeUrl||Array.isArray(e.validators)&&(!e.validators.length||ValidatorUpdate.is(e.validators[0]))&&(e.appHash instanceof Uint8Array||typeof e.appHash=="string"))},isSDK(e){return e&&(e.$typeUrl===ResponseInitChain.typeUrl||Array.isArray(e.validators)&&(!e.validators.length||ValidatorUpdate.isSDK(e.validators[0]))&&(e.app_hash instanceof Uint8Array||typeof e.app_hash=="string"))},encode(e,n=d.create()){e.consensusParams!==void 0&&h.encode(e.consensusParams,n.uint32(10).fork()).ldelim();for(const t of e.validators)ValidatorUpdate.encode(t,n.uint32(18).fork()).ldelim();return e.appHash.length!==0&&n.uint32(26).bytes(e.appHash),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=L();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.consensusParams=h.decode(t,t.uint32());break;case 2:r.validators.push(ValidatorUpdate.decode(t,t.uint32()));break;case 3:r.appHash=t.bytes();break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{consensusParams:i(e.consensusParams)?h.fromJSON(e.consensusParams):void 0,validators:Array.isArray(e?.validators)?e.validators.map(n=>ValidatorUpdate.fromJSON(n)):[],appHash:i(e.appHash)?p(e.appHash):new Uint8Array}},toJSON(e){const n={};return e.consensusParams!==void 0&&(n.consensusParams=e.consensusParams?h.toJSON(e.consensusParams):void 0),e.validators?n.validators=e.validators.map(t=>t?ValidatorUpdate.toJSON(t):void 0):n.validators=[],e.appHash!==void 0&&(n.appHash=u(e.appHash!==void 0?e.appHash:new Uint8Array)),n},fromPartial(e){const n=L();return n.consensusParams=e.consensusParams!==void 0&&e.consensusParams!==null?h.fromPartial(e.consensusParams):void 0,n.validators=e.validators?.map(t=>ValidatorUpdate.fromPartial(t))||[],n.appHash=e.appHash??new Uint8Array,n},fromProtoMsg(e){return ResponseInitChain.decode(e.value)},toProto(e){return ResponseInitChain.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.ResponseInitChain",value:ResponseInitChain.encode(e).finish()}}};function w(){return{code:0,log:"",info:"",index:BigInt(0),key:new Uint8Array,value:new Uint8Array,proofOps:void 0,height:BigInt(0),codespace:""}}export const ResponseQuery={typeUrl:"/tendermint.abci.ResponseQuery",is(e){return e&&(e.$typeUrl===ResponseQuery.typeUrl||typeof e.code=="number"&&typeof e.log=="string"&&typeof e.info=="string"&&typeof e.index=="bigint"&&(e.key instanceof Uint8Array||typeof e.key=="string")&&(e.value instanceof Uint8Array||typeof e.value=="string")&&typeof e.height=="bigint"&&typeof e.codespace=="string")},isSDK(e){return e&&(e.$typeUrl===ResponseQuery.typeUrl||typeof e.code=="number"&&typeof e.log=="string"&&typeof e.info=="string"&&typeof e.index=="bigint"&&(e.key instanceof Uint8Array||typeof e.key=="string")&&(e.value instanceof Uint8Array||typeof e.value=="string")&&typeof e.height=="bigint"&&typeof e.codespace=="string")},encode(e,n=d.create()){return e.code!==0&&n.uint32(8).uint32(e.code),e.log!==""&&n.uint32(26).string(e.log),e.info!==""&&n.uint32(34).string(e.info),e.index!==BigInt(0)&&n.uint32(40).int64(e.index),e.key.length!==0&&n.uint32(50).bytes(e.key),e.value.length!==0&&n.uint32(58).bytes(e.value),e.proofOps!==void 0&&S.encode(e.proofOps,n.uint32(66).fork()).ldelim(),e.height!==BigInt(0)&&n.uint32(72).int64(e.height),e.codespace!==""&&n.uint32(82).string(e.codespace),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=w();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.code=t.uint32();break;case 3:r.log=t.string();break;case 4:r.info=t.string();break;case 5:r.index=t.int64();break;case 6:r.key=t.bytes();break;case 7:r.value=t.bytes();break;case 8:r.proofOps=S.decode(t,t.uint32());break;case 9:r.height=t.int64();break;case 10:r.codespace=t.string();break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{code:i(e.code)?Number(e.code):0,log:i(e.log)?String(e.log):"",info:i(e.info)?String(e.info):"",index:i(e.index)?BigInt(e.index.toString()):BigInt(0),key:i(e.key)?p(e.key):new Uint8Array,value:i(e.value)?p(e.value):new Uint8Array,proofOps:i(e.proofOps)?S.fromJSON(e.proofOps):void 0,height:i(e.height)?BigInt(e.height.toString()):BigInt(0),codespace:i(e.codespace)?String(e.codespace):""}},toJSON(e){const n={};return e.code!==void 0&&(n.code=Math.round(e.code)),e.log!==void 0&&(n.log=e.log),e.info!==void 0&&(n.info=e.info),e.index!==void 0&&(n.index=(e.index||BigInt(0)).toString()),e.key!==void 0&&(n.key=u(e.key!==void 0?e.key:new Uint8Array)),e.value!==void 0&&(n.value=u(e.value!==void 0?e.value:new Uint8Array)),e.proofOps!==void 0&&(n.proofOps=e.proofOps?S.toJSON(e.proofOps):void 0),e.height!==void 0&&(n.height=(e.height||BigInt(0)).toString()),e.codespace!==void 0&&(n.codespace=e.codespace),n},fromPartial(e){const n=w();return n.code=e.code??0,n.log=e.log??"",n.info=e.info??"",n.index=e.index!==void 0&&e.index!==null?BigInt(e.index.toString()):BigInt(0),n.key=e.key??new Uint8Array,n.value=e.value??new Uint8Array,n.proofOps=e.proofOps!==void 0&&e.proofOps!==null?S.fromPartial(e.proofOps):void 0,n.height=e.height!==void 0&&e.height!==null?BigInt(e.height.toString()):BigInt(0),n.codespace=e.codespace??"",n},fromProtoMsg(e){return ResponseQuery.decode(e.value)},toProto(e){return ResponseQuery.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.ResponseQuery",value:ResponseQuery.encode(e).finish()}}};function W(){return{code:0,data:new Uint8Array,log:"",info:"",gasWanted:BigInt(0),gasUsed:BigInt(0),events:[],codespace:""}}export const ResponseCheckTx={typeUrl:"/tendermint.abci.ResponseCheckTx",is(e){return e&&(e.$typeUrl===ResponseCheckTx.typeUrl||typeof e.code=="number"&&(e.data instanceof Uint8Array||typeof e.data=="string")&&typeof e.log=="string"&&typeof e.info=="string"&&typeof e.gasWanted=="bigint"&&typeof e.gasUsed=="bigint"&&Array.isArray(e.events)&&(!e.events.length||Event.is(e.events[0]))&&typeof e.codespace=="string")},isSDK(e){return e&&(e.$typeUrl===ResponseCheckTx.typeUrl||typeof e.code=="number"&&(e.data instanceof Uint8Array||typeof e.data=="string")&&typeof e.log=="string"&&typeof e.info=="string"&&typeof e.gas_wanted=="bigint"&&typeof e.gas_used=="bigint"&&Array.isArray(e.events)&&(!e.events.length||Event.isSDK(e.events[0]))&&typeof e.codespace=="string")},encode(e,n=d.create()){e.code!==0&&n.uint32(8).uint32(e.code),e.data.length!==0&&n.uint32(18).bytes(e.data),e.log!==""&&n.uint32(26).string(e.log),e.info!==""&&n.uint32(34).string(e.info),e.gasWanted!==BigInt(0)&&n.uint32(40).int64(e.gasWanted),e.gasUsed!==BigInt(0)&&n.uint32(48).int64(e.gasUsed);for(const t of e.events)Event.encode(t,n.uint32(58).fork()).ldelim();return e.codespace!==""&&n.uint32(66).string(e.codespace),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=W();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.code=t.uint32();break;case 2:r.data=t.bytes();break;case 3:r.log=t.string();break;case 4:r.info=t.string();break;case 5:r.gasWanted=t.int64();break;case 6:r.gasUsed=t.int64();break;case 7:r.events.push(Event.decode(t,t.uint32()));break;case 8:r.codespace=t.string();break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{code:i(e.code)?Number(e.code):0,data:i(e.data)?p(e.data):new Uint8Array,log:i(e.log)?String(e.log):"",info:i(e.info)?String(e.info):"",gasWanted:i(e.gas_wanted)?BigInt(e.gas_wanted.toString()):BigInt(0),gasUsed:i(e.gas_used)?BigInt(e.gas_used.toString()):BigInt(0),events:Array.isArray(e?.events)?e.events.map(n=>Event.fromJSON(n)):[],codespace:i(e.codespace)?String(e.codespace):""}},toJSON(e){const n={};return e.code!==void 0&&(n.code=Math.round(e.code)),e.data!==void 0&&(n.data=u(e.data!==void 0?e.data:new Uint8Array)),e.log!==void 0&&(n.log=e.log),e.info!==void 0&&(n.info=e.info),e.gasWanted!==void 0&&(n.gas_wanted=(e.gasWanted||BigInt(0)).toString()),e.gasUsed!==void 0&&(n.gas_used=(e.gasUsed||BigInt(0)).toString()),e.events?n.events=e.events.map(t=>t?Event.toJSON(t):void 0):n.events=[],e.codespace!==void 0&&(n.codespace=e.codespace),n},fromPartial(e){const n=W();return n.code=e.code??0,n.data=e.data??new Uint8Array,n.log=e.log??"",n.info=e.info??"",n.gasWanted=e.gasWanted!==void 0&&e.gasWanted!==null?BigInt(e.gasWanted.toString()):BigInt(0),n.gasUsed=e.gasUsed!==void 0&&e.gasUsed!==null?BigInt(e.gasUsed.toString()):BigInt(0),n.events=e.events?.map(t=>Event.fromPartial(t))||[],n.codespace=e.codespace??"",n},fromProtoMsg(e){return ResponseCheckTx.decode(e.value)},toProto(e){return ResponseCheckTx.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.ResponseCheckTx",value:ResponseCheckTx.encode(e).finish()}}};function F(){return{retainHeight:BigInt(0)}}export const ResponseCommit={typeUrl:"/tendermint.abci.ResponseCommit",is(e){return e&&(e.$typeUrl===ResponseCommit.typeUrl||typeof e.retainHeight=="bigint")},isSDK(e){return e&&(e.$typeUrl===ResponseCommit.typeUrl||typeof e.retain_height=="bigint")},encode(e,n=d.create()){return e.retainHeight!==BigInt(0)&&n.uint32(24).int64(e.retainHeight),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=F();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 3:r.retainHeight=t.int64();break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{retainHeight:i(e.retainHeight)?BigInt(e.retainHeight.toString()):BigInt(0)}},toJSON(e){const n={};return e.retainHeight!==void 0&&(n.retainHeight=(e.retainHeight||BigInt(0)).toString()),n},fromPartial(e){const n=F();return n.retainHeight=e.retainHeight!==void 0&&e.retainHeight!==null?BigInt(e.retainHeight.toString()):BigInt(0),n},fromProtoMsg(e){return ResponseCommit.decode(e.value)},toProto(e){return ResponseCommit.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.ResponseCommit",value:ResponseCommit.encode(e).finish()}}};function $(){return{snapshots:[]}}export const ResponseListSnapshots={typeUrl:"/tendermint.abci.ResponseListSnapshots",is(e){return e&&(e.$typeUrl===ResponseListSnapshots.typeUrl||Array.isArray(e.snapshots)&&(!e.snapshots.length||Snapshot.is(e.snapshots[0])))},isSDK(e){return e&&(e.$typeUrl===ResponseListSnapshots.typeUrl||Array.isArray(e.snapshots)&&(!e.snapshots.length||Snapshot.isSDK(e.snapshots[0])))},encode(e,n=d.create()){for(const t of e.snapshots)Snapshot.encode(t,n.uint32(10).fork()).ldelim();return n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=$();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.snapshots.push(Snapshot.decode(t,t.uint32()));break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{snapshots:Array.isArray(e?.snapshots)?e.snapshots.map(n=>Snapshot.fromJSON(n)):[]}},toJSON(e){const n={};return e.snapshots?n.snapshots=e.snapshots.map(t=>t?Snapshot.toJSON(t):void 0):n.snapshots=[],n},fromPartial(e){const n=$();return n.snapshots=e.snapshots?.map(t=>Snapshot.fromPartial(t))||[],n},fromProtoMsg(e){return ResponseListSnapshots.decode(e.value)},toProto(e){return ResponseListSnapshots.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.ResponseListSnapshots",value:ResponseListSnapshots.encode(e).finish()}}};function z(){return{result:0}}export const ResponseOfferSnapshot={typeUrl:"/tendermint.abci.ResponseOfferSnapshot",is(e){return e&&(e.$typeUrl===ResponseOfferSnapshot.typeUrl||i(e.result))},isSDK(e){return e&&(e.$typeUrl===ResponseOfferSnapshot.typeUrl||i(e.result))},encode(e,n=d.create()){return e.result!==0&&n.uint32(8).int32(e.result),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=z();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.result=t.int32();break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{result:i(e.result)?responseOfferSnapshot_ResultFromJSON(e.result):-1}},toJSON(e){const n={};return e.result!==void 0&&(n.result=responseOfferSnapshot_ResultToJSON(e.result)),n},fromPartial(e){const n=z();return n.result=e.result??0,n},fromProtoMsg(e){return ResponseOfferSnapshot.decode(e.value)},toProto(e){return ResponseOfferSnapshot.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.ResponseOfferSnapshot",value:ResponseOfferSnapshot.encode(e).finish()}}};function Q(){return{chunk:new Uint8Array}}export const ResponseLoadSnapshotChunk={typeUrl:"/tendermint.abci.ResponseLoadSnapshotChunk",is(e){return e&&(e.$typeUrl===ResponseLoadSnapshotChunk.typeUrl||e.chunk instanceof Uint8Array||typeof e.chunk=="string")},isSDK(e){return e&&(e.$typeUrl===ResponseLoadSnapshotChunk.typeUrl||e.chunk instanceof Uint8Array||typeof e.chunk=="string")},encode(e,n=d.create()){return e.chunk.length!==0&&n.uint32(10).bytes(e.chunk),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=Q();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.chunk=t.bytes();break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{chunk:i(e.chunk)?p(e.chunk):new Uint8Array}},toJSON(e){const n={};return e.chunk!==void 0&&(n.chunk=u(e.chunk!==void 0?e.chunk:new Uint8Array)),n},fromPartial(e){const n=Q();return n.chunk=e.chunk??new Uint8Array,n},fromProtoMsg(e){return ResponseLoadSnapshotChunk.decode(e.value)},toProto(e){return ResponseLoadSnapshotChunk.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.ResponseLoadSnapshotChunk",value:ResponseLoadSnapshotChunk.encode(e).finish()}}};function G(){return{result:0,refetchChunks:[],rejectSenders:[]}}export const ResponseApplySnapshotChunk={typeUrl:"/tendermint.abci.ResponseApplySnapshotChunk",is(e){return e&&(e.$typeUrl===ResponseApplySnapshotChunk.typeUrl||i(e.result)&&Array.isArray(e.refetchChunks)&&(!e.refetchChunks.length||typeof e.refetchChunks[0]=="number")&&Array.isArray(e.rejectSenders)&&(!e.rejectSenders.length||typeof e.rejectSenders[0]=="string"))},isSDK(e){return e&&(e.$typeUrl===ResponseApplySnapshotChunk.typeUrl||i(e.result)&&Array.isArray(e.refetch_chunks)&&(!e.refetch_chunks.length||typeof e.refetch_chunks[0]=="number")&&Array.isArray(e.reject_senders)&&(!e.reject_senders.length||typeof e.reject_senders[0]=="string"))},encode(e,n=d.create()){e.result!==0&&n.uint32(8).int32(e.result),n.uint32(18).fork();for(const t of e.refetchChunks)n.uint32(t);n.ldelim();for(const t of e.rejectSenders)n.uint32(26).string(t);return n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=G();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.result=t.int32();break;case 2:if((s&7)===2){const he=t.uint32()+t.pos;for(;t.pos<he;)r.refetchChunks.push(t.uint32())}else r.refetchChunks.push(t.uint32());break;case 3:r.rejectSenders.push(t.string());break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{result:i(e.result)?responseApplySnapshotChunk_ResultFromJSON(e.result):-1,refetchChunks:Array.isArray(e?.refetchChunks)?e.refetchChunks.map(n=>Number(n)):[],rejectSenders:Array.isArray(e?.rejectSenders)?e.rejectSenders.map(n=>String(n)):[]}},toJSON(e){const n={};return e.result!==void 0&&(n.result=responseApplySnapshotChunk_ResultToJSON(e.result)),e.refetchChunks?n.refetchChunks=e.refetchChunks.map(t=>Math.round(t)):n.refetchChunks=[],e.rejectSenders?n.rejectSenders=e.rejectSenders.map(t=>t):n.rejectSenders=[],n},fromPartial(e){const n=G();return n.result=e.result??0,n.refetchChunks=e.refetchChunks?.map(t=>t)||[],n.rejectSenders=e.rejectSenders?.map(t=>t)||[],n},fromProtoMsg(e){return ResponseApplySnapshotChunk.decode(e.value)},toProto(e){return ResponseApplySnapshotChunk.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.ResponseApplySnapshotChunk",value:ResponseApplySnapshotChunk.encode(e).finish()}}};function Z(){return{txs:[]}}export const ResponsePrepareProposal={typeUrl:"/tendermint.abci.ResponsePrepareProposal",is(e){return e&&(e.$typeUrl===ResponsePrepareProposal.typeUrl||Array.isArray(e.txs)&&(!e.txs.length||e.txs[0]instanceof Uint8Array||typeof e.txs[0]=="string"))},isSDK(e){return e&&(e.$typeUrl===ResponsePrepareProposal.typeUrl||Array.isArray(e.txs)&&(!e.txs.length||e.txs[0]instanceof Uint8Array||typeof e.txs[0]=="string"))},encode(e,n=d.create()){for(const t of e.txs)n.uint32(10).bytes(t);return n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=Z();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.txs.push(t.bytes());break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{txs:Array.isArray(e?.txs)?e.txs.map(n=>p(n)):[]}},toJSON(e){const n={};return e.txs?n.txs=e.txs.map(t=>u(t!==void 0?t:new Uint8Array)):n.txs=[],n},fromPartial(e){const n=Z();return n.txs=e.txs?.map(t=>t)||[],n},fromProtoMsg(e){return ResponsePrepareProposal.decode(e.value)},toProto(e){return ResponsePrepareProposal.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.ResponsePrepareProposal",value:ResponsePrepareProposal.encode(e).finish()}}};function Y(){return{status:0}}export const ResponseProcessProposal={typeUrl:"/tendermint.abci.ResponseProcessProposal",is(e){return e&&(e.$typeUrl===ResponseProcessProposal.typeUrl||i(e.status))},isSDK(e){return e&&(e.$typeUrl===ResponseProcessProposal.typeUrl||i(e.status))},encode(e,n=d.create()){return e.status!==0&&n.uint32(8).int32(e.status),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=Y();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.status=t.int32();break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{status:i(e.status)?responseProcessProposal_ProposalStatusFromJSON(e.status):-1}},toJSON(e){const n={};return e.status!==void 0&&(n.status=responseProcessProposal_ProposalStatusToJSON(e.status)),n},fromPartial(e){const n=Y();return n.status=e.status??0,n},fromProtoMsg(e){return ResponseProcessProposal.decode(e.value)},toProto(e){return ResponseProcessProposal.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.ResponseProcessProposal",value:ResponseProcessProposal.encode(e).finish()}}};function X(){return{voteExtension:new Uint8Array}}export const ResponseExtendVote={typeUrl:"/tendermint.abci.ResponseExtendVote",is(e){return e&&(e.$typeUrl===ResponseExtendVote.typeUrl||e.voteExtension instanceof Uint8Array||typeof e.voteExtension=="string")},isSDK(e){return e&&(e.$typeUrl===ResponseExtendVote.typeUrl||e.vote_extension instanceof Uint8Array||typeof e.vote_extension=="string")},encode(e,n=d.create()){return e.voteExtension.length!==0&&n.uint32(10).bytes(e.voteExtension),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=X();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.voteExtension=t.bytes();break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{voteExtension:i(e.voteExtension)?p(e.voteExtension):new Uint8Array}},toJSON(e){const n={};return e.voteExtension!==void 0&&(n.voteExtension=u(e.voteExtension!==void 0?e.voteExtension:new Uint8Array)),n},fromPartial(e){const n=X();return n.voteExtension=e.voteExtension??new Uint8Array,n},fromProtoMsg(e){return ResponseExtendVote.decode(e.value)},toProto(e){return ResponseExtendVote.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.ResponseExtendVote",value:ResponseExtendVote.encode(e).finish()}}};function j(){return{status:0}}export const ResponseVerifyVoteExtension={typeUrl:"/tendermint.abci.ResponseVerifyVoteExtension",is(e){return e&&(e.$typeUrl===ResponseVerifyVoteExtension.typeUrl||i(e.status))},isSDK(e){return e&&(e.$typeUrl===ResponseVerifyVoteExtension.typeUrl||i(e.status))},encode(e,n=d.create()){return e.status!==0&&n.uint32(8).int32(e.status),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=j();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.status=t.int32();break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{status:i(e.status)?responseVerifyVoteExtension_VerifyStatusFromJSON(e.status):-1}},toJSON(e){const n={};return e.status!==void 0&&(n.status=responseVerifyVoteExtension_VerifyStatusToJSON(e.status)),n},fromPartial(e){const n=j();return n.status=e.status??0,n},fromProtoMsg(e){return ResponseVerifyVoteExtension.decode(e.value)},toProto(e){return ResponseVerifyVoteExtension.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.ResponseVerifyVoteExtension",value:ResponseVerifyVoteExtension.encode(e).finish()}}};function ee(){return{events:[],txResults:[],validatorUpdates:[],consensusParamUpdates:void 0,appHash:new Uint8Array}}export const ResponseFinalizeBlock={typeUrl:"/tendermint.abci.ResponseFinalizeBlock",is(e){return e&&(e.$typeUrl===ResponseFinalizeBlock.typeUrl||Array.isArray(e.events)&&(!e.events.length||Event.is(e.events[0]))&&Array.isArray(e.txResults)&&(!e.txResults.length||ExecTxResult.is(e.txResults[0]))&&Array.isArray(e.validatorUpdates)&&(!e.validatorUpdates.length||ValidatorUpdate.is(e.validatorUpdates[0]))&&(e.appHash instanceof Uint8Array||typeof e.appHash=="string"))},isSDK(e){return e&&(e.$typeUrl===ResponseFinalizeBlock.typeUrl||Array.isArray(e.events)&&(!e.events.length||Event.isSDK(e.events[0]))&&Array.isArray(e.tx_results)&&(!e.tx_results.length||ExecTxResult.isSDK(e.tx_results[0]))&&Array.isArray(e.validator_updates)&&(!e.validator_updates.length||ValidatorUpdate.isSDK(e.validator_updates[0]))&&(e.app_hash instanceof Uint8Array||typeof e.app_hash=="string"))},encode(e,n=d.create()){for(const t of e.events)Event.encode(t,n.uint32(10).fork()).ldelim();for(const t of e.txResults)ExecTxResult.encode(t,n.uint32(18).fork()).ldelim();for(const t of e.validatorUpdates)ValidatorUpdate.encode(t,n.uint32(26).fork()).ldelim();return e.consensusParamUpdates!==void 0&&h.encode(e.consensusParamUpdates,n.uint32(34).fork()).ldelim(),e.appHash.length!==0&&n.uint32(42).bytes(e.appHash),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=ee();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.events.push(Event.decode(t,t.uint32()));break;case 2:r.txResults.push(ExecTxResult.decode(t,t.uint32()));break;case 3:r.validatorUpdates.push(ValidatorUpdate.decode(t,t.uint32()));break;case 4:r.consensusParamUpdates=h.decode(t,t.uint32());break;case 5:r.appHash=t.bytes();break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{events:Array.isArray(e?.events)?e.events.map(n=>Event.fromJSON(n)):[],txResults:Array.isArray(e?.txResults)?e.txResults.map(n=>ExecTxResult.fromJSON(n)):[],validatorUpdates:Array.isArray(e?.validatorUpdates)?e.validatorUpdates.map(n=>ValidatorUpdate.fromJSON(n)):[],consensusParamUpdates:i(e.consensusParamUpdates)?h.fromJSON(e.consensusParamUpdates):void 0,appHash:i(e.appHash)?p(e.appHash):new Uint8Array}},toJSON(e){const n={};return e.events?n.events=e.events.map(t=>t?Event.toJSON(t):void 0):n.events=[],e.txResults?n.txResults=e.txResults.map(t=>t?ExecTxResult.toJSON(t):void 0):n.txResults=[],e.validatorUpdates?n.validatorUpdates=e.validatorUpdates.map(t=>t?ValidatorUpdate.toJSON(t):void 0):n.validatorUpdates=[],e.consensusParamUpdates!==void 0&&(n.consensusParamUpdates=e.consensusParamUpdates?h.toJSON(e.consensusParamUpdates):void 0),e.appHash!==void 0&&(n.appHash=u(e.appHash!==void 0?e.appHash:new Uint8Array)),n},fromPartial(e){const n=ee();return n.events=e.events?.map(t=>Event.fromPartial(t))||[],n.txResults=e.txResults?.map(t=>ExecTxResult.fromPartial(t))||[],n.validatorUpdates=e.validatorUpdates?.map(t=>ValidatorUpdate.fromPartial(t))||[],n.consensusParamUpdates=e.consensusParamUpdates!==void 0&&e.consensusParamUpdates!==null?h.fromPartial(e.consensusParamUpdates):void 0,n.appHash=e.appHash??new Uint8Array,n},fromProtoMsg(e){return ResponseFinalizeBlock.decode(e.value)},toProto(e){return ResponseFinalizeBlock.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.ResponseFinalizeBlock",value:ResponseFinalizeBlock.encode(e).finish()}}};function ne(){return{round:0,votes:[]}}export const CommitInfo={typeUrl:"/tendermint.abci.CommitInfo",is(e){return e&&(e.$typeUrl===CommitInfo.typeUrl||typeof e.round=="number"&&Array.isArray(e.votes)&&(!e.votes.length||VoteInfo.is(e.votes[0])))},isSDK(e){return e&&(e.$typeUrl===CommitInfo.typeUrl||typeof e.round=="number"&&Array.isArray(e.votes)&&(!e.votes.length||VoteInfo.isSDK(e.votes[0])))},encode(e,n=d.create()){e.round!==0&&n.uint32(8).int32(e.round);for(const t of e.votes)VoteInfo.encode(t,n.uint32(18).fork()).ldelim();return n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=ne();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.round=t.int32();break;case 2:r.votes.push(VoteInfo.decode(t,t.uint32()));break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{round:i(e.round)?Number(e.round):0,votes:Array.isArray(e?.votes)?e.votes.map(n=>VoteInfo.fromJSON(n)):[]}},toJSON(e){const n={};return e.round!==void 0&&(n.round=Math.round(e.round)),e.votes?n.votes=e.votes.map(t=>t?VoteInfo.toJSON(t):void 0):n.votes=[],n},fromPartial(e){const n=ne();return n.round=e.round??0,n.votes=e.votes?.map(t=>VoteInfo.fromPartial(t))||[],n},fromProtoMsg(e){return CommitInfo.decode(e.value)},toProto(e){return CommitInfo.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.CommitInfo",value:CommitInfo.encode(e).finish()}}};function te(){return{round:0,votes:[]}}export const ExtendedCommitInfo={typeUrl:"/tendermint.abci.ExtendedCommitInfo",is(e){return e&&(e.$typeUrl===ExtendedCommitInfo.typeUrl||typeof e.round=="number"&&Array.isArray(e.votes)&&(!e.votes.length||ExtendedVoteInfo.is(e.votes[0])))},isSDK(e){return e&&(e.$typeUrl===ExtendedCommitInfo.typeUrl||typeof e.round=="number"&&Array.isArray(e.votes)&&(!e.votes.length||ExtendedVoteInfo.isSDK(e.votes[0])))},encode(e,n=d.create()){e.round!==0&&n.uint32(8).int32(e.round);for(const t of e.votes)ExtendedVoteInfo.encode(t,n.uint32(18).fork()).ldelim();return n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=te();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.round=t.int32();break;case 2:r.votes.push(ExtendedVoteInfo.decode(t,t.uint32()));break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{round:i(e.round)?Number(e.round):0,votes:Array.isArray(e?.votes)?e.votes.map(n=>ExtendedVoteInfo.fromJSON(n)):[]}},toJSON(e){const n={};return e.round!==void 0&&(n.round=Math.round(e.round)),e.votes?n.votes=e.votes.map(t=>t?ExtendedVoteInfo.toJSON(t):void 0):n.votes=[],n},fromPartial(e){const n=te();return n.round=e.round??0,n.votes=e.votes?.map(t=>ExtendedVoteInfo.fromPartial(t))||[],n},fromProtoMsg(e){return ExtendedCommitInfo.decode(e.value)},toProto(e){return ExtendedCommitInfo.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.ExtendedCommitInfo",value:ExtendedCommitInfo.encode(e).finish()}}};function re(){return{type:"",attributes:[]}}export const Event={typeUrl:"/tendermint.abci.Event",is(e){return e&&(e.$typeUrl===Event.typeUrl||typeof e.type=="string"&&Array.isArray(e.attributes)&&(!e.attributes.length||EventAttribute.is(e.attributes[0])))},isSDK(e){return e&&(e.$typeUrl===Event.typeUrl||typeof e.type=="string"&&Array.isArray(e.attributes)&&(!e.attributes.length||EventAttribute.isSDK(e.attributes[0])))},encode(e,n=d.create()){e.type!==""&&n.uint32(10).string(e.type);for(const t of e.attributes)EventAttribute.encode(t,n.uint32(18).fork()).ldelim();return n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=re();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.type=t.string();break;case 2:r.attributes.push(EventAttribute.decode(t,t.uint32()));break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{type:i(e.type)?String(e.type):"",attributes:Array.isArray(e?.attributes)?e.attributes.map(n=>EventAttribute.fromJSON(n)):[]}},toJSON(e){const n={};return e.type!==void 0&&(n.type=e.type),e.attributes?n.attributes=e.attributes.map(t=>t?EventAttribute.toJSON(t):void 0):n.attributes=[],n},fromPartial(e){const n=re();return n.type=e.type??"",n.attributes=e.attributes?.map(t=>EventAttribute.fromPartial(t))||[],n},fromProtoMsg(e){return Event.decode(e.value)},toProto(e){return Event.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.Event",value:Event.encode(e).finish()}}};function ie(){return{key:"",value:"",index:!1}}export const EventAttribute={typeUrl:"/tendermint.abci.EventAttribute",is(e){return e&&(e.$typeUrl===EventAttribute.typeUrl||typeof e.key=="string"&&typeof e.value=="string"&&typeof e.index=="boolean")},isSDK(e){return e&&(e.$typeUrl===EventAttribute.typeUrl||typeof e.key=="string"&&typeof e.value=="string"&&typeof e.index=="boolean")},encode(e,n=d.create()){return e.key!==""&&n.uint32(10).string(e.key),e.value!==""&&n.uint32(18).string(e.value),e.index===!0&&n.uint32(24).bool(e.index),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=ie();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.key=t.string();break;case 2:r.value=t.string();break;case 3:r.index=t.bool();break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{key:i(e.key)?String(e.key):"",value:i(e.value)?String(e.value):"",index:i(e.index)?!!e.index:!1}},toJSON(e){const n={};return e.key!==void 0&&(n.key=e.key),e.value!==void 0&&(n.value=e.value),e.index!==void 0&&(n.index=e.index),n},fromPartial(e){const n=ie();return n.key=e.key??"",n.value=e.value??"",n.index=e.index??!1,n},fromProtoMsg(e){return EventAttribute.decode(e.value)},toProto(e){return EventAttribute.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.EventAttribute",value:EventAttribute.encode(e).finish()}}};function se(){return{code:0,data:new Uint8Array,log:"",info:"",gasWanted:BigInt(0),gasUsed:BigInt(0),events:[],codespace:""}}export const ExecTxResult={typeUrl:"/tendermint.abci.ExecTxResult",is(e){return e&&(e.$typeUrl===ExecTxResult.typeUrl||typeof e.code=="number"&&(e.data instanceof Uint8Array||typeof e.data=="string")&&typeof e.log=="string"&&typeof e.info=="string"&&typeof e.gasWanted=="bigint"&&typeof e.gasUsed=="bigint"&&Array.isArray(e.events)&&(!e.events.length||Event.is(e.events[0]))&&typeof e.codespace=="string")},isSDK(e){return e&&(e.$typeUrl===ExecTxResult.typeUrl||typeof e.code=="number"&&(e.data instanceof Uint8Array||typeof e.data=="string")&&typeof e.log=="string"&&typeof e.info=="string"&&typeof e.gas_wanted=="bigint"&&typeof e.gas_used=="bigint"&&Array.isArray(e.events)&&(!e.events.length||Event.isSDK(e.events[0]))&&typeof e.codespace=="string")},encode(e,n=d.create()){e.code!==0&&n.uint32(8).uint32(e.code),e.data.length!==0&&n.uint32(18).bytes(e.data),e.log!==""&&n.uint32(26).string(e.log),e.info!==""&&n.uint32(34).string(e.info),e.gasWanted!==BigInt(0)&&n.uint32(40).int64(e.gasWanted),e.gasUsed!==BigInt(0)&&n.uint32(48).int64(e.gasUsed);for(const t of e.events)Event.encode(t,n.uint32(58).fork()).ldelim();return e.codespace!==""&&n.uint32(66).string(e.codespace),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=se();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.code=t.uint32();break;case 2:r.data=t.bytes();break;case 3:r.log=t.string();break;case 4:r.info=t.string();break;case 5:r.gasWanted=t.int64();break;case 6:r.gasUsed=t.int64();break;case 7:r.events.push(Event.decode(t,t.uint32()));break;case 8:r.codespace=t.string();break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{code:i(e.code)?Number(e.code):0,data:i(e.data)?p(e.data):new Uint8Array,log:i(e.log)?String(e.log):"",info:i(e.info)?String(e.info):"",gasWanted:i(e.gas_wanted)?BigInt(e.gas_wanted.toString()):BigInt(0),gasUsed:i(e.gas_used)?BigInt(e.gas_used.toString()):BigInt(0),events:Array.isArray(e?.events)?e.events.map(n=>Event.fromJSON(n)):[],codespace:i(e.codespace)?String(e.codespace):""}},toJSON(e){const n={};return e.code!==void 0&&(n.code=Math.round(e.code)),e.data!==void 0&&(n.data=u(e.data!==void 0?e.data:new Uint8Array)),e.log!==void 0&&(n.log=e.log),e.info!==void 0&&(n.info=e.info),e.gasWanted!==void 0&&(n.gas_wanted=(e.gasWanted||BigInt(0)).toString()),e.gasUsed!==void 0&&(n.gas_used=(e.gasUsed||BigInt(0)).toString()),e.events?n.events=e.events.map(t=>t?Event.toJSON(t):void 0):n.events=[],e.codespace!==void 0&&(n.codespace=e.codespace),n},fromPartial(e){const n=se();return n.code=e.code??0,n.data=e.data??new Uint8Array,n.log=e.log??"",n.info=e.info??"",n.gasWanted=e.gasWanted!==void 0&&e.gasWanted!==null?BigInt(e.gasWanted.toString()):BigInt(0),n.gasUsed=e.gasUsed!==void 0&&e.gasUsed!==null?BigInt(e.gasUsed.toString()):BigInt(0),n.events=e.events?.map(t=>Event.fromPartial(t))||[],n.codespace=e.codespace??"",n},fromProtoMsg(e){return ExecTxResult.decode(e.value)},toProto(e){return ExecTxResult.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.ExecTxResult",value:ExecTxResult.encode(e).finish()}}};function oe(){return{height:BigInt(0),index:0,tx:new Uint8Array,result:ExecTxResult.fromPartial({})}}export const TxResult={typeUrl:"/tendermint.abci.TxResult",is(e){return e&&(e.$typeUrl===TxResult.typeUrl||typeof e.height=="bigint"&&typeof e.index=="number"&&(e.tx instanceof Uint8Array||typeof e.tx=="string")&&ExecTxResult.is(e.result))},isSDK(e){return e&&(e.$typeUrl===TxResult.typeUrl||typeof e.height=="bigint"&&typeof e.index=="number"&&(e.tx instanceof Uint8Array||typeof e.tx=="string")&&ExecTxResult.isSDK(e.result))},encode(e,n=d.create()){return e.height!==BigInt(0)&&n.uint32(8).int64(e.height),e.index!==0&&n.uint32(16).uint32(e.index),e.tx.length!==0&&n.uint32(26).bytes(e.tx),e.result!==void 0&&ExecTxResult.encode(e.result,n.uint32(34).fork()).ldelim(),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=oe();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.height=t.int64();break;case 2:r.index=t.uint32();break;case 3:r.tx=t.bytes();break;case 4:r.result=ExecTxResult.decode(t,t.uint32());break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{height:i(e.height)?BigInt(e.height.toString()):BigInt(0),index:i(e.index)?Number(e.index):0,tx:i(e.tx)?p(e.tx):new Uint8Array,result:i(e.result)?ExecTxResult.fromJSON(e.result):void 0}},toJSON(e){const n={};return e.height!==void 0&&(n.height=(e.height||BigInt(0)).toString()),e.index!==void 0&&(n.index=Math.round(e.index)),e.tx!==void 0&&(n.tx=u(e.tx!==void 0?e.tx:new Uint8Array)),e.result!==void 0&&(n.result=e.result?ExecTxResult.toJSON(e.result):void 0),n},fromPartial(e){const n=oe();return n.height=e.height!==void 0&&e.height!==null?BigInt(e.height.toString()):BigInt(0),n.index=e.index??0,n.tx=e.tx??new Uint8Array,n.result=e.result!==void 0&&e.result!==null?ExecTxResult.fromPartial(e.result):void 0,n},fromProtoMsg(e){return TxResult.decode(e.value)},toProto(e){return TxResult.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.TxResult",value:TxResult.encode(e).finish()}}};function ae(){return{address:new Uint8Array,power:BigInt(0)}}export const Validator={typeUrl:"/tendermint.abci.Validator",is(e){return e&&(e.$typeUrl===Validator.typeUrl||(e.address instanceof Uint8Array||typeof e.address=="string")&&typeof e.power=="bigint")},isSDK(e){return e&&(e.$typeUrl===Validator.typeUrl||(e.address instanceof Uint8Array||typeof e.address=="string")&&typeof e.power=="bigint")},encode(e,n=d.create()){return e.address.length!==0&&n.uint32(10).bytes(e.address),e.power!==BigInt(0)&&n.uint32(24).int64(e.power),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=ae();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.address=t.bytes();break;case 3:r.power=t.int64();break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{address:i(e.address)?p(e.address):new Uint8Array,power:i(e.power)?BigInt(e.power.toString()):BigInt(0)}},toJSON(e){const n={};return e.address!==void 0&&(n.address=u(e.address!==void 0?e.address:new Uint8Array)),e.power!==void 0&&(n.power=(e.power||BigInt(0)).toString()),n},fromPartial(e){const n=ae();return n.address=e.address??new Uint8Array,n.power=e.power!==void 0&&e.power!==null?BigInt(e.power.toString()):BigInt(0),n},fromProtoMsg(e){return Validator.decode(e.value)},toProto(e){return Validator.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.Validator",value:Validator.encode(e).finish()}}};function de(){return{pubKey:y.fromPartial({}),power:BigInt(0)}}export const ValidatorUpdate={typeUrl:"/tendermint.abci.ValidatorUpdate",is(e){return e&&(e.$typeUrl===ValidatorUpdate.typeUrl||y.is(e.pubKey)&&typeof e.power=="bigint")},isSDK(e){return e&&(e.$typeUrl===ValidatorUpdate.typeUrl||y.isSDK(e.pub_key)&&typeof e.power=="bigint")},encode(e,n=d.create()){return e.pubKey!==void 0&&y.encode(e.pubKey,n.uint32(10).fork()).ldelim(),e.power!==BigInt(0)&&n.uint32(16).int64(e.power),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=de();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.pubKey=y.decode(t,t.uint32());break;case 2:r.power=t.int64();break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{pubKey:i(e.pubKey)?y.fromJSON(e.pubKey):void 0,power:i(e.power)?BigInt(e.power.toString()):BigInt(0)}},toJSON(e){const n={};return e.pubKey!==void 0&&(n.pubKey=e.pubKey?y.toJSON(e.pubKey):void 0),e.power!==void 0&&(n.power=(e.power||BigInt(0)).toString()),n},fromPartial(e){const n=de();return n.pubKey=e.pubKey!==void 0&&e.pubKey!==null?y.fromPartial(e.pubKey):void 0,n.power=e.power!==void 0&&e.power!==null?BigInt(e.power.toString()):BigInt(0),n},fromProtoMsg(e){return ValidatorUpdate.decode(e.value)},toProto(e){return ValidatorUpdate.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.ValidatorUpdate",value:ValidatorUpdate.encode(e).finish()}}};function pe(){return{validator:Validator.fromPartial({}),blockIdFlag:0}}export const VoteInfo={typeUrl:"/tendermint.abci.VoteInfo",is(e){return e&&(e.$typeUrl===VoteInfo.typeUrl||Validator.is(e.validator)&&i(e.blockIdFlag))},isSDK(e){return e&&(e.$typeUrl===VoteInfo.typeUrl||Validator.isSDK(e.validator)&&i(e.block_id_flag))},encode(e,n=d.create()){return e.validator!==void 0&&Validator.encode(e.validator,n.uint32(10).fork()).ldelim(),e.blockIdFlag!==0&&n.uint32(24).int32(e.blockIdFlag),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=pe();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.validator=Validator.decode(t,t.uint32());break;case 3:r.blockIdFlag=t.int32();break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{validator:i(e.validator)?Validator.fromJSON(e.validator):void 0,blockIdFlag:i(e.blockIdFlag)?x(e.blockIdFlag):-1}},toJSON(e){const n={};return e.validator!==void 0&&(n.validator=e.validator?Validator.toJSON(e.validator):void 0),e.blockIdFlag!==void 0&&(n.blockIdFlag=m(e.blockIdFlag)),n},fromPartial(e){const n=pe();return n.validator=e.validator!==void 0&&e.validator!==null?Validator.fromPartial(e.validator):void 0,n.blockIdFlag=e.blockIdFlag??0,n},fromProtoMsg(e){return VoteInfo.decode(e.value)},toProto(e){return VoteInfo.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.VoteInfo",value:VoteInfo.encode(e).finish()}}};function ue(){return{validator:Validator.fromPartial({}),voteExtension:new Uint8Array,extensionSignature:new Uint8Array,blockIdFlag:0}}export const ExtendedVoteInfo={typeUrl:"/tendermint.abci.ExtendedVoteInfo",is(e){return e&&(e.$typeUrl===ExtendedVoteInfo.typeUrl||Validator.is(e.validator)&&(e.voteExtension instanceof Uint8Array||typeof e.voteExtension=="string")&&(e.extensionSignature instanceof Uint8Array||typeof e.extensionSignature=="string")&&i(e.blockIdFlag))},isSDK(e){return e&&(e.$typeUrl===ExtendedVoteInfo.typeUrl||Validator.isSDK(e.validator)&&(e.vote_extension instanceof Uint8Array||typeof e.vote_extension=="string")&&(e.extension_signature instanceof Uint8Array||typeof e.extension_signature=="string")&&i(e.block_id_flag))},encode(e,n=d.create()){return e.validator!==void 0&&Validator.encode(e.validator,n.uint32(10).fork()).ldelim(),e.voteExtension.length!==0&&n.uint32(26).bytes(e.voteExtension),e.extensionSignature.length!==0&&n.uint32(34).bytes(e.extensionSignature),e.blockIdFlag!==0&&n.uint32(40).int32(e.blockIdFlag),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=ue();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.validator=Validator.decode(t,t.uint32());break;case 3:r.voteExtension=t.bytes();break;case 4:r.extensionSignature=t.bytes();break;case 5:r.blockIdFlag=t.int32();break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{validator:i(e.validator)?Validator.fromJSON(e.validator):void 0,voteExtension:i(e.voteExtension)?p(e.voteExtension):new Uint8Array,extensionSignature:i(e.extensionSignature)?p(e.extensionSignature):new Uint8Array,blockIdFlag:i(e.blockIdFlag)?x(e.blockIdFlag):-1}},toJSON(e){const n={};return e.validator!==void 0&&(n.validator=e.validator?Validator.toJSON(e.validator):void 0),e.voteExtension!==void 0&&(n.voteExtension=u(e.voteExtension!==void 0?e.voteExtension:new Uint8Array)),e.extensionSignature!==void 0&&(n.extensionSignature=u(e.extensionSignature!==void 0?e.extensionSignature:new Uint8Array)),e.blockIdFlag!==void 0&&(n.blockIdFlag=m(e.blockIdFlag)),n},fromPartial(e){const n=ue();return n.validator=e.validator!==void 0&&e.validator!==null?Validator.fromPartial(e.validator):void 0,n.voteExtension=e.voteExtension??new Uint8Array,n.extensionSignature=e.extensionSignature??new Uint8Array,n.blockIdFlag=e.blockIdFlag??0,n},fromProtoMsg(e){return ExtendedVoteInfo.decode(e.value)},toProto(e){return ExtendedVoteInfo.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.ExtendedVoteInfo",value:ExtendedVoteInfo.encode(e).finish()}}};function fe(){return{type:0,validator:Validator.fromPartial({}),height:BigInt(0),time:f.fromPartial({}),totalVotingPower:BigInt(0)}}export const Misbehavior={typeUrl:"/tendermint.abci.Misbehavior",is(e){return e&&(e.$typeUrl===Misbehavior.typeUrl||i(e.type)&&Validator.is(e.validator)&&typeof e.height=="bigint"&&f.is(e.time)&&typeof e.totalVotingPower=="bigint")},isSDK(e){return e&&(e.$typeUrl===Misbehavior.typeUrl||i(e.type)&&Validator.isSDK(e.validator)&&typeof e.height=="bigint"&&f.isSDK(e.time)&&typeof e.total_voting_power=="bigint")},encode(e,n=d.create()){return e.type!==0&&n.uint32(8).int32(e.type),e.validator!==void 0&&Validator.encode(e.validator,n.uint32(18).fork()).ldelim(),e.height!==BigInt(0)&&n.uint32(24).int64(e.height),e.time!==void 0&&f.encode(e.time,n.uint32(34).fork()).ldelim(),e.totalVotingPower!==BigInt(0)&&n.uint32(40).int64(e.totalVotingPower),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=fe();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.type=t.int32();break;case 2:r.validator=Validator.decode(t,t.uint32());break;case 3:r.height=t.int64();break;case 4:r.time=f.decode(t,t.uint32());break;case 5:r.totalVotingPower=t.int64();break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{type:i(e.type)?misbehaviorTypeFromJSON(e.type):-1,validator:i(e.validator)?Validator.fromJSON(e.validator):void 0,height:i(e.height)?BigInt(e.height.toString()):BigInt(0),time:i(e.time)?c(e.time):void 0,totalVotingPower:i(e.totalVotingPower)?BigInt(e.totalVotingPower.toString()):BigInt(0)}},toJSON(e){const n={};return e.type!==void 0&&(n.type=misbehaviorTypeToJSON(e.type)),e.validator!==void 0&&(n.validator=e.validator?Validator.toJSON(e.validator):void 0),e.height!==void 0&&(n.height=(e.height||BigInt(0)).toString()),e.time!==void 0&&(n.time=R(e.time).toISOString()),e.totalVotingPower!==void 0&&(n.totalVotingPower=(e.totalVotingPower||BigInt(0)).toString()),n},fromPartial(e){const n=fe();return n.type=e.type??0,n.validator=e.validator!==void 0&&e.validator!==null?Validator.fromPartial(e.validator):void 0,n.height=e.height!==void 0&&e.height!==null?BigInt(e.height.toString()):BigInt(0),n.time=e.time!==void 0&&e.time!==null?f.fromPartial(e.time):void 0,n.totalVotingPower=e.totalVotingPower!==void 0&&e.totalVotingPower!==null?BigInt(e.totalVotingPower.toString()):BigInt(0),n},fromProtoMsg(e){return Misbehavior.decode(e.value)},toProto(e){return Misbehavior.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.Misbehavior",value:Misbehavior.encode(e).finish()}}};function le(){return{height:BigInt(0),format:0,chunks:0,hash:new Uint8Array,metadata:new Uint8Array}}export const Snapshot={typeUrl:"/tendermint.abci.Snapshot",is(e){return e&&(e.$typeUrl===Snapshot.typeUrl||typeof e.height=="bigint"&&typeof e.format=="number"&&typeof e.chunks=="number"&&(e.hash instanceof Uint8Array||typeof e.hash=="string")&&(e.metadata instanceof Uint8Array||typeof e.metadata=="string"))},isSDK(e){return e&&(e.$typeUrl===Snapshot.typeUrl||typeof e.height=="bigint"&&typeof e.format=="number"&&typeof e.chunks=="number"&&(e.hash instanceof Uint8Array||typeof e.hash=="string")&&(e.metadata instanceof Uint8Array||typeof e.metadata=="string"))},encode(e,n=d.create()){return e.height!==BigInt(0)&&n.uint32(8).uint64(e.height),e.format!==0&&n.uint32(16).uint32(e.format),e.chunks!==0&&n.uint32(24).uint32(e.chunks),e.hash.length!==0&&n.uint32(34).bytes(e.hash),e.metadata.length!==0&&n.uint32(42).bytes(e.metadata),n},decode(e,n){const t=e instanceof a?e:new a(e);let o=n===void 0?t.len:t.pos+n;const r=le();for(;t.pos<o;){const s=t.uint32();switch(s>>>3){case 1:r.height=t.uint64();break;case 2:r.format=t.uint32();break;case 3:r.chunks=t.uint32();break;case 4:r.hash=t.bytes();break;case 5:r.metadata=t.bytes();break;default:t.skipType(s&7);break}}return r},fromJSON(e){return{height:i(e.height)?BigInt(e.height.toString()):BigInt(0),format:i(e.format)?Number(e.format):0,chunks:i(e.chunks)?Number(e.chunks):0,hash:i(e.hash)?p(e.hash):new Uint8Array,metadata:i(e.metadata)?p(e.metadata):new Uint8Array}},toJSON(e){const n={};return e.height!==void 0&&(n.height=(e.height||BigInt(0)).toString()),e.format!==void 0&&(n.format=Math.round(e.format)),e.chunks!==void 0&&(n.chunks=Math.round(e.chunks)),e.hash!==void 0&&(n.hash=u(e.hash!==void 0?e.hash:new Uint8Array)),e.metadata!==void 0&&(n.metadata=u(e.metadata!==void 0?e.metadata:new Uint8Array)),n},fromPartial(e){const n=le();return n.height=e.height!==void 0&&e.height!==null?BigInt(e.height.toString()):BigInt(0),n.format=e.format??0,n.chunks=e.chunks??0,n.hash=e.hash??new Uint8Array,n.metadata=e.metadata??new Uint8Array,n},fromProtoMsg(e){return Snapshot.decode(e.value)},toProto(e){return Snapshot.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/tendermint.abci.Snapshot",value:Snapshot.encode(e).finish()}}};
|
|
2
|
+
//# sourceMappingURL=types.js.map
|